Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What happens for live tracks in case permission is revoked #711

Closed
youennf opened this issue Aug 14, 2020 · 4 comments
Closed

What happens for live tracks in case permission is revoked #711

youennf opened this issue Aug 14, 2020 · 4 comments
Assignees

Comments

@youennf
Copy link
Contributor

youennf commented Aug 14, 2020

Spec seems to indicate that if permission is revoked, corresponding tracks get ended.

When a MediaStreamTrack object ends for any reason (e.g., because the user rescinds the permission for the page to use the local camera...

There is no MUST statement though.
In the case permission API exposes a change of the policy (from grant to deny) to the page, the tracks should probably get ended (or muted maybe) for consistency with the policy change.

@riju
Copy link

riju commented Aug 14, 2020

I noticed a Chromium CL to stop media streams if users revokes consent. cc @guidou

@youennf
Copy link
Contributor Author

youennf commented Aug 20, 2020

Will draft a PR accordingly.

@youennf
Copy link
Contributor Author

youennf commented Aug 26, 2020

https://w3c.github.io/permissions/#ref-for-permission-revocation-algorithm① explicitly says that tracks should be stopped.
I do not think we need to say anything in mediacapture-main.
Permissions API spec should ideally add a link to the exact algorithm (https://w3c.github.io/mediacapture-main/#ends-nostop).
It is unclear to me which of MediaStreamTrack ended event or permission change event is supposed to be fired first.

@youennf
Copy link
Contributor Author

youennf commented Aug 26, 2020

Filed #862.
Closing the issue.

@youennf youennf closed this as completed Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants