Skip to content

Commit

Permalink
getusermedia/record: add supported MP4 mime types.
Browse files Browse the repository at this point in the history
  • Loading branch information
handellm committed Mar 21, 2024
1 parent b485ae6 commit 6574554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/getusermedia/record/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6574554

Please sign in to comment.