Streamable

data class Streamable(val id: String, val quality: Int, val type: Streamable.MediaType, val title: String? = null, val extras: Map<String, String> = mapOf())

A data class representing an unloaded streamable item that is used when playing a Track The streamable item can be of three types:

See TrackClient.loadStreamableMedia for loading this streamable item.

See also

Constructors

Link copied to clipboard
constructor(id: String, quality: Int, type: Streamable.MediaType, title: String? = null, extras: Map<String, String> = mapOf())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Decryption

A class representing Media Decryption for a Source.

Link copied to clipboard
fun interface InputProvider

An interface that provides an InputStream from a given position.

Link copied to clipboard
sealed class Media

A class that represents a loaded streamable media.

Link copied to clipboard

An enum class representing the type of media

Link copied to clipboard
sealed class Source

A class representing the actual source where streamable audio/video is present.

Link copied to clipboard

An enum representing the type of Source.

Link copied to clipboard

An enum class representing the type of subtitle

Properties

Link copied to clipboard

Any extra data you want to associate with the streamable item

Link copied to clipboard
val id: String

The id of the streamable item

Link copied to clipboard

The quality of the streamable item, this is used to sort the streamable items

Link copied to clipboard
val title: String? = null

The title of the streamable item

Link copied to clipboard

The type of the streamable item