mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

IMA always starts midrolls at index 1. So if there is no preroll ad, the ad group index in AdPlaybackState is off by 1 all the time, and may also lead to ArrayIndexOutOfBoundsExceptions when trying to access the last midroll ad Issue: androidx/media#1741 PiperOrigin-RevId: 682324368