decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 9107
// Function ID: 9108
// Name: isVideoBackgroundSupported
// Dependencies: [1908, 4585, 1115, 9108, 2]
// Exports: default
// Module 9107 (isVideoBackgroundSupported)
import apexExperimentDefault from "apexExperiment" /* 9108 */;
import closure_3 from "_detectH265HardwareDecode" /* 1908 */;
import { Features } from "DesktopSources" /* 4585 */;
const require = arg1;
const result = require("set").fileFinishedImporting("modules/video_backgrounds/isVideoBackgroundSupported.tsx");
export default function isVideoBackgroundSupported() {
let obj = arg0;
if (arg0 === undefined) {
obj = closure_3;
}
let supportsResult = obj.supports(Features.VIDEO_BACKGROUND_FILTER);
if (supportsResult) {
const _Object = Object;
supportsResult = Object.values(obj.getVideoDevices()).length > 0;
}
let tmp4 = supportsResult;
if (obj2.isIOS()) {
const obj3 = apexExperimentDefault;
tmp4 = apexExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
const tmp6 = apexExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
}
return tmp4;
};