Seek during playback for HLS

VLC for Android and Chrome OS specific usage questions
sen
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2015 05:00

Seek during playback for HLS

Postby sen » 24 Jul 2015 05:18

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. :)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Seek during playback for HLS

Postby Jean-Baptiste Kempf » 25 Jul 2015 16:39

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sen
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2015 05:00

Re: Seek during playback for HLS

Postby sen » 27 Jul 2015 09:09

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Seek during playback for HLS

Postby Jean-Baptiste Kempf » 30 Jul 2015 01:06

FIle a bug with a sample.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sen
New Cone
New Cone
Posts: 3
Joined: 24 Jul 2015 05:00

Re: Seek during playback for HLS

Postby sen » 31 Jul 2015 06:49


ebr
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jul 2015 17:07

Re: Seek during playback for HLS

Postby ebr » 31 Aug 2015 23:54

Very interested in the outcome of this one as we are having the same issue in our app using LibVlc compiled on Aug 20.

luke823
Blank Cone
Blank Cone
Posts: 18
Joined: 16 May 2012 04:49

Re: Seek during playback for HLS

Postby luke823 » 31 Aug 2015 23:56

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Seek during playback for HLS

Postby Jean-Baptiste Kempf » 05 Nov 2015 13:47

Fixed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 16 guests