public static class Representation.SingleSegmentRepresentation extends Representation
Representation.MultiSegmentRepresentation, Representation.SingleSegmentRepresentation
Modifier and Type | Field and Description |
---|---|
long |
contentLength
The content length, or
C.LENGTH_UNSET if unknown. |
Uri |
uri
The uri of the single segment.
|
contentId, format, presentationTimeOffsetUs, REVISION_ID_DEFAULT, 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()
Returns an index if the representation provides one directly, or null otherwise.
|
RangedUri |
getIndexUri()
Returns a
RangedUri defining the location of the representation's segment index, or
null if the representation provides an index directly. |
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, getInitializationUri, newInstance, newInstance
public final Uri uri
public final long contentLength
C.LENGTH_UNSET
if unknown.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 C.LENGTH_UNSET
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 C.LENGTH_UNSET
if unknown.public RangedUri getIndexUri()
Representation
RangedUri
defining the location of the representation's segment index, or
null if the representation provides an index directly.getIndexUri
in class Representation
public DashSegmentIndex getIndex()
Representation
getIndex
in class Representation