The HLS interstitials specification introduces a flexible way to schedule and insert ads into a video or audio stream. This specification lets you do the following:
- Transitions between content and ads in a livestream: an ad break can start at a scheduled time, regardless of the content segment boundary.
- Advanced ad formats: depending on the player and integration, you can render the interstitial ads in a custom view.
IMA SDK lets you use HLS interstitials specification with Google Dynamic Ad Insertion (DAI) with one of the following methods:
- Server-side ad insertion: requesting Google Full service DAI to insert the
EXT-X-DATERANGEtag in the content manifest. This method requires a linear livestream event. For more information, see Dynamic Ad Insertion type. - Client-side ad insertion: requesting the ads manifest from Google DAI Pod
serving with the
AVPlayerInterstitialEventclass. This method requires a pod serving manifest livestream event.
Select your livestream event's DAI type: