Package-level declarations

Types

Link copied to clipboard

Commands that can be executed on a player.

Link copied to clipboard
data class LiveMediaPositionPredictor(eventTimestamp: Long, durationMs: Long, currentPositionMs: Long, positionSpeed: Float) : PositionPredictor
Link copied to clipboard
data class Media(val id: String, val uri: String, val title: String, val artist: String, val artworkUri: String? = null, val artworkColor: Int? = null, val extras: Map<String, Any> = emptyMap())

Representation of a media.

Link copied to clipboard
data class MediaDownload(val media: Media, val status: MediaDownload.Status, val size: MediaDownload.Size)

Representation of a Media download.

Link copied to clipboard
data class MediaPositionPredictor(eventTimestamp: Long, durationMs: Long, currentPositionMs: Long, positionSpeed: Float) : PositionPredictor
Link copied to clipboard
data class PlaybackState(val playerState: PlayerState, val isLive: Boolean, val currentPosition: Duration?, val seekProjection: Duration? = null, val duration: Duration?, val playbackSpeed: Float)

Represents a state of playback, duration and playback speed. It can be used to determine whether media is playing and to infer current and future position and duration.

Link copied to clipboard
data class PlaybackStateEvent(val playbackState: PlaybackState, val cause: PlaybackStateEvent.Cause, val timestamp: Duration? = null)
Link copied to clipboard

Represents the state of the player.

Link copied to clipboard
data class Playlist(val id: String, val name: String, val artworkUri: String? = null, val mediaList: List<Media>)

Representation of a playlist.

Link copied to clipboard
data class PlaylistDownload(val playlist: Playlist, val mediaList: List<MediaDownload>)

Representation of a Playlist download.

Link copied to clipboard
Link copied to clipboard
fun interface TimestampProvider