lib / tv.smartclip.smartclientandroid.lib / SxSequencer

SxSequencer

class SxSequencer : IKoinDi, SxEventProvider

Controller class for instream use cases.

Types

Companion

companion object Companion : (SxInstreamVideoPlayerWrapper, List<SxSequencerAdSlot>, SxConfiguration) -> SxSequencer, (SxInstreamPlayerDelegate, View, ViewGroup, List<SxSequencerAdSlot>, SxConfiguration) -> SxSequencer

Properties

latestPlaybackState

Must be called when the playback state of the content or advertisement video changes.

var latestPlaybackState: SxSequencerPlaybackState

playWhenReady

Controls the running state of this sequencer. If true, any defined advertisement slots will be executed. If no slot fits the given SxSequencerPosition the content video is requested instead. Must be set to false if the underlying advertisement or content video is paused by intent.

var playWhenReady: Boolean

Functions

release

fun release(): Unit

reportPlaybackException

Exceptions, which prevent advertising playback, must be reported here.

fun reportPlaybackException(error: Exception?): Unit

Companion Object Functions

invoke

Controller class for instream use cases.

fun invoke(wrapper: SxInstreamVideoPlayerWrapper, adSlots: List<SxSequencerAdSlot>, config: SxConfiguration): SxSequencerfun invoke(playerDelegate: SxInstreamPlayerDelegate, surfaceView: View, overlayContainer: ViewGroup, adSlots: List<SxSequencerAdSlot>, config: SxConfiguration): SxSequencer