public interface POBVastPlayerListener
| Modifier and Type | Interface and Description |
|---|---|
static interface |
POBVastPlayerListener.POBAutoClickEventListener
Interface definition to notify click tracking event
|
| Modifier and Type | Method and Description |
|---|---|
void |
onClose()
Notifies when close event occurred
|
void |
onEndCardWillLeaveApp()
Notifies if end card leaves app
|
void |
onFailedToPlay(com.pubmatic.sdk.common.POBError error)
Notifies when ad is failed to load or failed play the ad
|
void |
onIndustryIconClick(java.lang.String url)
Notifies when click is happened on industry icon
|
void |
onOpenLandingPage(java.lang.String url)
Notifies when click is happened on learn more button
|
void |
onPlaybackCompleted(float duration)
Notifies when video content is played completely and end card is about to show.
|
void |
onReadyToPlay(POBVastAd vastAd,
float skipOffset)
Notifies video content is downloaded and it is ready to play.
|
void |
onSkip()
Notifies when skip event occurred
|
void |
onVideoEventOccurred(POBVastCreative.POBEventTypes eventType)
Notifies all vast event.
|
void |
onVideoStarted(float duration,
float playerVolume)
Notifies when first frame of video is rendered.
|
void |
shouldForwardClickEvent()
Notifies whether click should be forwarded or not
Note: This event should be fired in case of MRAID end card click
|
void onReadyToPlay(@Nullable
POBVastAd vastAd,
float skipOffset)
vastAd - selected vast adskipOffset - skip offset for skippable adsvoid onPlaybackCompleted(float duration)
duration - selected media file durationvoid onFailedToPlay(@NonNull
com.pubmatic.sdk.common.POBError error)
error - the error of POBError which has specific error codes with its specific error
messagevoid onOpenLandingPage(@Nullable
java.lang.String url)
url - the url which gets calledvoid onSkip()
void onClose()
void onVideoStarted(float duration,
float playerVolume)
duration - selected media file durationplayerVolume - media player volumevoid onVideoEventOccurred(@NonNull
POBVastCreative.POBEventTypes eventType)
eventType - event occured.void onIndustryIconClick(@Nullable
java.lang.String url)
url - the url which gets calledvoid shouldForwardClickEvent()
void onEndCardWillLeaveApp()