VPAID 2.0 Compatibility - videoSlot is not DOM element

646 views
Skip to first unread message

Joel DuBien

unread,
Jul 21, 2015, 1:25:25 PM7/21/15
to ima...@googlegroups.com
Hello,

I'm working on getting a VPAID 2.0 ad to play with your test harness. Your test harness here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector is passing an Environment Variable under the key "videoSlot" to my VPAID ad. According to the iab.net/vpaid spec, the videoSlot variable should be a video element that can be used by the VPAID ad code to play the actual ad video. However, the object you are passing is not a DOM element, and therefore is not a video element.


See image here:


Please advise. This is breaking our VPAID 2.0 integration with your test harness.

Thanks for your help,
Joel

Joel DuBien

unread,
Jul 21, 2015, 1:39:20 PM7/21/15
to ima...@googlegroups.com
I just found this link: https://developers.google.com/interactive-media-ads/docs/sdks/html5/vpaid2js

That is helpful. I'm not sure you can claim VPAID 2.0 compliance when you are not passing elements like the spec requires. I'll see if we can work around these issues.

-Joel

Tyler Sidell (IMA SDK Team)

unread,
Jul 21, 2015, 5:03:16 PM7/21/15
to Interactive Media Ads SDK
Hi Joel,

Thank you for reaching out. As VPAID2 support is currently in beta for HTML5, we are constantly working to make improvements to the interaction between these ad creatives and the IMA SDK.  But for now, the IMA HTML5 SDK doesn't provide the actual video element to the ad for security purposes.  Instead it provides a proxy element that mimics much of the functionality of the normal video element. There should be no behavior changes in the rendering of the creatives.

Cheers,
Tyler Sidell
IMA SDK Team

Moshe Kestenbaum

unread,
Nov 10, 2015, 2:31:15 AM11/10/15
to Interactive Media Ads SDK
In particular, you are not providing the volume property for the videoSlot object.

Tyler Sidell (IMA SDK Team)

unread,
Nov 10, 2015, 1:50:11 PM11/10/15
to Interactive Media Ads SDK
Hi Moshe,

I will speak to the rest of the team about providing the volume property for the videoSlot object.  I will update this thread once there is further information.

Thanks,
Tyler Sidell
IMA SDK Team

cal...@yahoo-inc.com

unread,
Nov 11, 2015, 5:57:38 PM11/11/15
to Interactive Media Ads SDK
Hi Tyler,

It would be great if the muted property was provided in addition to volume.

Thanks,
Caleb

Tyler Sidell (IMA SDK Team)

unread,
Nov 12, 2015, 10:06:25 AM11/12/15
to Interactive Media Ads SDK
Hi Caleb,

Thanks for the suggestion.  I will let the rest of the team know.

Cheers,
Tyler Sidell
IMA SDK Team

Aleksei Zbinyakov

unread,
Apr 20, 2017, 11:04:32 PM4/20/17
to Interactive Media Ads SDK
Hello, just impact with your vpaid implemntation, the problem for me that videoslot is placed to upper frame, so I can't control position of video in videoBanner, any suggestions ? 

Chris Feldman (IMA SDK Team)

unread,
Apr 21, 2017, 3:06:04 PM4/21/17
to Interactive Media Ads SDK
Hi Aleksei,

I'm not sure I understand what problem you're having. Can you please clarify the issue? I suggest testing to see if you can reproduce the problem in one of our HTML5 samples. If you do see the same behavior in our sample then please provide us detailed steps for us to replicate the problem. I'd also ask that you please open a new thread, as it makes it easier for us to track people's support cases.

Regards,
Chris Feldman
IMA SDK Team

Bray Almini

unread,
Oct 12, 2017, 7:48:38 PM10/12/17
to Interactive Media Ads SDK
This is actually a problem now that Safari has disabled autoplay when a video element contains audio. It is recommended that the JS VPAID unit should await a promise when calling play(). If a promise is not returned, the JS VPAID unit is supposed to treat that as if the browser did not break autoplay functionality. This promise being returned is a part of most modern browsers, but as the IMA SDK for HTML5 test page is returning a proxy object, a promise can't be obtained, thus there is no transparency to what the video element actually did when asked to play().

