create
Creates an ExoAdPlayer and adds a PlayerView in the BaseVideoView.
Note: This method must be called from the UI thread.
Return
a new instance of an ExoAdPlayer.
Parameters
baseVideoView
where the Ad will be rendered.
Creates an ExoAdPlayer and adds a PlayerView in the BaseVideoView.
Note: This method must be called from the UI thread.
Return
a new instance of an ExoAdPlayer.
Parameters
baseVideoView
where the Ad will be rendered.
adPlayerSettings
configuration object for the ad player
open fun create(viewGroup: ViewGroup, eventEmitter: EventEmitter, adPlayerSettings: AdPlayerSettings): ExoAdPlayer
Creates an ExoAdPlayer and adds a PlayerView in the provided ViewGroup.
Note: This method must be called from the UI thread.
Return
a new instance of an ExoAdPlayer.
Parameters
viewGroup
where the Ad will be rendered.
eventEmitter
the event emitter
adPlayerSettings
configuration object for the ad player