W3C home > Mailing lists > Public > public-media-capture@w3.org > March 2013

Re: How do we enable/select tracks for playout?

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Thu, 21 Mar 2013 07:38:07 +0100
Message-ID: <514AAACF.3030403@ericsson.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: Travis Leithead <travis.leithead@microsoft.com>, Jim Barnett <Jim.Barnett@genesyslab.com>, Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On 2013-03-20 19:32, Martin Thomson wrote:
> On 20 March 2013 10:32, Travis Leithead <travis.leithead@microsoft.com> wrote:
>> So as I understand, setting enabled=false does not cause the
>> 'muted' event to fire, right? But you're proposing that setting
>> activeVideo/AudioTrack to null/undefined would cause this event to
>> fire? Is 'muted' (the event name) still a good name for the
>> "absence of media content" state?
>
> Let's just say that the muted state is the logical AND of a physical
> mute button and a logical mute button (presumably the enabled
> attribute).  The muted event might fire as a result of either, though
> this might depend on whether it is possible to detect changes in the
> physical button state.

Travis is right that the muted event isn't fired on the track object 
that you set "enabled = false" on. The output of the track is muted, so 
if the track is represented by a MediaStreamTrack object on the other 
side of a PeerConnection, then the muted event is fired on that track.

/Adam
Received on Thursday, 21 March 2013 06:38:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:15 UTC