Source

sealed class Source

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

There are three types of sources:

  • Http - To represent a source that contains Audio/Video on a Http Url.

  • Raw - To represent a source that contains Audio/Video in a Byte Stream.

See also

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Http(val request: NetworkRequest, val type: Streamable.SourceType = SourceType.Progressive, val decryption: Streamable.Decryption? = null, val quality: Int = 0, val title: String? = null, val isVideo: Boolean = false, val isLive: Boolean = false) : Streamable.Source

A data class representing a source that contains Audio/Video on a Http Url.

Link copied to clipboard
data class Raw(val streamProvider: Streamable.InputProvider? = null, val id: String, val quality: Int = 0, val title: String? = null, val isVideo: Boolean = false, val isLive: Boolean = false) : Streamable.Source

A data class representing a source that contains Audio/Video in a Byte Stream.

Properties

Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val isLive: Boolean
Link copied to clipboard
abstract val isVideo: Boolean
Link copied to clipboard
abstract val quality: Int

The quality of the source, this is used to sort the sources

Link copied to clipboard
abstract val title: String?

The title of the source

Functions

Link copied to clipboard