summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-04-18 00:31:33 +0200
committerjaseg <git@jaseg.de>2022-04-18 00:31:33 +0200
commit9fbe39d3b4acb4679b2ff32e71291ea5c73f3eb5 (patch)
treeb1771c786c4fab8838eda623686a557374216575 /mpv.py
parentbe1e78158a21a9c7c1987d396b0ffd907f6088f1 (diff)
downloadpython-mpv-9fbe39d3b4acb4679b2ff32e71291ea5c73f3eb5.tar.gz
python-mpv-9fbe39d3b4acb4679b2ff32e71291ea5c73f3eb5.tar.bz2
python-mpv-9fbe39d3b4acb4679b2ff32e71291ea5c73f3eb5.zip
Add some useful input commands
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpv.py b/mpv.py
index 6f4b3e9..5392d44 100644
--- a/mpv.py
+++ b/mpv.py
@@ -1459,6 +1459,15 @@ class MPV(object):
"""Mapped mpv script_message_to command, see man mpv(1)."""
self.command('script_message_to', target, *args)
+ def drop_buffers(self):
+ self.command('drop_buffers')
+
+ def vf_command(self, label, command, argument):
+ self.command('vf_command', label, command, argument)
+
+ def af_command(self, label, command, argument):
+ self.command('af_command', label, command, argument)
+
def observe_property(self, name, handler):
"""Register an observer on the named property. An observer is a function that is called with the new property
value every time the property's value is changed. The basic function signature is ``fun(property_name,