Contact emails

stei...@chromium.org, liber...@chromium.org

Explainer

https://github.com/w3c/mediasession/issues/294

Specification

https://github.com/w3c/mediasession/pull/295

API spec

Yes

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

TAG review

This small addition to the Media Session API doesn’t seem to qualify for a
TAG review.

Note that one for video conferencing actions was approved previously at
https://github.com/w3ctag/design-reviews/issues/608

TAG review status

N/A

Debuggability

No DevTools changes are required, treated like any other attribute/enum.

Risks


Interoperability and Compatibility
It’s low risk as it's a small addition to an existing API that both Gecko
and WebKit approve of.


Signals from other implementations (Gecko, WebKit):

Gecko: No signal

WebKit: 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 / Framework developers: Positive

(https://github.com/WICG/document-picture-in-picture/issues/96)

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


Ergonomics:

N/A: small addition to an enum of an existing API

Activation:

Web developers will be able to simply set/unset a media session action
handler for “enterpictureinpicture” to make use of this change. When the
action name is not supported, it raises a TypeError which can be caught to
detect feature support.

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

https://wpt.fyi/results/mediasession/setactionhandler.html

Tracking bug

https://crbug.com/1457056

Estimated milestones

Shipping on desktop 120

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6245717716238336

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAE-AwAr3XMLjkds47PAf5_n-m%2Bv5mLXKBbX5211E_qs-W3sqTA%40mail.gmail.com.

Reply via email to