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

31 lines
968 B
TypeScript
Raw Normal View History

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