Skip to Content
Platform.Ontology

Picture in Picture (video)

Pops a video into a small always-on-top window, usually after a click.

Does something on your deviceScreen and windowsFloating windowsWeb browsersWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported692018-09-04None
EdgeSupported792020-01-15None
FirefoxSupported1532026-07-21None
SafariSupported13.12020-03-24None
Safari on iPhoneSupported13.42020-03-24All iOS browsers use WebKit
Chrome on AndroidSupported1052022-09-02None
Samsung InternetSupported20.02023-02-10None

How a site asks for it

APIvideo.requestPictureInPicture(); document.exitPictureInPicture()
Permissions policypicture-in-picture
Browser compat keysapi.HTMLVideoElement.requestPictureInPicture
api.Document.exitPictureInPicture
api.PictureInPictureWindow
How access is grantedgesture
What the user seesNo prompt (needs a click, tap or keypress)
Needs a secure context (HTTPS)No
Needs a user gestureYes
Activationtransient
How long it lastsEnds on exit, video unload or navigation; nothing is stored
How to take it backNothing to revoke (no permission is stored)
Inside an iframeCross-origin iframes need allow="picture-in-picture" (Permissions Policy picture-in-picture, default self)

Typical flow

  1. Person clicks
  2. Page calls video.requestPictureInPicture()
  3. Browser opens a floating window with the video
  4. 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

TypeExampleApps
videoYou pop a lecture or recipe video out and keep it above your notes.YouTube
liveA live sports or news stream floats in the corner while you answer emails.Twitch
videoA streaming site lets you watch a show in a corner window while you scroll.Netflix
gamesA browser game stream floats over a walkthrough or guide page.None named
educationA course video floats next to a coding tab so students can follow along.Coursera
adsA news site floats a small video player that follows you down the page, with an ad before the clip.None named
videoA 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

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

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction1 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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

Sources

How well checked: Based on official documentation.

On this page