Re: [webrtc-pc] On track removal: Should you mute an already muted track? (#2506)

For an "infinite" stream of "black frames" at Chromium with `timeupdate` progression 

          dc1.onopen = e => {
            const handleMessage = _ => {
              // do stuff 
              requestAnimationFrame(function paint() {           
                ctx.fillRect(0, 0, canvas.width, canvas.height);
                requestAnimationFrame(paint);              
              });
              dc1.close();
            };
            dc1.onmessage = handleMessage;
          };

however, since Chromium toggle the `muted` state of the `MediaStreamTrack` from `canvas.captureStream()`, for no clear reason, if 

`track.onmute = e => alert(e.type)`

is included in the code, the user will be face with an endless series of prompts with `"mute"` and `"unmute"` from the events being fired,  even while `currentTime` is incrementing - though not on the `<video>` control.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2506#issuecomment-618226766 using your GitHub account

Received on Thursday, 23 April 2020 07:19:35 UTC