com.bitmovin.player.api.advertising
AdvertisingApi
interface AdvertisingApi
Provides the means to interact with advertising features. Accessible through Player.ads.
Properties
| Name | Summary |
|---|---|
| activeAdBreak | abstract val activeAdBreak: AdBreak? The currently active AdBreak, or null if no ad break is active. |
| activeLinearAd | abstract val activeLinearAd: LinearAd? The currently active LinearAd, or null if no linear ad is being played back. |
| schedule | abstract val schedule: List<AdBreak> The current ad schedule of the active playback session. |
| viewGroup | abstract val viewGroup: ViewGroup? The ViewGroup in which the ad and the ad UI should be created. |
Functions
| Name | Summary |
|---|---|
| schedule | abstract fun schedule(adItem: AdItem) Schedules the adItem for playback. |
| setViewGroup | abstract fun setViewGroup(adViewGroup: ViewGroup?) Sets the ViewGroup in which the ad and the ad UI should be created. |
| skip | abstract fun skip() Skips the current ad. A successful skip is signaled via PlayerEvent.AdSkipped. |