Hello everyone!
I have a problem with video seeking in LibVLC and VideoView.
Video plays good for me, with no artifacts - all of my problems focused at seeking. When i am trying to seek forward, video stops and not playing forward - the same on LibVLC and VideoView.
Only Vitamio works properly but video has poor quality and there is a problem with audio sync.
My code to initializa VLC instance:
Remote controller buttons mapping:
Maybe You can help, or can find any solution for that. I think there is a library problem or BUG.
Processors: 1,2 dual core coretex a9 or 1,6 quad core coretex, the first one is rk30sdk, the second one is rk3188
I have a problem with video seeking in LibVLC and VideoView.
Video plays good for me, with no artifacts - all of my problems focused at seeking. When i am trying to seek forward, video stops and not playing forward - the same on LibVLC and VideoView.
Only Vitamio works properly but video has poor quality and there is a problem with audio sync.
My code to initializa VLC instance:
Code:
// Create a new media player
libvlc = LibVLC.getInstance();
libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_FULL);
//libvlc.setSubtitlesEncoding("");
//libvlc.setAout(LibVLC.VOUT_ANDROID_SURFACE);
//libvlc.setTimeStretching(false);
//libvlc.setFrameSkip(true);
libvlc.setSubtitlesEncoding("");
libvlc.setTimeStretching(false);
libvlc.setFrameSkip(true);
libvlc.setChroma("RV32");
libvlc.setVerboseMode(true);
libvlc.setAout(-1);
libvlc.setDeblocking(4);
libvlc.setNetworkCaching(0);
//libvlc.setChroma("RV32");
//libvlc.setVerboseMode(false);
//libvlc.setDeblocking(1);
//libvlc.setNetworkCaching(2500);
LibVLC.restart(this);
EventHandler.getInstance().addHandler(mHandler);
holder.setFormat(PixelFormat.RGBX_8888);
holder.setKeepScreenOn(true);
MediaList list = libvlc.getMediaList();
list.clear();
list.add(new Media(libvlc, LibVLC.PathToURI(media)), false);
libvlc.playIndex(0);
Remote controller buttons mapping:
Code:
switch (event.getKeyCode()) {
// next
case 87:
s = false;
if (length > 0L) {
Long t = time+60000L;
if (t < length) {
//libvlc.clearBuffer();
libvlc.setTime(time+60000L);
libvlc.play();
}
}
break;
// prev
case 88:
s = false;
if (length > 0L) {
Long t = time-60000L;
if (t > 0) {
libvlc.setTime(time-60000L);
libvlc.play();
}
}
break;
}
Maybe You can help, or can find any solution for that. I think there is a library problem or BUG.
Processors: 1,2 dual core coretex a9 or 1,6 quad core coretex, the first one is rk30sdk, the second one is rk3188