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

#417 in Parser implementations

Download history 446/week @ 2024-08-23 465/week @ 2024-08-30 727/week @ 2024-09-06 443/week @ 2024-09-13 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 998/week @ 2024-11-29 521/week @ 2024-12-06

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

~1.4–7MB
~51K SLoC