[webvtt] Add 'onreadystatechange' to HTMLTrackElement

RESOLVED INVALID

Status

()

Core
Audio/Video
RESOLVED INVALID
4 years ago
4 years ago

People

(Reporter: reyre, Unassigned)

Tracking

(Blocks: 1 bug, {dev-doc-needed})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
Kyle brought up a good point when reviewing bug 895091. Namely, that we should be able to observe ReadyState changes on the HTMLTrackElement.

I've opened a spec bug for it here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23168. When/if the spec is updated we can go ahead and implement this.
(Reporter)

Updated

4 years ago
Blocks: 629350
(Reporter)

Comment 1

4 years ago
From discussion on the spec bug -- there are 'load' and 'error' events that are fired at the track during the track processing model: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#start-the-track-processing-model

So I'm thinking that this will probably be good for our needs.
Hi Rick,
Can you give us the status of this bug? As of Firefox 28, the track element doesn't fire any events.
Common events for this element include 'error', 'load' and 'cuechange'.
(Reporter)

Comment 3

4 years ago
(In reply to G. C. Marty from comment #2)
> Hi Rick,
> Can you give us the status of this bug? As of Firefox 28, the track element
> doesn't fire any events.
> Common events for this element include 'error', 'load' and 'cuechange'.

Sure, would be happy too. Most of the work to implement that functionality is going on in bug 882718. Those events happen as part of the time marches on algorithm so it maid sense for us to implement them together.

This bug is more specifically about getting an 'onreadystatechange' event on the TrackElement, so that we can know more accurately when the ready state of a TrackElement changes.
Keywords: dev-doc-needed
(Reporter)

Comment 4

4 years ago
I'm going to close this as I think 'load' and 'error' events on the TrackElement are enough for our needs. See the spec bug (https://www.w3.org/Bugs/Public/show_bug.cgi?id=23168) for more info.

Development for the 'load' and 'error' events are going on in bug 882677 and the 'cuechange' event is being worked on in bug 882718.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.