10 releases

0.4.1 Aug 2, 2021
0.4.0 Aug 15, 2020
0.3.0 Apr 10, 2020
0.2.1 Sep 9, 2019
0.1.1 Feb 23, 2018

#973 in Parser implementations

Download history 173/week @ 2023-01-30 111/week @ 2023-02-06 197/week @ 2023-02-13 163/week @ 2023-02-20 192/week @ 2023-02-27 202/week @ 2023-03-06 171/week @ 2023-03-13 123/week @ 2023-03-20 142/week @ 2023-03-27 95/week @ 2023-04-03 152/week @ 2023-04-10 187/week @ 2023-04-17 72/week @ 2023-04-24 87/week @ 2023-05-01 102/week @ 2023-05-08 127/week @ 2023-05-15

388 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

390KB
8K SLoC

hls_m3u8

Crates.io: hls_m3u8 Documentation Build Status Code Coverage License

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());

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–3.5MB
~69K SLoC