Package-level declarations

Types

Link copied to clipboard
abstract class AdaptiveSource : MediaSource
Base class for all adaptive media sources.
Link copied to clipboard
Represents a DASH media source.
Link copied to clipboard
Represents a HLS media source.
Link copied to clipboard

Contains the different loading states a Source can be in.

Link copied to clipboard
abstract class MediaSource : Parcelable
Base class for all media sources.
Link copied to clipboard
Represents a progressive media source.
Link copied to clipboard
Represents a Smooth Streaming media source.
Link copied to clipboard

Represents audio and video content that can be loaded into a Player to start a playback session. A source instance can be created via the Source.create function and will idle until it is loaded into a player. After loading the source into a player, isAttachedToPlayer is true and the same source can not be loaded into a different player until unloaded.

Link copied to clipboard
open class SourceConfig(val url: String, val type: SourceType, var title: String? = null, var description: String? = null, var posterSource: String? = null, var isPosterPersistent: Boolean = false, var subtitleTracks: List<SubtitleTrack> = emptyList(), var thumbnailTrack: ThumbnailTrack? = null, var drmConfig: DrmConfig? = null, var labelingConfig: LabelingConfig = LabelingConfig(), var vrConfig: VrConfig = VrConfig(), var videoCodecPriority: List<String> = emptyList(), var audioCodecPriority: List<String> = emptyList(), var options: SourceOptions = SourceOptions(), var metadata: Map<String, String>? = null) : Parcelable

Configures a Source that can be loaded into a Player.

Link copied to clipboard
data class SourceOptions(var startOffset: Double? = null, var startOffsetTimelineReference: TimelineReferencePoint? = null) : Parcelable
Link copied to clipboard

Available types for a Source.

Link copied to clipboard

Reference points on a timeline to allow definition of relative offsets.