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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML Audio/Video DOM startDate-Eigenschaft

 HTML Audio/Video DOM Reference Manual

Online-Beispiel

Erfassen Sie den aktuellen Zeitstrahlabstand des Videos:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Audio/Verwendung der(startDate)-Eigenschaft des Videos-Grundtutorials(oldtoolbag.com)</title>
</head>
<body>
<button onclick="getTimeOffset()" type="button">Erfassen Sie den aktuellen Zeitstrahlabstand des Videos</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 getTimeOffset()
{ 
  alert(myVid.startDate);
} 
</script> 
</body>
</html>
Test to see ‹/›

Definition and usage

The startDate property returns a Date object representing the audio/The current timeline offset of the video.
The startDate property is used to enable audio streaming over the Internet in real time/Accurate synchronization of video.

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers do not support the startDate property.

Syntax

audio|video.startDate

Technical details

Return value:A Date object representing the current timeline offset.
 HTML Audio/Video DOM Reference Manual