Change videos URL issue.

VLC for Android and Chrome OS specific usage questions
grahaisw09
New Cone
New Cone
Posts: 2
Joined: 11 Nov 2019 05:46

Change videos URL issue.

Postby grahaisw09 » 11 Nov 2019 07:57

Hi, i've tried using libvlc for Android and i have some issue.

When i try to change the url (UDP) on same activity, sometimes its give delay and display white screen.

Can i reduce the delay when switching URL?

Here's my code (example url : udp://@222.10.1.2:1234) :

private void changeVideo(String url) {
mMediaPlayer.stop();

Media media = new Media(mLibVLC, Uri.parse(url));
media.setHWDecoderEnabled(true, true);

mMediaPlayer.setMedia(media);
mMediaPlayer.setEventListener(mPlayerListener);
mMediaPlayer.play();
}

Thank you

Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 10 guests