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