Show Preroll ad in the Preroll View Controller.

Show Preroll ad in the Preroll View Controller.

- (void)viewDidLoad { [super viewDidLoad]; [VDOAdRequest adRequestSharedInstance]; [[VDOAdRequest adRequestSharedInstance] setPrerollAdDelegate:self]; [[VDOAdRequest adRequestSharedInstance] showPrerollAdOnView:self.view mainContentURL:@"https://cdn.vdopia.com/files/happy.mp4" playContentVideoInFullScreenMode:YES]; }

Please configure the mainContentURL to point to your content video.

Set “playContentVideoPlayInFullScreenMode:” to YES to play content video in full screen