Page 1 of 1

Where is libVLC.readMedia()?

Posted: 18 May 2014 12:43
by dfdf
Hi Sir!
I have downloaded vlc 0.9 from:
http://www.videolan.org/vlc/download-android.html

I can't find libVLC.readMedia() now,if I want to open a single media,what's the elegant way?

Moreover,how can I do readMedia(loc,DisableVideo)?

Thank you very much!

Re: Where is libVLC.readMedia()?

Posted: 24 May 2014 01:53
by edwardw

Code: Select all

MediaList ml = LibVLC.getMediaList(); ml.add("http://example.com/stream", disableVideo); libVLC.playIndex(0);

Re: Where is libVLC.readMedia()?

Posted: 27 May 2014 04:47
by dfdf

Code: Select all

MediaList ml = LibVLC.getMediaList(); ml.add("http://example.com/stream", disableVideo); libVLC.playIndex(0);
Got it,it's very great to see you again,Edwardw.

Well,if I need to play it start from a certain position,how to do?

Re: Where is libVLC.readMedia()?

Posted: 27 May 2014 04:52
by edwardw
Wait for the loaded event and set the position.

Re: Where is libVLC.readMedia()?

Posted: 27 May 2014 05:59
by dfdf
Wait for the loaded event and set the position.
Ok.

One more question:what's the usage of libVLC.play()?

Thanks for your patient!

Re: Where is libVLC.readMedia()?

Posted: 27 May 2014 06:02
by edwardw
Resume paused media or etc.

Re: Where is libVLC.readMedia()?

Posted: 27 May 2014 07:06
by dfdf
Resume paused media or etc.
Understand,thx!