[Bug 25275] VideoTrackList.selectedIndex initialization confilicts with HTML5 spec, "if no track is selected".

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25275

Adam Bergkvist <adam.bergkvist@ericsson.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam.bergkvist@ericsson.com

--- Comment #1 from Adam Bergkvist <adam.bergkvist@ericsson.com> ---
Thanks again for reviewing the spec and sending feedback.

This is my thinking regarding this:

If the MediaStream has no video tracks, it's not right to set the selectedIndex
attribute to 0; it should be -1.

But since muted and disabled video tracks render blackness, it we could simply
select the first video track if there's at least one in the MediaStream. The
benefit of that would be that in the common case where there's one video track
available and it's muted or disabled when the stream is assigned to a media
element, the video would start playing as soon as the video track gets
enabled/unmuted without having to select the track.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Thursday, 10 April 2014 08:50:10 UTC