Intent to Prototype: Media Session API: enterpictureinpicture action

59 views
Skip to first unread message

Tommy Steimel

unread,
Jun 1, 2023, 1:25:21 PM6/1/23
to blink-dev

Contact emails

ste...@chromium.org, libe...@chromium.org


Explainer

None


Specification

Core specification: https://w3c.github.io/mediasession/
PR: https://github.com/w3c/mediasession/pull/295

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.



Blink component

Blink>Media>Session


Motivation

While in theory UAs can detect playing videos and offer UI to automatically put that video into picture-in-picture without the website’s involvement, delegating a Media Session action to the website instead allows the website to either create a canvas-backed video picture-in-picture experience on the fly or create a more feature-rich document picture-in-picture experience.



Initial public proposal

None


TAG review

None


TAG review status

Pending


Risks



Interoperability and Compatibility

None



Gecko: No signal


WebKit: No signal


Web developers: No signals


Other signals:

Proposed in Media WG meeting (https://www.w3.org/2023/05/16-mediawg-minutes.html) with general agreement that the feature is useful


WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No


Flag name

None


Requires code in //chrome?

False


Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6245717716238336


Reply all
Reply to author
Forward
0 new messages