Bug #937
Mis à jour par Serge Heiden il y a plus de 8 ans
*Issue* Issue:
- Under Windows or Mac OS X, the MediaPlayer extension is not able to run VLC binary to play media files;
- TXM JNI code seems to have trouble to get to the VLC binary and library files.
*Diagnostic (general)*
Fix: Under Windows, you can try to copy VLC binary files (executable, libraries...) into TXM executable directory.
Diagnostic: The issue seems related to the libraries file path used by JNI.
*Diagnostic for MacOSX*
From https://github.com/caprica/vlcj/issues/349
It seems like VLCJ calls a native library (MacOSX) called LibVLC and this library has a wrong path.
This could be solved by resetting the VLC_PLUGIN_PATH to the correct value which is
/Applications/VLC.app/Contents/MacOS/plugins
Another way to workaround is to modify the VLC application folder, with a symlink, to conform to the wrong LibVLC path...
*Suggestion*
Suggestion: Find out what is or are the library paths @vlcj.jar@ is using and try to set JNI libraries file path properly.
*Workaround*
* for Windows: copy VLC binary files (executable, libraries...) into TXM executable directory.
* for Mac OS X: <pre>cd /Applications/VLC.app/Contents/MacOS/lib
mkdir vlc
cd vlc
ln -s ../../plugins .
</pre>
- Under Windows or Mac OS X, the MediaPlayer extension is not able to run VLC binary to play media files;
- TXM JNI code seems to have trouble to get to the VLC binary and library files.
*Diagnostic (general)*
Fix: Under Windows, you can try to copy VLC binary files (executable, libraries...) into TXM executable directory.
Diagnostic: The issue seems related to the libraries file path used by JNI.
*Diagnostic for MacOSX*
From https://github.com/caprica/vlcj/issues/349
It seems like VLCJ calls a native library (MacOSX) called LibVLC and this library has a wrong path.
This could be solved by resetting the VLC_PLUGIN_PATH to the correct value which is
/Applications/VLC.app/Contents/MacOS/plugins
Another way to workaround is to modify the VLC application folder, with a symlink, to conform to the wrong LibVLC path...
*Suggestion*
Suggestion: Find out what is or are the library paths @vlcj.jar@ is using and try to set JNI libraries file path properly.
*Workaround*
* for Windows: copy VLC binary files (executable, libraries...) into TXM executable directory.
* for Mac OS X: <pre>cd /Applications/VLC.app/Contents/MacOS/lib
mkdir vlc
cd vlc
ln -s ../../plugins .
</pre>