Class: YoutubeSpeedStream

Inherits:
SpeedStream show all
Defined in:
lib/youtube_speed_stream.rb

Defined Under Namespace

Classes: YoutubeRange

Constant Summary

Constants inherited from SpeedStream

SpeedStream::BUF_SIZE, SpeedStream::USER_AGENT

Instance Attribute Summary

Attributes inherited from SpeedStream

#bytes_per_conn, #concurrent_connections, #cookies, #file_handle, #on_progress, #output_file, #uri

Instance Method Summary collapse

Methods inherited from SpeedStream

#download!

Constructor Details

#initialize(*a) ⇒ YoutubeSpeedStream

Returns a new instance of YoutubeSpeedStream.



13
14
15
16
17
18
# File 'lib/youtube_speed_stream.rb', line 13

def initialize(*a)
  super
  @concurrent_connections = 4
  @extra_file_length_headers = {}
  @chunk_beginnings = {}
end