That the lack of a promise would imply in that the browser did not support returning a promise from play(), and with also suggest that the ad wouldn't have had a problem playing.

Example of logic:

+ var playPromise = videoSlot.play();
+ if (playPromise === undefined) {
+ // The browser did not support returning a promise when calling play().
+ // Assume that the video is playing.
+ //
+ // Google IMA SDK always incorrectly returns undefined
+ // due to lack of direct access to video element.
+ adIsAutoPlaying();
+ } else {
+ // Got a promise
+ playPromise.then(function () {
+ // Automatic playback started
+ adIsAutoPlaying();
+ }).catch(function (error) {
+ // Show a UI element to let the user manually start playback.
+ adIsNotAutoPlaying();
+ });
+ }



Is there any expectation of if and when this will be fixed?

References:

Thank you,
Bray Almini
Senior Software Engineer
Extreme Reach

Joshua Lagonera (IMA SDK Team)

unread,
Oct 13, 2017, 3:04:29 AM10/13/17
to Interactive Media Ads SDK
Hi Bray,

This is currently a known issue and the team is actively investigating it in order to provide a solution as soon as possible. However, we do not have any updates yet. 

That said, I will get back to you once we have obtained proper updates from the rest of the team.

Regards,
Joshua Lagonera
IMA SDK Team

Joshua Lagonera (IMA SDK Team)

unread,
Dec 13, 2017, 3:07:32 AM12/13/17
to Interactive Media Ads SDK
Hi there,

I've just received a proper update from the team that this issue should be fixed. You can take a look at our Release Notes for updates on the SDK. 

Regards,
Joshua Lagonera
IMA SDK Team

On Friday, October 13, 2017 at 7:48:38 AM UTC+8, Bray Almini wrote:

AdwaysFRANCE

unread,
May 3, 2018, 9:53:04 AM5/3/18
to Interactive Media Ads SDK
Hi Tyler,

It would be great if we can acces to the current time of the video and have acces (by the proxy) at the pause and play methods.
Do you think it will be possible ?

Thanks.

David.

Chris Feldman (IMA SDK Team)

unread,
May 3, 2018, 2:55:51 PM5/3/18
to Interactive Media Ads SDK
Hi David,

If you need further access to the DOM or page elements, I'd suggest using the INSECURE VPAID mode. As this is a very old thread, for any further questions or issues, we ask that you please create a new post. This helps us to keep the forum organized and more easily searchable.

Thank you,
Chris Feldman
IMA SDK Team

AdwaysFRANCE

unread,
May 4, 2018, 6:11:23 AM5/4/18
to Interactive Media Ads SDK
Hi Chris, 
Thanks for the response..
It works, I can acces the real video slot.

Thank you.

David.

Deepika Uragayala (IMA SDK Team)

unread,
May 4, 2018, 1:08:36 PM5/4/18
to Interactive Media Ads SDK
Hi David,

Chris is OOO and I'll be assisting you with your issue today.

We will continue our discussion in this thread about the issue on which you are looking for an update. If you have any new issues, please open a new thread for better tracking purposes.

Regards,
Deepika Uragayala
IMA  SDK Team

Alexey Lunacharsky

unread,
Mar 9, 2019, 12:15:25 PM3/9/19
to Interactive Media Ads SDK
Hello,

Looks after 3.5 years volume is still not there, any ideas how should I implement getAdVolume/setAdVolume for my vpaid using the IMA videoSlot proxy?

Thanks,
Alex

ima-sdk-fo...@google.com

unread,
Mar 11, 2019, 1:20:09 AM3/11/19
to ima...@googlegroups.com
Hi Alex,

Thanks for reaching out to us.

I'd suggest using the INSECURE VPAID mode to get further access to the DOM or page elements.

Since this is an old thread, please create a new post as this helps us keep the forum organized.


Regards,
Janica Khemlani
IMA SDK Team

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages