SegmentBase.SingleSegmentBase


public class SegmentBase.SingleSegmentBase extends SegmentBase


A SegmentBase that defines a single segment.

Summary

Public constructors

SingleSegmentBase(
    @Nullable RangedUri initialization,
    long timescale,
    long presentationTimeOffset,
    long indexStart,
    long indexLength
)

Public methods

@Nullable RangedUri

Inherited methods

From androidx.media3.exoplayer.dash.manifest.SegmentBase
@Nullable RangedUri
getInitialization(
    @UnderInitialization(value = Representation) @UnderInitialization(value = Representation) 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

public SingleSegmentBase()

SingleSegmentBase

public SingleSegmentBase(
    @Nullable RangedUri initialization,
    long timescale,
    long presentationTimeOffset,
    long indexStart,
    long indexLength
)
Parameters
@Nullable RangedUri initialization

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

long timescale

The timescale in units per second.

long presentationTimeOffset

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

long indexStart

The byte offset of the index data in the segment.

long indexLength

The length of the index data in bytes.

Public methods

getIndex

public @Nullable RangedUri getIndex()