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

#1161 in Parser implementations

Download history 469/week @ 2024-03-13 192/week @ 2024-03-20 182/week @ 2024-03-27 217/week @ 2024-04-03 131/week @ 2024-04-10 108/week @ 2024-04-17 90/week @ 2024-04-24 79/week @ 2024-05-01 63/week @ 2024-05-08 70/week @ 2024-05-15 83/week @ 2024-05-22 90/week @ 2024-05-29 101/week @ 2024-06-05 63/week @ 2024-06-12 104/week @ 2024-06-19 100/week @ 2024-06-26

383 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.5–3.5MB
~73K SLoC