destroySyncMediaPlayer

Destroys a SyncMediaPlayer created using this ReadingSystemEngine. Throws an error if the SyncMediaPlayer was not created using this ReadingSystemEngine.

If the SyncMediaPlayer was created using a ColibrioAudioPlayer by calling createSyncMediaPlayer(ColibrioAudioPlayer), or by calling createSyncMediaPlayer(SyncMediaTimeline, SyncMediaPlayerCreateOptions) with a NativeAudioRenderer, then the AudioReadingSystemEngine.activeAudioPlayer is still active to allow audio playback in the background. To completely destroy it, you need to call AudioReadingSystemEngine.destroyAudioPlayer