Advert goes into fullscreen mode on start on iOS 10

317 views
Skip to first unread message

16bi...@gmail.com

unread,
Feb 3, 2017, 11:36:13 AM2/3/17
to Interactive Media Ads SDK
Hi there,

I'm using the iOS IMA SDK and have an issue where on iOS 10 devices, the advert automatically transitions into full-screen mode rather than remaining in the embedded WKWebView.

I've attached 2 images showing what this looks like.

I believe the problem is related to WebKit's changes in iOS 10 relating to the 'playsinline' attribute on video elements.
I've inspected the WKWebView in Safari dev tools and the video element doesn't contain the new 'playsinline' attribute - it does however contain the 'webkit-playsinline' - which I think is now deprecated.

I've tried to dynamically inject some Javascript which adds this attribute to the video element but this didn't appear to fix the issue.

Is this something you guys have control over or does the provider of the VAST URL provide this information?


Thanks,

Dave
ios9-advert.png
ios10-advert.PNG

Veer Arjun Busani

unread,
Feb 3, 2017, 3:46:26 PM2/3/17
to Interactive Media Ads SDK
Hi Dave,

Our SDK does not support use of WKWebView/ HTML SDK to load video ads natively in iOS. You would have to use our native iOS framework and we do support inline. You can go through our sample ad tags to test within your application. We also have a few sample apps for you to test as well. They all support inline playback.

Thanks,
Arjun Busani
IMA SDK Team

16bi...@gmail.com

unread,
Feb 6, 2017, 6:32:00 AM2/6/17
to Interactive Media Ads SDK
Hi Arjun,

I am using the native iOS SDK. 

I'm loading the IMA ads view on a fullscreen AVPlayerViewController. The IMAAd view appears over this and works correctly on iOS 9 devices, however on iOS 10 it plays in the fullscreen mode instead of being inline. There's no way to programmatically detect if the user taps the 'Done' button therefore when returning to the inline view the ad just stops. If you tap the minimise button, the adview goes back to how it should be displayed (see ios9-advert.png).

When generating the <video> html element I've noticed you haven't included the 'playsinline' attribute which means the video will initially go fullscreen for iOS 10 devices. Can this be changed in the iOS SDK?

Cheers,
Dave

Veer Arjun Busani

unread,
Feb 6, 2017, 12:03:14 PM2/6/17
to Interactive Media Ads SDK
Hi Dave,

Currently, the iOS SDK does not support AVPlayerViewController. You would have to use AVPlayer and customize it to show it as full screen in your app. Also, the playsinline attribute is only for HTML mobile ads and not for native implementation.

Thanks,
Arjun Busani
IMA SDK Team

Reply all
Reply to author
Forward
0 new messages