13 releases

0.5.1 Apr 10, 2025
0.5.0 Feb 4, 2025
0.4.2 Sep 6, 2024
0.4.1 Aug 2, 2021
0.1.1 Feb 23, 2018

#331 in Parser implementations

Download history 589/week @ 2025-06-15 1033/week @ 2025-06-22 575/week @ 2025-06-29 648/week @ 2025-07-06 897/week @ 2025-07-13 900/week @ 2025-07-20 888/week @ 2025-07-27 758/week @ 2025-08-03 1161/week @ 2025-08-10 1227/week @ 2025-08-17 1132/week @ 2025-08-24 1900/week @ 2025-08-31 1353/week @ 2025-09-07 1202/week @ 2025-09-14 2468/week @ 2025-09-21 1660/week @ 2025-09-28

6,946 downloads per month
Used in 9 crates (7 directly)

MIT/Apache

395KB
8K SLoC

hls_m3u8

Crates.io: hls_m3u8 Documentation Actions Status 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–2.4MB
~47K SLoC