[vlc-devel] How to enable a (second) interface plugin

Rémi Denis-Courmont remi at remlab.net
Tue Jan 21 14:53:21 CET 2020


Hi,

There are no plugin types that does what you ask.

Le 19 janvier 2020 11:27:43 GMT+02:00, Sridhar Sarnobat <sridhar.sarnobat at gmail.com> a écrit :
>What I'm trying to do
>
>Create a plugin in C (not Lua) that will write the URI of the currently
>playing media file to /tmp/now_playing.txt
>
>
>What I am unable to do
>
>Get the plugin to load (so that the callback gets invoked each time a
>media
>file starts playing). I don't want to modify vlc's core source, I'm
>hoping
>the plugin can be loaded simply by being put in the right directory and
>following the naming convention.
>
>How do I ensure the plugin callback will get invoked when a playlist
>item
>is changed?
>
>
>What I've tried
>
>Copying modules/control/dummy.c and putting a print statement inside
>Open()
>- this doesn't get printed. I can't put "-I dummy" because then the
>proper
>interface won't get loaded. I don't know if you can load multiple
>interface
>plugins.
>
>I've been trying to understand how plugins are loaded (and have read
>this:
>https://wiki.videolan.org/Documentation:VLC_Modules_Loading/) but all I
>can
>see are static calls in the core to vlc_module_load(), and
>module_need().
>
>
>
>
>
>Sridhar Sarnobat
>San Jose, CA 95128 | USA
>Phone: +1 (408) 758-8574‬
>Google Chat: sarnobat.hotmail at gmail.com
>http://www.facebook.com/sridhar.sarnobat
>http://www.linkedin.com/in/sarnobat
>http://github.com/sarnobat

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200121/70f29713/attachment.html>


More information about the vlc-devel mailing list