Skip to content

When wait_for_property never returns? #20

@shane-mason

Description

@shane-mason

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?

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