InstreamAdPlayer

This interface is used for playing instream ad

Functions

Link copied to clipboard
abstract fun getAdDuration(videoAd: VideoAd): Long

Gets ad video duration

Link copied to clipboard
abstract fun getAdPosition(videoAd: VideoAd): Long

Gets current ad video position

Link copied to clipboard
abstract fun getVolume(videoAd: VideoAd): Float

Gets player volume level in range 0.0, 1.0

Link copied to clipboard
abstract fun isPlayingAd(videoAd: VideoAd): Boolean

Gets value indicating whether player is playing ad

Link copied to clipboard
abstract fun pauseAd(videoAd: VideoAd)

Pauses playing ad

Link copied to clipboard
abstract fun playAd(videoAd: VideoAd)

Starts playing ad

Link copied to clipboard
abstract fun prepareAd(videoAd: VideoAd)

Prepares player for playing video ad. Implement only this method for prepare Ad.

Link copied to clipboard
abstract fun releaseAd(videoAd: VideoAd)

Releases ad player object

Link copied to clipboard
abstract fun resumeAd(videoAd: VideoAd)

Resumes playing ad

Link copied to clipboard
abstract fun setInstreamAdPlayerListener(instreamAdPlayerListener: InstreamAdPlayerListener?)

Sets listener for ad player events. For each event of the instream ad player, the corresponding callback must be called on this object.

Link copied to clipboard
abstract fun setVolume(videoAd: VideoAd, volume: Float)

Sets ad player volume, with 0 being silence and 1 being maximum volume level

Link copied to clipboard
abstract fun skipAd(videoAd: VideoAd)

Skips playing ad

Link copied to clipboard
abstract fun stopAd(videoAd: VideoAd)

Stops playing ad