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

#422 in Parser implementations

Download history 523/week @ 2024-08-04 753/week @ 2024-08-11 494/week @ 2024-08-18 486/week @ 2024-08-25 658/week @ 2024-09-01 491/week @ 2024-09-08 410/week @ 2024-09-15 569/week @ 2024-09-22 502/week @ 2024-09-29 349/week @ 2024-10-06 499/week @ 2024-10-13 456/week @ 2024-10-20 461/week @ 2024-10-27 509/week @ 2024-11-03 424/week @ 2024-11-10 454/week @ 2024-11-17

1,873 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.4–8MB
~71K SLoC