1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-18 16:28:20 +00:00
HLS(RFC8216) m3u8 parser/generator
Go to file
Luro02 aae3809545
remove Copy trait from Lines
Copy should not be implemented for types that implement Iterator, 
because this would be confusing.

https://rust-lang.github.io/rust-clippy/master/#copy_iterator
2020-02-06 12:24:40 +01:00
.github/workflows switch rustfmt to nightly 2019-10-03 18:04:10 +02:00
examples minor improvements 2020-01-26 13:12:19 +01:00
src remove Copy trait from Lines 2020-02-06 12:24:40 +01:00
tests minor changes 2019-10-12 11:38:28 +02:00
.gitignore more tests #25 + better docs #31 2019-10-03 18:01:53 +02:00
.travis.yml added cargo-audit to travis 2019-10-03 18:04:10 +02:00
Cargo.toml update dependencies 2020-02-02 15:23:47 +01: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
rustfmt.toml added rustfmt.toml 2019-10-03 18:04:10 +02: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.