JOCHLSDownloader 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -7,12 +7,12 @@ Usage examples:
|
|
7
7
|
|
8
8
|
require 'JOCHLSDownloader.rb'
|
9
9
|
|
10
|
-
#URL from HLS apple example
|
11
10
|
url = "https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8"
|
12
11
|
downloadpath = "./donloadtestfiles"
|
13
12
|
logfilename = "jochlsdownloader.log"
|
14
13
|
|
15
14
|
begin
|
15
|
+
|
16
16
|
hlsdownloader = CJOCHLSDownloader.new(url, downloadpath, logfilename, Logger::DEBUG)
|
17
17
|
|
18
18
|
hlsdownloader.startdownload
|
@@ -20,5 +20,9 @@ begin
|
|
20
20
|
puts "End!"
|
21
21
|
|
22
22
|
rescue Exception => e
|
23
|
+
|
23
24
|
puts "Error: #{e.message}, Trace: #{e.backtrace.inspect}"
|
25
|
+
|
24
26
|
end
|
27
|
+
|
28
|
+
Note: Test URL from Apple HLS example
|