Re: Cloning and sharing of MediaStreamTracks - worth it?

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