1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-25 00:20:59 +00:00
HLS(RFC8216) m3u8 parser/generator
Find a file
Takeru Ohta 4aa9f63f3b
Merge pull request #75 from sile/fix-test-failure
Fix incorrect doc test `{.should_panic}` attribute
2024-09-06 21:42:28 +09:00
.github/workflows remove miri from ci 2021-10-01 13:55:36 +02:00
benches Use Cow<'a, str> to reduce clones #52 2020-04-22 10:34:23 +02:00
src Fix incorrect doc test {.should_panic} attribute 2024-09-06 21:35:11 +09:00
tests Fix warnings added over the last 3 years 2024-09-06 12:41:57 +01:00
.gitignore more tests #25 + better docs #31 2019-10-03 18:01:53 +02:00
.travis.yml include backtrace feature in ci tests 2020-03-29 13:01:30 +02:00
Cargo.toml Bump version to v0.4.1 2021-08-03 07:11:16 +09:00
CHANGELOG.md Add changelog.md 2020-04-22 10:34:23 +02:00
LICENSE-APACHE Add Apache 2.0 license 2019-09-09 20:05:27 +09:00
LICENSE-MIT Add Apache 2.0 license 2019-09-09 20:05:27 +09:00
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.