/mpv-url-handler

URL Handler for mpv player

Primary LanguageC++MIT LicenseMIT

URL Handler for mpv player for Windows.

Usage

Extract to folder of choice and run exe file as admin. It should create the registry keys necessary.
In config.yml change mpvPath to you mpv player executable path.
After that any encoded url starting with mpv:// should be opened with this, and if everything is okay it should play with mpv.

Example url:

mpv://http%3A%2F%2Fmyserver.com%2Fvideo.mkv

Use something like urlencode in php to achieve this.
Valid protocols are http and https, although is easy to add more in the code.

Command Line Options

  • -r: Remove mpv handler key from the windows registry (Needs admin rights)
  • -u: Update windows registry key to the current path of the executable (Needs admin rights)

Compiling

Download m4x1m1l14n Registry library and place it in the same folder.
Visual Studio solution provided.