decord/alpha/source/modules/video_backgrounds/isVideoBackgroundEnabled.tsx

31 lines
968 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 5266
// Function ID: 5267
2026-10-03 08:58:59 +00:00
// Name: isVideoBackgroundEnabled
2026-10-09 10:00:15 +00:00
// Dependencies: [5267, 1382, 5268, 2]
2026-10-03 08:58:59 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 5266 (isVideoBackgroundEnabled)
import PlatformUtils from "PlatformUtils" /* 1382 */;
import isVideoBackgroundSupportedDefault from "isVideoBackgroundSupported" /* 5267 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
let tmp;
2026-10-09 10:00:15 +00:00
const VirtualBackgroundsIosExperimentDefault = tmp(5268);
2026-10-03 08:58:59 +00:00
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;
};