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

#337 in Parser implementations

Download history 560/week @ 2025-01-21 502/week @ 2025-01-28 768/week @ 2025-02-04 697/week @ 2025-02-11 752/week @ 2025-02-18 831/week @ 2025-02-25 633/week @ 2025-03-04 732/week @ 2025-03-11 710/week @ 2025-03-18 729/week @ 2025-03-25 583/week @ 2025-04-01 743/week @ 2025-04-08 411/week @ 2025-04-15 739/week @ 2025-04-22 779/week @ 2025-04-29 411/week @ 2025-05-06

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