BCOVFWSessionProviderOptions Class Reference

Inherits from NSObject
Declared in BCOVFWSessionProvider.h

Overview

Optional configuration for FW session providers.

  waitForAVPlayerDuration

Whether or not to wait for the AVPlayer item to report a duration before calling the adContextPolicy. When set to NO, the duration passed into the BCOVFWSessionProviderAdContextPolicy block may not be accurate. Defaults to Yes.

@property (nonatomic, assign, getter=shouldWaitForAVPlayerDuration) BOOL waitForAVPlayerDuration

Discussion

Whether or not to wait for the AVPlayer item to report a duration before calling the adContextPolicy. When set to NO, the duration passed into the BCOVFWSessionProviderAdContextPolicy block may not be accurate. Defaults to Yes.

Declared In

BCOVFWSessionProvider.h

  adTimeoutInterval

The number of seconds the session provider will wait for an ad request before delivering a session without using ads. Defaults to 3 seconds.

@property (nonatomic, assign) NSTimeInterval adTimeoutInterval

Discussion

The number of seconds the session provider will wait for an ad request before delivering a session without using ads. Defaults to 3 seconds.

Declared In

BCOVFWSessionProvider.h

  cuePointProgressPolicy

A policy that determines whether a FreeWheel ad should be played when a given cue point event occurs, and if so, where playback should resume. Defaults to BCOVProgressPolicyProcessFinalCuePoint, BCOVProgressPolicyResumeFromContentPlayhead, YES.

@property (nonatomic, strong) BCOVCuePointProgressPolicy *cuePointProgressPolicy

Discussion

A policy that determines whether a FreeWheel ad should be played when a given cue point event occurs, and if so, where playback should resume. Defaults to BCOVProgressPolicyProcessFinalCuePoint, BCOVProgressPolicyResumeFromContentPlayhead, YES.

Declared In

BCOVFWSessionProvider.h

  preloadSlots

Determines whether or not slots are preloaded so they are ready to play when hit. When set to YES, preroll slots will load as soon as possible. Midrolls slots will load X seconds before the slot is to be played, determined by timeBeforeAdToPreload. Defaults to NO.

@property (nonatomic, assign, getter=shouldPreloadSlots) BOOL preloadSlots

Discussion

Determines whether or not slots are preloaded so they are ready to play when hit. When set to YES, preroll slots will load as soon as possible. Midrolls slots will load X seconds before the slot is to be played, determined by timeBeforeAdToPreload. Defaults to NO.

Declared In

BCOVFWSessionProvider.h

  timeBeforeAdToPreload

If slot preloading is enabled, this is the amount of seconds before the ad to preload it. Defaults to 10 seconds.

@property (nonatomic, assign) NSTimeInterval timeBeforeAdToPreload

Discussion

If slot preloading is enabled, this is the amount of seconds before the ad to preload it. Defaults to 10 seconds.

Declared In

BCOVFWSessionProvider.h