Skip to main content

FlowerMedia3ExoPlayer

Flower player class that extends Media3 ExoPlayer.

Methods​

addAdListener​

Adds an ad event listener to the player. If the listener is already registered, nothing happens.

The following describes the parameters:

ParameterTypeDescription
listenerFlowerAdsManagerListenerAd event listener to add.

removeAdListener​

Removes an ad event listener from the player. If the listener is not registered, nothing happens.

The following describes the parameters:

ParameterTypeDescription
listenerFlowerAdsManagerListenerAd event listener to remove.

setMediaItem​

This method overloads base class method, with FlowerAdConfig parameter at last.

The following describes the parameters:

ParameterTypeDescription
mediaItemMediaItemOriginal parameter from base class.
adConfigFlowerAdConfigInformation required for ad insertion.

setMediaItem​

This method overloads base class method, with FlowerAdConfig parameter at last.

The following describes the parameters:

ParameterTypeDescription
mediaItemMediaItemOriginal parameter from base class.
resetPositionBooleanOriginal parameter from base class.
adConfigFlowerAdConfigInformation required for ad insertion.

setMediaItem​

This method overloads base class method, with FlowerAdConfig parameter at last.

The following describes the parameters:

ParameterTypeDescription
mediaItemMediaItemOriginal parameter from base class.
startPositionMsLongOriginal parameter from base class.
adConfigFlowerAdConfigInformation required for ad insertion.