0

I am a beginner in ObjC and I'm making a game using Sparrow Framework 1.4 I'm trying to add video ad into the app. I followed the instruction from the ad SDK and put these lines of code in AppDelegate:

viewController = [[FWPlayerViewController alloc] init];

window.rootViewController = viewController;

When I run the project, I can hear the audio, but not the video. My game screen is showing, so I'm thinking that the video ad is not visible because it is playing under Sparrow view.

Is there a way to launch this video ad viewController so that it'll always be visible (on top of everything)? Thanks!

  • If you hide the Sparrow VC can you see the video? – brandonscript May 22 '14 at 16:04
  • I tried that by running the ad code and commenting the rest of sparrow, and I get a blank pink screen. – user3665823 May 23 '14 at 01:30
  • Work on getting the video running then - that's probably the problem then. – brandonscript May 23 '14 at 01:32
  • I think that blank pink screen is Sparrow's background, because if I run the ad in a separate project (no Sparrow) I can see the video. So I tried to add the ad viewController.view as Sparrow subview. Now I can see the ad frame box (!), but the ad is not running (no voice, empty black window). – user3665823 May 23 '14 at 01:36
  • Ahhh OK that changes things then. What happens if you present the video as a modal view controller popup instead? – brandonscript May 23 '14 at 01:41
  • Being a novice in ObjC, I don't know how to do that. I will look around and try to do that and report back.. – user3665823 May 23 '14 at 01:46
  • http://stackoverflow.com/questions/1529632/present-and-dismiss-modal-view-controller :) – brandonscript May 23 '14 at 01:46

0 Answers0