iOS fullscreen movie player with ads in iOS5

473 views
Skip to first unread message

Donny Cheng

unread,
Oct 8, 2013, 4:13:48 AM10/8/13
to ima...@googlegroups.com
Hi,

I am adding an ad in a fullscreen movie player. I set the learn more button to trigger my in app browser
It works find except when tapping "Learn more" button, there are some problems:
1) movie player goes back to non fullscreen itself right after my tapping
2) when scroll the in app browser, it crashes.

It is alright when I use iOS6.
Anyone has also experienced this?

Thanks in advance.

p.s. My device: iOS5.1.1, iPad, latest version of IMA SDK

Shawn Busolits (IMA SDK Team)

unread,
Oct 8, 2013, 10:28:23 AM10/8/13
to ima...@googlegroups.com
Hey Donny,

Thanks for the info - could you give me some more details on how you made your player fullscreen? e.g. which video player are you using (AVPlayer, MPMoviePlayerController) and what are you doing to make it fullscreen?

Thanks,
Shawn Busolits
IMA SDK Team

Donny Cheng

unread,
Oct 8, 2013, 10:29:43 PM10/8/13
to ima...@googlegroups.com
Hi Shawn,

I created the movie player by MPMoviePlayerController.

When in fullscreen iOS5, I cannot add to my movie player so I add the adview to my rootViewController. It works fine in the ad except tapping "Learn more".

Additional information:
In iOS6 fullscreen, I get a view like this:

      UIWindow *window = [[UIApplication sharedApplication].windows objectAtIndex:0];

      UIView * videoView = [[window subviews] lastObject];

and have the adview added to videoView .
In both iOS non fullscreen, I simply add to my movie player view. There are no problems in non fullscreen in both iOS.

Hope it could help.
Thanks

Shawn Busolits (IMA SDK Team)

unread,
Oct 10, 2013, 3:32:27 PM10/10/13
to ima...@googlegroups.com
Hey Donny,

Do you have a sample Xcode project you'd be able to share with me? I don't have an implementation with MPMoviePlayerController on hand, so I could get you more info sooner if you have one you can share. If you don't want to post it on the forum you can email it to me using the "Reply to author" option in the drop down next to the reply button for this message.

Thanks,
Shawn Busolits
IMA SDK Team

Donny Cheng

unread,
Oct 10, 2013, 10:41:50 PM10/10/13
to ima...@googlegroups.com
Hi Shawn,

I am afraid I cannot share the project with you. 
Let me see if I can make a dummy project to show you the problem.
However I need some time to prepare it.

Thanks,
Donny


On Tuesday, 8 October 2013 16:13:48 UTC+8, Donny Cheng wrote:

Donny Cheng

unread,
Oct 11, 2013, 5:51:11 AM10/11/13
to ima...@googlegroups.com
Hi Shawn,

Luckily, I have quickly modified Google IMA sample project to reproduce my problem.
Please download the project here:

The layout is a bit messy but at least when you play the ad in "Ad rules" tab, there are "learn more" and you can tap it to see my problem (status bar is landscape while the webview is portrait)

Thanks for your help,
Donny

On Tuesday, 8 October 2013 16:13:48 UTC+8, Donny Cheng wrote:

Donny Cheng

unread,
Oct 11, 2013, 5:55:09 AM10/11/13
to ima...@googlegroups.com
Oh by the way, the sample project is not using MPMoviePlayerController but still can reproduce the problems. 
It does not seem to be the movie player that cause the issue.

Anyways, this is my opinion only.
Looking forwards to your solution.

Thanks

Shawn Busolits

unread,
Oct 11, 2013, 11:19:43 AM10/11/13
to ima...@googlegroups.com
Hey Donny,

Thanks so much for the sample - this should make turnaround much faster. I am able to reproduce the problem, so hopefully we will have a fix soon.

Thanks,
Shawn Busolits
IMA SDK Team

Shawn Busolits (IMA SDK Team)

unread,
Oct 14, 2013, 4:41:20 PM10/14/13
to ima...@googlegroups.com
Hey Donny,

Taking a look at your sample, I can see the issue with the browser on clickthrough (device in landscape but browser in portrait) but I'm not able to reproduce the 2 issues that started this thread - the video exiting fullscreen on click and the browser crashing when scrolling. Do you have anything you can share with me that would show those issues?


Thanks,
Shawn Busolits
IMA SDK Team

Donny Cheng

unread,
Oct 16, 2013, 2:35:04 AM10/16/13
to ima...@googlegroups.com
Hi Shawn,

I cannot reproduce the 2nd problem in the sample I sent you.

However I think it may be related to the first problem because I tested in my app in iOS5, when I tapped the "Learn more" button in a non fullscreen movie, I could scroll successfully.
When in fullscreen, the app crashed when scrolling (the movie is set to non fullscreen automatically before, as stated in this thread)

So I think the first problem is the origin of all the problems

Let me know if you need any further information

Donny

Shawn Busolits (IMA SDK Team)

unread,
Oct 16, 2013, 11:10:37 AM10/16/13
to ima...@googlegroups.com
Hey Donny,

In that case we'll take a look at the first problem to see if we can figure out what's going on.

Thanks,
Shawn Busolits
IMA SDK Team

Donny Cheng

unread,
Oct 16, 2013, 10:17:11 PM10/16/13
to ima...@googlegroups.com
Thanks Shawn,

I am looking forward to your solution.

Donny

Donny Cheng

unread,
Oct 23, 2013, 10:22:45 PM10/23/13
to ima...@googlegroups.com
Hi Shawn,

May I know your progress in the issue?

Thanks,
Donny

Shawn Busolits (IMA SDK Team)

unread,
Oct 24, 2013, 12:55:35 PM10/24/13
to ima...@googlegroups.com
Hey Donny,

We're still looking at this one. We're hoping to get a fix out soon - I'll let you know as soon as we do.

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