lib / tv.smartclip.smartclientandroid.lib.dto.sequencer / SxSequencerDynamicPosition

SxSequencerDynamicPosition

class SxSequencerDynamicPosition : SxSequencerPosition

Uses a lambda as start condition.

Constructors

<init>

Uses a lambda as start condition.

SxSequencerDynamicPosition(value: (position: Long, duration: Long) -> Boolean)

Properties

value

Lambda that is invoked four timed per second when a content video is active, to determine the start of the advertisement. The Lambda has two parameters of type Long: position and duration of the current content video in milliseconds. Return true to start the corresponding ad slot. false otherwise.

val value: (position: Long, duration: Long) -> Boolean

Functions

match

Matcher to decide if the current conditions met the position definition.

fun match(position: Long, duration: Long): Boolean