From 01a3e43ca9f8ebfb2d3085f0c824288b5c763c8e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Nov 2014 19:11:07 +0100 Subject: manpage: minor fixes Also update the Lua example. The "pause" event was declared deprecated, so the example should use the newer API. --- DOCS/man/lua.rst | 11 +++++------ DOCS/man/mpv.rst | 4 ++-- DOCS/man/options.rst | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 57c1c35e5d..cae764e22e 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -22,10 +22,12 @@ A script which leaves fullscreen mode when the player is paused: :: - function on_pause() - mp.set_property("fullscreen", "no") + function on_pause(name, value) + if pause == true then + mp.set_property("fullscreen", "no") + end end - mp.register_event("pause", on_pause) + mp.observe_property("pause", "bool", on_pause_change) This script provides a pretty weird feature, but Lua scripting was made to allow users implement features which are not going to be added to the mpv core. @@ -720,9 +722,6 @@ List of events ``command-reply`` Undocumented (not useful for Lua scripts). -``script-input-dispatch`` - Undocumented (used internally). - ``client-message`` Undocumented (used internally). diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 595c44c59a..bbff3cc30b 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -436,7 +436,7 @@ listed. - ``AV:`` or ``V:`` (video only) or ``A:`` (audio only) - The current time position in ``HH:MM:SS`` format (``playback-time`` property) -- The total file duration (or ``00:00:00`` if unknown) (``length`` property) +- The total file duration (absent if unknown) (``length`` property) - Playback speed, e.g. `` x2.0``. Only visible if the speed is not normal. This is the user-requested speed, and not the actual speed (usually they should be the same, unless playback is too slow). (``speed`` property.) @@ -487,7 +487,7 @@ PROTOCOLS ``bd://[title][/device]`` ``--bluray-device=PATH`` Play a Blu-Ray disc. Currently, this does not accept ISO files. Instead, you must mount the ISO file as filesystem, and point ``--bluray-device`` - to the mounted directly. + to the mounted directory directly. ``bdnav://[title][/device]`` Play a Blu-Ray disc, with navigation features enabled. This feature is diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index a9d007813a..f3665df971 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -51,8 +51,8 @@ Track Selection other software using FFmpeg (consider ``ffprobe``). Note that with external tracks (added with ``--sub-file`` and similar - options) will have duplicate IDs. In that case, the first stream in order - is selected. + options), there will be streams with duplicate IDs. In this case, the + first stream in order is selected. ``--edition=`` (Matroska files only) -- cgit v1.2.3