BCOVPlayerSDKManager(BCOVIMAAdditions) Category Reference

Declared in BCOVIMAComponent.h

Overview

Category methods added to BCOVPlayerSDKManager to support IMA.

– createIMAPlaybackControllerWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer: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 an IMA session provider.

- (id<BCOVPlaybackController>)createIMAPlaybackControllerWithSettings:(IMASettings *)settings adsRenderingSettings:(IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(BCOVIMAAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer companionSlots:(NSArray *)companionSlots viewStrategy:(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

BCOVIMAAdsRequestPolicy instance to generate IMAAdsRequests 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.

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 an IMA session provider.

Declared In

BCOVIMAComponent.h

– createIMAPlaybackControllerWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer: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 an IMA session provider.

- (id<BCOVPlaybackController>)createIMAPlaybackControllerWithSettings:(IMASettings *)settings adsRenderingSettings:(IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(BCOVIMAAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer companionSlots:(NSArray *)companionSlots viewStrategy:(BCOVPlaybackControllerViewStrategy)strategy options:(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

BCOVIMAAdsRequestPolicy instance to generate IMAAdsRequests 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.

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 IMA options. Can be nil or empty. The only valid option key is kBCOVIMAOptionIMAPlaybackSessionDelegateKey

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 an IMA session provider.

Declared In

BCOVIMAComponent.h

– createIMASessionProviderWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:companionSlots:upstreamSessionProvider:

Creates and returns a new BCOVIMASessionProvider with the specified parameters.

- (id<BCOVPlaybackSessionProvider>)createIMASessionProviderWithSettings:(IMASettings *)settings adsRenderingSettings:(IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(BCOVIMAAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer companionSlots:(NSArray *)companionSlots upstreamSessionProvider:(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

BCOVIMAAdsRequestPolicy instance to generate IMAAdsRequests 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.

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 BCOVIMASessionProvider with the specified parameters.

Discussion

Creates and returns a new BCOVIMASessionProvider with the specified parameters.

Declared In

BCOVIMAComponent.h

– createIMASessionProviderWithSettings:adsRenderingSettings:adsRequestPolicy:adContainer:companionSlots:upstreamSessionProvider:options:

Creates and returns a new BCOVIMASessionProvider with the specified parameters.

- (id<BCOVPlaybackSessionProvider>)createIMASessionProviderWithSettings:(IMASettings *)settings adsRenderingSettings:(IMAAdsRenderingSettings *)adsRenderingSettings adsRequestPolicy:(BCOVIMAAdsRequestPolicy *)adsRequestPolicy adContainer:(UIView *)adContainer companionSlots:(NSArray *)companionSlots upstreamSessionProvider:(id<BCOVPlaybackSessionProvider>)provider options:(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

BCOVIMAAdsRequestPolicy instance to generate IMAAdsRequests 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.

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 IMA options. Can be nil or empty. The only valid option key is kBCOVIMAOptionIMAPlaybackSessionDelegateKey

Return Value

A new BCOVIMASessionProvider with the specified parameters.

Discussion

Creates and returns a new BCOVIMASessionProvider with the specified parameters.

Declared In

BCOVIMAComponent.h