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

One question that have is what is the expected state of a `CanvasCaptureMediaStreamTrack` where no images have been drawn onto the `canvas`?

```
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const stream = canvas.captureStream(0);
const [track] = stream.getVideoTracks();
pc1.addTrack(track);
```

Does a `MediaStreamTrack` derived from `canvas.captureStream()` without any image being drawn onto the `canvas` before passing to `addTrack()` qualify as a `MediaStreamTrack` that is in state `muted === false` or `muted === true`?

If `muted === true` because no image has been drawn onto the `canvas` why would `unmute` event be fired simply because the local track becomes remote after `addTrack()`?

If `muted === false` because the `canvas` itself is a transparent image, thus media, should `unmute` be dispatched without any image being drawn onto the `canvas` locally?

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

Received on Sunday, 19 April 2020 16:57:35 UTC