Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[Web] When playing an ad, how can I know whether the HTMLVideoElement is reused by the IMA SDK or an additional HTMLVideoElement is created?

8 views
Skip to first unread message

gem xu

unread,
Apr 16, 2025, 9:16:10 AMApr 16
to Interactive Media Ads SDK
As title

IMA SDK

unread,
Apr 16, 2025, 6:40:49 PMApr 16
to gem...@gmail.com, ima...@googlegroups.com
Hi, 

Thank you for contacting IMA SDK Support Team.

According to the AdDisplayContainer documentation, the videoElement is an optional parameter that specifies an alternative video element for ad playback. It is strongly recommended to always pass in your content video player.

Regarding your query about checking if the video player is being reused, I understand your uncertainty. When inspecting the ad container's video player element structure, there doesn't appear to be a specific ID attached. However, it seems that if you provide a videoElement, the SDK will reuse your existing video player. If you pass null, a new player will be created.

Are you currently experiencing any issues with ad playback? Alternatively, could you please share your business logic or the specific goal you are trying to achieve by verifying the reusability of the video player?

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-16 22:40:35Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pT4mG:ref" (ADR-00300172)



Reply all
Reply to author
Forward
0 new messages