メインコンテンツまでスキップ

MediaConfig

API Index/MediaConfig

MediaConfig

[androidJvm]
data class MediaConfig(val source: List<MediaConfig.Source>, val title: String, val description: String = "", val imageUrl: String, val startTimeMs: Int = 0, val thumbnailSeekingUrl: String?, var contentType: ContentType = ContentType.Online, var defaultMediaSourceType: String? = null, var defaultQuality: Int? = null, var playWhenReady: Boolean = false, val sharedUrl: String? = null, val features: List<MediaConfig.Feature>? = null)

Constructors

MediaConfig[androidJvm] constructor(source: List<MediaConfig.Source>, title: String, description: String = "", imageUrl: String, startTimeMs: Int = 0, thumbnailSeekingUrl: String?, contentType: ContentType = ContentType.Online, defaultMediaSourceType: String? = null, defaultQuality: Int? = null, playWhenReady: Boolean = false, sharedUrl: String? = null, features: List<MediaConfig.Feature>? = null)

Types

NameSummary
DrmInfo[androidJvm] sealed class DrmInfo
Feature[androidJvm] enum Feature : Enum<MediaConfig.Feature>
Protocol[androidJvm] enum Protocol : Enum<MediaConfig.Protocol>
Source[androidJvm] data class Source(val url: String, val protocol: MediaConfig.Protocol, val type: String? = null, val drm: MediaConfig.DrmInfo? = null)

Properties

NameSummary
contentType(content-type.md)[androidJvm] var contentType: ContentType
defaultMediaSourceType[androidJvm] var defaultMediaSourceType: String?
defaultQuality[androidJvm] var defaultQuality: Int?
description[androidJvm] val description: String
features[androidJvm] val features: List<MediaConfig.Feature>? = null
imageUrl[androidJvm] val imageUrl: String
playWhenReady[androidJvm] var playWhenReady: Boolean
sharedUrl[androidJvm] val sharedUrl: String? = null
source[androidJvm] val source: List<MediaConfig.Source>
startTimeMs[androidJvm] val startTimeMs: Int = 0
thumbnailSeekingUrl[androidJvm] val thumbnailSeekingUrl: String?
title[androidJvm] val title: String