media/libraries
bachinger f6a30f6645 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
(cherry picked from commit 4604f0cde6)
2023-06-20 16:55:22 +00:00
..
cast Implement Player.replaceMediaItem(s) 2023-05-26 13:25:10 +00:00
common Version bump to media3-1.1.0 and exoplayer 2.19.0 2023-06-23 18:11:57 +00:00
container Add support for passing custom metadata via transformer 2023-06-12 09:15:53 +00:00
database Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource Remove two deprecated InvalidResponseCodeException constructors 2023-05-17 16:59:55 +00:00
datasource_cronet Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
datasource_okhttp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource_rtmp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
decoder Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_av1 Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_ffmpeg Remove FfmpegVideoRenderer from 1.1.0 release 2023-05-18 18:04:45 +00:00
decoder_flac Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_opus Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_vp9 Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
effect Rollback of a66f08ba97 2023-06-12 09:15:55 +00:00
exoplayer Fix ArrayIndexOutOfBoundIndex when re-preparing after exception 2023-06-20 16:55:22 +00:00
exoplayer_dash Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-15 18:55:30 +01:00
exoplayer_hls Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-15 18:55:30 +01:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-12 09:15:54 +00:00
exoplayer_rtsp Use base Uri from the RTSP DESCRIBE response header for relative paths 2023-05-26 13:25:10 +00:00
exoplayer_smoothstreaming Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-15 18:55:30 +01:00
exoplayer_workmanager Remove deprecated WorkManagerScheduler constructor 2023-05-18 16:07:51 +00:00
extractor Add support for passing custom metadata via transformer 2023-06-12 09:15:53 +00:00
muxer Enable nullness checker for Muxer module androidTest library 2023-06-12 09:15:53 +00:00
session Fixed spelling across various PlayerInfo *ChangeReason fields 2023-06-20 13:06:34 +00:00
test_data Add support for passing custom metadata via transformer 2023-06-12 09:15:53 +00:00
test_exoplayer_playback Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
test_session_common Implement Player.replaceMediaItem(s) 2023-05-26 13:25:10 +00:00
test_session_current Fixed spelling across various PlayerInfo *ChangeReason fields 2023-06-20 13:06:34 +00:00
test_utils Effect: Add multiple texture output test. 2023-06-12 09:15:52 +00:00
test_utils_robolectric Move MdtaMetadataEntry class into container module 2023-05-26 13:25:07 +00:00
transformer Factor out video decoding and fix two minor issues 2023-06-12 11:05:08 +00:00
ui Fix bug where PlayerView distorts video when video size is unknown 2023-06-19 17:03:25 +01:00
ui_leanback Use Util method for common UI play/pause button logic. 2023-04-26 15:52:50 +01:00