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

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