diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/src/jhls.rs | 7 |
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, |