decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
2026-07-23 10:11:24 +00:00

24 lines
753 B
TypeScript

// Module ID: 8855
// Function ID: 69887
// Name: isVideoBackgroundSupported
// Dependencies: [4177, 4191, 2]
// Exports: default
// Module 8855 (isVideoBackgroundSupported)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Features } from "DesktopSources";
const result = require("set").fileFinishedImporting("modules/video_backgrounds/isVideoBackgroundSupported.tsx");
export default function isVideoBackgroundSupported() {
let obj = arg0;
if (arg0 === undefined) {
obj = _isNativeReflectConstruct;
}
let supportsResult = obj.supports(Features.MEDIAPIPE);
if (supportsResult) {
const _Object = Object;
supportsResult = Object.values(obj.getVideoDevices()).length > 0;
}
return supportsResult;
};