aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'common/src')
-rw-r--r--common/src/jhls.rs7
-rw-r--r--common/src/stream.rs2
2 files changed, 9 insertions, 0 deletions
diff --git a/common/src/jhls.rs b/common/src/jhls.rs
index b365b3f..f4448b6 100644
--- a/common/src/jhls.rs
+++ b/common/src/jhls.rs
@@ -31,3 +31,10 @@ pub enum EncodingProfile {
codec: String,
},
}
+
+#[derive(Debug, Serialize, Deserialize)]
+pub struct SubtitleCue {
+ pub start: f64,
+ pub end: f64,
+ pub content: String,
+}
diff --git a/common/src/stream.rs b/common/src/stream.rs
index 151d497..aa7195e 100644
--- a/common/src/stream.rs
+++ b/common/src/stream.rs
@@ -30,6 +30,7 @@ pub enum StreamFormat {
#[cfg_attr(feature = "rocket", field(value = "jhlsi"))] JhlsIndex,
#[cfg_attr(feature = "rocket", field(value = "snippet"))] Snippet,
#[cfg_attr(feature = "rocket", field(value = "webvtt"))] Webvtt,
+ #[cfg_attr(feature = "rocket", field(value = "jvtt"))] Jvtt,
}
impl Default for StreamSpec {
@@ -78,6 +79,7 @@ impl StreamSpec {
impl StreamFormat {
pub fn ident(&self) -> &'static str {
match self {
+ StreamFormat::Jvtt => "jvtt",
StreamFormat::Original => "original",
StreamFormat::Matroska => "matroska",
StreamFormat::HlsMaster => "hlsmaster",