HlsMultivariantPlaylist.Variant


class HlsMultivariantPlaylist.Variant


A variant (i.e. an #EXT-X-STREAM-INF tag) in a multivariant playlist.

Summary

Public constructors

Variant(
    url: Uri!,
    format: Format!,
    videoGroupId: String?,
    audioGroupId: String?,
    subtitleGroupId: String?,
    captionGroupId: String?,
    pathwayId: String?,
    stableVariantId: String?
)

Public functions

HlsMultivariantPlaylist.Variant!

Returns a copy of this instance with the given Format.

java-static HlsMultivariantPlaylist.Variant!

Creates a variant for a given media playlist url.

Public properties

String?

The audio rendition group referenced by this variant, or null.

String?

The caption rendition group referenced by this variant, or null.

Format!

Format information associated with this variant.

String?

The identifier of the pathway that this variant belongs, or null.

String?

The stable identifier for this variant, or null.

String?

The subtitle rendition group referenced by this variant, or null.

Uri!

The variant's url.

String?

The video rendition group referenced by this variant, or null.

Public constructors

Variant

Variant(
    url: Uri!,
    format: Format!,
    videoGroupId: String?,
    audioGroupId: String?,
    subtitleGroupId: String?,
    captionGroupId: String?,
    pathwayId: String?,
    stableVariantId: String?
)
Parameters
url: Uri!

See url.

format: Format!

See format.

videoGroupId: String?

See videoGroupId.

audioGroupId: String?

See audioGroupId.

subtitleGroupId: String?

See subtitleGroupId.

captionGroupId: String?

See captionGroupId.

pathwayId: String?

See pathwayId.

stableVariantId: String?

See stableVariantId.

Public functions

copyWithFormat

fun copyWithFormat(format: Format!): HlsMultivariantPlaylist.Variant!

Returns a copy of this instance with the given Format.

createMediaPlaylistVariantUrl

java-static fun createMediaPlaylistVariantUrl(url: Uri!): HlsMultivariantPlaylist.Variant!

Creates a variant for a given media playlist url.

Parameters
url: Uri!

The media playlist url.

Returns
HlsMultivariantPlaylist.Variant!

The variant instance.

Public properties

audioGroupId

val audioGroupId: String?

The audio rendition group referenced by this variant, or null.

captionGroupId

val captionGroupId: String?

The caption rendition group referenced by this variant, or null.

format

val format: Format!

Format information associated with this variant.

pathwayId

val pathwayId: String?

The identifier of the pathway that this variant belongs, or null.

stableVariantId

val stableVariantId: String?

The stable identifier for this variant, or null.

subtitleGroupId

val subtitleGroupId: String?

The subtitle rendition group referenced by this variant, or null.

url

val url: Uri!

The variant's url.

videoGroupId

val videoGroupId: String?

The video rendition group referenced by this variant, or null.