@UnstableApi
abstract class Representation

Known direct subclasses
Representation.MultiSegmentRepresentation

A DASH representation consisting of multiple segments.

Representation.SingleSegmentRepresentation

A DASH representation consisting of a single segment.


A DASH representation.

Summary

Nested types

A DASH representation consisting of multiple segments.

A DASH representation consisting of a single segment.

Constants

const Long

A default value for revisionId.

Public functions

abstract String?

Returns a cache key for the representation if set, or null.

abstract DashSegmentIndex?

Returns an index if the representation provides one directly, or null otherwise.

abstract RangedUri?

Returns a RangedUri defining the location of the representation's segment index, or null if the representation provides an index directly.

java-static Representation!
newInstance(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase!
)

Constructs a new instance.

java-static Representation!
newInstance(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase!,
    inbandEventStreams: (Mutable)List<Descriptor!>?,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    cacheKey: String?
)

Constructs a new instance.

Public properties

ImmutableList<BaseUrl!>!

The base URLs of the representation.

(Mutable)List<Descriptor!>!

Essential properties in the representation.

Format!

The format of the representation.

(Mutable)List<Descriptor!>!

The in-band event streams in the representation.

RangedUri?
Long

The offset of the presentation timestamps in the media stream relative to media time.

Long

Identifies the revision of the media contained within the representation.

(Mutable)List<Descriptor!>!

Supplemental properties in the adaptation set.

Constants

REVISION_ID_DEFAULT

const val REVISION_ID_DEFAULT = -1: Long

A default value for revisionId.

Public functions

getCacheKey

abstract fun getCacheKey(): String?

Returns a cache key for the representation if set, or null.

getIndex

abstract fun getIndex(): DashSegmentIndex?

Returns an index if the representation provides one directly, or null otherwise.

getIndexUri

abstract fun getIndexUri(): RangedUri?

Returns a RangedUri defining the location of the representation's segment index, or null if the representation provides an index directly.

newInstance

java-static fun newInstance(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase!
): Representation!

Constructs a new instance.

Parameters
revisionId: Long

Identifies the revision of the content.

format: Format!

The format of the representation.

baseUrls: (Mutable)List<BaseUrl!>!

The list of base URLs of the representation.

segmentBase: SegmentBase!

A segment base element for the representation.

Returns
Representation!

The constructed instance.

newInstance

java-static fun newInstance(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase!,
    inbandEventStreams: (Mutable)List<Descriptor!>?,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    cacheKey: String?
): Representation!

Constructs a new instance.

Parameters
revisionId: Long

Identifies the revision of the content.

format: Format!

The format of the representation.

baseUrls: (Mutable)List<BaseUrl!>!

The list of base URLs of the representation.

segmentBase: SegmentBase!

A segment base element for the representation.

inbandEventStreams: (Mutable)List<Descriptor!>?

The in-band event streams in the representation. May be null.

essentialProperties: (Mutable)List<Descriptor!>!

Essential properties in the representation. May be empty.

supplementalProperties: (Mutable)List<Descriptor!>!

Supplemental properties in the representation. May be empty.

cacheKey: String?

An optional key to be returned from getCacheKey, or null. This parameter is ignored if segmentBase consists of multiple segments.

Returns
Representation!

The constructed instance.

Public properties

baseUrls

val baseUrlsImmutableList<BaseUrl!>!

The base URLs of the representation.

essentialProperties

val essentialProperties: (Mutable)List<Descriptor!>!

Essential properties in the representation. May be empty.

format

val formatFormat!

The format of the representation.

inbandEventStreams

val inbandEventStreams: (Mutable)List<Descriptor!>!

The in-band event streams in the representation. May be empty.

initializationUri

val initializationUriRangedUri?

presentationTimeOffsetUs

val presentationTimeOffsetUsLong

The offset of the presentation timestamps in the media stream relative to media time.

revisionId

val revisionIdLong

Identifies the revision of the media contained within the representation. If the media can change over time (e.g. as a result of it being re-encoded), then this identifier can be set to uniquely identify the revision of the media. The timestamp at which the media was encoded is often a suitable.

supplementalProperties

val supplementalProperties: (Mutable)List<Descriptor!>!

Supplemental properties in the adaptation set. May be empty.