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

#335 in Parser implementations

Download history 543/week @ 2024-11-16 832/week @ 2024-11-23 948/week @ 2024-11-30 685/week @ 2024-12-07 561/week @ 2024-12-14 462/week @ 2024-12-21 338/week @ 2024-12-28 651/week @ 2025-01-04 674/week @ 2025-01-11 606/week @ 2025-01-18 461/week @ 2025-01-25 735/week @ 2025-02-01 718/week @ 2025-02-08 618/week @ 2025-02-15 899/week @ 2025-02-22 692/week @ 2025-03-01

3,046 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