hey once more.
the current situation is:
1. I have list of *.so files in jniLibs/x86 folder of my project. Files are:
- libanw.10.so
libanw.13.so
libanw.14.so
libanw.18.so
libanw.21.so
libcompat.7.so
libiomx.10.so
libiomx.13.so
libiomx.14.so
libvlcjni.so
2. In my code i do follows:
Code: Select all
public void createPlayer() {
try {
String media = mFilePath;
// Create a new media player
libvlc = new LibVLC();
libvlc.init(mContext);
libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_FULL);
libvlc.setSubtitlesEncoding("");
libvlc.setAout(LibVLC.AOUT_OPENSLES);
libvlc.setTimeStretching(true);
libvlc.setVerboseMode(true);
libvlc.setNetworkCaching(1000);
NativeCrashHandler.getInstance().setOnNativeCrashListener(nativecrashListener);
if(LibVlcUtil.isGingerbreadOrLater())
libvlc.setVout(LibVLC.VOUT_ANDROID_WINDOW);
else
libvlc.setVout(LibVLC.VOUT_ANDROID_SURFACE);
LibVLC.restartInstance(mContext);
mEventHandler.addHandler(mHandler);
holder.setKeepScreenOn(true);
MediaList list = libvlc.getMediaList();
list.clear();
list.add(new Media(libvlc, LibVLC.PathToURI(media)), false);
libvlc.playIndex(0);
mute();
} catch (Exception e) {
Log.e(TAG, e.toString());
Toast.makeText(mContext, "Error creating player!", Toast.LENGTH_LONG).show();
}
}
3. When i trying to play smth i get such log output:
Code: Select all
Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libcompat.7.so" needed by "libvlcjni.so"; caused by load_library(linker.cpp:745): library "libcompat.7.so" not found
Why cannot find libcompat? File libcompat.7.so situated in correct lib folder..
help please guys