media/libraries
bachinger 4604f0cde6 Fix ArrayIndexOutOfBoundIndex when re-preparing after exception
When an app tried to re-prepare a live streeam with server side inserted
ad after a playback exception, the player tried to find the ad group by
its index in the ad playback state of the next timeline when creating
the first period.

If a source that supports server side ad, has removed the ad playback
state when the source has been removed, this causes a crash. For live
streams this is a reasonable thing to do given the exception could be
caused by an invalid ad playback state.

This change removes the ad metadata from the current period for live
streams and the timeline. In case the ad playback state is not reset
by the source, the first timeline refresh would ad the metadata again.

PiperOrigin-RevId: 541959628
2023-06-22 15:26:25 +00:00
..
cast Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
common Add public API for isWear check in media3-common. 2023-06-22 15:24:56 +00:00
container Replace CreationTime class with Mp4TimestampData class 2023-06-14 20:42:36 +01:00
database Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01: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 Clear buffer's timeUs when setting end-of-stream in SampleQueue 2023-06-20 13:58:29 +01: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 GL: Rename GL methods. 2023-06-19 16:29:03 +01:00
exoplayer Fix ArrayIndexOutOfBoundIndex when re-preparing after exception 2023-06-22 15:26:25 +00:00
exoplayer_dash Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_hls Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-10 20:23:56 +00:00
exoplayer_rtsp Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
exoplayer_smoothstreaming Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Remove UdtaInfo class 2023-06-20 14:00:50 +01:00
muxer Remove copying sample data in Mp4Muxer 2023-06-19 16:18:09 +01:00
session Fixed spelling across various PlayerInfo *ChangeReason fields 2023-06-22 15:23:21 +00:00
test_data Remove UdtaInfo class 2023-06-20 14:00:50 +01: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 7956c80f73 2023-06-19 16:09:13 +01:00
test_session_current Fixed spelling across various PlayerInfo *ChangeReason fields 2023-06-22 15:23:21 +00:00
test_utils Make FakeClock Espresso and Compose UI test compatible 2023-06-20 14:03:06 +01:00
test_utils_robolectric Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
transformer Increase pixel difference 2023-06-20 14:05:07 +01:00
ui Add public API for isWear check in media3-common. 2023-06-22 15:24:56 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00