media/libraries
tonihei 09ede4aa45 Fix delayed discontinuity for failed ad insertions.
We have logic to not immediately interrupt playback when an ad group
fails to load and instead let the current content play and transition
at the point where the ad group should have been.

This logic was broken by dcbdbe5341 because of one of the conditions
used MediaPeriodId.adGroupIndex, which is always -1 for content ids.
It still worked for the last ad group because the next ad group index
was C.INDEX_UNSET.

Fix the issue and amend the test that was meant to catch this to test
the ad failures for the last ad and previous ads.

Also fix the PositionInfo reported in such a case, which was also wrong.

Issue: google/ExoPlayer#9929

#minor-release

PiperOrigin-RevId: 427143223
2022-02-21 17:04:12 +00:00
..
cast Remove deprecated EventListener 2022-02-21 17:04:12 +00:00
common Remove deprecated EventListener 2022-02-21 17:04:12 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-21 16:56:36 +00:00
datasource Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
datasource_cronet Fix some lint warnings 2022-01-28 08:46:46 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_av1 Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_ffmpeg Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_flac Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_opus Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_vp9 Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer Fix delayed discontinuity for failed ad insertions. 2022-02-21 17:04:12 +00:00
exoplayer_dash Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_hls Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_ima Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_rtsp Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_smoothstreaming Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
session Update some text descriptions to ease translations. 2022-02-21 17:04:07 +00:00
test_data Remove deprecated ActionFile and ActionFileUpgradeUtil 2022-02-21 16:56:37 +00:00
test_exoplayer_playback Extend support for audio spatialization in MediaCodecAudioRenderer 2022-01-25 18:59:43 +00:00
test_session_common Fix flaky MediaBrowserListenerTest 2022-01-25 18:34:25 +00:00
test_session_current Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
test_utils Remove deprecated EventListener 2022-02-21 17:04:12 +00:00
test_utils_robolectric Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
transformer Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
ui Update some text descriptions to ease translations. 2022-02-21 17:04:07 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00