public class Reading extends AudioPlayer
Modifier and Type | Class and Description |
---|---|
(package private) class |
Reading.IdleEntry
Action taken before the state machine enters
AppState#IDLE -> release the AudioPlayer.player_ ,
sets the AudioPlayer.AppState to AudioPlayer.AppState.IDLE . |
AudioPlayer.AppState, AudioPlayer.AppTrigger, AudioPlayer.AudioType, AudioPlayer.BufferEntry, AudioPlayer.CompleteEntry, AudioPlayer.PauseEntry, AudioPlayer.PlayEntry, AudioPlayer.PlayGuard, AudioPlayer.PrepareEntry
Modifier and Type | Field and Description |
---|---|
private SoundEntity |
sound_entity_
The
SoundEntity handled by this state machine. |
buffer_handler_, buffer_runnable_, context_, fsm_, fsm_config_, player_, prepared_
Constructor and Description |
---|
Reading(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
play(SoundEntity sound_entity)
AppTrigger#play trigger. |
protected android.net.Uri |
select_track()
Given the
SoundEntity.Where enum value, returns a matching track uri. |
SoundEntity |
sound_entity() |
clear_, destroy, fade_out, onBufferingUpdate, onCompletion, onPrepared, pause, play, share, state
@Nullable private SoundEntity sound_entity_
SoundEntity
handled by this state machine.protected android.net.Uri select_track()
SoundEntity.Where
enum value, returns a matching track uri.select_track
in class AudioPlayer
Uri
instance.public void play(@Nullable SoundEntity sound_entity)
AppTrigger#play
trigger.public SoundEntity sound_entity()