Picture in Picture (video)
Pops a video into a small always-on-top window, usually after a click.
In one line
Can pop a video into a small floating window after you tap
Pops a video into a small always-on-top window, usually after a click.
A site can float a video above all other apps, which keeps attention on its content while the person works elsewhere. The person can close or resize it, and a site cannot place or hide the window.
What it can and can't do
What the user does: You tap the Picture in Picture button on a video.
It can
- Move a video into a small always-on-top window
- Keep it playing while you use other tabs or apps
- Return it to the page when you ask
It cannot
- Start without a click, tap or keypress
- Float anything other than a video
- Keep the video playing after you close the floating window
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 69 | 2018-09-04 | None |
| Edge | Supported | 79 | 2020-01-15 | None |
| Firefox | Supported | 153 | 2026-07-21 | None |
| Safari | Supported | 13.1 | 2020-03-24 | None |
| Safari on iPhone | Supported | 13.4 | 2020-03-24 | All iOS browsers use WebKit |
| Chrome on Android | Supported | 105 | 2022-09-02 | None |
| Samsung Internet | Supported | 20.0 | 2023-02-10 | None |
How a site asks for it
| API | video.requestPictureInPicture(); document.exitPictureInPicture() |
| Permissions policy | picture-in-picture |
| Browser compat keys | api.HTMLVideoElement.requestPictureInPictureapi.Document.exitPictureInPictureapi.PictureInPictureWindow |
| How access is granted | gesture |
| What the user sees | No prompt (needs a click, tap or keypress) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | Yes |
| Activation | transient |
| How long it lasts | Ends on exit, video unload or navigation; nothing is stored |
| How to take it back | Nothing to revoke (no permission is stored) |
| Inside an iframe | Cross-origin iframes need allow="picture-in-picture" (Permissions Policy picture-in-picture, default self) |
Typical flow
- Person clicks
- Page calls video.requestPictureInPicture()
- Browser opens a floating window with the video
- Page can listen to enterpictureinpicture and leavepictureinpicture
Data you get
Shape: none
No individual data fields. The signal is the access itself.
Technical limits
- Needs user activation to enter, but leaving can happen any time
- Video only (document PiP is a separate API and Chromium or Firefox only)
- The element needs metadata loaded and must not carry the disablePictureInPicture attribute
- Window size and place are chosen by the browser; the site gets width and height through PictureInPictureWindow and a resize event
- Safari before 13.1 used its own webkitSetPresentationMode; standard API from Safari 13.1 (BCD)
- Chrome for Android has the API from Chrome 105
The story
What it is
Pops a video into a small always on top window, usually after you click.
For you
You click a button on a video and it floats in a small window. You can then read a different page or work in another app while it plays.
For makers
It helps a site keep people watching. A video that floats is a video that keeps getting watched, which matters for ads and subscriptions.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | You pop a lecture or recipe video out and keep it above your notes. | YouTube |
| live | A live sports or news stream floats in the corner while you answer emails. | Twitch |
| video | A streaming site lets you watch a show in a corner window while you scroll. | Netflix |
| games | A browser game stream floats over a walkthrough or guide page. | None named |
| education | A course video floats next to a coding tab so students can follow along. | Coursera |
| ads | A news site floats a small video player that follows you down the page, with an ad before the clip. | None named |
| video | A video call app lets you float the other person while you take notes. | Google Meet, Zoom |
Risks
- Hard to close sometimes
- Ad players may follow you
What the platform says
- MDN: Picture-in-Picture API. Explains how a video can float in a small window above other apps so people can keep watching.
Good uses and abuse
Legitimate uses
- Video and video call players
- Streaming sites
- Live sport or lecture players
Known abuse
- Persisting a distraction or an ad over other apps
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2018-09, Chrome 69: Picture in Picture Web API ships on desktop
- 2020-03, Safari 13.1: Standard PiP API for macOS Safari
- 2022-09, Chrome on Android 105: API on Chrome for Android
- 2026, Firefox 153: requestPictureInPicture API arrives (BCD), after Firefox's own PiP toggle
Related capabilities
Related
- Document Picture-in-Picture. Can open a small floating window with its own content after you click
- Autoplay audio and video. Can start muted video on its own, and sound only after you have interacted
Sources
How well checked: Based on official documentation.