Page 1 of 1

Seek during playback for HLS

Posted: 24 Jul 2015 05:18
by sen
Hey.

We are using the latest code base from git://git.videolan.org/vlc-ports/android.git as of this writing (e84d8efaa8c2bbcbaaba5e0c3595ea5fc02ae56d). After building it, we've got the APK for VLC for Android.

All is well, playback is working fine even for HLS (we are using http://cdn1-a.production.vidio.static6. ... ,.mp4.m3u8). However, when we try to seek, it says that the stream is unseekable. However, playing the same HLS using VLC v2.2.1 Terry Pratchett (Weatherwax) on Ubuntu, we could seek to any given time.

1. Is seek functionality on Android version expected to work for HLS?
2. If seek functionality for HLS isn't yet implemented, can we have guidance on how to implement it? We are willing to invest time and resources to implement this feature for the community.

Thank you. :)

Re: Seek during playback for HLS

Posted: 25 Jul 2015 16:39
by Jean-Baptiste Kempf
So, we're rewriting the HLS support in VLC in 3.0.0. Android version is based on 3.0.0, so there might be some regressions there.

The best you can do is compile the latest on Ubuntu (not that difficult) and check if it works there, or not. Then file a bugreport.

Re: Seek during playback for HLS

Posted: 27 Jul 2015 09:09
by sen
So, we started anew and the latest commit is df2cd48351bf1689cd26aa1f1947fdfccf7c78ab. Using the same HLS URL, we couldn't perform seek using the APK built.

We also tried using the .aar built into a fresh new Android project. Using the org.videolan.libvlc.MediaPlayer class, the method `isSeekable()` returns true, but seeking isn't happening properly. We'll file a bug report for this issue.

Update #1
The log is submitted at http://pastebin.com/z8u8PwqR.

Update #2
We found the following log when seeking:

Code: Select all

07-27 15:03:45.465 12249-12277/playervlc2 E/VLC﹕ [b4b0b588] core input: INPUT_CONTROL_SET_POSITION(_OFFSET) 41.4% failed 07-27 15:03:45.466 12249-12271/playervlc2 E/VLC-std﹕ [h264 @ 0xb4a34800] Frame num gap 2 0 07-27 15:03:45.467 12249-12271/playervlc2 E/VLC-std﹕ [h264 @ 0xb4a34800] Missing reference picture 07-27 15:03:45.468 12249-12271/playervlc2 E/VLC-std﹕ [h264 @ 0xb4a34c00] Missing reference picture
Update #3
Is there a way we could help for this feature?

Re: Seek during playback for HLS

Posted: 30 Jul 2015 01:06
by Jean-Baptiste Kempf
FIle a bug with a sample.

Re: Seek during playback for HLS

Posted: 31 Jul 2015 06:49
by sen

Re: Seek during playback for HLS

Posted: 31 Aug 2015 23:54
by ebr
Very interested in the outcome of this one as we are having the same issue in our app using LibVlc compiled on Aug 20.

Re: Seek during playback for HLS

Posted: 31 Aug 2015 23:56
by luke823
I'm seeing the same thing with a very similar playlist as the above sample. This is a pretty severe issue as it's preventing the use of basic operations within the player.

Re: Seek during playback for HLS

Posted: 05 Nov 2015 13:47
by Jean-Baptiste Kempf
Fixed.