diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/src/jhls.rs | 14 | ||||
-rw-r--r-- | common/src/lib.rs | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/common/src/jhls.rs b/common/src/jhls.rs new file mode 100644 index 0000000..e2cfa02 --- /dev/null +++ b/common/src/jhls.rs @@ -0,0 +1,14 @@ +use crate::SourceTrack; +use serde::{Deserialize, Serialize}; +use std::ops::Range; + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct JhlsMetadata { + pub tracks: Vec<JhlsTrack>, +} + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct JhlsTrack { + pub info: SourceTrack, + pub segments: Vec<Range<f64>>, +} diff --git a/common/src/lib.rs b/common/src/lib.rs index c842924..6403469 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -9,6 +9,7 @@ pub mod r#impl; pub mod seek_index; pub mod stream; pub mod user; +pub mod jhls; #[cfg(feature = "rocket")] use rocket::{FromFormField, UriDisplayQuery}; |