mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00:00
manpage: lua: clarify OSD differences between mp.command/mp.commandv
Conflicts: player/audio.c player/video.c
This commit is contained in:
parent
a4f3df5970
commit
f9ff4b59a2
@ -73,6 +73,10 @@ The ``mp`` module is preloaded, although it can be loaded manually with
|
|||||||
Run the given command. This is similar to the commands used in input.conf.
|
Run the given command. This is similar to the commands used in input.conf.
|
||||||
See `List of Input Commands`_.
|
See `List of Input Commands`_.
|
||||||
|
|
||||||
|
By default, this will show something on the OSD (depending on the command),
|
||||||
|
as if it was used in ``input.conf``. See `Input Command Prefixes`_ how
|
||||||
|
to influence OSD usage per command.
|
||||||
|
|
||||||
Returns ``true`` on success, or ``nil, error`` on error.
|
Returns ``true`` on success, or ``nil, error`` on error.
|
||||||
|
|
||||||
``mp.commandv(arg1, arg2, ...)``
|
``mp.commandv(arg1, arg2, ...)``
|
||||||
@ -94,6 +98,9 @@ The ``mp`` module is preloaded, although it can be loaded manually with
|
|||||||
the ``expand-properties`` prefix, or the ``mp.get_property`` family of
|
the ``expand-properties`` prefix, or the ``mp.get_property`` family of
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
|
Unlike ``mp.command``, this will not use OSD by default either (except
|
||||||
|
for some OSd-specific commands).
|
||||||
|
|
||||||
``mp.command_native(table [,def])``
|
``mp.command_native(table [,def])``
|
||||||
Similar to ``mp.commandv``, but pass the argument list as table. This has
|
Similar to ``mp.commandv``, but pass the argument list as table. This has
|
||||||
the advantage that in at least some cases, arguments can be passed as
|
the advantage that in at least some cases, arguments can be passed as
|
||||||
|
Loading…
Reference in New Issue
Block a user