Replace mpv "idle" property with "end-file" event
This commit is contained in:
parent
610f9eb236
commit
422e313c16
@ -360,8 +360,8 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
|||||||
def seek_relative(self, secs: int) -> None:
|
def seek_relative(self, secs: int) -> None:
|
||||||
self.command("seek", secs, "relative")
|
self.command("seek", secs, "relative")
|
||||||
|
|
||||||
def on_property_idle_active(self, val) -> None:
|
def on_end_file(self) -> None:
|
||||||
if val and self._on_done:
|
if self._on_done:
|
||||||
self._on_done()
|
self._on_done()
|
||||||
|
|
||||||
def shutdown(self) -> None:
|
def shutdown(self) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user