public abstract class SegmentBase
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SegmentBase.MultiSegmentBase
A
SegmentBase that consists of multiple segments. |
static class |
SegmentBase.SegmentList
A
SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments. |
static class |
SegmentBase.SegmentTemplate
A
SegmentBase.MultiSegmentBase that uses a SegmentTemplate to define its segments. |
static class |
SegmentBase.SegmentTimelineElement
Represents a timeline segment from the MPD's SegmentTimeline list.
|
static class |
SegmentBase.SingleSegmentBase
A
SegmentBase that defines a single segment. |
| Constructor and Description |
|---|
SegmentBase(RangedUri initialization,
long timescale,
long presentationTimeOffset) |
| Modifier and Type | Method and Description |
|---|---|
RangedUri |
getInitialization(Representation representation)
Returns the
RangedUri defining the location of initialization data for a given
representation, or null if no initialization data exists. |
long |
getPresentationTimeOffsetUs()
Returns the presentation time offset, in microseconds.
|
public SegmentBase(RangedUri initialization, long timescale, long presentationTimeOffset)
initialization - A RangedUri corresponding to initialization data, if such data
exists.timescale - The timescale in units per second.presentationTimeOffset - The presentation time offset. The value in seconds is the
division of this value and timescale.public RangedUri getInitialization(Representation representation)
RangedUri defining the location of initialization data for a given
representation, or null if no initialization data exists.representation - The Representation for which initialization data is required.RangedUri defining the location of the initialization data, or null.public long getPresentationTimeOffsetUs()