https://github.com/sile/hls_m3u8
HLS(RFC8216) m3u8 parser/generator
https://github.com/sile/hls_m3u8
hls m3u8 rust
Last synced: 6 months ago
JSON representation
HLS(RFC8216) m3u8 parser/generator
- Host: GitHub
- URL: https://github.com/sile/hls_m3u8
- Owner: sile
- License: apache-2.0
- Created: 2018-02-11T06:09:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T13:10:57.000Z (7 months ago)
- Last Synced: 2025-04-13T04:58:56.060Z (6 months ago)
- Topics: hls, m3u8, rust
- Language: Rust
- Size: 874 KB
- Stars: 59
- Watchers: 3
- Forks: 22
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
hls_m3u8
=========[](https://crates.io/crates/hls_m3u8)
[](https://docs.rs/hls_m3u8)
[](https://github.com/sile/hls_m3u8/actions)
[HLS] m3u8 parser/generator.
[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::().is_ok());
```## 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.