1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-24 20:29:53 +00:00

manpage: lua: minor fixes

This commit is contained in:
wm4 2014-02-12 19:24:30 +01:00
parent 623cffdce9
commit 3abbe31d6b

View File

@ -40,8 +40,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with
``require 'mp'``. It provides the core client API. ``require 'mp'``. It provides the core client API.
``mp.command(string)`` ``mp.command(string)``
Run the command the given command. This is similar to the commands used in Run the given command. This is similar to the commands used in input.conf.
input.conf. See `List of Input Commands`_. See `List of Input Commands`_.
Returns true on success, or ``nil, error`` on error. Returns true on success, or ``nil, error`` on error.
@ -140,8 +140,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Returns a timer handle. See ``mp.cancel_timer``. Returns a timer handle. See ``mp.cancel_timer``.
``mp.cancel_timer(t)`` ``mp.cancel_timer(t)``
Terminate the given timer. t is the value returned by ``mp.add_timeout`` Terminate the given timer. t is a timer handle (value returned by
or ``mp.add_periodic_timer``. ``mp.add_timeout`` or ``mp.add_periodic_timer``).
``mp.get_opt(key)`` ``mp.get_opt(key)``
Return a setting from the ``--lua-opts`` option. It's up to the user and Return a setting from the ``--lua-opts`` option. It's up to the user and