← Back to release summary
Media Session API: enterpictureinpicture action
- Category
- Multimedia
- Type
- No developer-visible change
- Status
- Enabled by default (Chrome 120)
- Intent stage
- Start prototyping
Summary
Adds an 'enterpictureinpicture' action to the Media Session API. Websites can register an action handler which can be used to open a Picture-in-Picture or Document Picture-in-Picture window.
Standards & signals
- Specification: https://github.com/w3c/mediasession/pull/295
- Firefox: No signal
- Safari: No signal — Generally positive feedback when discussed in the Media WG, but no official position pursued due to the small nature of the change
- Web developers: Positive — The above citation is one example amongst many where developers want to be able to initiate pip through other means (e.g. automatically when switching tabs or when a picture-in-picture button is pressed in browser UI), and having a media session action for this enables the UA to allow the website to open a picture-in-picture window in these cases
- Tracking bug: https://crbug.com/1457056
Samples: https://steimelchrome.github.io/autopip.html
View on chromestatus.com