Ima dai sdk

From vaila-multimodaltoolbox/vaila · View interactive version

Ima dai sdk is an AI agent skill from the GitHub repository vaila-multimodaltoolbox/vaila. Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps. Use when: - A video player needs to load and play HLS or DASH streams in web apps, Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels. - The app n

How to use this skill

Skill file

IMA DAI SDK

Use the IMA DAI SDK to load HLS or DASH streams into the app for:

Prerequisites

Review the platform-specific integration guides for the target platforms:

StreamManager guide for loading

stream URL from Google full-service DAI into <video> element.

StreamManager guide for

integrating the IMA DAI SDK into a ChromeCast Web Receiver.

ImaServerSideAdInsertionMediaSource guide

for integrating Media3 Exoplayer IMA extension.

IMAStreamRequest guide for

playing streams with AVPlayer.

for implementing DAI on Roku SceneGraph.

Quick start (general workflow)

  1. Import the SDK
  2. Initialize the SDK
  3. Add stream event listeners
  4. Set up timed metadata forwarding
  5. Make a stream request
  6. Clean up SDK resources when the stream fails or the user leaves the stream.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.