diff options
Diffstat (limited to 'stream/types/src/lib.rs')
| -rw-r--r-- | stream/types/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/types/src/lib.rs b/stream/types/src/lib.rs index 50227ec..6a4fc79 100644 --- a/stream/types/src/lib.rs +++ b/stream/types/src/lib.rs @@ -134,7 +134,7 @@ pub enum StreamContainer { WebM, Matroska, WebVTT, - MPEG4, + MP4, JVTT, } @@ -145,8 +145,8 @@ impl StreamContainer { (Self::WebM, _) => "video/webm", (Self::Matroska, TrackKind::Audio) => "audio/x-matroska", (Self::Matroska, _) => "video/x-matroska", - (Self::MPEG4, TrackKind::Audio) => "audio/mp4", - (Self::MPEG4, _) => "video/mp4", + (Self::MP4, TrackKind::Audio) => "audio/mp4", + (Self::MP4, _) => "video/mp4", (Self::WebVTT, _) => "text/vtt", (Self::JVTT, _) => "application/jellything-vtt+json", } @@ -296,7 +296,7 @@ impl Display for StreamContainer { StreamContainer::Matroska => "matroska", StreamContainer::WebVTT => "webvtt", StreamContainer::JVTT => "jvtt", - StreamContainer::MPEG4 => "mpeg4", + StreamContainer::MP4 => "mp4", }) } } @@ -308,7 +308,7 @@ impl FromStr for StreamContainer { "matroska" => StreamContainer::Matroska, "webvtt" => StreamContainer::WebVTT, "jvtt" => StreamContainer::JVTT, - "mpeg4" => StreamContainer::MPEG4, + "mp4" => StreamContainer::MP4, _ => return Err(()), }) } |