com.yandex.mobile.ads.instream.player.ad
Interface InstreamAdPlayerListener
public interface InstreamAdPlayerListener
This interface used to handle callbacks of instream ad player. Callback calls on this object should respond to appropriate method calls on InstreamAdPlayer
Method Summary
Modifier and Type | Method and Description |
---|---|
void | onAdBufferingFinished(VideoAd videoAd)
Fire this callback when instream ad player ended buffering the videoAd
|
void | onAdBufferingStarted(VideoAd videoAd)
Fire this callback when instream ad player started buffering the videoAd
|
void | onAdCompleted(VideoAd videoAd)
Fire this callback when instream ad player completed playing videoAd
|
void | onAdPaused(VideoAd videoAd)
Fire this callback when instream ad player paused playing videoAd
|
void | onAdPrepared(VideoAd videoAd)
Fire this callback when instream ad player is ready to present videoAd
|
void | onAdResumed(VideoAd videoAd)
Fire this callback when instream ad player resumed playing videoAd
|
void | onAdSkipped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
|
void | onAdStarted(VideoAd videoAd)
Fire this callback when instream ad player started playing videoAd
|
void | onAdStopped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
|
void | onError(VideoAd videoAd, InstreamAdPlayerError error)
Fire this callback when error occures in instream ad player while preparing or playing videoAd
|
void | onVolumeChanged(VideoAd videoAd, float volume)
Fire this callback when instream ad player volume was updated
|
Method Detail
onAdPrepared
void onAdPrepared(@NonNull VideoAd videoAd)
Fire this callback when instream ad player is ready to present videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdStarted
void onAdStarted(@NonNull VideoAd videoAd)
Fire this callback when instream ad player started playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdPaused
void onAdPaused(@NonNull VideoAd videoAd)
Fire this callback when instream ad player paused playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdResumed
void onAdResumed(@NonNull VideoAd videoAd)
Fire this callback when instream ad player resumed playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdBufferingStarted
void onAdBufferingStarted(@NonNull VideoAd videoAd)
Fire this callback when instream ad player started buffering the videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdBufferingFinished
void onAdBufferingFinished(@NonNull VideoAd videoAd)
Fire this callback when instream ad player ended buffering the videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdCompleted
void onAdCompleted(@NonNull VideoAd videoAd)
Fire this callback when instream ad player completed playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onVolumeChanged
void onVolumeChanged(@NonNull VideoAd videoAd, float volume)
Fire this callback when instream ad player volume was updated
- Parameters:
videoAd
- Video Ad for which the event occurredvolume
- Volume value that was set to the player
onAdStopped
void onAdStopped(@NonNull VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onAdSkipped
void onAdSkipped(@NonNull VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
onError
void onError(@NonNull VideoAd videoAd, @NonNull InstreamAdPlayerError error)
Fire this callback when error occures in instream ad player while preparing or playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurrederror
- InstreamAdPlayerError that occurred