JOCHLSDownloader

Version

The JOCHLSDownloader is a very simple native ruby code that downloads all files linked by a m3u8 manifest

Note: For LIVE and EVENT playlist types it downloads only the firsts media segments. For VOD playlist type it will download all media content.

Usage examples:

require 'JOCHLSDownloader.rb'

url = "https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8"
downloadpath = "./donloadtestfiles"
logfilename = "jochlsdownloader.log"

begin

   hlsdownloader = CJOCHLSDownloader.new(url, downloadpath, logfilename, Logger::DEBUG)

   hlsdownloader.startdownload

   puts "End!"

rescue Exception => e

   puts "Error: #{e.message}, Trace: #{e.backtrace.inspect}"

end

Note: Test URL from Apple HLS example