SyncMediaPlaybackRangeOptions

data class SyncMediaPlaybackRangeOptions(val alwaysInitiallySeekToRangeStart: Boolean = true, val pauseOnRangeRemoved: Boolean = false, val removeRangeOnEndReached: Boolean = true, val seekBehaviour: SyncMediaRangeSeekBehavior = SyncMediaRangeSeekBehavior.ALWAYS_REMOVE_RANGE)

Options object used with SyncMediaPlayer.setPlaybackRange.

Constructors

Link copied to clipboard
constructor(alwaysInitiallySeekToRangeStart: Boolean = true, pauseOnRangeRemoved: Boolean = false, removeRangeOnEndReached: Boolean = true, seekBehaviour: SyncMediaRangeSeekBehavior = SyncMediaRangeSeekBehavior.ALWAYS_REMOVE_RANGE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If set to false, no initial seek to range start will be done if the current timeline position is within the range. If set to true, or if the current timeline position is outside the range, then the SyncMediaPlayer will seek to range.start.

Link copied to clipboard

If the SyncMediaPlayer should pause when the playback range is removed.

Link copied to clipboard

If the SyncMediaPlayer should remove the playback range when playback reaches the end of the range.

Link copied to clipboard

Defines how the SyncMediaPlayer handles seeking while the playback range is active.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)