public interface AppLovinAdVideoPlaybackListener
| Modifier and Type | Method and Description |
|---|---|
void |
videoPlaybackBegan(AppLovinAd ad)
Triggered when a video begins playing in a video advertisement.
|
void |
videoPlaybackEnded(AppLovinAd ad,
double percentViewed,
boolean fullyWatched)
Triggered when a video stops playing in a video advertisement.
|
void videoPlaybackBegan(AppLovinAd ad)
If your app plays other videos or music, please pause them upon receiving this callback.
ad - Ad in which playback began.void videoPlaybackEnded(AppLovinAd ad, double percentViewed, boolean fullyWatched)
If your app was playing music when the video began, this is a good opportunity to resume it. If your app was playing video or otherwise requires user interaction, you probably want to use adHidden() in AppLovinAdDisplayListener instead.
ad - Ad in which playback ended.percentViewed - Percent of the video which the user watched.fullyWatched - Whether or not the video was watched to, or very near, completion. This parameter is a simply convenience and is computed as (percentViewed >= 95).