{"data":{"slug":"github-google-skills-skills-ads-ima-dai-sdk-af2ff5dd6acb","title":"Integrate IMA DAI SDK for HLS\/DASH Stream Playback","summary":"Load and play HLS or DASH streams in apps using the IMA DAI SDK for livestream events and video on demand content.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-ads-ima-dai-sdk-af2ff5dd6acb","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-ads-ima-dai-sdk-af2ff5dd6acb","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-ads-ima-dai-sdk-af2ff5dd6acb.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-ads-ima-dai-sdk-af2ff5dd6acb\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The integration requires platform-specific setup, such as using the StreamManager guide for web apps or the IMAStreamRequest guide for iOS\/tvOS.","instructions":"---\nname: ima-dai-sdk\ndescription: >-\n  Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI)\n  SDK into websites, web apps, mobile apps, or TV apps.\n  Use when:\n  - A video player needs to load and play HLS or DASH streams in web apps,\n  Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels.\n  - The app needs to make use of a Google DAI livestream event asset key, or\n  content source CMS ID, video ID for video on demand.\n  Don't use this skill to load and play a VAST or VMAP URL.\nlicense: Apache-2.0\nmetadata:\n  author: Google LLC\n  version: \"1.0.0\"\n  category: GoogleAds\n---\n\n# IMA DAI SDK\n\nUse the IMA DAI SDK to load HLS or DASH streams into the app for:\n\n*   **Livestream events** configured in Google Ad Manager.\n*   **Video on demand (VOD)** content ingested into Google Ad Manager.\n\n## Prerequisites\n\nReview the platform-specific integration guides for the target platforms:\n\n*   **Web\/HTML5\/ReactJs\/NodeJs\/Angular:** Read\n    [StreamManager guide](references\/web-StreamManager-guide.md) for loading\n    stream URL from Google full-service DAI into `<video>` element.\n\n*   **ChromeCast:** Read\n    [StreamManager guide](references\/cast-StreamManager-guide.md) for\n    integrating the IMA DAI SDK into a ChromeCast Web Receiver.\n\n*   **Android:** Read\n    [ImaServerSideAdInsertionMediaSource guide](references\/android-ImaServerSideAdInsertionMediaSource-guide.md)\n    for integrating Media3 Exoplayer IMA extension.\n\n*   **iOS\/tvOS:** Read\n    [IMAStreamRequest guide](references\/ios-IMAStreamRequest-guide.md) for\n    playing streams with `AVPlayer`.\n\n*   **Roku:** Read [StreamManager guide](references\/roku-StreamManager-guide.md)\n    for implementing DAI on Roku SceneGraph.\n\n## Quick start (general workflow)\n\n1.  Import the SDK\n2.  Initialize the SDK\n3.  Add stream event listeners\n4.  Set up timed metadata forwarding\n5.  Make a stream request\n6.  Clean up SDK resources when the stream fails or the user leaves the stream.\n","use_cases":["Load HLS or DASH streams in web apps, Android, iOS, tvOS, or Roku apps.","Play video on demand content using Google Ad Manager CMS IDs or video IDs."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/ads\/ima-dai-sdk\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":"Apache-2.0","version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-16T06:53:09.000000Z","updated_at":"2026-11-16T10:49:37.000000Z","seo_title":"Integrate IMA DAI SDK for HLS\/DASH Stream Playback","seo_description":"Use the IMA DAI SDK to load HLS or DASH streams in apps for livestream events and video on demand content.","seo_keywords":["IMA DAI SDK integration","HLS DASH stream playback","Google Ad Manager integration","Video on demand playback","Livestream event playback"]}}