ExoPlayer: BehindLiveWindowException in HlsChunkSource -->getNextChunk
Hi, If I use ExoPlayer dev-v2, when I use the HLS streaming link http://viacomitalytest-lh.akamaihd.net/i/sbshdlive_1@195657/master.m3u8
I get this error:
ExoPlayerImplInternal: Source error.
com.google.android.exoplayer2.source.BehindLiveWindowException
at com.google.android.exoplayer2.source.hls.HlsChunkSource.getNextChunk(HlsChunkSource.java:212)
at com.google.android.exoplayer2.source.hls.HlsSampleStreamWrapper.continueLoading(HlsSampleStreamWrapper.java:302)
at com.google.android.exoplayer2.source.CompositeSequenceableLoader.continueLoading(CompositeSequenceableLoader.java:55)
at com.google.android.exoplayer2.source.hls.HlsMediaSource.continueLoading(HlsMediaSource.java:210)
at com.google.android.exoplayer2.ExoPlayerImplInternal.maybeContinueLoading(ExoPlayerImplInternal.java:1069)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleContinueLoadingRequested(ExoPlayerImplInternal.java:1057)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:289)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
however with release-v1, streaming works well.
How can I fix the problem? Thanks.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 32 (12 by maintainers)
Commits related to this issue
- Try not adapting before failing with BehindLiveWindowException in Hls Issue:#1782 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136025847 — committed to google/ExoPlayer by AquilesCanta 8 years ago
- Re-initialize the DemoApp player on BLWE This CL shows a de facto way to solve BLWEs until an in-player solution is implemented. Issue:#1782 ------------- Created by MOE: https://github.com/google/... — committed to google/ExoPlayer by AquilesCanta 7 years ago
Correct me if I am wrong, you have implemented
ExoPlayer.EventListenerand override methodonPlayerError? ThanksEDIT: @binhbt Here you can find the code where I have tried this workaround. Please help