open-in-mpv

This is a simple web extension (for Chrome and Firefox) which helps open any video in the currently open tab in the mpv player.

The extension itself is a copy of the one from the awesome iina, while the (bare) backend is written in Rust (any stable version will suffice).

Installation

Compiled binaries and packed extensions can be found in the releases page.

open-in-mpv install-protocol will create a custom xdg-open desktop file with a scheme handler for the mpv:// protocol. This lets xdg-open call open-in-mpv with an encoded URI, so that it can be parsed and the information can be relayed to mpv - this logic follows how iina parses and opens custom URIs with the iina:// protocol on Mac. install-protocol.sh has the same functionality.

Languages
Go 48.8%
JavaScript 21.3%
HTML 15.1%
Makefile 8.7%
CSS 4.2%
Other 1.9%