BCOVPUIPlayerViewDelegate Protocol Reference

Conforms to NSObject
Declared in BCOVPUIPlayerView.h

Overview

Conform to this protocol to receive information for regarding the BCOVPUIPlayerView.

– playerView:willTransitionToScreenMode:

Called before the playerView is begins transitioning to a new screen mode.

- (void)playerView:(BCOVPUIPlayerView *)playerView willTransitionToScreenMode:(BCOVPUIScreenMode)screenMode

Parameters

playerView

The player view that is transitioning.

screenMode

The screen mode that will be transitioned to.

Discussion

Called before the playerView is begins transitioning to a new screen mode.

Declared In

BCOVPUIPlayerView.h

– playerView:didTransitionToScreenMode:

Called when the playerView is finished transitioning to a new screen mode.

- (void)playerView:(BCOVPUIPlayerView *)playerView didTransitionToScreenMode:(BCOVPUIScreenMode)screenMode

Parameters

playerView

The player view that is transitioning.

screenMode

The screen mode that was transitioned to.

Discussion

Called when the playerView is finished transitioning to a new screen mode.

Declared In

BCOVPUIPlayerView.h

– playerView:controlsFadingViewDidFadeOut:

Called when the playerView controls faded out.

- (void)playerView:(BCOVPUIPlayerView *)playerView controlsFadingViewDidFadeOut:(UIView *)controlsFadingView

Parameters

playerView

The player view that manages the controls.

controlsFadingView

The controls fading view that faded out.

Discussion

Called when the playerView controls faded out.

Declared In

BCOVPUIPlayerView.h

– playerView:controlsFadingViewDidFadeIn:

Called when the playerView controls faded in.

- (void)playerView:(BCOVPUIPlayerView *)playerView controlsFadingViewDidFadeIn:(UIView *)controlsFadingView

Parameters

playerView

The player view that manages the controls.

controlsFadingView

The controls fading view that faded in.

Discussion

Called when the playerView controls faded in.

Declared In

BCOVPUIPlayerView.h

– willOpenInAppBrowserWithAd:

This delegate method will be called when the learn more button has been pressed and the clickthrough URL assosiated with the ad will be opened in the in-app browser.

- (void)willOpenInAppBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL will open in the in-app browser.

Discussion

This delegate method will be called when the learn more button has been pressed and the clickthrough URL assosiated with the ad will be opened in the in-app browser.

Declared In

BCOVPUIPlayerView.h

– didOpenInAppBrowserWithAd:

This delegate method will be called when the learn more button has been pressed and the clickthrough URL assosiated with the ad opened in the in-app browser.

- (void)didOpenInAppBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL opened in the in-app browser.

Discussion

This delegate method will be called when the learn more button has been pressed and the clickthrough URL assosiated with the ad opened in the in-app browser.

Declared In

BCOVPUIPlayerView.h

– willCloseInAppBrowserWithAd:

This delegate method will be called when the in-app browser will be closed.

- (void)willCloseInAppBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL will close in the in-app browser.

Discussion

This delegate method will be called when the in-app browser will be closed.

Declared In

BCOVPUIPlayerView.h

– didCloseInAppBrowserWithAd:

This delegate method will be called when the in-app browser has closed.

- (void)didCloseInAppBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL closed from the in-app browser.

Discussion

This delegate method will be called when the in-app browser has closed.

Declared In

BCOVPUIPlayerView.h

– willOpenExternalBrowserWithAd:

This optional delegate method will be called when the clickthrough url will open the in the system browser.

- (void)willOpenExternalBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL will be opened in the system browser.

Discussion

This optional delegate method will be called when the clickthrough url will open the in the system browser.

Declared In

BCOVPUIPlayerView.h

– didReturnFromExternalBrowserWithAd:

This optional delegate method will be called when the app has returned to the foreground after the clickthrough url was opened in the system browser.

- (void)didReturnFromExternalBrowserWithAd:(BCOVAd *)ad

Parameters

ad

The ad whose clickthrough URL was opened in the system browser.

Discussion

This optional delegate method will be called when the app has returned to the foreground after the clickthrough url was opened in the system browser.

Declared In

BCOVPUIPlayerView.h

– didSetVideo360NavigationMethod:projectionStyle:

This optional delegate method will be called when the Video 360 button in the control bar is tapped. This is used to switch your current UIViewController orientation to landscape when using the BCOVVideo360ProjectionStyleVRGoggles projection.

- (void)didSetVideo360NavigationMethod:(BCOVPUIVideo360NavigationMethod)navigationMethod projectionStyle:(BCOVVideo360ProjectionStyle)projectionStyle

Parameters

navigationMethod

The new navigation method of type BCOVPUIVideo360NavigationMethod

Discussion

This optional delegate method will be called when the Video 360 button in the control bar is tapped. This is used to switch your current UIViewController orientation to landscape when using the BCOVVideo360ProjectionStyleVRGoggles projection.

Declared In

BCOVPUIPlayerView.h