Player launcher utility. Allows you to start video player from the browser.
List of supported players:
- PotPlayer (Windows)
- IINA (MacOS)
player-launcher:?v=version&payload=json
Current version is 2
.
Where JSON in the following format:
{
"video" : "Media file URL",
"subtitles": "Optional subtitles file URL"
}
Run
launcher --register [<PotPlayer executable path>]
to register protocol and write launcher config.
On Windows config is stored in Registry in protocol sub key "Config".
You can skip executable path, launcher will try to find executable via some known registry keys.
Userscript adds "Open via external player" buttons after download buttons.
Supports subtitles.
Userscript source - install userscript.
Mac support is done via IINA and launcher wrapper on Objective-C.
You can see main.m
for more details about how that works.