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

#958 in Parser implementations

Download history 19/week @ 2024-01-01 67/week @ 2024-01-08 118/week @ 2024-01-15 195/week @ 2024-01-22 67/week @ 2024-01-29 71/week @ 2024-02-05 157/week @ 2024-02-12 93/week @ 2024-02-19 412/week @ 2024-02-26 140/week @ 2024-03-04 419/week @ 2024-03-11 264/week @ 2024-03-18 112/week @ 2024-03-25 293/week @ 2024-04-01 114/week @ 2024-04-08 127/week @ 2024-04-15

657 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.4–3.5MB
~71K SLoC