tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user