The text track cue start time, in seconds.
Property of apis/audio-video/TextTrackCueapis/audio-video/TextTrackCue
Syntaxvar result = TextTrackCue.startTime;
TextTrackCue.startTime = value;
Return Value
Returns an object of type NumberNumber
ExamplesThis example adds start times, end times, and captions to a track.
<!DOCTYPE html >
<html >
<head>
<title>Add Text Tracks example</title>
</head>
<body>
<video id="video1" controls="controls" muted="muted">
<source src="http://ie.microsoft.com/testdrive/Videos/BehindIE9ModernWebStandards/Video.mp4" />
HTML5 Video not supported
</video>
<script>
var video = document.getElementById("video1");
var startTime, endTime, message;
var newTextTrack = video.addTextTrack("captions", "sample");
newTextTrack.mode = newTextTrack.SHOWING;
for (var i = 0; i < 30; i++) {
startTime = i * 5;
endTime = ((i * 5) + 5);
message = "This is number " + i;
newTextTrack.addCue(new TextTrackCue(startTime, endTime, message));
}
video.play();
</script>
</body>
</html>
Related specifications
Microsoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4