Module that will let you open a movie url/path in macOS native picture-in-picture player.
Both local files and urls are supported.
Known working formats
- mp4
- m4v
- mov
Known not working formats
- mkv
- avi
yarn add open-pip
const open = require('open-pip')
open('/path/to/movie.mp4')
.then(() => console.log('Worked ๐'))
.catch(error => console.log('Something went wrong ๐', error))
Inspiration came from this hack: https://github.com/steve228uk/PiPHack
Albin Ekblom (@albinekb)