From b42ded3fcaf2088e464c5d4861449879a90c6ba0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 11 Dec 2023 00:21:13 +0100 Subject: horrible midnight fixes and some fancy popups in the player --- stream/src/jhls.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stream') 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, -- cgit v1.2.3-70-g09d2