ImaAdsProvider

class ImaAdsProvider @JvmOverloads constructor(context: Context, imaCountdownEnabled: Boolean = false, imaAttributionEnabled: Boolean = false) : TimelineAdsProvider

Google IMA implementation of the ogplayer ads SPI. Maps IMA AdEvents and AdPodInfo into the SDK ad model — pod data (position/size/break type) is first-class, end to end.

Constructors

Link copied to clipboard
constructor(context: Context, imaCountdownEnabled: Boolean = false, imaAttributionEnabled: Boolean = false)

Functions

Link copied to clipboard
open fun clickAd()
Link copied to clipboard
open override fun createAdsLoader(callbacks: AdsProviderCallbacks): Any
Link copied to clipboard
open override fun release()
Link copied to clipboard
open override fun setPlayer(player: Any?)
Link copied to clipboard
open override fun skipAd()

IMA only honors a programmatic skip when it is NOT rendering its own skip button (audio ads / companion-less use). For regular video ads the IMA-rendered skip button is the only way to skip — verified empirically: AdsManager.skip() no-ops and the ad completes.