Re: [me-media-timed-events] Add recommendation for events with unknown end time (#39)

@mavgit Thanks for the clear use cases [above](, which have made me realise that these can already be supported by the API, as follows:

a. The [`TextTrackCueList`]( is an existing interface, so cues can be read from the [`TextTrack`]( object.

b. The [`TextTrackCue`]( object exposes the `endTime` attribute which [can be set](

c. Hence, cues can be updated by removing, updating and then adding them back to the list. For example:
function updateCueEnd(textTrack, cueIndex, endTime) {
  // read cue to update
  var cue = textTrack.cues[cueIndex];

  // remove cue

  // update end time
  cue.endTime = endTime;

  // add updated cue

[Best practices for metadata text tracks]( describes a recommendation for handling scoring for a sports event and considers the live streaming case, which offers another good use case for updating media timed events. At the start of the match the score is '0-0', which could change to either '1-0' or '0-1' at an unknown time in the future.

GitHub Notification of comment by rjksmith
Please view or discuss this issue at using your GitHub account

Received on Friday, 31 May 2019 10:23:25 UTC