1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-25 08:31:00 +00:00
hls_m3u8/README.md

52 lines
1.4 KiB
Markdown
Raw Normal View History

2018-02-11 06:10:52 +00:00
hls_m3u8
=========
2018-10-10 15:41:20 +00:00
[![Crates.io: hls_m3u8](https://img.shields.io/crates/v/hls_m3u8.svg)](https://crates.io/crates/hls_m3u8)
2018-02-14 20:26:52 +00:00
[![Documentation](https://docs.rs/hls_m3u8/badge.svg)](https://docs.rs/hls_m3u8)
[![Build Status](https://travis-ci.org/sile/hls_m3u8.svg?branch=master)](https://travis-ci.org/sile/hls_m3u8)
[![Code Coverage](https://codecov.io/gh/sile/hls_m3u8/branch/master/graph/badge.svg)](https://codecov.io/gh/sile/hls_m3u8/branch/master)
2020-04-09 12:55:21 +00:00
![License](https://img.shields.io/crates/l/hls_m3u8)
2018-02-11 06:10:52 +00:00
2018-02-14 20:26:52 +00:00
[HLS] m3u8 parser/generator.
2018-02-11 06:10:52 +00:00
2018-02-14 20:26:52 +00:00
[Documentation](https://docs.rs/hls_m3u8)
[HLS]: https://tools.ietf.org/html/rfc8216
Examples
---------
```rust
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());
```
2019-09-09 11:05:27 +00:00
## License
Licensed under either of
- Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
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.