decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

32 lines
1.2 KiB
TypeScript

// Module ID: 9197
// Function ID: 9198
// Name: isVideoBackgroundSupported
// Dependencies: [1908, 4631, 1115, 9198, 2]
// Exports: default
// Module 9197 (isVideoBackgroundSupported)
import VirtualBackgroundsIosExperimentDefault from "VirtualBackgroundsIosExperiment" /* 9198 */;
import MediaEngineStore from "MediaEngineStore" /* 1908 */;
const require = fn;
const Features = fn(4631).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;
};