summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-17 22:07:50 +0100
committerwm4 <wm4@nowhere>2014-11-17 22:16:52 +0100
commitebd41bdf6c04bdad5a6e4a737bbd2d338f2c8887 (patch)
treeac26dad120b3e0532781030bf8f9857c8f47d6a3 /DOCS/man
parentfb86750a674a5e335a0f90fe6dfe6efdda6698b3 (diff)
downloadmpv-ebd41bdf6c04bdad5a6e4a737bbd2d338f2c8887.tar.bz2
mpv-ebd41bdf6c04bdad5a6e4a737bbd2d338f2c8887.tar.xz
command: playlist property: return if an entry is currently playing
This actually doesn't even write/return the new sub-property, because I dislike the idea of dumping that field for every single playlist entry, even though it's "needed" only for one. Fixes #1260.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/input.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 65e734187a..df045a4e26 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -1214,6 +1214,13 @@ Property list
``playlist/N/filename``
Filename of the Nth entry.
+ ``playlist/N/playing``
+ ``yes`` if this entry is currently playing (or being loaded).
+ Unavailable or ``no`` otherwise. Can be set incorrectly when changing
+ files, because it's not set to ``yes`` for the brief time when the
+ previous file was unloaded, and loading the new entry has not started
+ yet. (Since mpv 0.7.0.)
+
When querying the property with the client API using ``MPV_FORMAT_NODE``,
or with Lua ``mp.get_property_native``, this will return a mpv_node with
the following contents:
@@ -1223,6 +1230,7 @@ Property list
MPV_FORMAT_NODE_ARRAY
MPV_FORMAT_NODE_MAP (for each playlist entry)
"filename" MPV_FORMAT_STRING
+ "playing" MPV_FORMAT_FLAG (might be missing; since mpv 0.7.0)
``track-list``
List of audio/video/sub tracks, current entry marked. Currently, the raw