BCOVPlayerSDKManager(BCOVDAIAdditions) Category Reference

Declared in BCOVDAIComponent.h

Overview

Category methods added to BCOVPlayerSDKManager to support DAI.

– createDAIPlaybackControllerWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:viewController:companionSlots:viewStrategy:

Creates and returns a new playback controller with the specified IMASettings object, IMAAdsRenderingSettings object, view strategy, and ad container. The returned playback controller will be configured with a DAI session provider.

- (id<BCOVPlaybackController>)createDAIPlaybackControllerWithSettings:(nullable IMASettings *)settings adsRenderingSettings:(nullable IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(nullable BCOVDAIAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer viewController:(UIViewController *)adContainerViewController companionSlots:(nullable NSArray *)companionSlots viewStrategy:(nullable BCOVPlaybackControllerViewStrategy)strategy

Parameters

settings

An IMASettings that will be used to configure any IMAAdsLoader object used by the returned playback controller.

adsRenderingSettings

An IMAAdsRenderingSettings that will be used to configure any IMAAdsManager object used by the returned playback controller.

adsRequestPolicy

BCOVDAIAdsRequestPolicy instance to generate IMAStreamRequests for use by a given input playback session.

adContainer

the view in which the ad will be displayed and the ad information UI will be rendered.

adContainerViewController

The view controller containing the ad container. If not provided here, must be set on the IMAAdDisplayContainer before making an ads or stream request.

companionSlots

the list of IMACompanionAdSlot instances. Can be nil or empty.

strategy

A view strategy that determines the view for the returned playback controller.

Return Value

A new playback controller with the specified parameters.

Discussion

Creates and returns a new playback controller with the specified IMASettings object, IMAAdsRenderingSettings object, view strategy, and ad container. The returned playback controller will be configured with a DAI session provider.

Declared In

BCOVDAIComponent.h

– createDAIPlaybackControllerWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:viewController:companionSlots:viewStrategy:options:

Creates and returns a new playback controller with the specified IMASettings object, IMAAdsRenderingSettings object, view strategy, and ad container. The returned playback controller will be configured with a DAI session provider.

- (id<BCOVPlaybackController>)createDAIPlaybackControllerWithSettings:(nullable IMASettings *)settings adsRenderingSettings:(nullable IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(nullable BCOVDAIAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer viewController:(UIViewController *)adContainerViewController companionSlots:(nullable NSArray *)companionSlots viewStrategy:(nullable BCOVPlaybackControllerViewStrategy)strategy options:(nullable NSDictionary *)options

Parameters

settings

An IMASettings that will be used to configure any IMAAdsLoader object used by the returned playback controller.

adsRenderingSettings

An IMAAdsRenderingSettings that will be used to configure any IMAAdsManager object used by the returned playback controller.

adsRequestPolicy

BCOVDAIAdsRequestPolicy instance to generate IMAStreamRequests for use by a given input playback session.

adContainer

the view in which the ad will be displayed and the ad information UI will be rendered.

adContainerViewController

The view controller containing the ad container. If not provided here, must be set on the IMAAdDisplayContainer before making an ads or stream request.

companionSlots

the list of IMACompanionAdSlot instances. Can be nil or empty.

strategy

A view strategy that determines the view for the returned playback controller.

options

An NSDictionary of DAI options. Can be nil or empty. The only valid option keys are kBCOVDAIOptionDAIPlaybackSessionDelegateKey See the “Modifying the IMAStreamRequest” section of the DAI plugin README for more information.

Return Value

A new playback controller with the specified parameters.

Discussion

Creates and returns a new playback controller with the specified IMASettings object, IMAAdsRenderingSettings object, view strategy, and ad container. The returned playback controller will be configured with a DAI session provider.

Declared In

BCOVDAIComponent.h

– createDAISessionProviderWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:viewController:companionSlots:upstreamSessionProvider:

Creates and returns a new BCOVDAISessionProvider with the specified parameters.

- (id<BCOVPlaybackSessionProvider>)createDAISessionProviderWithSettings:(nullable IMASettings *)settings adsRenderingSettings:(nullable IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(nullable BCOVDAIAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer viewController:(UIViewController *)adContainerViewController companionSlots:(nullable NSArray *)companionSlots upstreamSessionProvider:(nullable id<BCOVPlaybackSessionProvider>)provider

Parameters

settings

An IMASettings that will be used to configure any IMAAdsLoader object used by the returned session provider.

adsRenderingSettings

An IMAAdsRenderingSettings that will be used to configure any IMAAdsManager object used by the returned session provider.

adsRequestPolicy

BCOVDAIAdsRequestPolicy instance to generate IMAStreamRequests for use by a given input playback session.

adContainer

the view in which the ad will be displayed and the ad information UI will be rendered.

adContainerViewController

The view controller containing the ad container. If not provided here, must be set on the IMAAdDisplayContainer before making an ads or stream request.

companionSlots

the list of IMACompanionAdSlot instances. Can be nil or empty.

provider

A session provider to attach upstream and deliver playback sessions to the returned session provider.

Return Value

A new BCOVDAISessionProvider with the specified parameters.

Discussion

Creates and returns a new BCOVDAISessionProvider with the specified parameters.

Declared In

BCOVDAIComponent.h

– createDAISessionProviderWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:viewController:companionSlots:upstreamSessionProvider:options:

Creates and returns a new BCOVDAISessionProvider with the specified parameters.

- (id<BCOVPlaybackSessionProvider>)createDAISessionProviderWithSettings:(nullable IMASettings *)settings adsRenderingSettings:(nullable IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(nullable BCOVDAIAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer viewController:(UIViewController *)adContainerViewController companionSlots:(nullable NSArray *)companionSlots upstreamSessionProvider:(nullable id<BCOVPlaybackSessionProvider>)provider options:(nullable NSDictionary *)options

Parameters

settings

An IMASettings that will be used to configure any IMAAdsLoader object used by the returned session provider.

adsRenderingSettings

An IMAAdsRenderingSettings that will be used to configure any IMAAdsManager object used by the returned session provider.

adsRequestPolicy

BCOVDAIAdsRequestPolicy instance to generate IMAStreamRequests for use by a given input playback session.

adContainer

the view in which the ad will be displayed and the ad information UI will be rendered.

adContainerViewController

The view controller containing the ad container. If not provided here, must be set on the IMAAdDisplayContainer before making an ads or stream request.

companionSlots

the list of IMACompanionAdSlot instances. Can be nil or empty.

provider

A session provider to attach upstream and deliver playback sessions to the returned session provider.

options

An NSDictionary of DAI options. Can be nil or empty. The only valid option keys are kBCOVDAIOptionDAIPlaybackSessionDelegateKey See the “Modifying the IMAStreamRequest” section of the DAI plugin README for more information.

Return Value

A new BCOVDAISessionProvider with the specified parameters.

Discussion

Creates and returns a new BCOVDAISessionProvider with the specified parameters.

Declared In

BCOVDAIComponent.h