AstroListener

interface AstroListener

Interface representing a listener for events related to playback and media state changes in AstroPlayer.

Functions

Link copied to clipboard

Called when the current equalizer values have changed.

Link copied to clipboard

Called when the currently playing media item has changed. The new media item might be null if playback has stopped.

Link copied to clipboard
open fun onEqualizerEnabledChanged(isEqualizerEnabled: Boolean)

Called when the overall equalizer state (enabled/disabled) has changed.

Link copied to clipboard

Called when the media player starts buffering data before playback.

Link copied to clipboard
open fun onMuteStateChanged(isMuted: Boolean)

Called when the mute state of playback has changed.

Link copied to clipboard
open fun onPlaybackError(exception: Exception)

Called when a general playback error occurs during playback.

Link copied to clipboard
open fun onPlaybackPaused()

Called when playback has been paused.

Link copied to clipboard
open fun onPlaybackSpeedChanged(speed: Float)

Called when the playback speed has changed.

Link copied to clipboard

Called when playback has started.

Link copied to clipboard
open fun onRepeatModeChanged(repeatMode: RepeatMode)

Called when the repeat mode for playback has changed.

Link copied to clipboard
open fun onSeekBackward()

Called when the playback position is being moved backward (seeking backward).

Link copied to clipboard
open fun onSeekForward()

Called when the playback position is being moved forward (seeking forward).

Link copied to clipboard

Called when the playback position is seeked to the next media item in the playlist (if applicable).

Link copied to clipboard

Called when the playback position is seeked to the previous media item in the playlist (if applicable).

Link copied to clipboard
open fun onShuffleModeChanged(shuffleModeEnabled: Boolean)

Called when the shuffle mode for playback has changed.

Link copied to clipboard
open fun onSmartEqualizerEnabledChanged(isSmartEqualizerEnabled: Boolean)

Called when the smart equalizer state (enabled/disabled) has changed. Smart equalizer might be a specific type of equalization that applies automatic adjustments.

Link copied to clipboard
open fun onVolumeChanged(volume: Float)

Called when the playback volume has changed.