SegmentBase.SingleSegmentBase


class SegmentBase.SingleSegmentBase : SegmentBase


A SegmentBase that defines a single segment.

Summary

Public constructors

SingleSegmentBase(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long,
    indexStart: Long,
    indexLength: Long
)

Public functions

RangedUri?

Inherited functions

From androidx.media3.exoplayer.dash.manifest.SegmentBase
RangedUri?
getInitialization(
    @UnderInitialization(value = Representation) representation: @UnderInitialization(value = Representation) Representation!
)

Returns the RangedUri defining the location of initialization data for a given representation, or null if no initialization data exists.

Long

Returns the presentation time offset, in microseconds.

Public constructors

SingleSegmentBase

SingleSegmentBase()

SingleSegmentBase

SingleSegmentBase(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long,
    indexStart: Long,
    indexLength: Long
)
Parameters
initialization: RangedUri?

A RangedUri corresponding to initialization data, if such data exists.

timescale: Long

The timescale in units per second.

presentationTimeOffset: Long

The presentation time offset. The value in seconds is the division of this value and timescale.

indexStart: Long

The byte offset of the index data in the segment.

indexLength: Long

The length of the index data in bytes.

Public functions

getIndex

fun getIndex(): RangedUri?