[AndroidTV] While live playback BehindLiveWindowException comes

Hi Support Team,

I have encountered “BehindLiveWindowException” while playing the Live content with SDK 3.38.0.
May i know the solution to resolve this?

ExoPlayerImplInternal     Playback error
                                         com.bitmovin.android.exoplayer2.ExoPlaybackException: Source error
                                             at com.bitmovin.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:654)
                                             at com.bitmovin.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:628)
                                             at android.os.Handler.dispatchMessage(Handler.java:107)
                                             at android.os.Looper.loop(Looper.java:250)
                                             at android.os.HandlerThread.run(HandlerThread.java:67)
                                         Caused by: com.bitmovin.android.exoplayer2.source.BehindLiveWindowException
                                             at com.bitmovin.android.exoplayer2.source.hls.HlsChunkSource.getNextChunk(HlsChunkSource.java:440)
                                             at com.bitmovin.android.exoplayer2.source.hls.HlsSampleStreamWrapper.continueLoading(HlsSampleStreamWrapper.java:784)
                                             at com.bitmovin.android.exoplayer2.source.CompositeSequenceableLoader.continueLoading(CompositeSequenceableLoader.java:90)
                                             at com.bitmovin.android.exoplayer2.source.hls.HlsMediaPeriod.continueLoading(HlsMediaPeriod.java:385)
                                             at com.bitmovin.player.core.e0.j.continueLoading(Unknown Source:2)
                                             at com.bitmovin.android.exoplayer2.source.MaskingMediaPeriod.continueLoading(MaskingMediaPeriod.java:242)
                                             at com.bitmovin.android.exoplayer2.MediaPeriodHolder.continueLoading(MediaPeriodHolder.java:221)
                                             at com.bitmovin.android.exoplayer2.ExoPlayerImplInternal.maybeContinueLoading(ExoPlayerImplInternal.java:2346)
                                             at com.bitmovin.android.exoplayer2.ExoPlayerImplInternal.handleContinueLoadingRequested(ExoPlayerImplInternal.java:2309)
                                             at com.bitmovin.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:534)
                                             at android.os.Handler.dispatchMessage(Handler.java:107) 
                                             at android.os.Looper.loop(Looper.java:250) 
                                             at android.os.HandlerThread.run(HandlerThread.java:67) 

Thanks for reaching out @malviya.software .

BehindLiveWindowException is thrown by the underlying ExoPlayer.

Description from here on why this error occurs:

  1. The window being unreasonably small. In this case the fix is to increase the window on the server side.
  2. Repeated client buffering causing the client to be playing further and further behind the broadcast until it eventually ends up trying to request segments that are no longer available.

Additionally #2 can happen too when using poor network over VPN. I suggest

  1. checking your Bitmovin Analytics for the Download bandwidth available
  2. trying WITHOUT any VPN with an alternate stream e.g https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

If the error still persists kindly update and share the BasicPlayback for us to replicate the issue and investigate further.

Thank you.

@seven Thank you for responding. Could you please provide further details about the suggestion mentioned earlier?

  1. The window being unreasonably small. In this case the fix is to increase the window on the server side.

What do you mean by “increase the window on the server side”?