decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 9820
// Function ID: 9821
2026-07-20 16:05:17 +00:00
// Name: isVideoBackgroundSupported
2026-09-02 09:53:35 +00:00
// Dependencies: [4529, 4542, 1234, 9821, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 9820 (isVideoBackgroundSupported)
import apexExperimentDefault from "apexExperiment" /* 9821 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "_detectH265HardwareDecode" /* 4529 */;
import { Features } from "DesktopSources" /* 4542 */;
2026-07-23 10:11:24 +00:00
2026-08-27 16:17:25 +00:00
const require = arg1;
2026-07-23 10:11:24 +00:00
const result = require("set").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-08-27 16:17:25 +00:00
obj = closure_3;
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()) {
const obj3 = apexExperimentDefault;
tmp4 = apexExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
const tmp6 = apexExperimentDefault.getConfig({ location: "isVideoBackgroundSupported" }).enabled && supportsResult;
}
return tmp4;
2026-07-20 16:05:17 +00:00
};