Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVideoEncoderConfig = void 0;
const browser_quirks_1 = require("./browser-quirks");
const get_codec_string_1 = require("./get-codec-string");
const getVideoEncoderConfig = async ({ codec, height, width, fps, }) => {
if (typeof VideoEncoder === 'undefined') {
return null;
}
const config = {
codec: (0, get_codec_string_1.getCodecStringForEncoder)({ codec, fps, height, width }),
height,
width,
bitrate: (0, browser_quirks_1.isSafari)() ? 3000000 : undefined,
bitrateMode: codec === 'vp9' && !(0, browser_quirks_1.isSafari)() ? 'quantizer' : undefined,
framerate: fps ?? undefined,
};
const hardware = {
...config,
hardwareAcceleration: 'prefer-hardware',
};
if ((await VideoEncoder.isConfigSupported(hardware)).supported) {
return hardware;
}
const software = {
...config,
hardwareAcceleration: 'prefer-software',
};
if ((await VideoEncoder.isConfigSupported(software)).supported) {
return software;
}
return null;
};
exports.getVideoEncoderConfig = getVideoEncoderConfig;