m3u8.cr

Generate and parse m3u8 playlists for HLS

m3u8 Build Status

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.

Repository

m3u8.cr

Owner
Statistic
  • 9
  • 0
  • 0
  • 0
  • 1
  • over 7 years ago
  • January 31, 2016
License

MIT License

Links
Synced at

Mon, 06 May 2024 18:09:34 GMT

Languages