English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML Audio/Video DOM Reference Manual
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 ‹/›
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.
IEFirefoxOperaChromeSafari
All mainstream browsers do not support the startDate property.
audio|video.startDate
Return value: | A Date object representing the current timeline offset. |
---|