GoogleDAIComponent

Types

Link copied to clipboard
open class Builder
Link copied to clipboard
interface Listener
Callback for listening methods from the DAI plugin

Functions

Link copied to clipboard
Link copied to clipboard
open fun getCurrentAd(): Ad
Link copied to clipboard
open fun getStreamDisplayContainer(): StreamDisplayContainer
Returns the current StreamDisplayContainer, or null if it has not been created yet.
Link copied to clipboard
Returns the current GoogleDAIVideoStreamPlayer, or null if it has not been created yet.
Link copied to clipboard
open fun onAdError(event: AdErrorEvent)
Link copied to clipboard
open fun onAdEvent(event: AdEvent)
Link copied to clipboard
open fun onAdsManagerLoaded(event: AdsManagerLoadedEvent)
Link copied to clipboard
open fun onRelease()
Link copied to clipboard
Link copied to clipboard
open fun requestLiveStream(assetKey: String, apiKey: String)
open fun requestLiveStream(assetKey: String, apiKey: String, networkCode: String)
Requests a live stream to be played
Link copied to clipboard
open fun requestVOD(contentSourceID: String, videoID: String, apiKey: String)
open fun requestVOD(contentSourceID: String, videoID: String, apiKey: String, networkCode: String)
Requests a VOD to be played
Link copied to clipboard
open fun setFallbackVideo(video: Video)
Sets fallback Video in case ads stream fails.
Link copied to clipboard
open fun skipCurrentAd()