Picture-in-Picture: Video
Picture-in-Picture (PiP) demo on a video element. PiP currently works only on video elements for now.
Picture-in-Picture is currently behind a browser flag in Chrome 69, so you will have to enable some these flags in order for the demo to work. Go to chrome://flagsand enable the following flags:
- Experimental Web Platform features
- Enable Picture-in-Picture
- Enable the use of SurfaceLayer objects for videos
Running this project
$ git clone https://github.com/arnellebalane/picture-in-picture-video
$ cd picture-in-picture-video
# Serve files over HTTP, e.g.
$ python -m SimpleHTTPServer