Class EnhancedDownloadManager


  • public class EnhancedDownloadManager
    extends java.lang.Object
    • Field Detail

      • DEFAULT_MINIMUM_INITIAL_BUFFER_SECS_FOR_ETA

        public static int DEFAULT_MINIMUM_INITIAL_BUFFER_SECS_FOR_ETA
      • MINIMUM_INITIAL_BUFFER_SECS

        public static int MINIMUM_INITIAL_BUFFER_SECS
      • REACTIVATE_PROVIDER_PERIOD

        public static final int REACTIVATE_PROVIDER_PERIOD
        See Also:
        Constant Field Values
      • REACTIVATE_PROVIDER_PERIOD_TICKS

        public static final int REACTIVATE_PROVIDER_PERIOD_TICKS
        See Also:
        Constant Field Values
      • content_stream_bps_min_increase_ratio

        private static final int content_stream_bps_min_increase_ratio
        See Also:
        Constant Field Values
      • content_stream_bps_max_increase_ratio

        private static final int content_stream_bps_max_increase_ratio
        See Also:
        Constant Field Values
      • explicit_progressive

        boolean explicit_progressive
      • current_piece_pickler

        volatile PiecePicker current_piece_pickler
      • progressive_active

        volatile boolean progressive_active
      • content_min_delivery_bps

        long content_min_delivery_bps
      • minimum_initial_buffer_secs_for_eta

        int minimum_initial_buffer_secs_for_eta
      • marked_active

        private boolean marked_active
      • destroyed

        private boolean destroyed
    • Method Detail

      • getPrimaryFileIndex

        public int getPrimaryFileIndex()
      • setExplicitProgressive

        public void setExplicitProgressive​(int min_initial_buffer_secs,
                                           long min_bps,
                                           int file_index)
      • getName

        public java.lang.String getName()
      • getHash

        public byte[] getHash()
      • getTargetSpeed

        protected long getTargetSpeed()
      • updateStats

        protected boolean updateStats​(int tick_count)
      • supportsProgressiveMode

        public boolean supportsProgressiveMode()
      • prepareForProgressiveMode

        public void prepareForProgressiveMode​(boolean active)
      • setProgressiveMode

        public boolean setProgressiveMode​(boolean active)
      • setProgressiveMode

        protected boolean setProgressiveMode​(boolean active,
                                             boolean switching_progressive_downloads)
      • getProgressiveMode

        public boolean getProgressiveMode()
      • getProgressivePlayETA

        public long getProgressivePlayETA()
      • updateProgressiveStats

        protected boolean updateProgressiveStats​(int tick_count)
      • setRTA

        protected void setRTA​(boolean active)
      • getContiguousAvailableBytes

        public long getContiguousAvailableBytes​(int file_index,
                                                long file_start_offset,
                                                long stop_counting_after)
      • destroy

        protected void destroy()
      • log

        protected void log​(java.lang.String str)
      • log

        protected void log​(java.lang.String str,
                           boolean to_file)
      • log

        protected void log​(DownloadManager dm,
                           java.lang.String str,
                           boolean to_file)