Interface POBVastPlayerListener

  • All Implemented Interfaces:

    
    public interface POBVastPlayerListener
    
                        

    Interface definition for callbacks to be invoked when POBVastPlayer notifies events

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onReadyToPlay(@Nullable() POBVastAd vastAd, float skipOffset) Notifies video content is downloaded and it is ready to play.
      abstract void onPlaybackCompleted(float duration) Notifies when video content is played completely and end card is about to show.
      abstract void onFailedToPlay(@NonNull() POBError error) Notifies when ad is failed to load or failed play the ad
      abstract void onOpenLandingPage(@Nullable() String url) Notifies when click is happened on learn more button
      abstract void onSkip() Notifies when skip event occurred
      abstract void onClose() Notifies when close event occurred
      abstract void onVideoStarted(float duration, float playerVolume) Notifies when first frame of video is rendered.
      abstract void onVideoEventOccurred(@NonNull() POBVastCreative.POBEventTypes eventType) Notifies all vast event.
      abstract void onIndustryIconClick(@Nullable() String url) Notifies when click is happened on industry icon
      abstract void shouldForwardClickEvent() Notifies whether click should be forwarded or not Note: This event should be fired in case of MRAID end card click
      abstract void onEndCardWillLeaveApp() Notifies if end card leaves app
      abstract void onDsaInfoIconClick() Notifies to show the DSA info detail screen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 ad
        skipOffset - 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 duration
        playerVolume - media player volume
      • 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

      • onDsaInfoIconClick

         abstract void onDsaInfoIconClick()

        Notifies to show the DSA info detail screen