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

@henbos Interestingly, cannot reproduce the bug where `mute` and `unmute` events were being fired based on mouse movement. Was either running code at `console` at MDN or at https://plnkr.co running code. Saved the output just for the case of not being able to reproduce the next day

```
0.251276 450
VM1128:28 0.284608 450
VM1128:28 1.251236 450
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 16.185637 450
VM1128:28 16.509598 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 16.767282 450
VM1128:28 16.834284 450
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 18.814115 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 256.726469 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 256.808175 450
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 259.73112 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 261.68968 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 261.959337 450
VM1128:28 262.207464 450
VM1128:28 262.434713 450
VM1128:28 262.717973 450
VM1128:28 262.964394 450
VM1128:28 263.204343 450
VM1128:28 263.469493 450
VM1128:28 263.705097 450
VM1128:28 263.95417 450
VM1128:28 264.204803 450
VM1128:28 264.369143 450
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 266.357293 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 401.9193 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 402.206537 450
VM1128:28 402.29217 450
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 429.950754 450
VM1128:28 430.084082 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 437.250462 450
VM1128:28 437.358342 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 439.287269 450
VM1128:25 Event {isTrusted: true, type: "unmute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:25 Event {isTrusted: true, type: "mute", target: MediaStreamTrack, currentTarget: MediaStreamTrack, eventPhase: 2, …}
VM1128:28 525.750049 450
VM1128:38 blob:https://path/to/site/4a0393ec-afed-44e0-ae1f-847afeff3f6f
VM1128:28 0 450
```

Chromium froze twice today trying to reproduce the issue. Will re-open this issue if am able to retrace steps and reproduce the issue. `MediaRecorder` still is not creating video with `duration` to the correct length. Firefox does not have that issue.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/141#issuecomment-650228985 using your GitHub account

Received on Friday, 26 June 2020 15:05:15 UTC