media/extensions/ima/src
andrewlewis 625c830b3d Fix seeking to a non-zero position in a preloaded ad item
`ImaAdsLoader` will preload the first ad of a subsequent media item, but the
preloaded ad might not actually play because the user could seek to a non-zero
position in that media item (which could trigger playback of a midroll, not the
preroll). In this case, playback would get stuck because the midroll ad
expected to play after the seek would never load, because the IMA SDK expected
the preroll to play first.

Fix this behavior by discarding the preloaded ad break. If there isn't a seek,
the transition to the next media item is still seamless.

#minor-release

PiperOrigin-RevId: 357682510
2021-02-22 15:02:51 +00:00
..
androidTest Signal an ads identifier to the AdsLoader 2020-11-06 16:32:31 +00:00
main Fix seeking to a non-zero position in a preloaded ad item 2021-02-22 15:02:51 +00:00
test Use Clock to create Handler in ListenerSet. 2021-01-22 16:21:27 +00:00