Picture-in-Picture example

This example will progressively enhance a video by adding a toggle picture-in-picture mode button if that feature is enabled.

It also highlights how to set up a resize event on the <PictureInPictureWindow>

See the example live.