/BetterPiP

A macOS application that enables the use of native picture-in-picture with browsers such as Google Chrome for HTML5 videos.

Primary LanguageSwiftMIT LicenseMIT

halbert logo

BetterPiP

Native macOS picture-in-picture in Firefox and Chrome

Project archived

Due to Firefox and Chrome now having their own picture-in-picture solutions, I've decided to archive this repo. Might still be helpful for learning how to utilize macOS PIP.framework.

Original README.md

While every major browser now supports some sort of picture-in-picture (PiP), back in the day that was not the case. Most PiP solutions out there were kinda wacky, since they were based on old browser extension APIs.

Then with OSX Yosemite, Apple implemented native picture-in-picture across macOS, with a solid Safari integration. This PiP implementation provided sleek UI and even moved with native notifications coming in. In short, this solution was probably the best on the market at that point.

BetterPiP enables the same native picture in picture framework in Firefox and Google Chrome that Safari uses internally. This is based on Stephen Radford's PiPHack.

Features

  • Watch HTML5 videos (YouTube, Vimeo, etc...) in native picture-in-picture mode (same as Safari)
  • Watch any public url in picture in picture mode

Build

You will need to build the project on your own since I don't currently own a Apple Developer License.