aboutsummaryrefslogtreecommitdiff
path: root/stream/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/lib.rs')
-rw-r--r--stream/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs
index e86230c..8d4ee3a 100644
--- a/stream/src/lib.rs
+++ b/stream/src/lib.rs
@@ -39,9 +39,9 @@ pub fn stream_head(spec: &StreamSpec) -> StreamHead {
StreamFormat::Original => StreamHead { content_type: "video/x-matroska", range_supported: true },
StreamFormat::Matroska => StreamHead { content_type: webm_or_mkv, range_supported: true },
StreamFormat::HlsMaster | StreamFormat::HlsVariant => StreamHead { content_type: "application/vnd.apple.mpegurl", range_supported: false },
- StreamFormat::Jhls => StreamHead { content_type: "application/jellything-jhls+json", range_supported: false },
+ StreamFormat::JhlsIndex => StreamHead { content_type: "application/jellything-jhls+json", range_supported: false },
StreamFormat::Webvtt => StreamHead { content_type: "text/vtt", range_supported: false },
- StreamFormat::Segment => StreamHead { content_type: webm_or_mkv, range_supported: false },
+ StreamFormat::Snippet => StreamHead { content_type: webm_or_mkv, range_supported: false },
}
}
@@ -85,8 +85,8 @@ pub async fn stream(
StreamFormat::Matroska => remux_stream(node, local_tracks, spec, range, b).await?,
StreamFormat::HlsMaster => hls_master_stream(node, local_tracks, spec, b).await?,
StreamFormat::HlsVariant => hls_variant_stream(node, local_tracks, spec, b).await?,
- StreamFormat::Jhls => jhls_index(node, &local_tracks, spec, b, perms).await?,
- StreamFormat::Segment => segment_stream(node, local_tracks, spec, b, perms).await?,
+ StreamFormat::JhlsIndex => jhls_index(node, &local_tracks, spec, b, perms).await?,
+ StreamFormat::Snippet => segment_stream(node, local_tracks, spec, b, perms).await?,
StreamFormat::Webvtt => webvtt_stream(node, local_tracks, spec, b).await?,
}