Re: Ads does not play in fullscreen mode

843 views
Skip to first unread message

krzysztof....@gmail.com

unread,
Sep 18, 2014, 7:05:08 AM9/18/14
to ima...@googlegroups.com
Hi,

I have the same problem. I am embeding Google IMA within a div element and ten using adsManager trying to play ad in full screen mode:

                        adsManager.init(videoContainerElement.width(), videoContainerElement.height(), ima.ViewMode.FULLSCREEN);
                        adsManager.start();

Ad is playing in a normal mode. Is there any way to play ad in full screen in HTML5?

Best,
Krzysztof

W dniu piątek, 8 marca 2013 16:50:11 UTC+1 użytkownik Shawn Busolits (IMA SDK Team) napisał:
Hi Prem,

Could you send me a link to where your code is implemented so I can take a look? Also, do you want the ads to play in fullscreen regardless of the current video mode, or only when the video is also fullscreen?

Thanks,
Shawn Busolits, IMA SDK Team

On Friday, March 8, 2013 9:59:18 AM UTC-5, premkumar Janagarajan wrote:
Hi,

We are trying to integrate our HTML5 player with IMA HTML5 SDK. We would like to play the ads in full screen mode. So we tried to set the viewmode to google.ima.ViewMode.FULLSCREEN when we initialize the adsManager. But it has no effect on any browsers in Desktop as well as tablets. 

We need to achieve this in order to facilitate a good user experience while playing midroll ads. The solution we have right now is if the user is watching the actual content in fullscreen, we exit the fullscreen mode programmatically and play the ads and then enter the fullscreen mode when the actual content resumes. As you can see, this cannot be a good user experience. 

So we would like to know how to play the ads in fullscreen mode. Is there anything we are missing when we set the viewmode to Fullscreen in adsManager? 

/Prem

Shawn Busolits (IMA SDK Team)

unread,
Sep 18, 2014, 1:27:50 PM9/18/14
to ima...@googlegroups.com
Hi Krzysztof,

Setting the view mode to fullscreen doesn't actually tell the SDK to play in fullscreen - it's intended use is to let the SDK know that you are displaying it in fullscreen. For info on how to display ads in fullscreen, I'd recommend checking out how we do it in our advanced sample. If you have any questions after taking a look at that let us know!

Thanks,
Shawn Busolits
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages