media/library
tonihei 80cdfd0cf0 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-08 17:20:22 +00:00
..
all Fix minimum API level issue 2022-02-08 11:03:36 +00:00
common Remove deprecated EventListener 2022-02-08 12:34:07 +00:00
core Fix delayed discontinuity for failed ad insertions. 2022-02-08 17:20:22 +00:00
dash Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-04 15:07:19 +00:00
datasource Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
decoder Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
extractor Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
hls Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
rtsp Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
smoothstreaming Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-10 13:00:58 +00:00
transformer Fix the position of IntDefs to match TYPE_USE 2022-02-08 12:34:06 +00:00
ui Update some text descriptions to ease translations. 2022-02-08 10:49:49 +00:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.