- From: Harald Alvestrand <harald@alvestrand.no>
- Date: Mon, 12 May 2014 11:55:56 +0200
- To: public-media-capture@w3.org
- Message-ID: <53709AAC.9070200@alvestrand.no>
On 05/10/2014 03:49 PM, bugzilla@jessica.w3.org wrote: > https://www.w3.org/Bugs/Public/show_bug.cgi?id=25652 > > Bug ID: 25652 > Summary: Media Capture Spec should explicitly specify about > MediaStream active / inactive state change events to > give more clarity. > Product: WebRTC Working Group > Version: unspecified > Hardware: All > OS: All > Status: NEW > Severity: normal > Priority: P2 > Component: Media Capture and Streams > Assignee: public-media-capture@w3.org > Reporter: kiran.guduru@samsung.com > CC: public-media-capture@w3.org > > Media Capture and Streams spec is specifying active / inactive events. > But missing to give clarity about when they should be fired and when they > should not be fired, if any. > > MediaStream state may change in many aspects other than MediaStream Constructor > algorithm, like > if the following functions invoked > MediaStream.addTrack() > MediaStream.clone() > MediaStream.removeTreack() > MediaStramTrack.stop() > MediaStreamTrack.enabled() > > or if the addTrack/removeTrack events ocrrucred because of internal > peerConnection changes > or if all the tracks get muted because of external entity. > > Spec should specify that the corresponding active / inactive event should be > fired. > Adding the following line after > "Otherwise the stream is active. A MediaStream can start its life as inactive > if it is constructed without any tracks" > "UA should fire active and inactive events whenever the stream changes its > state from inactive to active and active to inactive respectively" > may be sufficient. > The next paragraph in the spec says When a||MediaStream| <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStream>|goes from being active to inactive, the user agent/must/queue a task that sets the object's|active <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-mediastream-active>|attribute to|false|and fire a simple event named|inactive <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#event-mediastream-inactive>|at the object. When a||MediaStream| <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStream>|goes from being inactive to active, the user agent/must/queue a task that sets the object's|active <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-mediastream-active>|attribute to|true|and fire a simple event named|active <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#event-mediastream-active>|at the object. This is somewhat longer than the text proposed, but seems to say the same thing. What am I missing here?
Received on Monday, 12 May 2014 09:56:28 UTC