HLS(RFC8216) m3u8 parser/generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Lucas f5ddfed738
Merge pull request #72 from Luro02/ci
2 years ago
.github/workflows remove miri from ci 2 years ago
benches Use `Cow<'a, str>` to reduce clones #52 3 years ago
src Merge pull request #69 from Luro02/issue64 2 years ago
tests fix issue #64 2 years ago
.gitignore more tests #25 + better docs #31 4 years ago
.travis.yml include backtrace feature in ci tests 3 years ago
CHANGELOG.md Add changelog.md 3 years ago
Cargo.toml Bump version to v0.4.1 2 years ago
LICENSE-APACHE Add Apache 2.0 license 4 years ago
LICENSE-MIT Add Apache 2.0 license 4 years ago
README.md fix license badge in readme.md 3 years ago
rustfmt.toml improve rustfmt.toml 3 years ago

README.md

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.