Control mpv using a web browser. simple-mpv-webui alternative written in Python #17203
Replies: 4 comments 1 reply
-
|
I had a somewhat similar idea, e. g. have mpv as a pluggable, embedded video player too. Perhaps a bit like winamp, or at the least people could style it nicely. The key idea would I think this should be integrated into mpv though. Otherwise in a few years nobody may Can you embed that window in a webpage as-is? It seems to open an external one |
Beta Was this translation helpful? Give feedback.
-
|
My project doesn't spawn, embed or manage mpv windows at all. The IPC itself is a unix socket on a host where mpv is started, so you can't easily communicate with it from the browser. In other words, it's much simpler than you thought. |
Beta Was this translation helpful? Give feedback.
-
mpv-remote.mp4Hi, inspired by your project, I tried to achieve a similar effect by registering the https://github.com/mpv-easy/mpv-easy/tree/main/mpv-remote |
Beta Was this translation helpful? Give feedback.
-
|
You could add such scripts to https://github.com/mpv-player/mpv/wiki/User-Scripts . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have written an HTTP server that allows you to control mpv using a web browser or curl.
The server itself is a single Python file without external dependencies, which runs on Linux and Windows.
Under the hood it uses mpv's JSON IPC interface.
I recorded a demo. Watch it, to know how to use it.
Questions and comments are welcome.
Beta Was this translation helpful? Give feedback.
All reactions