A Local MPV server using libmpv that you can control from other devices in local network #14532
                  
                    
                      Atreyagaurav
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I had experience with mpv-mpris which allows us to do simple things like play/pause mpv. So, I was thinking of something a little more extensive. I know about socket, but that's local, and I wanted a use case where anyone could just scan a QR code and then add their songs to the queue, or change songs, control playback in home parties.
Here is the repo. I made it using rust for ease of coding. But that might give a tiny problem with libmpv compilation. I'd have used libmpv from C directly, but making the Tcp server in C might have been complicated, and I don't want it to crash, so I went with rust.
https://github.com/Atreyagaurav/local-mpv
I'm not that knowledgeable about the web-development and security. So I made a basic controller, but I think it does the job well. I would appreciate some people to test it and give some feedback.
The program runs mpv in idle mode through libmpv, and then also runs a single threaded web-server in the same scope, so you can get the Web-App through the server, and control the mpv through different POST requests.
Beta Was this translation helpful? Give feedback.
All reactions