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

@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