Representation.SingleSegmentRepresentation


class Representation.SingleSegmentRepresentation : Representation


A DASH representation consisting of a single segment.

Summary

Public constructors

SingleSegmentRepresentation(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase.SingleSegmentBase!,
    inbandEventStreams: (Mutable)List<Descriptor!>?,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    cacheKey: String?,
    contentLength: Long
)

Public functions

DashSegmentIndex?

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

java-static Representation.SingleSegmentRepresentation!
newInstance(
    revisionId: Long,
    format: Format!,
    uri: String!,
    initializationStart: Long,
    initializationEnd: Long,
    indexStart: Long,
    indexEnd: Long,
    inbandEventStreams: (Mutable)List<Descriptor!>!,
    cacheKey: String?,
    contentLength: Long
)

Public properties

String?
Long

The content length, or LENGTH_UNSET if unknown.

RangedUri?
Uri!

The uri of the single segment.

Inherited Constants

From androidx.media3.exoplayer.dash.manifest.Representation
const Long

A default value for revisionId.

Inherited functions

From androidx.media3.exoplayer.dash.manifest.Representation
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.

Inherited properties

From androidx.media3.exoplayer.dash.manifest.Representation
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.

Public constructors

SingleSegmentRepresentation

SingleSegmentRepresentation(
    revisionId: Long,
    format: Format!,
    baseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase.SingleSegmentBase!,
    inbandEventStreams: (Mutable)List<Descriptor!>?,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    cacheKey: String?,
    contentLength: Long
)
Parameters
revisionId: Long

Identifies the revision of the content.

format: Format!

The format of the representation.

baseUrls: (Mutable)List<BaseUrl!>!

The base urls of the representation.

segmentBase: SegmentBase.SingleSegmentBase!

The segment base underlying 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.

contentLength: Long

The content length, or LENGTH_UNSET if unknown.

Public functions

getIndex

fun getIndex(): DashSegmentIndex?

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

newInstance

java-static fun newInstance(
    revisionId: Long,
    format: Format!,
    uri: String!,
    initializationStart: Long,
    initializationEnd: Long,
    indexStart: Long,
    indexEnd: Long,
    inbandEventStreams: (Mutable)List<Descriptor!>!,
    cacheKey: String?,
    contentLength: Long
): Representation.SingleSegmentRepresentation!
Parameters
revisionId: Long

Identifies the revision of the content.

format: Format!

The format of the representation.

uri: String!

The uri of the media.

initializationStart: Long

The offset of the first byte of initialization data.

initializationEnd: Long

The offset of the last byte of initialization data.

indexStart: Long

The offset of the first byte of index data.

indexEnd: Long

The offset of the last byte of index data.

inbandEventStreams: (Mutable)List<Descriptor!>!

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

cacheKey: String?

An optional key to be returned from getCacheKey, or null.

contentLength: Long

The content length, or LENGTH_UNSET if unknown.

Public properties

cacheKey

val cacheKeyString?

contentLength

val contentLengthLong

The content length, or LENGTH_UNSET if unknown.

indexUri

val indexUriRangedUri?

uri

val uriUri!

The uri of the single segment.