m3u8
Generate and parse m3u8 playlists for HTTP Live Streaming with Crystal
Status
The project is currently on a very early stage of development, take a look at the M3U8.md file in order to check the progress.
Installation
Add this to your application's shard.yml
:
dependencies:
m3u8:
github: marceloboeira/m3u8.cr
Usage
Small example:
require "m3u8"
playlist = M3U8::MediaPlaylist.new(4)
playlist.segments << M3U8::MediaPlaylist::Segment.new("low-001.ts", 3.054)
playlist.segments << M3U8::MediaPlaylist::Segment.new("low-002.ts", 3.054)
...
puts playlist.to_s
M3U8 in other languages
Contributing
Want to contribute? check this first.