Intent to Ship: Media session: add reason to enterpictureinpicture action details

29 views
Skip to first unread message

Tommy Steimel

unread,
Sep 23, 2025, 4:57:15 PM (yesterday) Sep 23
to blink-dev
Contact emails
ste...@chromium.org

Explainer
None

Specification
https://github.com/w3c/mediasession/pull/362

Summary
Adds `enterPictureInPictureReason` to the `MediaSessionActionDetails` sent to the `enterpictureinpicture` action in the Media Session API. This allows developers to distinguish between `enterpictureinpicture` actions triggered explicitly by the user (e.g. from a button in the user agent) and `enterpictureinpicture` actions triggered automatically by the user agent due to the content becoming occluded.

Blink component
Blink>Media>Session

Web Feature ID
media-session

TAG review
N/A, minor change to existing spec

TAG review status
Not applicable

Risks


Interoperability and Compatibility
N/A

Gecko: No signal

WebKit: Positive (https://github.com/w3c/mediasession/pull/362) Approved specification change

Web developers: Strongly positive We've received requests from multiple sites for this information

Other signals:

Ergonomics
N/A

Activation
N/A

Security
N/A

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? N/A



Debuggability
Can use devtools to inspect the received MediaSessionActionDetails object

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
Yes

Is this feature fully tested by web-platform-tests?
NoNot able to trigger media session actions with web platform testing tooling

Flag name on about://flags
None

Finch feature name
None

Non-finch justification
Just a new bool sent inside an existing object

Rollout plan
Will ship enabled for all users

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/u/1/issues/446738067

Estimated milestones
Shipping on desktop142
Shipping on Android142
Shipping on WebView142


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way). N/A

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6415506970116096?gate=4969788698918912

This intent message was generated by Chrome Platform Status.

Vladimir Levin

unread,
11:13 AM (12 hours ago) 11:13 AM
to blink-dev, Tommy Steimel
LGTM1

Dan Clark

unread,
11:14 AM (12 hours ago) 11:14 AM
to blink-dev, vmp...@chromium.org, Tommy Steimel
LGTM2
Reply all
Reply to author
Forward
0 new messages