MacOS: libvlc path for plugins in app bundle
My MacOS application uses libVLC plugin to play video file in application window. libVLC is dynamically linked, but when I try to get a new vlc instance with "libvlc_new" the following error is printed (and the variable meant to hold the pointer to the vlc instance is NULL):
Basic libvlc error: no plugins found! Check your VLC installation.
I want to include vlc plugins directly in the MySampleApp.app package. I tried to put them in different places in the application package, but libVLC doesn't find them.
Where should I store the vlc plugins / how can I tell libVLC where to look for the plugins?
Hello,
source to share
LibVLC states:
There are absolutely no guarantees or promises regarding forward, backward, and cross-platform compatibility with libvlc_new () arguments. We recommend that you do not use them except when debugging.
so it would be nice to offer another answer to this question.
The plugin path can be set by setting the VLC_PLUGIN_PATH environment variable:
setenv ("VLC_PLUGIN_PATH", path, 1);
I haven't found any way to do this via the API.
source to share