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?
)

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 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?
)
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.

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 audioGroupIdString?

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

captionGroupId

val captionGroupIdString?

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

format

val formatFormat!

Format information associated with this variant.

subtitleGroupId

val subtitleGroupIdString?

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

url

val urlUri!

The variant's url.

videoGroupId

val videoGroupIdString?

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