Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed VLC media player to my Android App

Is there a way to embed VLC media player to Android Application? I have several issues:

1) I have a video streaming Camera (from RTSP) and I cannot play its stream on my regular videoview panel (Sorry this video cannot be played error). However, I installed the VLC application for Android (beta version) and I was able to play it. 2) My main objective is to port a desktop java application which uses VLC plugin to Android. I want to accomplish this task with minimum effort (I have some time issues).

Another alternative, is there a way to embed codecs used by VLC to my application? Because with my videoview, the result varies according to the format of the video. I can play some other videos streamed through RTSP on my videoview.

I search through internet and found a "libvlc" but also some notes about that libvlc for android is not complete (but those notes belong to a past time, even in stackoverflow).

like image 652
fercis Avatar asked Feb 27 '14 16:02

fercis


People also ask

Is there a VLC player for Android?

VLC for Android is a full port of VLC media player to the Android™ platform. It can play any video and audio files, network streams and DVD ISOs, like the classic version of VLC. VLC features a full music player, a media database, equalizer and filters, and numerous other features.

How do I stream VLC to my phone?

Stream to a phone: Open the VLC app and go to the More tab. Tap on New stream and enter the stream URL. Stream to a smart TV: Download the VLC media player app. You will find it in the Google Play Store for Android TV and Roku and under the Find function on a Fire TV.


1 Answers

Yes, if you already have the vlc-sdk.7z (libVLC for android), here is the sample project to embedded VLC into your android apps.

If you do not have libVLC, here are the steps to build one. (After "sh compile.sh" finished, "make vlc-sdk.7z" to create the vlc-sdk.7z and unzip to the demo project.

I put the vlc-sdk.7z(only armeabi-v7a is included) here for testing.

like image 143
Maruku Avatar answered Sep 24 '22 06:09

Maruku