Open rjksmith opened 5 years ago
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.
Raised Pull Request for unbounded text track cue to propose change in whatwg: https://github.com/whatwg/html/pull/5953
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.