Interface Pauseroll
-
- All Implemented Interfaces:
@MainThread() public interface Pauseroll
This class is used to play pauseroll ad breaks.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
setListener(InstreamAdBreakEventListener listener)
Register a callback for listening pauseroll playback events. abstract Unit
setVideoAdPlaybackListener(VideoAdPlaybackListener listener)
Register a callback for listening video playback events abstract Unit
prepare(InstreamAdPlayer instreamAdPlayer)
Prepare pauseroll playback. abstract Unit
play(InstreamAdView instreamAdView)
Start pauseroll playback. abstract Unit
pause()
Pause pauseroll playback. abstract Unit
resume()
Resume paused pauseroll playback. abstract Unit
invalidate()
Invalidate pauseroll playback. abstract InstreamAdBreak
getInstreamAdBreak()
Returns InstreamAdBreak that's associated with this pauseroll. -
-
Method Detail
-
setListener
abstract Unit setListener(InstreamAdBreakEventListener listener)
Register a callback for listening pauseroll playback events.
- Parameters:
listener
- an InstreamAdBreakEventListener object that handles lifecycle of pauseroll.
-
setVideoAdPlaybackListener
abstract Unit setVideoAdPlaybackListener(VideoAdPlaybackListener listener)
Register a callback for listening video playback events
- Parameters:
listener
- an VideoAdPlaybackListener object that handles video playback events.
-
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.
-
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.
-
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.
-
getInstreamAdBreak
abstract InstreamAdBreak getInstreamAdBreak()
Returns InstreamAdBreak that's associated with this pauseroll.
-
-
-
-