From a7d9afe6c2256cd370a5836bfc7118f18630e3ed Mon Sep 17 00:00:00 2001 From: Becky Gilbert Date: Thu, 30 Jan 2025 10:58:07 -0800 Subject: [PATCH] remove av1 codec option (not officially supported in webm) and add comment about updating mime type list --- packages/record/src/videoConfig.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/record/src/videoConfig.ts b/packages/record/src/videoConfig.ts index 822709e..f176a65 100644 --- a/packages/record/src/videoConfig.ts +++ b/packages/record/src/videoConfig.ts @@ -678,13 +678,15 @@ export default class VideoConfigPlugin implements JsPsychPlugin { * initialization function (jsPsych.pluginAPI.initializeCameraRecorder). If * none of these types is supported, the function returns null. * + * Note: we will likely need to continuously update the mime_types list as new + * formats become supported, we support other browsers/versions, etc. + * * @returns Mime type string, or null (if none from the array are supported). */ private getCompatibleMimeType() { const mime_types = [ "video/webm;codecs=vp9,opus", "video/webm;codecs=vp8,opus", - "video/webm;codecs=av1,opus", ]; let mime_type_index = 0; while (mime_type_index < mime_types.length) {