I trying to make mini IPTV app. I'm using VLCLib and sample from https://code.videolan.org/videolan/libvlc-android-samples/-/blob/master/java_sample/src/main/java/org/videolan/javasample/JavaActivity.java
But I have problem with loading speed (buffer maybe). It took 3-4sec to start another channel, also the same delay is for first load.
I'm using HLS (unadaptive) over http.
I have tried many options and my starting onCreate
media creator look`s like
ArrayList<String> options = new ArrayList<>();
options.add("--drop-late-frames");
options.add("--skip-frames");
options.add("--clock-jitter=1");
options.add("--no-lua");
options.add("--avcodec-threads=2");
options.add("--avcodec-hw=any");
options.add("--avcodec-fast");
options.add("--avcodec-skip-idct=4");
options.add("--avcodec-skip-frame=3");
mLibVLC = new LibVLC(getApplicationContext(), options);
mMediaPlayer = new MediaPlayer(mLibVLC);
Video start/channel change
mMediaPlayer.detachViews();
mMediaPlayer.attachViews(mVideoLayout, null, ENABLE_SUBTITLES, USE_TEXTURE_VIEW);
final Media media = new Media(mLibVLC, Uri.parse(videoUrl));
mMediaPlayer.setMedia(media);
mMediaPlayer.setEventListener(mPlayerListener);
media.release();
mMediaPlayer.play();
Maybe someone have any minds how to speed up loading time?
P.S. This not worked for me Reduce delay when playing rtp stream with libvlc on Android