Where is libVLC.readMedia()?

VLC for Android and Chrome OS specific usage questions
dfdf
Blank Cone
Blank Cone
Posts: 39
Joined: 22 Dec 2013 23:54

Where is libVLC.readMedia()?

Postby dfdf » 18 May 2014 12:43

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!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Where is libVLC.readMedia()?

Postby edwardw » 24 May 2014 01:53

Code: Select all

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

dfdf
Blank Cone
Blank Cone
Posts: 39
Joined: 22 Dec 2013 23:54

Re: Where is libVLC.readMedia()?

Postby dfdf » 27 May 2014 04:47

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?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Where is libVLC.readMedia()?

Postby edwardw » 27 May 2014 04:52

Wait for the loaded event and set the position.

dfdf
Blank Cone
Blank Cone
Posts: 39
Joined: 22 Dec 2013 23:54

Re: Where is libVLC.readMedia()?

Postby dfdf » 27 May 2014 05:59

Wait for the loaded event and set the position.
Ok.

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

Thanks for your patient!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Where is libVLC.readMedia()?

Postby edwardw » 27 May 2014 06:02

Resume paused media or etc.

dfdf
Blank Cone
Blank Cone
Posts: 39
Joined: 22 Dec 2013 23:54

Re: Where is libVLC.readMedia()?

Postby dfdf » 27 May 2014 07:06

Resume paused media or etc.
Understand,thx!


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 7 guests