diff options
Diffstat (limited to 'DOCS/man/libmpv.rst')
-rw-r--r-- | DOCS/man/libmpv.rst | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/DOCS/man/libmpv.rst b/DOCS/man/libmpv.rst index 7f5d2f5c39..e00f8b9050 100644 --- a/DOCS/man/libmpv.rst +++ b/DOCS/man/libmpv.rst @@ -10,9 +10,9 @@ Since libmpv merely allows access to underlying mechanisms that can control mpv, further documentation is spread over a few places: - https://github.com/mpv-player/mpv/blob/master/libmpv/client.h -- http://mpv.io/manual/master/#options -- http://mpv.io/manual/master/#list-of-input-commands -- http://mpv.io/manual/master/#properties +- https://mpv.io/manual/master/#options +- https://mpv.io/manual/master/#list-of-input-commands +- https://mpv.io/manual/master/#properties - https://github.com/mpv-player/mpv-examples/tree/master/libmpv C PLUGINS @@ -21,15 +21,15 @@ C PLUGINS You can write C plugins for mpv. These use the libmpv API, although they do not use the libmpv library itself. -They are available on Linux/BSD platforms only and enabled by default if the -compiler supports linking with the ``-rdynamic`` flag. +They are enabled by default if compiler supports linking with the ``-rdynamic`` +flag on Linux/BSD platforms. On Windows the are always enabled. C plugins location ------------------ C plugins are put into the mpv scripts directory in its config directory -(see the `FILES`_ section for details). They must have a ``.so`` file extension. -They can also be explicitly loaded with the ``--script`` option. +(see the `FILES`_ section for details). They must have a ``.so`` or ``.dll`` +file extension. They can also be explicitly loaded with the ``--script`` option. API --- @@ -64,9 +64,13 @@ Linkage to libmpv ----------------- The current implementation requires that your plugins are **not** linked against -libmpv. What your plugins uses are not symbols from a libmpv binary, but +libmpv. What your plugins use are not symbols from a libmpv binary, but symbols from the mpv host binary. +On Windows to make symbols from the host binary available, you have to define +MPV_CPLUGIN_DYNAMIC_SYM when compiling cplugin. This will load symbols +dynamically, before calling ``mpv_open_cplugin()``. + Examples -------- |