SourceConfig

constructor(url: String, type: SourceType)

Creates a new SourceConfig for a given type.


constructor(url: String, type: SourceType, title: String? = null, description: String? = null, posterSource: String? = null, isPosterPersistent: Boolean = false, subtitleTracks: List<SubtitleTrack> = emptyList(), thumbnailTrack: ThumbnailTrack? = null, drmConfig: DrmConfig? = null, labelingConfig: LabelingConfig = LabelingConfig(), vrConfig: VrConfig = VrConfig(), videoCodecPriority: List<String> = emptyList(), audioCodecPriority: List<String> = emptyList(), options: SourceOptions = SourceOptions(), metadata: Map<String, String>? = null)


constructor(url: String)

Deprecated

Use `SourceConfig.fromUrl()` instead.

Replace with

SourceConfig.fromUrl(url)

Creates a new SourceConfig based on the provided url to a DASH, HLS, SMOOTH or Progressive MP4 source.


constructor(adaptiveSource: AdaptiveSource)

Deprecated

Passing an `AdaptiveSource` is deprecated. Use the `SourceType` to specify the source's type.

Replace with

SourceConfig(url, SourceType.Dash)

constructor(progressiveSource: ProgressiveSource)

Deprecated

Passing a `ProgressiveSource` is deprecated. Use the `SourceType` to specify the source's type.

Replace with

SourceConfig(url, SourceType.Progressive)