Files
grayjay/app
Simon Gardling 4bb09ec92e Fix BehindLiveWindowException recovery on live HLS
The 'error is BehindLiveWindowException' check in onPlayerError was
always false (Kotlin compiler had been warning about it). The actual
exception is wrapped as the *cause* of an ExoPlaybackException, with
errorCode 1002 (ERROR_CODE_BEHIND_LIVE_WINDOW). This made the existing
recovery branch dead code, so when the live window slipped past the
player it would silently drop into STATE_IDLE and the user had to back
out of the video and reopen it.

Test the cause and the error code so the branch actually fires, and
snap to the live edge with seekToDefaultPosition() after both the
BehindLiveWindow and PlaylistStuckException reloads so the user lands
where the player would naturally play.
2026-05-01 01:15:42 -04:00
..
2026-03-11 12:51:17 -05:00
2023-09-25 17:18:43 +02:00
2026-03-11 12:51:17 -05:00
2023-09-25 17:18:43 +02:00