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

Should there be a toggle screenshare action? #306

Closed
youennf opened this issue Nov 27, 2023 · 5 comments · Fixed by #319
Closed

Should there be a toggle screenshare action? #306

youennf opened this issue Nov 27, 2023 · 5 comments · Fixed by #319

Comments

@youennf
Copy link
Contributor

youennf commented Nov 27, 2023

This came up when discussing w3c/mediacapture-extensions#39.
There is some UA UI that allows to mute/unmute display capture (Safari for instance) like available for camera and microphone.
Should MediaSession support this kind of action like it does for camera and microphone?

@youennf
Copy link
Contributor Author

youennf commented Jan 15, 2024

Given the recent progress on media session/media capture integration and given Safari UI allows to mute display capture, we will probably want to apply the same principle for display capture as for microphone and camera.
That could mean a toggledisplaycapture action and a setDisplayCaptureActive method.

@jan-ivar, @steimelchrome, thoughts?

@steimelchrome
Copy link
Contributor

That seems reasonable to me

@eladalon1983
Copy link
Member

Could you please help me understand how this will be used? The interaction between the browsers and Web app is unclear to me here.

@youennf
Copy link
Contributor Author

youennf commented Jan 18, 2024

It would be used for two things:

  • Allow UA to let know the web page that the user clicked on OS/UA UI (Pip window e.g) and that getDisplayMedia tracks will get muted/unmuted
  • Allow web page to try to unmute getDisplayMedia tracks.

@jan-ivar
Copy link
Member

The Safari UI seems like a reasonable privacy feature. This API might help webpages disambiguate it from other reasons of mute.

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

Successfully merging a pull request may close this issue.

4 participants