From 65745549c8e65aba3d0de1f4474d674cd4787c0d Mon Sep 17 00:00:00 2001 From: Markus Handell Date: Thu, 21 Mar 2024 11:37:15 +0100 Subject: [PATCH] getusermedia/record: add supported MP4 mime types. --- src/content/getusermedia/record/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/getusermedia/record/js/main.js b/src/content/getusermedia/record/js/main.js index 9bf3b28e1..89ba69fd8 100644 --- a/src/content/getusermedia/record/js/main.js +++ b/src/content/getusermedia/record/js/main.js @@ -73,8 +73,10 @@ function getSupportedMimeTypes() { 'video/webm;codecs=vp9,opus', 'video/webm;codecs=vp8,opus', 'video/webm;codecs=h264,opus', - 'video/mp4;codecs=h264,aac', 'video/webm;codecs=av01,opus', + 'video/mp4;codecs=h264,aac', + 'video/mp4;codecs=avc1,mp4a.40.2', + 'video/mp4', ]; return possibleTypes.filter(mimeType => { return MediaRecorder.isTypeSupported(mimeType);