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
constructor(addDefaultMediaObjectRenderers: Boolean = true, preloadAheadMs: Int = 20000, preloadBehindMs: Int = 5000)

Types

Link copied to clipboard
object Companion

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.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)