W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2014

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 10 Apr 2014 08:50:09 +0000
To: public-media-capture@w3.org
Message-ID: <bug-25275-5753-S2XFj3Bylx@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:26 UTC