com.bitmovin.player.api.advertising

com.bitmovin.player.api.advertising

Contains API to enable advertising workflows.

Types

NameSummary
Adinterface Ad
Defines basic properties available for every ad type
AdBreakinterface AdBreak : AdConfig
Contains information about an ad break.
AdBreakConfiginterface AdBreakConfig : AdTagConfig
Contains configuration options for an AdBreak.
AdConfiginterface AdConfig
Contains the base configuration options for an ad.
AdDatainterface AdData
Holds various additional ad data. Refer to ImaAdData for more information on what additional data is available when using the Google IMA SDK implementation.
AdItemdata class AdItem(val sources: Array<AdSource>, val position: String = DEFAULT_POSITION, val replaceContentDuration: Double = DEFAULT_REPLACE_CONTENT_DURATION, val preloadOffset: Double = DEFAULT_PRELOAD_OFFSET, val bitmovinAdTagLoading: Boolean = false) : Parcelable
Represents an ad break which can be scheduled for playback.
AdQuartileenum AdQuartile
Quartiles that can be reached during an ad playback.
AdsManagerAvailableCallbackfun interface AdsManagerAvailableCallback
Can be implemented to gain access to the currently used IMA AdsManager.
AdSourcedata class AdSource@JvmOverloadsconstructor(val type: AdSourceType, val tag: String, val vastLoadTimeout: Double = DEFAULT_VAST_LOAD_TIMEOUT, val videoLoadTimeout: Double = DEFAULT_VIDEO_LOAD_TIMEOUT) : Parcelable
Represents an ad source which can be assigned to an AdItem. An AdItem can have multiple AdSources as waterfalling option.
AdSourceType@Serializable
enum AdSourceType : Parcelable, Enum<AdSourceType>
The available types an AdSource can have.
AdTagclass AdTag(val url: String, val type: AdTagType)
Defines the url and type of an ad manifest.
AdTagConfiginterface AdTagConfig : AdConfig
Contains configuration options for an AdTag.
AdTagTypeenum AdTagType : Enum<AdTagType>
Types that can be specified for an AdTag.
AdvertisingApiinterface AdvertisingApi
Provides the means to interact with advertising features. Accessible through Player.ads.
AdvertisingConfigdata class AdvertisingConfig(val schedule: List<AdItem> = emptyList(), val companionAdContainers: List<CompanionAdContainer>? = null, var adsManagerAvailableCallback: AdsManagerAvailableCallback? = null, var beforeInitialization: BeforeInitializationCallback? = null, val imaUiElements: List<ImaUiElement>? = null, val ima: ImaConfig = ImaConfig(), val bitmovin: BitmovinAdvertisingConfig = BitmovinAdvertisingConfig(), val shouldPlayAdBreak: ShouldPlayAdBreakCallback = ShouldPlayAdBreakCallback true, val shouldLoadAdItem: ShouldLoadAdItemCallback = ShouldLoadAdItemCallback true, val shouldPlaySeekedOverAdItems: ShouldPlaySeekedOverAdItemsCallback? = null, val enableGaplessAdPlayback: Boolean = false) : Parcelable
Contains configuration values regarding the ads which should be played back by the player.
BeforeInitializationCallbackfun interface BeforeInitializationCallback
A callback to be invoked before IMA initialization, exposing the IMA settings.
CompanionAdContainerdata class CompanionAdContainer(val container: ViewGroup, val width: Int, val height: Int)
LinearAdinterface LinearAd : Ad
Defines a linear ad which requires the playback of the content to stop
LinearAdUiConfigdata class LinearAdUiConfig(val requestsUi: Boolean)
OverlayAdinterface OverlayAd : Ad
Defines an ad which gets displayed during content playback
SeekedOverContextdata class SeekedOverContext
Additional information on the seek operation.
ShouldLoadAdItemCallbackfun interface ShouldLoadAdItemCallback
Can be implemented to receive a callback before an ad item is loaded.
ShouldPlayAdBreakCallbackfun interface ShouldPlayAdBreakCallback
Can be implemented to receive a callback every time an ad break is about to start.
ShouldPlaySeekedOverAdItemsCallbackfun interface ShouldPlaySeekedOverAdItemsCallback
Invoked after a forward seek or timeshift crosses one or more scheduled ad items.