This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25832 - MediaRecorder needs to define effect of adding / removing tracks in its input MediaStream
Summary: MediaRecorder needs to define effect of adding / removing tracks in its input...
Status: RESOLVED MOVED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: MediaStream Recording (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-20 20:13 UTC by Shijun Sun
Modified: 2015-03-10 17:40 UTC (History)
5 users (show)

See Also:


Attachments

Description Shijun Sun 2014-05-20 20:13:29 UTC
The "stream" attribute on the MediaRecorder is readonly, but it seems the spec does not prevent the app from dynamically adding/removing tracks from the stream object.

If the intention of defining the attribute as readonly is to block dynamic changes to the stream object, it will be better to define a getStream() method to return a copy of the internal MediaStream object.
Comment 1 Adam Bergkvist 2014-05-21 13:01:40 UTC
The readonly only prevents the script from assigning the attribute to an entirely new MediaStream. Returning a copy with getStream() wouldn't help since you can still have the reference to the stream you passed in to the MediaRecorder() constructor. To prevent this, we would have to have a "readonly mode" for the stream. I'm not sure we want/need that.
Comment 2 Martin Thomson 2014-05-21 15:24:12 UTC
The point here is that we need some sort of rules for handling the cases where tracks are added and removed from a stream that is in active use.
Comment 3 Harald Alvestrand 2014-06-13 08:41:18 UTC
Changing the subject of the bug to say what it's about (based on discussion).

The alternative would be to close as WONTFIX/WAI.
Comment 4 Dominique Hazael-Massieux 2015-03-10 17:40:20 UTC
moved to github https://github.com/w3c/mediacapture-record/issues/4