SyncMediaPlayerInitOptions

data class SyncMediaPlayerInitOptions(val addDefaultMediaObjectRenderers: Boolean = true, val preloadAheadMs: Int = 20000, val preloadBehindMs: Int = 5000)

Used when creating a new SyncMediaPlayer using ReadingSystemEngine.createSyncMediaPlayer(). These options cannot be changed after the SyncMediaPlayer has been created.

Constructors

Link copied to clipboard
fun SyncMediaPlayerInitOptions(addDefaultMediaObjectRenderers: Boolean = true, preloadAheadMs: Int = 20000, preloadBehindMs: Int = 5000)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

If the SyncMediaPlayer should add the default MediaObjectRenderers from the SyncMediaTimeline. You can manually add MediaObjectRenderer instances using SyncMediaPlayer.addMediaObjectRenderer().

Link copied to clipboard
val preloadAheadMs: Int = 20000

The minimum amount of milliseconds the MediaObjectRenderers used with this media player will preload ahead of its current position.

Link copied to clipboard
val preloadBehindMs: Int = 5000

The minimum amount of milliseconds the MediaObjectRenderers used with this media player will preload behind of its current position.