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

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

From: Andreas Pehrson via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Jun 2019 18:33:51 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-499203288-1559759629-sysbot+gh@w3.org>
@guest271314 is what asynchronous to setting `enabled`?

Media flow turning video black/non-black or audio silent/audible? Yes, I'd say that's async. From the spec I interpret that setting the enabled attribute sets the enabled state synchronously. Setting the enabled state will in turn enable or disable the media flow from the source. Media flow from the source depends on the source but typically it doesn't flow on main thread so for those cases it cannot be sync with setting the enabled state on main thread (well, not without blocking the main thread anyway). Thus, even though the spec doesnt explicitly say so, no guarantee about it being sync can be given.

In Firefox it's definitely async.

GitHub Notification of comment by Pehrsons
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/80#issuecomment-499203288 using your GitHub account
Received on Wednesday, 5 June 2019 18:33:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 June 2019 18:33:53 UTC