← Back to release summary

Expose Picture-in-Picture Window in leavepictureinpicture event

Category
Multimedia
Type
No developer-visible change
Status
Enabled by default (Chrome 85)
Intent stage
Prepare to ship

WPT details: https://wpt.fyi/results/picture-in-picture.

Summary

Allow web developers to access pictureInPictureWindow in leavepictureinpicture event.

Motivation

Web developers won’t have to keep a global reference to the pictureInPictureWindow object that was available already in the enterpictureinpicture event.

Standards & signals

Ecosystem

Docs: https://w3c.github.io/picture-in-picture/#example-update-video-on-window-size-changes

View on chromestatus.com