Ads playing sound but no video when inside a container view

100 views
Skip to first unread message

Matt Barth

unread,
Oct 26, 2015, 4:05:28 PM10/26/15
to Interactive Media Ads SDK
Hi,

I am using GoogleInteractiveMediaAds in two different view controllers for my iOS app. In one of the controllers the AVPlayer launches, and the ad plays immediately without any problems. This controller has the AVPlayer directly in the view. The other controller I am using is an embedded controller within another view. For some reason this embedded controller has the ads play with only sound, no picture. There also is a much longer delay for the sound to start than the controller where the ad picture is working. In the broken one, the video comes up, pauses, the sound from the ads play, then the video starts playing again after the sound goes away. If I press play on the AVPlayer controls while the ad sound is still running both the sound from the ad and the video play at the same time, but again only the video picture is shown, not the ad picture at any point.

I also have a view I was putting on top of the player with the title of the video. I tried removing that, but nothing changed. My code for the two controllers is exactly the same, so I am not sure why one controller works perfectly with picture and sound while the other only plays sound. The only difference I can think of is that the one not working gets embedded in the container of another view.

Could containers be messing up the SDK? Have you heard of this problem happening before?

Thanks

Tyler Sidell (IMA SDK Team)

unread,
Oct 26, 2015, 4:57:15 PM10/26/15
to Interactive Media Ads SDK
Hi Matt,

We have not heard of this problem happening before.  In order to gather more information and properly troubleshoot would you be able to send us a sample project where we can see this behavior in action?  You can use the reply privately to author button that is provided by this forum.  Also, if you can provide detailed reproducible steps that would also help.

Have you tried to reproduce the issue by starting with our sample examples and adding your implementation?  This could help narrow down if it is a particular issue with the handling of ad playback by the AVPlayer itself. 

Thanks,
Tyler Sidell
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages