Awesome
This script is heavily under development. I'm basically just adding functionality by my own need. I published the script for people who want something basic to hack around with. If you need a more serious mpv-remote I would recommend open-dynaMIX/simple-mpv-webui.
When you open mpv, this script will run a http server that will serve a basic remote web app at 0.0.0.0:8000/
(localhost). The server will forward any commands clicked by user to the mpv ipc socket to execute commands for the player.
Requirements
- Cargo and rustc to build the server binary
Usage
- build server
cargo build --release
- add the binary in
target/release/
to PATH - add
lua/mpv-remote.lua
to your mpv scripts - open any file with mpv
- visit
192.168.x.x:8000
(replace x with your pc ip) from your phone browser that is connected to the same network - optionally save the website to your homescreen for quick access
If the remote website is not accessible make sure your computer/firewall/router doesn't block port 8000 for local network traffic.