public static class Representation.SingleSegmentRepresentation extends Representation
Representation.MultiSegmentRepresentation, Representation.SingleSegmentRepresentation
Modifier and Type | Field and Description |
---|---|
long |
contentLength
The content length, or -1 if unknown.
|
Uri |
uri
The uri of the single segment.
|
contentId, format, presentationTimeOffsetUs, revisionId
Constructor and Description |
---|
SingleSegmentRepresentation(String contentId,
long revisionId,
Format format,
SegmentBase.SingleSegmentBase segmentBase,
String customCacheKey,
long contentLength) |
Modifier and Type | Method and Description |
---|---|
DashSegmentIndex |
getIndex()
Gets a segment index, if the representation is able to provide one directly.
|
RangedUri |
getIndexUri()
Gets a
RangedUri defining the location of the representation's segment index. |
static Representation.SingleSegmentRepresentation |
newInstance(String contentId,
long revisionId,
Format format,
String uri,
long initializationStart,
long initializationEnd,
long indexStart,
long indexEnd,
String customCacheKey,
long contentLength) |
getCacheKey, getFormat, getInitializationUri, newInstance, newInstance
public final Uri uri
public final long contentLength
public SingleSegmentRepresentation(String contentId, long revisionId, Format format, SegmentBase.SingleSegmentBase segmentBase, String customCacheKey, long contentLength)
contentId
- Identifies the piece of content to which this representation belongs.revisionId
- Identifies the revision of the content.format
- The format of the representation.segmentBase
- The segment base underlying the representation.customCacheKey
- A custom value to be returned from Representation.getCacheKey()
, or null.contentLength
- The content length, or -1 if unknown.public static Representation.SingleSegmentRepresentation newInstance(String contentId, long revisionId, Format format, String uri, long initializationStart, long initializationEnd, long indexStart, long indexEnd, String customCacheKey, long contentLength)
contentId
- Identifies the piece of content to which this representation belongs.revisionId
- Identifies the revision of the content.format
- The format of the representation.uri
- The uri of the media.initializationStart
- The offset of the first byte of initialization data.initializationEnd
- The offset of the last byte of initialization data.indexStart
- The offset of the first byte of index data.indexEnd
- The offset of the last byte of index data.customCacheKey
- A custom value to be returned from Representation.getCacheKey()
, or null.contentLength
- The content length, or -1 if unknown.public RangedUri getIndexUri()
Representation
RangedUri
defining the location of the representation's segment index. Null if
the representation provides an index directly.getIndexUri
in class Representation
public DashSegmentIndex getIndex()
Representation
getIndex
in class Representation