1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-09-27 06:00:02 +00:00
HLS(RFC8216) m3u8 parser/generator
Find a file
2020-04-22 09:55:11 +02:00
.github/workflows add cargo audit to github actions 2020-04-09 14:18:53 +02:00
benches Improve Benchmarks #51 2020-04-18 15:09:56 +02:00
src Minor performance improvements in AttributePairs parsing 2020-04-18 15:09:56 +02:00
tests add version-sync 2020-04-09 09:29:20 +02:00
.gitignore
.travis.yml
Cargo.toml Add performance feature 2020-04-22 09:55:11 +02:00
LICENSE-APACHE
LICENSE-MIT
README.md fix license badge in readme.md 2020-04-09 14:55:21 +02:00
rustfmt.toml improve rustfmt.toml 2020-04-09 09:29:29 +02:00

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.