summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-01-22 11:55:03 +0100
committerjaseg <git@jaseg.de>2024-01-22 11:55:03 +0100
commitb6ab5a4ab00ee4fff35e50963732bcf87dd5329f (patch)
treeabac71a568178e716f08b8955bf6a5a210734567
parent4e76f01ecc4c55a8dfd923a44bebd671907f944b (diff)
downloadpython-mpv-b6ab5a4ab00ee4fff35e50963732bcf87dd5329f.tar.gz
python-mpv-b6ab5a4ab00ee4fff35e50963732bcf87dd5329f.tar.bz2
python-mpv-b6ab5a4ab00ee4fff35e50963732bcf87dd5329f.zip
play_bytes: Add docstring.
-rw-r--r--mpv.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpv.py b/mpv.py
index 1efdeb1..a4ea245 100644
--- a/mpv.py
+++ b/mpv.py
@@ -1982,6 +1982,7 @@ class MPV(object):
q.put(EOF)
def play_bytes(self, data):
+ """ Play the given bytes object as a single file. """
frame = sys._getframe()
stream_name = f'__python_mpv_play_generator_{hash(frame)}'