English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML-Referenzhandbuch

HTML-Tag-Liste

HTML Audio/Video DOM paused Eigenschaft

paused teilt mit, ob das Video pausiert wird

 HTML Audio/Video DOM Reference Manual

Online-Beispiel

Überprüfen Sie, ob das Video pausiert ist:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8-8>
<title>HTML Audio/Video paused Eigenschaft verwenden-Grund教程(oldtoolbag.com)</title>/<title>
</<head>
<body>
<button onclick="isVidPaused()" type="button">Video ist pausiert?</button>/button>
<br> 
<video id="video1" controls="controls">
  <source src="movie.mp4" type="video/mp4>
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support HTML5 video Tag.
</video>
<script>
myVid=document.getElementById("video1");
function isVidPaused()
{ 
  alert(myVid.paused);
} 
</script>
</body>
</html>
Test to see ‹/›

Definition and Usage

The paused property returns audio/Whether the video has been paused.
Note: This property is read-only.

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the paused property.

Note:Internet Explorer 8 and earlier versions do not support this property.

Syntax

audio|video.paused

Technical Details

Return value:Boolean value, true|false.
true indicates audio/The video has been paused, otherwise false.
 HTML Audio/Video DOM Reference Manual