[vlc-devel] How to enable a (second) interface plugin
Sridhar Sarnobat
sridhar.sarnobat at gmail.com
Sun Jan 19 10:27:43 CET 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200119/278eec55/attachment.html>
More information about the vlc-devel
mailing list