Bug #937

MediaPlayer: impossible to run under Windows or Mac OS X

Added by Serge Heiden almost 5 years ago. Updated about 1 month ago.

Status:New Start date:07/13/2014
Priority:Normal Due date:
Assignee:- % Done:

50%

Category:Plugins Spent time: -
Target version:TXM 0.8.1

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 .
    

History

#1 Updated by Matthieu Decorde almost 5 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 4 years ago

  • Target version changed from TXM X.X to MediaPlayer

#3 Updated by Matthieu Decorde over 4 years ago

  • % Done changed from 0 to 80

#4 Updated by Matthieu Quignard almost 2 years ago

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 Updated by Matthieu Quignard almost 2 years ago

Workaround (tested) :

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

#6 Updated by Serge Heiden almost 2 years ago

  • Description updated (diff)

#7 Updated by Matthieu Decorde almost 2 years ago

  • Target version changed from MediaPlayer to TXM 0.8.0a (split/restructuration)
  • % Done changed from 80 to 50

#8 Updated by Sebastien Jacquot 10 months ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#9 Updated by Matthieu Decorde about 1 month ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.1

Also available in: Atom PDF