You can use picture in picture if a web site programs it or use PIPifier from Mac Apps. It’s really convenient for any HTML5 video so it works like iPads. The easiest way to install it is to brew install mas
Ā which is Mac App Store command line interface, find the id of it from a copy link and then do install for that number for instance
mas install 1160374471