Skip to content

Commit

Permalink
Merge pull request #1611 from rosetta-jpn/Fix-AV1-Codecs-Str
Browse files Browse the repository at this point in the history
Fix AV1 codecs string
  • Loading branch information
fippo authored Sep 5, 2023
2 parents 4d42378 + 8a241a2 commit c53ed21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/getusermedia/record/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ function handleDataAvailable(event) {

function getSupportedMimeTypes() {
const possibleTypes = [
'video/webm;codecs=av1,opus',
'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/webm;codecs=av1,opus', // deprecated, prefer av01.
];
return possibleTypes.filter(mimeType => {
return MediaRecorder.isTypeSupported(mimeType);
Expand Down

0 comments on commit c53ed21

Please sign in to comment.