Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebVMT: Investigate optional endTime in HTML5 TextTrackCue interface #1106

Open
rjksmith opened this issue Dec 12, 2018 · 2 comments
Open

WebVMT: Investigate optional endTime in HTML5 TextTrackCue interface #1106

rjksmith opened this issue Dec 12, 2018 · 2 comments
Assignees
Labels
webvmt Web Video Map Tracks Format issues

Comments

@rjksmith
Copy link
Member

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:

  1. Define a special value of TextTrackCue.endTime to signify that the time is unknown.
  2. 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.

I intend to investigate this issue as part of the planned Web Incubator CG activity, proposed at TPAC in Lyon.

@rjksmith rjksmith added the webvmt Web Video Map Tracks Format issues label Dec 12, 2018
@rjksmith rjksmith self-assigned this Dec 12, 2018
@rjksmith rjksmith added this to To do in Web Video Map Tracks (WebVMT) Format via automation Dec 12, 2018
@rjksmith
Copy link
Member Author

rjksmith commented Mar 8, 2019

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.

@rjksmith
Copy link
Member Author

rjksmith commented Oct 2, 2020

Raised Pull Request for unbounded text track cue to propose change in whatwg: whatwg/html#5953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webvmt Web Video Map Tracks Format issues
Development

No branches or pull requests

1 participant