Page 1 of 1

Using VLC embedded inside android app ?

Posted: 24 Jan 2013 10:21
by jomateix
Hi,

I am quite new at android apps, and maybee I am asking a easy or impossible thing, but i've search it and havent found any info, VLC is great it's playing a video stream from a ipcam once i set this ( "http://192.168.0.111:88/videostream.asf ... d=password" ) at "open MRL" fieldfrom the android beta, i want my app to play that stream and since videoview and mediaplay android api doesn't do it.

My candidates to achieve it would be :
1- call the vlc player with parameters (so i can specifiy the url ), being possible to stop it, the intent is used to call other apps but not to close them :(, maybe kill apps but not elegant
2- embed it as mediaplayer inside a webview (tried it doesn't find the plugin)
3- embed it as as mediaplayer inside a videoview
4- web interace works on android ?

Thank you very much for reading and any help or hint you may give me, sorry if this has already been answered but i havent found it in my search.

Re: Using VLC embedded inside android app ?

Posted: 24 Jan 2013 16:56
by jomateix
I got some more ideas:

5- use libvlc to actually embed some vlc functionalities inside andriud app, this might be difficult cause java android project mixed with c++ vlc code ?
6- modifiy vlc android project to allow interapp comunication to pass paratemters close commands... too dificult ?

Re: Using VLC embedded inside android app ?

Posted: 24 Jan 2013 18:41
by edwardw
No, web interface does not work on Android as of right now. Because no Android browser supports (or is even capable of supporting) NPAPI plugins, the browser plugin will never work on Android.

But I think that, right now, the best approach would be to use an Intent to call up VLC.

Re: Using VLC embedded inside android app ?

Posted: 24 Jan 2013 20:15
by jomateix
Hi edwardw,

Thanks for the info, by the intent i can call vlc but is possible to call it telling which stream to play ? if i could the problem only would be closing it.

what about jave bindings like http://caprica.github.com/vlcj/ , wont work on android ? this afternoon i found another vlc java wrapper, that enable to call it as a custom mediaplayer (embeddded) I have its link on another pc..

I will keep digging, thanks a lot for your interest and help.

Re: Using VLC embedded inside android app ?

Posted: 24 Jan 2013 20:17
by edwardw
Yes, an intent allows you to specify the stream URL in question.

Re: Using VLC embedded inside android app ?

Posted: 24 Jan 2013 21:09
by jomateix
Is there a way to close vlc by intent ? is there a way to specify the vlc screen size by intent?, I could use a part of the screen to display the vlc player keep some space to show a back/close button.. I know this sounds kinda messy.

well i will sleep on it thanks again