Add Util class for server-side inserted ads.
When working with SSAI ads, we need to easily convert positions between the underlying stream and the media model that exposes ad groups. To simplify this, we can add util methods (that are testable on their own). In addition, we need an easy way to build AdPlaybackStates for SSAI inserted ads. The metadata is obtained out-of-band and usually has the ad group start and end times in the underlying stream only. Hence, we also add a util method to add a new ad group based on this information. PiperOrigin-RevId: 374369360
Showing
with
92 additions
and
34 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment