Since this function became available again with Chrome 70, there is no need to maintain this repo any longer.
Just use the native API document.querySelector('video').requestPictureInPicture();
For convenience, you can create a bookmark.
Use the following as URL: javascript:document.querySelector('video').requestPictureInPicture();
This is an electron-based minimal browser, that can be made sticky/always-on-top.
It allows you to watch videos/movies picture-in-picture, so you can
- keep working while watching tutorials
- keep chatting while watching funny videos
- have a video chat while viewing other documents
- ...
Download from release page.
- Move window: kind of self-explaining
- Sticky-mode: Toggle always-on-top
- Cinema-mode: Hides menu and makes whole window draggable. To disable cinema-mode double-click on window.
- Fullscreen: Toggle fullscreen mode
- Switch toolbar: switches the buttons- & urlbar to the bottom of the window.
To watch DRM protected content electron needs the widevine plugin. Currently this is neither bundled with electron nor with this application.
This application looks for the plugin shipped with the chrome browser.
Currently this only looks in one path, because I just need that one. PRs welcome to add support for a wider range of macOS versions, as well as windows and linux.
- Clone this repo
- run
npm install
- run
npm run start
All relevant source files are within the app
folder.
To create a distributable app electron-builder is used.
For macOS just run npm run build
and see the files in dist
folder.