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

#333 in Parser implementations

Download history 482/week @ 2024-11-04 440/week @ 2024-11-11 609/week @ 2024-11-18 841/week @ 2024-11-25 894/week @ 2024-12-02 671/week @ 2024-12-09 561/week @ 2024-12-16 462/week @ 2024-12-23 406/week @ 2024-12-30 595/week @ 2025-01-06 657/week @ 2025-01-13 664/week @ 2025-01-20 379/week @ 2025-01-27 822/week @ 2025-02-03 733/week @ 2025-02-10 82/week @ 2025-02-17

2,075 downloads per month
Used in 6 crates (4 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–7MB
~47K SLoC