You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Case
A user wants to display content which is synchronised to a web media object and remains visible from the cue start time until the media finishes playing. For example, a common use case for WebVMT is to add a map annotation cue which persists for the media duration. In the case of live streaming, the end of media time is unknown and there is no value of TextTrackCue.endTime that can represent this.
Proposal
It is proposed that a TextTrackCue.endTime value of Infinity could be used to represent the end of media time. This is a simple extension of the existing HTML 5.2 standard where media.duration equal to Infinity represents the duration of an unbounded stream.
Example
functionaddCueToEnd(textTrack,startTime,cueType,cueValue){// display cue from startTime to end of mediavarcue=newDataCue(startTime,Infinity);cue.type=cueType;cue.value=cueValue;textTrack.addCue(cue);}
Use Case
A user wants to display content which is synchronised to a web media object and remains visible from the cue start time until the media finishes playing. For example, a common use case for WebVMT is to add a map annotation cue which persists for the media duration. In the case of live streaming, the end of media time is unknown and there is no value of
TextTrackCue.endTime
that can represent this.Proposal
It is proposed that a
TextTrackCue.endTime
value ofInfinity
could be used to represent the end of media time. This is a simple extension of the existing HTML 5.2 standard wheremedia.duration
equal toInfinity
represents the duration of an unbounded stream.Example
Related Issues
The text was updated successfully, but these errors were encountered: