aboutsummaryrefslogtreecommitdiff
path: root/common/src/jhls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/jhls.rs')
-rw-r--r--common/src/jhls.rs14
1 files changed, 14 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>>,
+}