Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.
IMA DAI SDK
Use the IMA DAI SDK to load HLS or DASH streams into the app for:
- Livestream events configured in Google Ad Manager.
- Video on demand (VOD) content ingested into Google Ad Manager.
Prerequisites
Review the platform-specific integration guides for the target platforms:
- Web/HTML5/ReactJs/NodeJs/Angular: Read
StreamManager guide for loading stream URL from Google full-service DAI into <video> element.
- ChromeCast: Read
StreamManager guide for integrating the IMA DAI SDK into a ChromeCast Web Receiver.
- Android: Read
ImaServerSideAdInsertionMediaSource guide for integrating Media3 Exoplayer IMA extension.
- iOS/tvOS: Read
IMAStreamRequest guide for playing streams with AVPlayer.
- Roku: Read StreamManager guide
for implementing DAI on Roku SceneGraph.
Quick start (general workflow)
- Import the SDK
- Initialize the SDK
- Add stream event listeners
- Set up timed metadata forwarding
- Make a stream request
- Clean up SDK resources when the stream fails or the user leaves the stream.

