BCOVPUIPlayerViewDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | BCOVPUIPlayerView.h |
– playerView:willTransitionToScreenMode:
Called before the playerView is begins transitioning to a new screen mode.
- (void)playerView:(BCOVPUIPlayerView *)playerView willTransitionToScreenMode:(BCOVPUIScreenMode)screenModeParameters
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)screenModeParameters
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 *)controlsFadingViewParameters
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 *)controlsFadingViewParameters
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
– playerViewShouldDisplayThumbnailPreviewWithRect:
Called just before the thumbnail preview is set up.
- (CGRect)playerViewShouldDisplayThumbnailPreviewWithRect:(BCOVPUIPlayerView *)playerViewParameters
playerView |
The player view that will display the thumbnail preview. |
|---|
Return Value
The customized CGRect for the thumbnail preview
Discussion
Called just before the thumbnail preview is set up.
You can implement this to customize the thumbnail preview size for different devices, layouts, screen modes, etc.
The x value of the CGRect will be ignored, so you can keep the x value set to 0.
If this delegate method is not implemented the size of the thumbnail preview will be 100x56 with a vertical offset of -60.
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 *)adParameters
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 *)adParameters
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 *)adParameters
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 *)adParameters
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 *)adParameters
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 *)adParameters
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
– routePickerViewWillBeginPresentingRoutes:
Informs the delegate that the AVRoutePickerView will start presenting routes to the user.
- (void)routePickerViewWillBeginPresentingRoutes:(AVRoutePickerView *)routePickerViewDiscussion
Informs the delegate that the AVRoutePickerView will start presenting routes to the user.
Declared In
BCOVPUIPlayerView.h
– routePickerViewDidEndPresentingRoutes:
Informs the delegate that the AVRoutePickerView finished presenting routes to the user.
- (void)routePickerViewDidEndPresentingRoutes:(AVRoutePickerView *)routePickerViewDiscussion
Informs the delegate that the AVRoutePickerView finished presenting routes to the user.
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)projectionStyleParameters
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
– pictureInPictureControllerDidStartPictureInPicture:
Pass-through AVPictureInPictureControllerDelegate methods
- (void)pictureInPictureControllerDidStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureControllerDiscussion
Pass-through AVPictureInPictureControllerDelegate methods
See https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate for more information
Declared In
BCOVPUIPlayerView.h
– pictureInPictureControllerDidStopPictureInPicture:
- (void)pictureInPictureControllerDidStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController– pictureInPictureControllerWillStartPictureInPicture:
- (void)pictureInPictureControllerWillStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureController– pictureInPictureControllerWillStopPictureInPicture:
- (void)pictureInPictureControllerWillStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController– pictureInPictureController:failedToStartPictureInPictureWithError:
- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController failedToStartPictureInPictureWithError:(NSError *)error– pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:
- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:(void ( ^ ) ( BOOL ))completionHandler– progressSliderDidTouchDown:
Called after the SDK handles the event. The delegate should not block the main thread.
- (void)progressSliderDidTouchDown:(UISlider *)sliderDiscussion
Called after the SDK handles the event. The delegate should not block the main thread.
Declared In
BCOVPUIPlayerView.h
– progressSliderDidTouchUp:
Called after the SDK seeks the player to the new progress value. The delegate should not block the main thread.
- (void)progressSliderDidTouchUp:(UISlider *)sliderDiscussion
Called after the SDK seeks the player to the new progress value. The delegate should not block the main thread.
Declared In
BCOVPUIPlayerView.h
– progressSliderDidChangeValue:
Called after the SDK handles the event. The delegate should not block the main thread.
- (void)progressSliderDidChangeValue:(UISlider *)sliderDiscussion
Called after the SDK handles the event. The delegate should not block the main thread.
Declared In
BCOVPUIPlayerView.h