@UnstableApi
abstract class SegmentBase

Known direct subclasses
SegmentBase.MultiSegmentBase

A SegmentBase that consists of multiple segments.

SegmentBase.SingleSegmentBase

A SegmentBase that defines a single segment.

Known indirect subclasses
SegmentBase.SegmentList

A MultiSegmentBase that uses a SegmentList to define its segments.

SegmentBase.SegmentTemplate

A MultiSegmentBase that uses a SegmentTemplate to define its segments.


An approximate representation of a SegmentBase manifest element.

Summary

Nested types

A SegmentBase that consists of multiple segments.

A MultiSegmentBase that uses a SegmentList to define its segments.

A MultiSegmentBase that uses a SegmentTemplate to define its segments.

Represents a timeline segment from the MPD's SegmentTimeline list.

A SegmentBase that defines a single segment.

Public constructors

SegmentBase(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long
)

Public functions

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

SegmentBase

SegmentBase(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: 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.

Public functions

getInitialization

fun getInitialization(
    @UnderInitialization(value = Representation) representation: @UnderInitialization(value = Representation) Representation!
): RangedUri?

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

Parameters
@UnderInitialization(value = Representation) representation: @UnderInitialization(value = Representation) Representation!

The Representation for which initialization data is required.

Returns
RangedUri?

A RangedUri defining the location of the initialization data, or null.

getPresentationTimeOffsetUs

fun getPresentationTimeOffsetUs(): Long

Returns the presentation time offset, in microseconds.