Cannot click the video to play/pause the player when an overlay ad is present

265 views
Skip to first unread message

Dang Tran

unread,
Apr 5, 2018, 2:43:28 AM4/5/18
to Interactive Media Ads SDK
When loading an ad tag URL with overlay, I can confirm with the VAST Inspector that the behavior of the player is different to what is on Youtube.

Example:
https://goo.gl/ic4pz8

Steps to reproduce the issue:
1. Click play to load the ad overlay
2. Try to click on the player to pause the ad

Observation: It appears that the ad frame is covering the player itself and would not allow access to the player click events. You can pause and resume the video in the background by using the playback control.

Expected behavior should be similar to Youtube where video can be paused by click even with ad overlay.

Can you please advise if this is expected behavior or can it be enhanced to allow player click event on ad overlay?

ima-sdk-adv...@google.com

unread,
Apr 5, 2018, 4:40:22 AM4/5/18
to ima...@googlegroups.com
Hi Dang,

This is expected behavior for the Video Suite Inspector and its video player does not necessarily reflect the capabilities of the YouTube video player. This said, allow me to discuss this with the team first and see if a feature request for the Video Suite Inspector can be created for your suggestion.

Please note, however, in the event that a feature request was indeed made, there still won't be a guarantee if and when it will be implemented. For news or announcements, you may keep an eye on this blog site.

Best regards,
Peter Laurence N. Oliquino
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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.

Dang Tran

unread,
Apr 9, 2018, 7:56:20 PM4/9/18
to ima...@googlegroups.com
Hi Peter,

Thank you for getting back on this so promptly. So are you suggesting that this should be something managed by the player itself rather than the IMA plugin resizing the ad container to allow access to the player?

Kind regards,


Dang Tran

Tier 3 Technical Support Engineer, Customer Support

Brightcove Inc.

Level 17, 1 Margaret Street, Sydney, NSW, 2000


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/Z8Ftx0nVzV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+unsubscribe@googlegroups.com.

ima-sdk-adv...@google.com

unread,
Apr 10, 2018, 12:00:21 AM4/10/18
to ima...@googlegroups.com
Hi Dang,

Yes, currently, this should be managed by the player. Also, our team would like to take a closer look on this issue, that being said, could you provide a working ad tag so we can further investigate? You may reply to me via the Reply privately to author option.

Best regards,
Peter Laurence N. Oliquino
IMA SDK Team

Dang Tran

unread,
Jul 31, 2018, 10:22:14 AM7/31/18
to Interactive Media Ads SDK
Just to add the response from the IMA SDK team, for completeness of this thread.

=========================================================================

I was able to get this working in our Advanced Demo with a few changes.

In the LOADED callback, I trigger a resize of the adDisplayContainer when a non-linear ad is loaded:

if (!ad.isLinear()) {
this.onContentResumeRequested_();
this.resizeAdContainer_(adEvent.getAd());
}

My resizeAdContainer_ method looks like this:

Ads.prototype.resizeAdContainer_ = function(ad) {
var h = ad.getHeight() + 10;
var w = ad.getWidth() + 10;

this.adsManager_.resize(w, h, google.ima.ViewMode.NORMAL)

this.videoPlayer_.adContainer.style.height = h + 'px';
this.videoPlayer_.adContainer.style.width = w + 'px';
};

I found that I had to add a bit of a size buffer to ensure that the ad rendered consistently. You will also have to resize your adContainer div manually. The adsManager.resize method only resizes the inner SDK div where the ad is rendered. Additionally, you'll probably need to update your alignment. In the Advanced Demo, these changes correctly resize the container, but cause it to snap to the top left corner of the content.

With these changes, it is possible to click on the content without being blocked by the adContainer div.

Please let me know if you continue to have issues.

===============================================================



Reply all
Reply to author
Forward
0 new messages