This commit is contained in:
2026-04-03 00:25:14 -03:00
parent d61e2a5492
commit cae9312db1
7 changed files with 341 additions and 91 deletions

View File

@@ -106,6 +106,13 @@ class Player:
log.info("mpv load_live: %s", url)
self._player.loadfile(str(url), mode="replace")
def command(self, *args):
"""Send a command to mpv."""
try:
self._player.command(*args)
except Exception:
pass
def play(self):
"""Resume/start playback."""
self._player.pause = False