- From: Martin Thomson <martin.thomson@gmail.com>
- Date: Wed, 8 May 2013 09:02:04 -0700
- To: "Robert O'Callahan" <robert@ocallahan.org>
- Cc: Stefan HÃ¥kansson LK <stefan.lk.hakansson@ericsson.com>, Jim Barnett <Jim.Barnett@genesyslab.com>, Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On 8 May 2013 00:38, Robert O'Callahan <robert@ocallahan.org> wrote: > If we clone a MediaStreamTrack and insert that into a different MediaStream, > how are the "enabled" and "muted" states of the clone related to the > original? Can the clone be enabled while the original is disabled? The way I see cloning is that you get a *copy* of all of the attributes of the original. By value. That is, it's a new track, attached to the same source with a copy of the constraints. That means that clone.enabled==original.enabled. Changes to the new track are completely independent of changes in the other track. "muted" is a property of the source, outside of application control. That's going to be the same for all tracks attached to the same source. When the user hits the mute button on the microphone or puts a hat over the webcam, that is going to affect all the tracks.
Received on Wednesday, 8 May 2013 16:02:36 UTC