2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 9236
|
|
|
|
|
// Function ID: 9237
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isVideoBackgroundSupported
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1908, 4661, 1150, 9237, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 9236 (isVideoBackgroundSupported)
|
|
|
|
|
import VirtualBackgroundsIosExperimentDefault from "VirtualBackgroundsIosExperiment" /* 9237 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import MediaEngineStore from "MediaEngineStore" /* 1908 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
2026-09-12 13:45:10 +00:00
|
|
|
const Features = fn(4661).Features;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/video_backgrounds/isVideoBackgroundSupported.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function isVideoBackgroundSupported() {
|
|
|
|
|
let obj = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
2026-09-10 05:38:07 +00:00
|
|
|
obj = MediaEngineStore;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-27 16:17:25 +00:00
|
|
|
let supportsResult = obj.supports(Features.VIDEO_BACKGROUND_FILTER);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (supportsResult) {
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
supportsResult = Object.values(obj.getVideoDevices()).length > 0;
|
|
|
|
|
}
|
2026-08-27 16:17:25 +00:00
|
|
|
let tmp4 = supportsResult;
|
|
|
|
|
if (obj2.isIOS()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp4 = VirtualBackgroundsIosExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
|
|
|
|
|
const tmp6 = VirtualBackgroundsIosExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
|
2026-08-27 16:17:25 +00:00
|
|
|
}
|
|
|
|
|
return tmp4;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|