Hi Dũng,
Thank you for reaching out to the IMA SDK forum.
You may refer here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/dai#ima_dai_overview, this guide demonstrates how to integrate the IMA SDK into a simple video player app. If you would like to view or follow along with a completed sample integration, download the simple example from GitHub: https://github.com/googleads/googleads-ima-html5-dai.
To define variables to hold the stream request information, kindly modify the dai.js file and provide the values for Live stream asset key(for LIVE streams) or the VOD content source and video IDs for a VOD stream. See sample here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/dai#2_create_a_simple_video_player
Let me know if you have any question, or if I misunderstood your concern, kindly specify the platform and provide screenshots describing your issue.
Regards,
![]() |
IMA SDK Team |