10 releases

0.4.1 Aug 2, 2021
0.4.0 Aug 15, 2020
0.3.0 Apr 10, 2020
0.2.1 Sep 9, 2019
0.1.1 Feb 23, 2018

#987 in Parser implementations

Download history 191/week @ 2023-10-17 105/week @ 2023-10-24 136/week @ 2023-10-31 133/week @ 2023-11-07 149/week @ 2023-11-14 109/week @ 2023-11-21 298/week @ 2023-11-28 236/week @ 2023-12-05 120/week @ 2023-12-12 167/week @ 2023-12-19 123/week @ 2023-12-26 90/week @ 2024-01-02 116/week @ 2024-01-09 217/week @ 2024-01-16 247/week @ 2024-01-23 148/week @ 2024-01-30

762 downloads per month
Used in 5 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.3–3.5MB
~69K SLoC