decord/alpha/source/modules/video_backgrounds/isVideoBackgroundEnabled.tsx
2026-10-08 09:57:35 +00:00

30 lines
968 B
TypeScript

// Module ID: 5265
// Function ID: 5266
// Name: isVideoBackgroundEnabled
// Dependencies: [5266, 1381, 5267, 2]
// Exports: default
// Module 5265 (isVideoBackgroundEnabled)
import PlatformUtils from "PlatformUtils" /* 1381 */;
import isVideoBackgroundSupportedDefault from "isVideoBackgroundSupported" /* 5266 */;
import size from "module_2" /* 2 */;
let tmp;
const VirtualBackgroundsIosExperimentDefault = tmp(5267);
const result = size.fileFinishedImporting("modules/video_backgrounds/isVideoBackgroundEnabled.tsx");
export default function isVideoBackgroundEnabled(location) {
let tmp3 = isVideoBackgroundSupportedDefault();
if (tmp3) {
const obj = PlatformUtils;
const isIOSResult = obj.isIOS();
let enabled = !isIOSResult;
if (isIOSResult) {
const obj2 = { location };
const tmpResult = VirtualBackgroundsIosExperimentDefault;
enabled = tmpResult.getConfig(obj2).enabled;
}
tmp3 = enabled;
}
return tmp3;
};