8000 GitHub - albinekb/open-pip: 🎥 Module to open any url or path to a movie in macOS native picture-in-picture player
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🎥 Module to open any url or path to a movie in macOS native picture-in-picture player

License

Notifications You must be signed in to change notification settings

albinekb/open-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎥 open-pip Standard - JavaScript Style Guide

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

example

example

install

yarn add open-pip

Usage

const open = require('open-pip')

open('/path/to/movie.mp4')
  .then(() => console.log('Worked 🎉'))
  .catch(error => console.log('Something went wrong 💀', error))

How does it work?

It uses child-process-promise to run this command:

open pip.app --args <absolute-path-to-file>

pip.app is a simple macOS app that reads the input argument and tries to load it in an AVPlayer

Source for pip.app can be found here: https://github.com/albinekb/open-pip-app

Related

Credits

Inspiration came from this hack: https://github.com/steve228uk/PiPHack

Author

Albin Ekblom (@albinekb)

About

🎥 Module to open any url or path to a movie in macOS native picture-in-picture player

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0