W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2019

Re: [mediacapture-fromelement] Is mute event expected to be dispatched at MediaStreamTrack when enabled is set to false? (#80)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 May 2019 13:52:29 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-496220242-1558965148-sysbot+gh@w3.org>
@Pehrsons Do not get that from the specification 

> A muted track will however, regardless of the enabled state, render silence and blackness. A disabled track is logically equivalent to a muted track, from a consumer point of view.


> Enabled/disabled on the other hand is available to the application to control (and observe) via the enabled attribute. The result for the consumer is the same in the sense that whenever MediaStreamTrack is muted or disabled (or both) the consumer gets zero-information-content, which means silence for audio and black frames for video. In other words, media from the source only flows when a MediaStreamTrack object is both unmuted and enabled. For example, a video element sourced by a muted or disabled MediaStreamTrack (contained in a MediaStream ), is playing but rendering blackness.

Is your interpretation of the specification that setting `enabled` to false should not directly initiate any event being dispatched; specifically the `mute` event? 

If that is the case then what is the purpose of the `enabled` attribute? 

And further, if the `MediaStreamTrack` is neither `muted` nor `ended` when `src` of a `<video>` element changes or when `enabled` is set to `false` then `MediaRecorder` should not stop recording.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/80#issuecomment-496220242 using your GitHub account
Received on Monday, 27 May 2019 13:52:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:23 UTC