-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bit of Confusion #9
Comments
After some digging was able to figure this out most on my own here are the answers
Not sure if there's another way but what I found is that you can use mpv.command with get-property like so
This will return the current playtime of the file
https://mpv.io/manual/master/#property-list you can also set properties with
e.g
still dont know
special commands are found here https://mpv.io/manual/master/#options you can use them like so mpv.volume = 10 |
You can set or get properties and invoke commands directly on the MPV object too. Just replace the dashes with underscores. |
Still don't no how to use a running MPV though when I use this
It fails and says it cant connect Also can I use a running MPV if I already know the location if I use MPV() I launches a MPV even if the MPV in path is already open |
Ok after some more digging again I was also able to figure out how to connect to a running instance what you do is add
To your mpv.conf which should be in your %appdata%/mpv folder if its not there create a mpv.conf file in the folder and add the mpv.conf there and then add this to your script as the socket However for me I was trying to make a script for mpv for other people to use so this wasn't sufficient what I ended having to do was create a lua script for mpv with the following code
What this does is
My script on boot reads the file that was created in the directory and launches connected to the socket that is listed in the file
A few notes
|
Should probably mention first that I am new to this (both python and mpv)
I'm trying to use this library to write some mpv scripts but I'm confused about a few things
How to return data from mpv
Where I find the properties that you can wait on with mpv.wait_for_property using mpv.io
How to connect to running instance of mpv
How to connect to running instance of mpv
The text was updated successfully, but these errors were encountered: