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

Re: [mediacapture-screen-share] mute and unmute events of MediaStreamTrack should not be fired based on user non-action (#141)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Sat, 27 Jun 2020 18:38:22 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-650599749-1593283102-sysbot+gh@w3.org>
Removing `MediaRecorder` from the equation, this code

```
onclick = async _ => { 
  onclick = null;
  var recorder, videoTrack, stream
  stream = await navigator.mediaDevices.getDisplayMedia({video: true});
  stream.oninactive = e => console.log(e.type);
  [videoTrack] = stream.getVideoTracks();
  let now = performance.now();
  videoTrack.onmute = videoTrack.onunmute = videoTrack.onended = e => console.log(e.type, performance.now() - now);
}
```

**does not** fire `mute` event when  "Your Entire" is selected at screen capture UI prompt, `mute` event **does**  fire when "Application Window" or "Chromium Tab" is selected for capture.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/141#issuecomment-650599749 using your GitHub account
Received on Saturday, 27 June 2020 18:38:25 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:51 UTC