Re: [mediacapture-main] Relinquish device when all tracks are muted or disabled. (#662)

The consensus at the [virtual interim](https://www.w3.org/2011/04/webrtc/wiki/February_27_2020) last Thursday was to merge this PR.

> This PR is also not very clear in how should be treated the case where unmuting is denied by the user agent.

By "unmuting" I assume you mean setting `track.enabled = true` which is all JS can do.

This has no impact on the track's [muted](https://w3c.github.io/mediacapture-main/getusermedia.html#track-muted) state which is _"out of control for the application"_.

> It could also be that the user agent has a global switch that disables capture for all pages.
The current PR allows two possibilities: keep the track muted or end the track.

This seems true even without this PR (errors don't appear only while muted).

> A promise-based approach allows to reject with various errors (device no longer there, access denied...).

We've discussed exposing errors on the `ended` event in the [past](https://lists.w3.org/Archives/Public/public-media-capture/2012May/0042.html) and rejected it.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/662#issuecomment-593520731 using your GitHub account

Received on Monday, 2 March 2020 17:31:38 UTC