aboutsummaryrefslogtreecommitdiff
path: root/stream/src/jhls.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-12-11 00:21:13 +0100
committermetamuffin <metamuffin@disroot.org>2023-12-11 00:21:13 +0100
commitb42ded3fcaf2088e464c5d4861449879a90c6ba0 (patch)
treeeff66c1c39a8e2ec61f121d446964d61c24ac7e7 /stream/src/jhls.rs
parentb050eb5c37e68a6fdd57068d4e73748bea3b0a11 (diff)
downloadjellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar
jellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar.bz2
jellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar.zst
horrible midnight fixes and some fancy popups in the player
Diffstat (limited to 'stream/src/jhls.rs')
-rw-r--r--stream/src/jhls.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs
index 850cc32..90dab63 100644
--- a/stream/src/jhls.rs
+++ b/stream/src/jhls.rs
@@ -22,8 +22,13 @@ pub async fn jhls_stream(
.iter()
.enumerate()
.filter_map(|(i, t)| {
+ // TODO can we maybe stream the subtitles as .mks in the future? that would be cool
+ // subtitles can only be supported by snippet_index if we relax constraints on the contents of each cluster
if matches!(t.kind, jellycommon::SourceTrackKind::Subtitles) {
- return None;
+ return Some(Ok(JhlsTrack {
+ info: t.to_owned(),
+ segments: vec![], // clients need to ignore this
+ }));
}
match jellyremuxer::snippet::snippet_index(
&CONF.library_path,