where can i get api for using libvlc

VLC for Android and Chrome OS specific usage questions
borune
New Cone
New Cone
Posts: 4
Joined: 09 Feb 2016 21:02

where can i get api for using libvlc

Postby borune » 09 Feb 2016 21:09

hey guys!

I need to use libvlc in my android app on x86 android device.

I've downloaded last version of VLC for x86 android apk from http://nightlies.videolan.org/build/android-x86/. Extract *.so files from apk and add it to my project. Finally i need API description for use the library. Where can i get it and examples of using last version of libvlc in android?

borune
New Cone
New Cone
Posts: 4
Joined: 09 Feb 2016 21:02

Re: where can i get api for using libvlc

Postby borune » 11 Feb 2016 09:09

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


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 28 guests