1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-21 14:50:59 +00:00
HLS(RFC8216) m3u8 parser/generator
Find a file
Lucas b197d5fbd7
Merge pull request #34 from Luro02/master
Documentation Improvements + more tests
2019-09-22 18:02:42 +02:00
.github/workflows Update rust.yml 2019-09-21 13:10:55 +02:00
examples New Error type 2019-09-13 16:06:52 +02:00
src more documentation #31 + tests #25 2019-09-22 18:00:38 +02:00
tests remove url #21 2019-09-21 12:11:36 +02:00
.gitignore Initial commit 2018-02-11 15:10:52 +09:00
.travis.yml Add .travis.yml 2018-02-14 16:45:16 +09:00
Cargo.toml Merge pull request #30 from Luro02/master 2019-09-21 12:32:49 +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 Update README.md 2019-09-09 20:16:13 +09:00

hls_m3u8

Crates.io: hls_m3u8 Documentation Build Status Code Coverage License: Apache OR License: MIT

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.