Interface Pauseroll

  • All Implemented Interfaces:

    @MainThread() 
    public interface Pauseroll
    
                        

    This class is used to play pauseroll ad breaks.

    • Constructor Detail

    • Method Detail

      • prepare

         abstract Unit prepare(InstreamAdPlayer instreamAdPlayer)

        Prepare pauseroll playback. Note that prepare() should always be called before play() method.

        Parameters:
        instreamAdPlayer - player to play pauseroll.
      • prepare

         abstract Unit prepare()

        Prepare pauseroll playback. Note that prepare() should always be called before play() method.

      • play

         abstract Unit play(InstreamAdView instreamAdView)

        Start pauseroll playback. Note that you can call play only on a prepared pauseroll.

        Parameters:
        instreamAdView - the view in which pauseroll will be displayed.
      • pause

         abstract Unit pause()

        Pause pauseroll playback.

      • resume

         abstract Unit resume()

        Resume paused pauseroll playback.

      • invalidate

         abstract Unit invalidate()

        Invalidate pauseroll playback. Call this method right before ad player is invalidated. To resume playback after invalidation you should prepare and start pauseroll again.