13 releases

new 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

#302 in Parser implementations

Download history 493/week @ 2024-12-19 356/week @ 2024-12-26 623/week @ 2025-01-02 541/week @ 2025-01-09 665/week @ 2025-01-16 509/week @ 2025-01-23 675/week @ 2025-01-30 737/week @ 2025-02-06 566/week @ 2025-02-13 812/week @ 2025-02-20 807/week @ 2025-02-27 708/week @ 2025-03-06 757/week @ 2025-03-13 662/week @ 2025-03-20 663/week @ 2025-03-27 558/week @ 2025-04-03

2,756 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