Bug #937

MediaPlayer: impossible to run under Windows or Mac OS X

Ajouté par Serge Heiden il y a environ 3 ans. Mis à jour il y a 3 mois.

Statut:New Début:13/07/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

50%

Catégorie:Plugins Temps passé: -
Version cible:TXM 0.7.9

Description

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)
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
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:
    cd /Applications/VLC.app/Contents/MacOS/lib
    mkdir vlc
    cd vlc
    ln -s ../../plugins .
    

Historique

#1 Mis à jour par Matthieu Decorde il y a environ 3 ans

  • Description mis à jour (diff)

#2 Mis à jour par Matthieu Decorde il y a environ 3 ans

  • Version cible changé de TXM X.X à MediaPlayer

#3 Mis à jour par Matthieu Decorde il y a environ 3 ans

  • % réalisé changé de 0 à 80

#4 Mis à jour par Matthieu Quignard il y a 3 mois

From this URL
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...

#5 Mis à jour par Matthieu Quignard il y a 3 mois

Workaround (tested) :

cd /Applications/VLC.app/Contents/MacOS/lib
mkdir vlc
cd vlc
ln -s ../../plugins .

#6 Mis à jour par Serge Heiden il y a 3 mois

  • Description mis à jour (diff)

#7 Mis à jour par Matthieu Decorde il y a 3 mois

  • Version cible changé de MediaPlayer à TXM 0.7.9
  • % réalisé changé de 80 à 50

Formats disponibles : Atom PDF