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

There is a newly added condition to help advancing between SSAI ads and content in case the ad group position or ad duration changed. The condition currently doesn't check directly whether it's a SSAI transition but relies on indrect signals. Making this more direct helps to understand the purpose and avoid unintentional bugs where this condition would apply in other cases too. In addition, we need to exclude TextRenderer from the check because its read position doesn't correspond to the actual decode position since the decoding happens in the renderer itself (b/181312195). PiperOrigin-RevId: 374835985