Skip to content

Commit

Permalink
remove av1 codec option (not officially supported in webm) and add co…
Browse files Browse the repository at this point in the history
…mment about updating mime type list
  • Loading branch information
becky-gilbert committed Jan 30, 2025
1 parent 5ec0b66 commit a7d9afe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/record/src/videoConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,15 @@ export default class VideoConfigPlugin implements JsPsychPlugin<Info> {
* 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) {
Expand Down

0 comments on commit a7d9afe

Please sign in to comment.