ExoAdPlayer

Implementation of an AdPlayer using ExoPlayer.

ExoAdPlayer handles AdAsset as the type of Ads to be played.

Functions

Link copied to clipboard
open fun addListener(listener: Listener<AdAsset>)
Link copied to clipboard
open fun create(baseVideoView: BaseVideoView): ExoAdPlayer
open fun create(baseVideoView: BaseVideoView, adPlayerSettings: AdPlayerSettings): ExoAdPlayer
Creates an ExoAdPlayer and adds a PlayerView in the BaseVideoView.
open fun create(viewGroup: ViewGroup, eventEmitter: EventEmitter, adPlayerSettings: AdPlayerSettings): ExoAdPlayer
Creates an ExoAdPlayer and adds a PlayerView in the provided ViewGroup.
Link copied to clipboard
Link copied to clipboard
open fun loadAd(adAsset: AdAsset)
Link copied to clipboard
open fun pauseAd()
Link copied to clipboard
open fun playAd()
Link copied to clipboard
open fun release()
Link copied to clipboard
open fun removeListener(listener: Listener<AdAsset>)
Link copied to clipboard
open fun seekTo(position: Long)
Link copied to clipboard
open fun skipAd()
Link copied to clipboard
open fun stop()