public static class SegmentBase.SingleSegmentBase extends SegmentBase
SegmentBase
that defines a single segment.SegmentBase.MultiSegmentBase, SegmentBase.SegmentList, SegmentBase.SegmentTemplate, SegmentBase.SegmentTimelineElement, SegmentBase.SingleSegmentBase
Constructor and Description |
---|
SingleSegmentBase(RangedUri initialization,
long timescale,
long presentationTimeOffset,
String uri,
long indexStart,
long indexLength) |
SingleSegmentBase(String uri) |
Modifier and Type | Method and Description |
---|---|
RangedUri |
getIndex() |
getInitialization, getPresentationTimeOffsetUs
public final String uri
public SingleSegmentBase(RangedUri initialization, long timescale, long presentationTimeOffset, String uri, long indexStart, long indexLength)
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
.uri
- The uri of the segment.indexStart
- The byte offset of the index data in the segment.indexLength
- The length of the index data in bytes.public SingleSegmentBase(String uri)
uri
- The uri of the segment.public RangedUri getIndex()