Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// Module ID: 9236
|
|
// Function ID: 9237
|
|
// Name: isVideoBackgroundSupported
|
|
// Dependencies: [1908, 4661, 1150, 9237, 2]
|
|
// Exports: default
|
|
|
|
// Module 9236 (isVideoBackgroundSupported)
|
|
import VirtualBackgroundsIosExperimentDefault from "VirtualBackgroundsIosExperiment" /* 9237 */;
|
|
import MediaEngineStore from "MediaEngineStore" /* 1908 */;
|
|
|
|
const require = fn;
|
|
const Features = fn(4661).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;
|
|
};
|