HTML Audio/Video DOM startDate Attribute

Example

Get the current timeline offset of the video:

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

Try It Yourself

Definition and Usage

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

The startDate attribute is used to obtain precise audio/video stream synchronization via the Internet.

Browser Support

All mainstream browsers do not support the startDate attribute.

Syntax

audio|video.startDate

Return Value

Type Description
Date Object Represents the current timeline offset.