decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx
2026-07-25 08:10:48 +00:00

24 lines
753 B
TypeScript

// Module ID: 8782
// Function ID: 69581
// Name: isVideoBackgroundSupported
// Dependencies: [4178, 4192, 2]
// Exports: default
// Module 8782 (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;
};