diff --git a/anki/mpv.py b/anki/mpv.py index cdefc9ae1..f7b0702e5 100644 --- a/anki/mpv.py +++ b/anki/mpv.py @@ -73,7 +73,6 @@ class MPVBase: "--force-window=no", "--ontop", "--audio-display=no", - "--input-media-keys=no", ] def __init__(self, window_id=None, debug=False): diff --git a/anki/sound.py b/anki/sound.py index 88cfef030..2d546e89a 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -84,7 +84,7 @@ def retryWait(proc): # MPV ########################################################################## -from anki.mpv import MPV +from anki.mpv import MPV, MPVBase mpvPath, mpvEnv = _packagedCmd(["mpv"]) @@ -93,6 +93,11 @@ class MpvManager(MPV): executable = mpvPath[0] popenEnv = mpvEnv + if not isLin: + default_argv = MPVBase.default_argv + [ + "--input-media-keys=no", + ] + def __init__(self): super().__init__(window_id=None, debug=False)