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: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Tue, 04 Jun 2019 16:05:32 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-498736889-1559664331-sysbot+gh@w3.org>
@Pehrsons One reason for filing this issue is trying to use `unmute`, `mute` and `ended` events for control flow. From what have found those events are not dispatched reliably, specifically at Chromium (when trying to compose code that outputs the same result at Firefox and Chromium, accounting the the obvious differences between the two browsers; e.g., `mozCaptureStream()`). While Firefox does not currently support `WritableStream` or `grabFrame()`, consider this issue https://bugs.chromium.org/p/chromium/issues/detail?id=967459, where in recent tests `unmute` and `mute` are dispatched for only 1 `MediaStreamTrack` among 7 `MediaStreamTrack`s and `ended` event is not ever dispatched https://bugs.chromium.org/p/chromium/issues/detail?id=967459. 

In such a case should the developer create a recursive function which polls `readyState` to determine if the track is "ended"? 

GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/80#issuecomment-498736889 using your GitHub account
Received on Tuesday, 4 June 2019 16:05:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 16:05:34 UTC