1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-15 20:01:01 +00:00
HLS(RFC8216) m3u8 parser/generator
Find a file
2019-09-03 08:06:30 +02:00
examples Apply rustfmt-1.0.0 2019-03-31 18:54:21 +09:00
src major rewrite of the library 2019-09-02 14:15:20 +02:00
tests fixed ci tests (temporary solution) 2019-09-03 08:06:30 +02:00
.gitignore Initial commit 2018-02-11 15:10:52 +09:00
.travis.yml Add .travis.yml 2018-02-14 16:45:16 +09:00
Cargo.toml major rewrite of the library 2019-09-02 14:15:20 +02:00
LICENSE Add LICENSE 2018-02-15 05:23:58 +09:00
README.md Update README.md 2018-10-11 00:41:20 +09:00
rustfmt.toml major rewrite of the library 2019-09-02 14:15:20 +02:00

hls_m3u8

Crates.io: hls_m3u8 Documentation Build Status Code Coverage License: MIT

HLS m3u8 parser/generator.

Documentation

Examples

use hls_m3u8::MediaPlaylist;

let m3u8 = "#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:3
#EXTINF:9.009,
http://media.example.com/first.ts
#EXTINF:9.009,
http://media.example.com/second.ts
#EXTINF:3.003,
http://media.example.com/third.ts
#EXT-X-ENDLIST";

assert!(m3u8.parse::<MediaPlaylist>().is_ok());