12 releases

0.5.0 Feb 4, 2025
0.4.2 Sep 6, 2024
0.4.1 Aug 2, 2021
0.4.0 Aug 15, 2020
0.1.1 Feb 23, 2018

#319 in Parser implementations

Download history 677/week @ 2024-12-11 541/week @ 2024-12-18 337/week @ 2024-12-25 579/week @ 2025-01-01 525/week @ 2025-01-08 673/week @ 2025-01-15 565/week @ 2025-01-22 665/week @ 2025-01-29 646/week @ 2025-02-05 692/week @ 2025-02-12 724/week @ 2025-02-19 856/week @ 2025-02-26 663/week @ 2025-03-05 741/week @ 2025-03-12 702/week @ 2025-03-19 619/week @ 2025-03-26

2,799 downloads per month
Used in 7 crates (5 directly)

MIT/Apache

395KB
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

~1–7.5MB
~47K SLoC