Sha256: 38f69d8efe6f264a66cc4f64065307ecaeb0109dcc2b2f98621ea18fc920ccf3
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
# HLSpider - the HTTP Live Streaming Spider Asynchronously downloads .m3u8 playlists and reports back on whether or not the playlists are aligned in time. ## Purpose Apple's HTTP Live Streaming (HLS) is used to deliver content with varying bit rate streams so a 3G connected cellphone can watch a video without buffering while a laptop can watch that same content in full 1080p. HLS uses .m3u8 playlist files (each bit rate having its own) which contain links to download the next video segment.It is very important that these different playlists are all at the same point in time so switching between bit rates is a seamless experience. Point HLSpider at multiple playlists and it will report back on whether or not these playlist contain the same number segment at the end of their playlist. ## Usage ``` # Point the spider at multiple playlists playlists = ["http://host.com/video1/playlist1.m3u8", "http://host.com/video1/playlist2.m3u8", "http://host.com/video1/playlist3.m3u8"] spider = HLSpider.new(playlists) ``` OR ``` # The parent multi bit rate playlist parent_url = "http://host.com/video1/all_bitrates_playlist.m3u8" spider = HLSpider.new(parent_url) ``` ``` spider.aligned? spider.invalid_playlists playlist = spider.playlists[0] playlist.valid? playlist.segments playlist.url playlist.file playlist.target_duration ``` HLSpider is also available from the command line ``` hlspider crawl --playlists=http://host.com/video1/playlist1.m3u8,http://host.com/video1/playlist2.m3u8 http://host.com/video1/playlist3.m3u8 ``` OR ``` hlspider crawl --playlists=http://host.com/video1/all_bitrates_playlist.m3u8 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hlspider-0.2.0 | README.md |