diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/src/stream.rs | 2 | ||||
-rw-r--r-- | common/src/user.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/common/src/stream.rs b/common/src/stream.rs index 6c93294..aa1b931 100644 --- a/common/src/stream.rs +++ b/common/src/stream.rs @@ -28,6 +28,7 @@ pub enum StreamFormat { #[cfg_attr(feature = "rocket", field(value = "hlsvariant"))] HlsVariant, #[cfg_attr(feature = "rocket", field(value = "jhls"))] Jhls, #[cfg_attr(feature = "rocket", field(value = "hlsseg"))] Segment, + #[cfg_attr(feature = "rocket", field(value = "webvtt"))] Webvtt, } impl Default for StreamSpec { @@ -82,6 +83,7 @@ impl StreamFormat { StreamFormat::HlsVariant => "hlsvariant", StreamFormat::Jhls => "jhls", StreamFormat::Segment => "hlsseg", + StreamFormat::Webvtt => "webvtt", } } } diff --git a/common/src/user.rs b/common/src/user.rs index 2b67de5..ae9a757 100644 --- a/common/src/user.rs +++ b/common/src/user.rs @@ -58,7 +58,7 @@ impl UserPermission { self, Transcode | FederatedContent - | StreamFormat(Jhls | HlsMaster | HlsVariant | Matroska | Segment) + | StreamFormat(Jhls | HlsMaster | HlsVariant | Matroska | Segment | Webvtt) ) } } |