Intent to prototype & ship: Picture in Picture API

23 views
Skip to first unread message

Simon Farre

unread,
11:56 AM (2 hours ago) 11:56 AM
to dev-pl...@mozilla.org

As of Firefox 153 I intend to ship the Picture-in-Picture API by default. 


Summary:

Implement the Picture-in-Picture API and make our "native" implementation available to this API. 

HTMLVideoElement.requestPictureInPicture() opens the video element in a Picture In Picture Window.

Support for Android requires a native PIP implementation as well as the PIP API service implementation. The bug contains WIP

that provides a path forward to achieve both.


Meta bug & bug to turn on by default:

https://bugzilla.mozilla.org/show_bug.cgi?id=1463402


Specification:
https://w3c.github.io/picture-in-picture/#interface-picture-in-picture-window

Specification is actively being improved not just for greater stability but also to more closely reflect implementations shipped by major browsers.


Standards body:

W3C

Platform Coverage:
All platforms. Platforms that haven't implemented support for the Picture-in-Picture API (Android) will reject with a NotSupportedError.
Bug comes with a supplementary work-in-progress stack for Android.


Preference:

dom.media-pip.enabled


Use Counter:

Enabled by https://bugzilla.mozilla.org/show_bug.cgi?id=2040930.


Standards-Positions Discussion:

https://github.com/mozilla/standards-positions/issues/72


Other Browsers:

-Blink: Shipped since version 71 on Desktop, 105 Android

-WebKit: Shipped since 13.1


Web-platform-tests:

https://wpt.fyi/results/picture-in-picture?label=master&label=experimental&aligned&q=picture%20in%20picture


Documentation:

MDN

Reply all
Reply to author
Forward
0 new messages