<?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>25440</bug_id>
          
          <creation_ts>2014-04-24 11:28:42 +0000</creation_ts>
          <short_desc>MediaStreamTrack.readyState has no muted attribute</short_desc>
          <delta_ts>2014-12-15 10:39:25 +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>WebRTC API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</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="Dominique Hazael-Massieux">dom</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>harald</cc>
    
    <cc>public-webrtc</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104330</commentid>
    <comment_count>0</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-24 11:28:42 +0000</bug_when>
    <thetext>In WebRTC spec [1] in section 9.2.2 Events on MediaStream,
the ready state attribute has been initialized to muted.

But MediaStreamTrack readyState [2] does not contain &quot;muted&quot; state. It contains only new, live and ended states.

enum MediaStreamTrackState {
    &quot;new&quot;,
    &quot;live&quot;,
    &quot;ended&quot;
};

Since &quot;muted&quot; state is also considered as &quot;live&quot; state [3], perhaps it may be initialized to &quot;live&quot; instead of muted.

or

It should be initialized with &quot;live&quot; if the connection is established (which is the source for a remote stream) otherwise with &quot;live&quot;.

[1] http://dev.w3.org/2011/webrtc/editor/webrtc.html#events-on-mediastream
[2] http://www.w3.org/TR/mediacapture-streams/#idl-def-MediaStreamTrackState
[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=22259</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104425</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-04-25 10:54:32 +0000</bug_when>
    <thetext>(In reply to Kiran from comment #0)
&gt; In WebRTC spec [1] in section 9.2.2 Events on MediaStream,
&gt; the ready state attribute has been initialized to muted.
&gt; 
&gt; But MediaStreamTrack readyState [2] does not contain &quot;muted&quot; state. It
&gt; contains only new, live and ended states.

Thanks for spotting this. It&apos;s old stuff that hasn&apos;t been updated after &quot;muted&quot; was removed as a state. 

&gt; 
&gt; Since &quot;muted&quot; state is also considered as &quot;live&quot; state [3], perhaps it may
&gt; be initialized to &quot;live&quot; instead of muted.
&gt; 
&gt; or
&gt; 
&gt; It should be initialized with &quot;live&quot; if the connection is established (which
&gt; is the source for a remote stream) otherwise with &quot;live&quot;.

Do you mean &quot;new&quot; in the latter case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104430</commentid>
    <comment_count>2</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-25 11:10:39 +0000</bug_when>
    <thetext>(In reply to Adam Bergkvist from comment #1)
&gt; (In reply to Kiran from comment #0)
&gt; &gt; In WebRTC spec [1] in section 9.2.2 Events on MediaStream,
&gt; &gt; the ready state attribute has been initialized to muted.
&gt; &gt; 
&gt; &gt; But MediaStreamTrack readyState [2] does not contain &quot;muted&quot; state. It
&gt; &gt; contains only new, live and ended states.
&gt; 
&gt; Thanks for spotting this. It&apos;s old stuff that hasn&apos;t been updated after
&gt; &quot;muted&quot; was removed as a state. 
&gt; 
&gt; &gt; 
&gt; &gt; Since &quot;muted&quot; state is also considered as &quot;live&quot; state [3], perhaps it may
&gt; &gt; be initialized to &quot;live&quot; instead of muted.
&gt; &gt; 
&gt; &gt; or
&gt; &gt; 
&gt; &gt; It should be initialized with &quot;live&quot; if the connection is established (which
&gt; &gt; is the source for a remote stream) otherwise with &quot;live&quot;.
&gt; 
&gt; Do you mean &quot;new&quot; in the latter case?

Yes it is &quot;new&quot;, Sorry for the typo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106799</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-05-26 14:58:00 +0000</bug_when>
    <thetext>Perhaps we should revisit this bug when we have the Dookickey (RTPSender/RTPCRecevier) stuff in place. The RTPCRecevier sort of becomes the new source of a track that is received via a PeerConnection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114225</commentid>
    <comment_count>4</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-10-30 00:20:54 +0000</bug_when>
    <thetext>The current (Oct 27) state values are &quot;live&quot; and &quot;ended&quot;.

So the occurences of &quot;muted&quot; need to be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114351</commentid>
    <comment_count>5</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-10-31 16:42:58 +0000</bug_when>
    <thetext>Change needed is to move &quot;readyState&quot; to LIVE and &quot;muted&quot; attribute to TRUE.

Dom to make PR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114354</commentid>
    <comment_count>6</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2014-10-31 16:49:59 +0000</bug_when>
    <thetext>Proposed fix https://github.com/w3c/webrtc-pc/pull/17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116310</commentid>
    <comment_count>7</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2014-12-15 10:39:25 +0000</bug_when>
    <thetext>WebRTC API bugs have been moved to github issues: https://github.com/w3c/webrtc-pc/issues

Please subscribe to the issues you want to keep watching.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>