Colibrio Audio Player
Used for controlling and configuring native audio playback.
Players are created and managed by the AudioReadingSystemEngine.
Note that there can only be one ColibrioAudioPlayer at a time. If another one is created either by using ReadingSystemEngine.createSyncMediaPlayer with a SyncMediaAudioRenderer.NativeAudioRenderer or by using AudioReadingSystemEngine.createAudioPlayer, the existing one will be destroyed.
Properties
Gets the approximate elapsed time from timeline start to current position in milliseconds.
AudioTimeline instance used to create this player.
Gets/sets the playback rate. This must be a value between 0.25 and 5.0, where 1.0 is "normal speed". Values lower than 1.0 make the media play slower than normal, higher values make it play faster.
The current timeline position of the player
The total duration of the timeline in milliseconds
Returns true if the player is waiting to become synchronized with the ReaderView, false otherwise.
Functions
Adds an instance of OnMediaPlayerEventListener to the player.
Destroys this ColibrioAudioPlayer instance, which results in ignoring all subsequent calls to its methods. This method does nothing if already destroyed.
Removes an instance of OnMediaPlayerEventListener from the player.
Seeks to the approximate time from timeline start in milliseconds.
Seeks to the next segment in the timeline, if such segment exists.
Seeks to the previous segment in the timeline, if such segment exists.
Seeks to the given position in the timeline.
Updates the media commands.
Updates the media session metadata.