OfflineSourceConfig

OfflineSourceConfig

open class OfflineSourceConfig(url: String, type: SourceType, val drmId: ByteArray?, cacheDirectory: File, trackStateFile: File?, val isRestrictToOffline: Boolean, resourceIdentifierCallback: ResourceIdentifierCallback? = null) : SourceConfig

Represents the offline version of a SourceConfig. Altering this object could result in undefined behaviour.

Constructors

OfflineSourceConfigconstructor(url: String, type: SourceType, drmId: ByteArray?, cacheDirectory: File, trackStateFile: File?, isRestrictToOffline: Boolean, resourceIdentifierCallback: ResourceIdentifierCallback? = null)

Types

NameSummary
CREATORobject CREATOR : Parcelable.Creator<OfflineSourceConfig>

Properties

NameSummary
drmIdval drmId: ByteArray?
isRestrictToOfflineval isRestrictToOffline: Boolean
If the playback is restricted to offline data only.

Functions

NameSummary
writeToParcelopen override fun writeToParcel(dest: Parcel, flags: Int)