[Webkit-unassigned] [Bug 132558] [MediaStream] MediaStream.addTrack Should not check for active state.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 5 21:21:10 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132558





--- Comment #3 from Kiran <kiran.guduru at samsung.com>  2014-05-05 21:21:30 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=230808)
 --> (https://bugs.webkit.org/attachment.cgi?id=230808&action=review) [details] [details]
> > MediaStream.addTrack method is checking for active state of a MediaStream, but it should not check for active state while adding a Track.
> > 
> > MediaStream.addTrack Should not check for active state.
> 
> What, specifically, does the spec say about this?

This bug arise while modifying MediaStream.ended state to active state.
Spec is not specifying to check for active state in addTrack steps [1].



1.Let track be the MediaStreamTrack argument and stream this MediaStream object.
2.If track is already in stream's track set, then abort these steps.
3.Add track to stream's track set.

Further if we add this check then the scenario mentioned in comment 1, i.e., 
"Create a MediaStream without any argument, then try to add tracks to the newly created mediaStream" will not work, because in this case since a newly created mediaStream has no tracks its state is inactive.

[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-MediaStream-addTrack-void-MediaStreamTrack-track

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list