A simple playback control UI in the web browser for mpv. Supports playback, seeking, and limited playlist editing. Once the page is served to the client communication is handled by a web socket. This allows for multiple remote devices to connect to the same client while all having control and displaying consistent information.
download the latest release, and copy it into your mpv configuration scripts directory.
- tailwindcss
- cargo
Build the css using tailwind
tailwindcss -i ./www/static/input.css -o ./www/static/output.cssThen build the binary plugin with cargo
cargo buildcopy the compiled binary to your mpv scripts location
cp target/debug/libmpv_remote.so $XDG_CONFIG_HOME/mpv/scripts/Make sure to start mpv with mpv --idle so that mpv does not close immediately if you wish to start playback from a remote device.
Connect using a web browser from another device on your network. The default port is 5585.
An example configuration is provided in script-opts/mpv-remote.json. You can copy this into your mpv configurations script-opts directory
mkdir -p "$XDG_CONFIG_HOME/mpv/script-opts/"
cp "$XDG_CONFIG_HOME/mpv/scripts/mpv-remote/script-opts/mpv-remote.json" "$XDG_CONFIG_HOME/mpv/script-opts/"