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. |
android.net.Uri |
uri
The uri of the single segment.
|
baseUrl, contentId, format, inbandEventStreams, presentationTimeOffsetUs, REVISION_ID_DEFAULT, revisionId| Constructor and Description |
|---|
SingleSegmentRepresentation(java.lang.String contentId,
long revisionId,
com.google.android.exoplayer2.Format format,
java.lang.String baseUrl,
SegmentBase.SingleSegmentBase segmentBase,
java.util.List<Descriptor> inbandEventStreams,
java.lang.String customCacheKey,
long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCacheKey()
Returns a cache key for the representation if a custom cache key or content id has been
provided and there is only single segment.
|
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(java.lang.String contentId,
long revisionId,
com.google.android.exoplayer2.Format format,
java.lang.String uri,
long initializationStart,
long initializationEnd,
long indexStart,
long indexEnd,
java.util.List<Descriptor> inbandEventStreams,
java.lang.String customCacheKey,
long contentLength) |
getInitializationUri, newInstance, newInstance, newInstancepublic final android.net.Uri uri
public final long contentLength
C.LENGTH_UNSET if unknown.public SingleSegmentRepresentation(java.lang.String contentId,
long revisionId,
com.google.android.exoplayer2.Format format,
java.lang.String baseUrl,
SegmentBase.SingleSegmentBase segmentBase,
java.util.List<Descriptor> inbandEventStreams,
java.lang.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.baseUrl - The base URL of the representation.segmentBase - The segment base underlying the representation.inbandEventStreams - The in-band event streams in the representation. May be null.customCacheKey - A custom value to be returned from getCacheKey(), or null.contentLength - The content length, or C.LENGTH_UNSET if unknown.public static Representation.SingleSegmentRepresentation newInstance(java.lang.String contentId, long revisionId, com.google.android.exoplayer2.Format format, java.lang.String uri, long initializationStart, long initializationEnd, long indexStart, long indexEnd, java.util.List<Descriptor> inbandEventStreams, java.lang.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.inbandEventStreams - The in-band event streams in the representation. May be null.customCacheKey - A custom value to be returned from getCacheKey(), or null.contentLength - The content length, or C.LENGTH_UNSET if unknown.public RangedUri getIndexUri()
RepresentationRangedUri defining the location of the representation's segment index, or
null if the representation provides an index directly.getIndexUri in class Representationpublic DashSegmentIndex getIndex()
RepresentationgetIndex in class Representationpublic java.lang.String getCacheKey()
RepresentationgetCacheKey in class Representation