media/library/hls
simophin 77d8c13621
Guard against out-of-range timestamp
We've found that in our production environment, the AAC stream's timestamp exceeds the 33bit limit from time to time, when it happens, `peekId3PrivTimestamp` returns a value that is greater than `TimestampAdjuster.MAX_PTS_PLUS_ONE`, which causes a overflow in `TimestampAdjuster.adjustTsTimestamp` (overflow inside `ptsToUs`) after playing for a while . When the overflow happens, the start time of the stream becomes negative and the playback simply stucks at buffering forever.

I fully understand that the 33bit is a spec requirement, thus I asked our stream provider to correct this mistake. But in the mean time, I'd also like ExoPlayer to handle this situation more error tolerance, as in other platforms (iOS, browsers) we see more tolerance behavior.
2017-11-24 17:27:35 +13:00
..
src Guard against out-of-range timestamp 2017-11-24 17:27:35 +13:00
build.gradle Disable test coverage again 2017-08-07 13:38:15 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

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.

  • Javadoc: Classes matching com.google.android.exoplayer2.source.hls.* belong to this module.