diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-01 09:20:39 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-01 09:20:39 +0200 |
commit | d857684dd6358fb5ff979ca09ac78b5649b0f411 (patch) | |
tree | dcaea52cf90f0c38cdf7b1fe8f03e6147925412f /common/src | |
parent | cfc6e1b0cf0ce90b2fc05120ebb41295987fa7ea (diff) | |
download | jellything-d857684dd6358fb5ff979ca09ac78b5649b0f411.tar jellything-d857684dd6358fb5ff979ca09ac78b5649b0f411.tar.bz2 jellything-d857684dd6358fb5ff979ca09ac78b5649b0f411.tar.zst |
jhls server-side draft
Diffstat (limited to 'common/src')
-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}; |