Track fallback (track exclusion) is not working when segment request fails for HLS stream in exoplayer version 2.17.0 leading to video playback failure.
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Exoplayer version: 2.17.0 (Source: https://github.com/google/ExoPlayer/releases/tag/r2.17.0)
If segment request fails with non 200 for content which is hosted on single CDN, track selection doesn't choose different track by blacklisting existing track and ends up in playback failure.
On checking further into getFallbackSelectionFor() of DefaultLoadErrorHandlingPolicy.java, is see fallbackOptions.isFallbackAvailable(FALLBACK_TYPE_TRACK) returns false even though there are other video profiles.
If content is hosted on multiple CDN, fallback to different CDN for same track works fine.
Ideally, for content hosted on single CDN, any failure in segment request should blacklist track and do fallback to lower bitrate track instead of playback failure.
I will send mail to [dev.exoplayer@gmail.com](mailto:dev.exoplayer@gmail.com) stream details with this ticket number which can help for local repro, Thanks !
Asset duration: 17 min 57seconds
Position when issue occurs: 07 min 53 seconds
Contributor guide
Assessment
This issue has not been assessed yet.