Picture-in-Picture API Demo

Enter and leave Picture-in-Picture mode for a video element with the Picture-in-Picture API. The page must run in a secure context (HTTPS or localhost).

Video

Play the video, then toggle Picture-in-Picture mode.

Toggle Picture-in-Picture (PiP) with the button above.