decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

32 lines
1.2 KiB
TypeScript

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