Interface DiskManagerRequest

    • Method Detail

      • setType

        void setType​(int type)
      • setOffset

        void setOffset​(long offset)
      • setLength

        void setLength​(long length)
      • getAvailableBytes

        long getAvailableBytes()
        Get the number of bytes available for immediate reading from the request given its current position. If this information is not known (download not running) then -1 is returned
        Returns:
      • getRemaining

        long getRemaining()
        Get the number of bytes remaining to be read for the request
        Returns:
      • run

        void run()
      • cancel

        void cancel()
      • setUserAgent

        void setUserAgent​(java.lang.String agent)
        Beware that invoking this method signifies that the media is being streamed and therefore may undergo transformations such as MOOV atom relocation in mp4s
        Parameters:
        agent -
      • setMaximumReadChunkSize

        void setMaximumReadChunkSize​(int size)