This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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 "muted" state. It contains only new, live and ended states. enum MediaStreamTrackState { "new", "live", "ended" }; Since "muted" state is also considered as "live" state [3], perhaps it may be initialized to "live" instead of muted. or It should be initialized with "live" if the connection is established (which is the source for a remote stream) otherwise with "live". [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
(In reply to Kiran from comment #0) > 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 "muted" state. It > contains only new, live and ended states. Thanks for spotting this. It's old stuff that hasn't been updated after "muted" was removed as a state. > > Since "muted" state is also considered as "live" state [3], perhaps it may > be initialized to "live" instead of muted. > > or > > It should be initialized with "live" if the connection is established (which > is the source for a remote stream) otherwise with "live". Do you mean "new" in the latter case?
(In reply to Adam Bergkvist from comment #1) > (In reply to Kiran from comment #0) > > 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 "muted" state. It > > contains only new, live and ended states. > > Thanks for spotting this. It's old stuff that hasn't been updated after > "muted" was removed as a state. > > > > > Since "muted" state is also considered as "live" state [3], perhaps it may > > be initialized to "live" instead of muted. > > > > or > > > > It should be initialized with "live" if the connection is established (which > > is the source for a remote stream) otherwise with "live". > > Do you mean "new" in the latter case? Yes it is "new", Sorry for the typo.
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.
The current (Oct 27) state values are "live" and "ended". So the occurences of "muted" need to be removed.
Change needed is to move "readyState" to LIVE and "muted" attribute to TRUE. Dom to make PR.
Proposed fix https://github.com/w3c/webrtc-pc/pull/17
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.