FreewheelAdsProvider
FreeWheel AdManager implementation of the ogplayer slot-ads SPI.
val player = OGPlayer.Builder(context)
.setAdsProvider(FreewheelAdsProvider(activity))
.build()
player.load(
OGMediaItem.Builder(url)
.setAdBreaks(FreewheelConfig.Builder(...).build())
.build(),
)Content copied to clipboard
The FreeWheel AdManager SDK is customer-licensed and NOT bundled: the host app must add its own FWAdManager.aar. Missing it fails fast here with an actionable message instead of a NoClassDefFoundError mid-play.
The SDK owns the complete ad UI (yellow bar, countdown, skip, learn-more); FreeWheel renders only the ad media itself into the player's slot-ad layer.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun startSession(host: SlotAdsHost, callbacks: SlotAdsProviderCallbacks, config: AdBreakConfig)
Link copied to clipboard