https://github.com/w3c/mediasession/issues/264
Core specification: https://w3c.github.io/mediasession/
The changes did not get merged yet.
Adds "togglemicrophone", "togglecamera", and "hangup" actions to the existing Media Session API.
This will enable developers of video conferencing websites to handle these actions from browser UI. For example, if the user puts their video call into a picture-in-picture window, the browser could display buttons for mute/unmute, turnon/turnoff camera, and hang up. When the user clicks these, the website handles them through the Media Session API.
This will enable developers of video conferencing websites to handle these actions from browser UI. For example, if the user puts their video call into a picture-in-picture window, the browser could display buttons for mute/unmute, turnon/turnoff camera, and hang up. When the user clicks these, the website handles them through the Media Session API.
None
https://github.com/w3ctag/design-reviews/issues/608
Issues addressed
Interop risk is low because it's a small addition to an existing API
Gecko: No signal
WebKit: Positive (https://lists.w3.org/Archives/Public/public-media-wg/2021Jan/0001.html) Interested in WebRTC and hangup use cases
Web developers: Same as Apple (see above), we received feedback from web developers that they would be interested to handle WebRTC sessions via Media Session.
No
https://www.chromestatus.com/feature/5744304695803904
"For example, if the user puts their video call into a picture-in-picture window"
Are you planning to add more PiP functionalities for conference mode usage?Currently (afaik) it is only viable ways are getCurrentBrowsingContextMedia() (which now requires a user confirmation) or by doing a video.requestPictureInPicture() (which has a poor UX). You could also do video mixing in a canvas and do the requestPiP on the capture stream, but I would really prefer not to do a rendering/mixing engine when I could use the browser native capabilities instead.Any chance to have a window.requestPictureInPicture() that don't require user confirmation?Also, it would be great to be able to integrate those "togglemicrophone" and "hangup" actions with the usb headset buttons.Best regardsSergio