Change videos URL issue.

This forum is about all development around libVLC.
grahaisw09
New Cone
New Cone
Posts: 2
Joined: 11 Nov 2019 05:46

Change videos URL issue.

Postby grahaisw09 » 11 Nov 2019 05:53

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 “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests