<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25276</bug_id>
          
          <creation_ts>2014-04-05 19:03:52 +0000</creation_ts>
          <short_desc>Initialization for VideoTrack.selected attribute is missing while specifying steps for &quot;Loading and Playing a MediaStream in a Media Element&quot;</short_desc>
          <delta_ts>2014-05-08 12:36:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Media Capture and Streams</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kiran">kiran.guduru</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>public-media-capture</cc>
    
    <cc>stefan.lk.hakansson</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103452</commentid>
    <comment_count>0</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-05 19:03:52 +0000</bug_when>
    <thetext>Initialization for VideoTrack.selected is missing while specifying steps for &quot;Loading and Playing a MediaStream in a Media Element&quot; in section 6.2 of [1].

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

[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#loading-and-playing-a-mediastream-in-a-media-element</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103661</commentid>
    <comment_count>1</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-10 10:11:13 +0000</bug_when>
    <thetext>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 &quot;main&quot;

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], &quot;When a VideoTrack is created, its selection state must be set to false (not selected)&quot;

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

&quot;Set the VideoTrack.selected to true for the VideoTrack at  VideoTrackList.selectedIndex, if present any&quot;


[1] http://www.w3.org/TR/html5/embedded-content-0.html#audiotracklist-and-videotracklist-objects</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103723</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-04-11 05:55:36 +0000</bug_when>
    <thetext>Thanks for reporting this.

Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/c9814da26623816f7c064da1ff7eda8571fd253e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105415</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-05-08 08:34:05 +0000</bug_when>
    <thetext>(In reply to Adam Bergkvist from comment #2)
&gt; Thanks for reporting this.
&gt; 
&gt; Proposed fix:
&gt; https://github.com/fluffy/webrtc-w3c/commit/
&gt; 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&apos;t find the above fix in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105432</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-05-08 12:36:23 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>