mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
commit
0c69854b71
2 changed files with 3 additions and 3 deletions
|
@ -89,8 +89,8 @@ class MPVBase:
|
|||
"--ontop",
|
||||
"--audio-display=no",
|
||||
"--keep-open=no",
|
||||
"--reset-on-next-file=pause",
|
||||
"--autoload-files=no",
|
||||
"--gapless-audio=no",
|
||||
]
|
||||
|
||||
def __init__(self, window_id=None, debug=False):
|
||||
|
|
|
@ -402,14 +402,14 @@ class MpvManager(MPV, SoundOrVideoPlayer):
|
|||
filename = hooks.media_file_filter(tag.filename)
|
||||
path = os.path.join(os.getcwd(), filename)
|
||||
|
||||
self.command("loadfile", path, "append-play")
|
||||
self.command("loadfile", path, "append-play", "pause=no")
|
||||
gui_hooks.av_player_did_begin_playing(self, tag)
|
||||
|
||||
def stop(self) -> None:
|
||||
self.command("stop")
|
||||
|
||||
def toggle_pause(self) -> None:
|
||||
self.set_property("pause", not self.get_property("pause"))
|
||||
self.command("cycle", "pause")
|
||||
|
||||
def seek_relative(self, secs: int) -> None:
|
||||
self.command("seek", secs, "relative")
|
||||
|
|
Loading…
Reference in a new issue