media/library
andrewlewis dcbdbe5341 Fix handling of ad timelines without prerolls
The player's initial PlaylistTimeline has no ad cue points, so its first
MediaPeriodId has no nextAdGroupIndex. When the AdsMediaSource provides its
first timeline, the cue points become known. For the case where a preroll cue
point appeared, the preroll was detected due to isAd changing on the
MediaPeriodId.  For the case where a midroll/postroll cue point appeared, the
MediaPeriodId was actually treated as the same, which leads to keeping the
unclipped original MediaPeriod.

Fix this behavior by checking for nextAdGroupIndex becoming set or decreasing.

PiperOrigin-RevId: 308974490
2020-05-01 19:46:13 +01:00
..
all Use new exoplayer.dev domain everywhere. 2019-04-16 15:25:27 +01:00
common Rename sourceUri to uri 2020-05-01 19:46:04 +01:00
core Fix handling of ad timelines without prerolls 2020-05-01 19:46:13 +01:00
dash Rename sourceUri to uri 2020-05-01 19:46:04 +01:00
extractor Remove ExtractorAsserts overloads that take a Context 2020-04-27 10:41:49 +01:00
hls Rename sourceUri to uri 2020-05-01 19:46:04 +01:00
smoothstreaming Rename sourceUri to uri 2020-05-01 19:46:04 +01:00
ui Add fall-back behaviour for vertical cues if rendering isn't supported 2020-05-01 19:45:55 +01: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.