set Sync Media Player
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
sync Media Player
The SyncMediaPlayer to attach, or null to detach any already attached SyncMediaPlayer.
initial Sync Method
How the ReaderView and SyncMediaPlayer should initially synchronize. Specifying
READER_VIEW_NEXT
orREADER_VIEW_PREVIOUS
will instead have the same effect asREADER_VIEW_GOTO
. Defaults toSYNC_MEDIA_SEEK
.