mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Replace mpv "idle" property with "end-file" event
This commit is contained in:
parent
610f9eb236
commit
422e313c16
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue