Bug 129748 - VideoTrackList onchange event should only fire if a track is selected, not deselected
Summary: VideoTrackList onchange event should only fire if a track is selected, not de...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 11:15 PST by Brendan Long
Modified: 2014-06-17 10:31 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Long 2014-03-05 11:15:00 PST
Relevant portion of the spec:

> Whenever a track in a VideoTrackList *that was previously not selected is selected*, the user agent must queue a task to fire a simple event named change at the VideoTrackList object. This task must be queued before the task that fires the resize event, if any.
http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#audiotracklist-and-videotracklist-objects

Right now we fire events when a track is deselected also.
Comment 1 Brendan Long 2014-03-05 19:27:47 PST
This is going to be hard to test for in WebKitGTK, since playbin won't let us completely turn video off (so setting selected = false just the video stream to whichever want playbin sicks). I'll probably do that first..