MuxImaAdsListener

class MuxImaAdsListener : AdErrorEvent.AdErrorListener, AdEvent.AdEventListener

Listens for AdErrorEvent and AdEvents from an IMA Ads loader.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onAdError(adErrorEvent: AdErrorEvent)

Handles VAST and other manifest-fetching errors

Link copied to clipboard
open override fun onAdEvent(adEvent: AdEvent)

This is the main boilerplate, all processing logic is contained here. Depending on the phase the ad is in (a single ad can have multiple phases from loading to the ending) each of them is handled here and an appropriate AdPlayback event is dispatched to the backend.