This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25276 - Initialization for VideoTrack.selected attribute is missing while specifying steps for "Loading and Playing a MediaStream in a Media Element"
Summary: Initialization for VideoTrack.selected attribute is missing while specifying ...
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-05 19:03 UTC by Kiran
Modified: 2014-05-08 12:36 UTC (History)
3 users (show)

See Also:


Attachments

Description Kiran 2014-04-05 19:03:52 UTC
Initialization for VideoTrack.selected is missing while specifying steps for "Loading and Playing a MediaStream in a Media Element" in section 6.2 of [1].

The addition of following line may fix it.
"Set the VideoTrack.selected to true for the VideoTrack at  VideoTrackList.selectedIndex, if present any, for all other VideoTracks set VideoTrack.selected to false"

[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#loading-and-playing-a-mediastream-in-a-media-element
Comment 1 Kiran 2014-04-10 10:11:13 UTC
The fix will be more good if it is like this

o. AudioTrack.id and VideoTrack.id have the value of the corresponding MediaStreamTrack.id attribute

o. AudioTrack.kind and VideoTrack.kind be "main"

o. AudioTrack.label and VideoTrack.label have the value of the corresponding MediaStreamTrack.label attribute

o. AudioTrack.language and VideoTrack.language be the empty string

o. AudioTrack.enabled be true

o. VideoTrack.selected be false.

This statement is according to [1], "When a VideoTrack is created, its selection state must be set to false (not selected)"

Than after specifying the selected index, the following line should be added

"Set the VideoTrack.selected to true for the VideoTrack at  VideoTrackList.selectedIndex, if present any"


[1] http://www.w3.org/TR/html5/embedded-content-0.html#audiotracklist-and-videotracklist-objects
Comment 2 Adam Bergkvist 2014-04-11 05:55:36 UTC
Thanks for reporting this.

Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/c9814da26623816f7c064da1ff7eda8571fd253e
Comment 3 Stefan Hakansson LK 2014-05-08 08:34:05 UTC
(In reply to Adam Bergkvist from comment #2)
> Thanks for reporting this.
> 
> Proposed fix:
> https://github.com/fluffy/webrtc-w3c/commit/
> c9814da26623816f7c064da1ff7eda8571fd253e

This bug is reported as fixed in http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html, but reviewing it I am not sure that is the case - I can't find the above fix in it.
Comment 4 Stefan Hakansson LK 2014-05-08 12:36:23 UTC
I checked with Kiran, he is O.K. with closing given what is in  http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html; but may file a new bug proposing a minor clarification.