setSyncMediaPlayer

abstract fun setSyncMediaPlayer(syncMediaPlayer: SyncMediaPlayer?, initialSyncMethod: SyncMediaReaderViewSynchronizationMethod = SyncMediaReaderViewSynchronizationMethod.SYNC_MEDIA_SEEK)

Attach a SyncMediaPlayer to the ReaderView.

This allows the SyncMediaPlayer and ReaderView to synchronize. See SyncMediaPlayer for more details.

When calling this method with a new SyncMediaPlayer or null, any existing player will be detached.

Parameters

syncMediaPlayer
  • The SyncMediaPlayer to attach, or null to detach any already attached SyncMediaPlayer.

initialSyncMethod
  • How the ReaderView and SyncMediaPlayer should initially synchronize. Specifying READER_VIEW_NEXT or READER_VIEW_PREVIOUS will instead have the same effect as READER_VIEW_GOTO. Defaults to SYNC_MEDIA_SEEK.