diff --git a/crates/store/re_types/src/components/media_type_ext.rs b/crates/store/re_types/src/components/media_type_ext.rs index 2e36c60e0938..4540f17bbb9b 100644 --- a/crates/store/re_types/src/components/media_type_ext.rs +++ b/crates/store/re_types/src/components/media_type_ext.rs @@ -45,6 +45,11 @@ impl MediaType { /// Either binary or ASCII. /// pub const STL: &'static str = "model/stl"; + + /// [MP4 video](https://en.wikipedia.org/wiki/MP4_file_format): `video/mp4`. + /// + /// + pub const MP4: &'static str = "video/mp4"; } impl MediaType { @@ -101,6 +106,12 @@ impl MediaType { pub fn stl() -> Self { Self(Self::STL.into()) } + + /// `video/mp4` + #[inline] + pub fn mp4() -> Self { + Self(Self::MP4.into()) + } } impl MediaType { diff --git a/rerun_cpp/src/rerun/components/media_type_ext.cpp b/rerun_cpp/src/rerun/components/media_type_ext.cpp index 4380a520597f..28b98df4b6b2 100644 --- a/rerun_cpp/src/rerun/components/media_type_ext.cpp +++ b/rerun_cpp/src/rerun/components/media_type_ext.cpp @@ -79,6 +79,13 @@ namespace rerun { return "model/stl"; } + /// [MP4 video](https://en.wikipedia.org/wiki/MP4_file_format): `video/mp4`. + /// + /// + static MediaType mp4() { + return "video/mp4"; + } + // } };