Search w3schools.com:

SHARE THIS PAGE

HTML Audio/Video DOM startDate Property

HTML audio Tag Reference HTML Audio/Video DOM Reference

Example

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 enable accurate synchronization of audio/video streamed live over the internet.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The startDate property is not supported in any major browser


Syntax

audio|video.startDate

Technical Details

Return Value: A Date Object, representing current timeline offset


HTML audio Tag Reference HTML Audio/Video DOM Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]