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
base Video View
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
base Video View
where the Ad will be rendered.
ad Player Settings
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
view Group
where the Ad will be rendered.
event Emitter
the event emitter
ad Player Settings
configuration object for the ad player