Skip to content

Bit of Confusion #9

@TingTingin

Description

@TingTingin

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

  1. How to return data from mpv

    • Looking at the data only figured out how to send commands using mpv.command(command, **args) but was unable to figure how to get mpv to send back data best i could do was wait for a property to change with mpv.wait_for_property but this doesnt seem to return any data
  2. Where I find the properties that you can wait on with mpv.wait_for_property using mpv.io

    • I was able to find command names for mpv.command but not property names I could find some things under https://mpv.io/manual/master/#options but they don't seem to work do I need to format them in a particular way to use them
  3. How to connect to running instance of mpv

    • I saw that you can connect to running instance of mpv that's connected to a particular socket but when I use MPV(start_mpv=False, ipc_socket="/tmp/mpv-socket") it doesn't connect is there something I need to do to make my running mpv connect to a socket as of now I've only been able to work with mpv that is launched from PATH
  4. How to connect to running instance of mpv

    • How to use commands like mpv.volume = 20 I saw this in the docs where you change the volume with just a dot I am unsure where to find the attributes you can adjust like this I can only change things thus far with mpv.command(command, **args) not sure if this is maybe connected to the properties question I just asked, for example is there a mpv.playtime or mpv.subfile ETC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions