Keep list of available formats when using HLS chunkful preparation.
Open
enhancement
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### [REQUIRED] Use case description
When using HLS chunkful preparation or when using a media playlist directly, we need to load at least one of the segments to determine the available formats. However, we do this for every created MediaPeriod, which is wasteful because the formats are not supposed to change if the preparation completed once.
### Proposed solution
We should keep the list of tracks in the HlsMediaSource and use it for all subsequent MediaPeriods without loading a segment again. This also prevents problems like #6314 from occurring in the first place.
### Alternatives considered
n/a
Contributor guide
Assessment
This issue has not been assessed yet.