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
WebVMT supports cues without end times for streamed media use cases, where the media end time may be unknown, e.g. during a live broadcast.
Map annotation which displays persistently is a common use case, but this is not currently addressed by TextTrackCue (or DataCue) interface in HTML5 which requires an endTime attribute.
There are two ways in which this could be addressed:
Define a special value of TextTrackCue.endTime to signify that the time is unknown.
Add a noEndTime flag to indicate that the cue persists indefinitely.
Currently, negative endTime values are allowed and signify cue times that occur before the start, according the note in TextTrackCue. One way of encoding an unknown time would be to set the endTime before the startTime for a cue, i.e. a negative cue duration. The HTML5 specification does not explicitly preclude this and it requires no change to the interface, but this may have unintended consequences for existing implementations.
Adding a boolean noEndTime flag provides a much clearer solution, but requires a change to the existing HTML5 TextTrackCue definition to include it.
Preliminary discussions for the proposed DataCue WICG activity have yielded an alternative solution. As HTML 5.2 already represents an unbounded stream using media.duration=Infinity, this idea could be extended to include TextTrackCue.endTime.
A suitable requirement has been included in the draft explainer for DataCue WICG.
WebVMT supports cues without end times for streamed media use cases, where the media end time may be unknown, e.g. during a live broadcast.
Map annotation which displays persistently is a common use case, but this is not currently addressed by
TextTrackCue
(orDataCue
) interface in HTML5 which requires anendTime
attribute.There are two ways in which this could be addressed:
TextTrackCue.endTime
to signify that the time is unknown.noEndTime
flag to indicate that the cue persists indefinitely.Currently, negative
endTime
values are allowed and signify cue times that occur before the start, according the note inTextTrackCue
. One way of encoding an unknown time would be to set theendTime
before thestartTime
for a cue, i.e. a negative cue duration. The HTML5 specification does not explicitly preclude this and it requires no change to the interface, but this may have unintended consequences for existing implementations.Adding a boolean
noEndTime
flag provides a much clearer solution, but requires a change to the existing HTML5TextTrackCue
definition to include it.I intend to investigate this issue as part of the planned Web Incubator CG activity, proposed at TPAC in Lyon.
The text was updated successfully, but these errors were encountered: