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

Most upvoted comments

Correct me if I am wrong, you have implemented ExoPlayer.EventListener and override method onPlayerError? Thanks

EDIT: @binhbt Here you can find the code where I have tried this workaround. Please help