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

#433 in Parser implementations

Download history 361/week @ 2024-07-03 540/week @ 2024-07-10 901/week @ 2024-07-17 487/week @ 2024-07-24 504/week @ 2024-07-31 655/week @ 2024-08-07 655/week @ 2024-08-14 467/week @ 2024-08-21 461/week @ 2024-08-28 719/week @ 2024-09-04 434/week @ 2024-09-11 415/week @ 2024-09-18 597/week @ 2024-09-25 434/week @ 2024-10-02 421/week @ 2024-10-09 469/week @ 2024-10-16

1,997 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