Class Representation.SingleSegmentRepresentation

  • Enclosing class:
    Representation

    public static class Representation.SingleSegmentRepresentation
    extends Representation
    A DASH representation consisting of a single segment.
    • Field Detail

      • uri

        public final Uri uri
        The uri of the single segment.
      • contentLength

        public final long contentLength
        The content length, or C.LENGTH_UNSET if unknown.
    • Constructor Detail

      • SingleSegmentRepresentation

        public SingleSegmentRepresentation​(long revisionId,
                                           Format format,
                                           List<BaseUrl> baseUrls,
                                           SegmentBase.SingleSegmentBase segmentBase,
                                           @Nullable
                                           List<Descriptor> inbandEventStreams,
                                           @Nullable
                                           String cacheKey,
                                           long contentLength)
        Parameters:
        revisionId - Identifies the revision of the content.
        format - The format of the representation.
        baseUrls - The base urls of the representation.
        segmentBase - The segment base underlying the representation.
        inbandEventStreams - The in-band event streams in the representation. May be null.
        cacheKey - An optional key to be returned from getCacheKey(), or null.
        contentLength - The content length, or C.LENGTH_UNSET if unknown.
    • Method Detail

      • newInstance

        public static Representation.SingleSegmentRepresentation newInstance​(long revisionId,
                                                                             Format format,
                                                                             String uri,
                                                                             long initializationStart,
                                                                             long initializationEnd,
                                                                             long indexStart,
                                                                             long indexEnd,
                                                                             List<Descriptor> inbandEventStreams,
                                                                             @Nullable
                                                                             String cacheKey,
                                                                             long contentLength)
        Parameters:
        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.
        cacheKey - An optional key to be returned from getCacheKey(), or null.
        contentLength - The content length, or C.LENGTH_UNSET if unknown.
      • getIndexUri

        @Nullable
        public RangedUri getIndexUri()
        Description copied from class: Representation
        Returns a RangedUri defining the location of the representation's segment index, or null if the representation provides an index directly.
        Specified by:
        getIndexUri in class Representation