mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-25 16:41:00 +00:00
Add documentation
This commit is contained in:
parent
cec25050b5
commit
4315081ff1
1 changed files with 16 additions and 1 deletions
17
src/lib.rs
17
src/lib.rs
|
@ -4,7 +4,22 @@
|
|||
//!
|
||||
//! # Examples
|
||||
//!
|
||||
//! TODO
|
||||
//! ```
|
||||
//! 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());
|
||||
//! ```
|
||||
#![warn(missing_docs)]
|
||||
extern crate chrono;
|
||||
#[macro_use]
|
||||
|
|
Loading…
Reference in a new issue