MediaConfig
data class MediaConfig(val source: MediaConfig.Source, val title: String, val description: String = "", val imageUrl: String, val startTimeMs: Long = 0, val thumbnailSeekingUrl: String? = null, val pluginSubtitles: List<PluginSubtitle>? = null, var contentType: ContentType = ContentType.Online, var defaultQuality: Int? = null, var playWhenReady: Boolean = false, val sharedUrl: String? = null, val pseMode: MediaConfig.PSEMode = PSEMode.STANDARD, val features: List<MediaConfig.Feature> = listOf())
Constructors
Link copied to clipboard
constructor(source: MediaConfig.Source, title: String, description: String = "", imageUrl: String, startTimeMs: Long = 0, thumbnailSeekingUrl: String? = null, pluginSubtitles: List<PluginSubtitle>? = null, contentType: ContentType = ContentType.Online, defaultQuality: Int? = null, playWhenReady: Boolean = false, sharedUrl: String? = null, pseMode: MediaConfig.PSEMode = PSEMode.STANDARD, features: List<MediaConfig.Feature> = listOf())
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Source(val url: String, val protocol: MediaConfig.Protocol, val type: String? = null, val drm: MediaConfig.DrmInfo? = null)
Support sources include DASH and HLS protocol
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun copy(source: MediaConfig.Source, title: String, description: String = "", imageUrl: String, startTimeMs: Long = 0, thumbnailSeekingUrl: String? = null, pluginSubtitles: List<PluginSubtitle>? = null, contentType: ContentType = ContentType.Online, defaultQuality: Int? = null, playWhenReady: Boolean = false, sharedUrl: String? = null, pseMode: MediaConfig.PSEMode = PSEMode.STANDARD, features: List<MediaConfig.Feature> = listOf()): MediaConfig