Skip to content

Video player launcher via custom protocol handler (Mac & Windows supported)

License

Notifications You must be signed in to change notification settings

Zekfad/player_launcher

Repository files navigation

Player launcher

Player launcher utility. Allows you to start video player from the browser.

List of supported players:

  • PotPlayer (Windows)
  • IINA (MacOS)

Player launcher protocol

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"
}

launcher

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.

Anime356 userscript

Userscript adds "Open via external player" buttons after download buttons.

Supports subtitles.

Userscript source - install userscript.

Mac Support

Mac support is done via IINA and launcher wrapper on Objective-C.

You can see main.m for more details about how that works.