mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00

This situation happens if the first chunk to load is already behind the end of the stream. In this case, the preparation never completes because HlsSampleStreamWrapper gets stuck in a prepared=false and loadingFinished=true state. Gracefully handle this situation by attempting to load the last chunk if still unprepared to ensure that track information is obtained as far as possible. Otherwise, it wouldn't be possible to play anything even when seeking back. Issue:#6314 PiperOrigin-RevId: 264599465
ExoPlayer HLS library module
Provides support for HTTP Live Streaming (HLS) content. To play HLS content,
instantiate a HlsMediaSource
and pass it to ExoPlayer.prepare
.
Links
- Developer Guide.
- Javadoc: Classes matching
com.google.android.exoplayer2.source.hls.*
belong to this module.