# \[AndroidTV\] While live playback BehindLiveWindowException comes

**URL:** <https://community.bitmovin.com/t/androidtv-while-live-playback-behindlivewindowexception-comes/1990>\
**Category:** Support\
**Tags:** bitmovin-player, live-streaming, android, bitmovin\
**Created:** [May 20, 2023, 6:44pm UTC](https://community.bitmovin.com/t/androidtv-while-live-playback-behindlivewindowexception-comes/1990 "2023-05-20T18:44:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malviya.software](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@malviya.software](https://community.bitmovin.com/u/malviya.software)\
**Post date:** [May 20, 2023, 6:44pm UTC](https://community.bitmovin.com/t/androidtv-while-live-playback-behindlivewindowexception-comes/1990/1 "2023-05-20T18:44:14Z")

</div>

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?

```auto
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) 

```

---

<div class="post-metadata">

**Author:** ![seven](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@seven](https://community.bitmovin.com/u/seven)\
**Post date:** [May 22, 2023, 1:26am UTC](https://community.bitmovin.com/t/androidtv-while-live-playback-behindlivewindowexception-comes/1990/2 "2023-05-22T01:26:00Z")

</div>

> [@malviya.software](#):
>
> BehindLiveWindowException

Thanks for reaching out @malviya.software .

`BehindLiveWindowException` is thrown by the underlying ExoPlayer.

[Description](https://github.com/google/ExoPlayer/issues/1074#issuecomment-168540929) 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](https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8)

If the error still persists kindly update and share the [BasicPlayback](https://github.com/bitmovin/bitmovin-player-android-samples/tree/main/BasicPlayback) for us to replicate the issue and investigate further.

Thank you.

---

<div class="post-metadata">

**Author:** ![malviya.software](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@malviya.software](https://community.bitmovin.com/u/malviya.software)\
**Post date:** [June 9, 2023, 9:29am UTC](https://community.bitmovin.com/t/androidtv-while-live-playback-behindlivewindowexception-comes/1990/3 "2023-06-09T09:29:28Z")

</div>

> [@seven](#):
>
> bandwidth

@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”?
