Package 

Class PulseAdPlayer

  • All Implemented Interfaces:
    com.brightcove.player.ads.AdPlayer

    
    public final class PulseAdPlayer
     implements AdPlayer<PulseVideoAd>
                        

    Represents an AdPlayer capable of handling a PulseVideoAd.

    • Method Summary

      Modifier and Type Method Description
      static PulseAdPlayer createWithExoplayer(@NonNull() BaseVideoView baseVideoView, @NonNull() PulseAdBreak pulseAdBreak, @NonNull() AdPlayer.Listener<PulseVideoAd> listener, @NonNull() PulseAdPlayer.PulseOnClickListener pulseOnClickListener) Creates a PulseAdPlayer using an ExoAdPlayer to delegate playback commands.
      void addListener(@NonNull() AdPlayer.Listener<PulseVideoAd> listener)
      void removeListener(@NonNull() AdPlayer.Listener<PulseVideoAd> listener)
      void loadAd(@NonNull() PulseVideoAd pulseVideoAd)
      void playAd()
      void pauseAd()
      void seekTo(long position)
      void release()
      void skipAd()
      • Methods inherited from class com.brightcove.player.ads.AdPlayer

        addListener, loadAd, pauseAd, playAd, release, removeListener, seekTo, skipAd
      • Methods inherited from class java.lang.Object

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

      • createWithExoplayer

        @NonNull() static PulseAdPlayer createWithExoplayer(@NonNull() BaseVideoView baseVideoView, @NonNull() PulseAdBreak pulseAdBreak, @NonNull() AdPlayer.Listener<PulseVideoAd> listener, @NonNull() PulseAdPlayer.PulseOnClickListener pulseOnClickListener)

        Creates a PulseAdPlayer using an ExoAdPlayer to delegate playback commands.

        Parameters:
        baseVideoView - the video view where the content video is displayed.
        pulseAdBreak - the current pulse ad break.
        listener - a listener to receive playback events.
        pulseOnClickListener - the listener to receive UI/click events.
      • seekTo

         void seekTo(long position)