Interface POBVastPlayerListener
-
- All Implemented Interfaces:
public interface POBVastPlayerListenerInterface definition for callbacks to be invoked when POBVastPlayer notifies events
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBVastPlayerListener.POBAutoClickEventListenerInterface definition to notify click tracking event
-
Method Summary
Modifier and Type Method Description abstract voidonReadyToPlay(@Nullable() POBVastAd vastAd, float skipOffset)Notifies video content is downloaded and it is ready to play. abstract voidonPlaybackCompleted(float duration)Notifies when video content is played completely and end card is about to show. abstract voidonFailedToPlay(@NonNull() POBError error)Notifies when ad is failed to load or failed play the ad abstract voidonOpenLandingPage(@Nullable() String url)Notifies when click is happened on learn more button abstract voidonSkip()Notifies when skip event occurred abstract voidonClose()Notifies when close event occurred abstract voidonVideoStarted(float duration, float playerVolume)Notifies when first frame of video is rendered. abstract voidonVideoEventOccurred(@NonNull() POBVastCreative.POBEventTypes eventType)Notifies all vast event. abstract voidonIndustryIconClick(@Nullable() String url)Notifies when click is happened on industry icon abstract voidshouldForwardClickEvent()Notifies whether click should be forwarded or not Note: This event should be fired in case of MRAID end card click abstract voidonEndCardWillLeaveApp()Notifies if end card leaves app abstract voidonDsaInfoIconClick()Notifies to show the DSA info detail screen -
-
Method Detail
-
onReadyToPlay
abstract void onReadyToPlay(@Nullable() POBVastAd vastAd, float skipOffset)
Notifies video content is downloaded and it is ready to play.
- Parameters:
vastAd- selected vast adskipOffset- skip offset for skippable ads
-
onPlaybackCompleted
abstract void onPlaybackCompleted(float duration)
Notifies when video content is played completely and end card is about to show.
- Parameters:
duration- selected media file duration
-
onFailedToPlay
abstract void onFailedToPlay(@NonNull() POBError error)
Notifies when ad is failed to load or failed play the ad
- Parameters:
error- the error of POBError which has specific error codes with its specific error message
-
onOpenLandingPage
abstract void onOpenLandingPage(@Nullable() String url)
Notifies when click is happened on learn more button
- Parameters:
url- the url which gets called
-
onSkip
abstract void onSkip()
Notifies when skip event occurred
-
onClose
abstract void onClose()
Notifies when close event occurred
-
onVideoStarted
abstract void onVideoStarted(float duration, float playerVolume)
Notifies when first frame of video is rendered.
- Parameters:
duration- selected media file durationplayerVolume- media player volume
-
onVideoEventOccurred
abstract void onVideoEventOccurred(@NonNull() POBVastCreative.POBEventTypes eventType)
Notifies all vast event.
- Parameters:
eventType- event occured.
-
onIndustryIconClick
abstract void onIndustryIconClick(@Nullable() String url)
Notifies when click is happened on industry icon
- Parameters:
url- the url which gets called
-
shouldForwardClickEvent
abstract void shouldForwardClickEvent()
Notifies whether click should be forwarded or not Note: This event should be fired in case of MRAID end card click
-
onEndCardWillLeaveApp
abstract void onEndCardWillLeaveApp()
Notifies if end card leaves app
-
onDsaInfoIconClick
abstract void onDsaInfoIconClick()
Notifies to show the DSA info detail screen
-
-
-
-