decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

32 lines
1.2 KiB
TypeScript

// Module ID: 9261
// Function ID: 9262
// Name: isVideoBackgroundSupported
// Dependencies: [1909, 4665, 1364, 9262, 2]
// Exports: default
// Module 9261 (isVideoBackgroundSupported)
import VirtualBackgroundsIosExperimentDefault from "VirtualBackgroundsIosExperiment" /* 9262 */;
import MediaEngineStore from "MediaEngineStore" /* 1909 */;
const require = fn;
const Features = fn(4665).Features;
const size = fn(2);
const result = size.fileFinishedImporting("modules/video_backgrounds/isVideoBackgroundSupported.tsx");
export default function isVideoBackgroundSupported() {
let obj = arg0;
if (arg0 === undefined) {
obj = MediaEngineStore;
}
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()) {
tmp4 = VirtualBackgroundsIosExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
const tmp6 = VirtualBackgroundsIosExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
}
return tmp4;
};