media/libraries
tianyifeng db3e662bdc Throw exception when TimestampAdjuster initialization hits timeout
Add `HlsMediaSource.Factory.setTimestampAdjusterInitializationTimeoutMs(long)` to set the timeout for the loading thread to wait for the `TimestampAdjuster` to initialize. If the initialization doesn't complete before the timeout, a `PlaybackException` is thrown to avoid the playback endless stalling. The timeout is set to zero by default.

This can avoid HLS playback endlessly stalls when manifest has missing discontinuities. According to the HLS spec, all variants and renditions have discontinuities at the same points in time. If not, the one with discontinuities will have a new `TimestampAdjuster` not shared by the others. When the loading thread of that variant is waiting for the other threads to initialize the timestamp and hits the timeout, the playback will stall.

Issue: androidx/media#323

#minor-release

PiperOrigin-RevId: 539108886
2023-06-10 20:25:05 +00:00
..
cast Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
common Throw exception when TimestampAdjuster initialization hits timeout 2023-06-10 20:25:05 +00:00
container Add support for passing custom metadata via transformer 2023-06-09 13:51:15 +00:00
database Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_cronet Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_av1 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_ffmpeg Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_flac Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_midi Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_opus Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_vp9 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
effect Add missing empty lines 2023-06-10 20:22:38 +00:00
exoplayer Return offload unsupported for formats not supported by the sdk level 2023-06-10 20:20:20 +00:00
exoplayer_dash Do not reset period uid when DashMediaSource is released 2023-06-09 14:03:22 +00:00
exoplayer_hls Throw exception when TimestampAdjuster initialization hits timeout 2023-06-10 20:25:05 +00:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-10 20:23:56 +00:00
exoplayer_rtsp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
exoplayer_smoothstreaming Implement logging support for Common Media Client Data (CMCD) 2023-06-09 14:01:25 +00:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Require the list returned by SubtitleParser to be sorted by timestamp 2023-06-10 20:21:29 +00:00
muxer Enable nullness checker for Muxer module androidTest library 2023-06-08 12:48:03 +00:00
session Add seekPrev and seekNext buttons on the default compact notification 2023-06-09 13:54:13 +00:00
test_data Add support for passing custom metadata via transformer 2023-06-09 13:51:15 +00:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Rollback of 2a6f893fba 2023-06-06 18:06:46 +00:00
test_session_current Allow playback of MediaItems with LocalConfiguration 2023-06-06 18:08:17 +00:00
test_utils Add playback suppression for the attempted playbacks on an unsuitable output. 2023-06-09 13:58:42 +00:00
test_utils_robolectric Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
transformer Add support for passing custom metadata via transformer 2023-06-09 13:51:15 +00:00
ui Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00