HTML Audio/Video DOMstartDateProperties

HTML audio/video 标签参考手册HTML Audio/Video DOM Reference

Examples

Get the current timeline offset of the video:

myVid=document.getElementById("video1");
alert(myVid.startDate);

Try it yourself »

Definition and Usage

The startDate property returns a Date object representing the current timeline offset of the audio/video.

The startDate property is used to obtain precise audio/video stream synchronization over the Internet.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

None of the major browsers support the startDate property.


Syntax

audio|video.startDate

Technical Details

Return value: A Date object representing the current timeline offset.


HTML audio/video 标签参考手册HTML Audio/Video DOM Reference Other Extensions