python-mpv-jsonipc icon indicating copy to clipboard operation
python-mpv-jsonipc copied to clipboard

When wait_for_property never returns?

Open shane-mason opened this issue 6 months ago • 0 comments

Hey - first off, thanks so much for this, it is sooooo helpful! I just hit a scenario where I am sending a play command and then waiting for a property so I'm sure its loaded - basically this:

    self.mpv.play(file_path)
    self.mpv.wait_for_property("duration")
    # do the next thing

We discovered though, that if file_path points to an empty or corrupt file (so it can't be played), then this duration is never set. I'll look to see if there is another property that makes more sense to track there - but is there a way to set a timeout on wait_for_property?

shane-mason avatar Jun 07 '25 21:06 shane-mason