HTML5 SDK Video player proxy element doesn't dispatch 'loadeddata'

142 views
Skip to first unread message

Greg Quan

unread,
Sep 28, 2015, 4:03:33 PM9/28/15
to Interactive Media Ads SDK, Ad Client Team
We have a VPAID JavaScript creative that reuses the videoSlot for iOS playback. Our VPAID listens for the 'loadeddata' or 'loadedmetadata' event from the HTML5 video element in order to dispatch AdLoaded: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events

As mentioned in the docs (https://developers.google.com/interactive-media-ads/docs/sdks/html5/vpaid2js), the Google IMA SDK uses a video player proxy element instead of an actual HTML5 video element. However, this proxy element does not dispatch 'loadeddata' or 'loadedmetadata', so our VPAID creative will never dispatch AdLoaded.

Is there a reason that the video player proxy element doesn't dispatch loaded events, and are there plans to add one or both of these events in the future? Currently we have to use a workaround for this when we are loaded in the IMA SDK.

Thanks,
Greg

Vu Chau (IMA SDK Team)

unread,
Sep 28, 2015, 5:07:39 PM9/28/15
to Interactive Media Ads SDK, adcl...@teamaol.com
Hi Greg,

If you're using the INSECURE version, those events should already work as you get an actual video element.
I have talked to the rest of the team on supporting these events for SECURE environments, and I'll let you know of the progress.  Could you also provide us the VPAID ad tag for validation purposes?

Thanks,

Vu Chau
IMA SDK Team

Greg Quan

unread,
Sep 28, 2015, 6:09:02 PM9/28/15
to Vu Chau (IMA SDK Team), Interactive Media Ads SDK, Ad Client Team
Hi Vu,

Since we are pushing out a workaround soon, the VPAID creative in our production ad tags will play even without getting 'loadeddata'. Also, we only reuse the videoSlot when the user agent reports an iOS device. 

But if you like, I can provide an adtag and debug version of our js creative for you to test with, using some remapping tool such as Charles.

Regards,
Greg

Vu Chau (IMA SDK Team)

unread,
Sep 29, 2015, 10:18:54 AM9/29/15
to Interactive Media Ads SDK, ima-sdk-a...@google.com, adcl...@teamaol.com
Hi Greg,

Great that you have a workaround for this use case.  Nevertheless, if possible, we'd still like to get a hold of the VPAID tag so we can add support for these events for future users.

Thanks!

Vu Chau
IMA SDK Team

Vu Chau (IMA SDK Team)

unread,
Nov 24, 2015, 11:12:15 AM11/24/15
to Interactive Media Ads SDK, ima-sdk-a...@google.com, adcl...@teamaol.com
Hi Greg,

We are now forwarding loadedmetadata and loadeddata to the VPAID creative in secure (ENABLED) mode.  See our docs for the complete list of currently supported methods and events. 

Let us know if you need anything else,

Vu Chau
IMA SDK Team

Greg Quan

unread,
Nov 24, 2015, 5:09:21 PM11/24/15
to Interactive Media Ads SDK, ima-sdk-a...@google.com, adcl...@teamaol.com
Hi Vu,

Apologies for not providing the test tag to you earlier. Thanks so much for adding support for this! 

Regards,
Greg
Reply all
Reply to author
Forward
0 new messages