Using vlclib on Android

Well, I'm trying to create an application that should show some threads (udp / rtsp ..). I found out that vlc player can handle most of this! So I decided to use vlclib. There is vlclib in the windows, which can be easily used. But how can I use the vlc-android project as vlclib for my own application?

On the Internet, I found another question: Using libvlc for Android with NDK

Return links to this side: https://bitbucket.org/tewilove/nyan.tv-jni/src

But readme is really weird. I only need to compile it with a shell script ... But this side, referring to the nyan.tv-jni project, tells me that I can use it just like a shell in my code? http://blog.moenyan.net/?p=18

So now I'm really confused ... Can someone help me shed some light on how to create my own application using lib?

Thanks in advance.

+4
source share
1 answer

I found a solution for my problem. I decided to create an application in a vlc application. I cloned git-project from vlc and followed the instructions for creating a version of ARM-CPU. After a successful compilation, I managed to integrate my project into a vlc application.

Just change the package in AndroidManifest.xml, change the declared classes, for example:

.GUI.Main to org.videolan.GUI.Main 

Remember that do not register your Primary object as a start. Just start your activity after the VLC-Main action onCreate () ends. Remember to call finish () in onResume () of the VLC-Main activity. OnResume () will be called after you destroy your own activity.

 // OnCreate VLC.Main.onCreate() -> startActivity(Intent) -> MyApplication.Main.onCreate() // OnDestroy MyApplication.Main.onDestroy() -> VLC.Main.onResume() -> VLC.Main.onDestroy() 

/! \ Remember to enroll VLC-Team for an excellent base!

+6
source

All Articles