11 releases

0.4.2 Sep 6, 2024
0.4.1 Aug 2, 2021
0.4.0 Aug 15, 2020
0.3.0 Apr 10, 2020
0.1.1 Feb 23, 2018

#401 in Parser implementations

Download history 482/week @ 2024-09-20 542/week @ 2024-09-27 399/week @ 2024-10-04 440/week @ 2024-10-11 525/week @ 2024-10-18 381/week @ 2024-10-25 509/week @ 2024-11-01 433/week @ 2024-11-08 509/week @ 2024-11-15 827/week @ 2024-11-22 994/week @ 2024-11-29 648/week @ 2024-12-06 563/week @ 2024-12-13 489/week @ 2024-12-20 382/week @ 2024-12-27 524/week @ 2025-01-03

2,066 downloads per month
Used in 6 crates (4 directly)

MIT/Apache

390KB
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

~2.5–8MB
~72K SLoC