decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx

25 lines
742 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9705
// Function ID: 9706
2026-07-20 16:05:17 +00:00
// Name: isVideoBackgroundSupported
2026-08-24 06:08:38 +00:00
// Dependencies: [4501, 4534, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 9705 (isVideoBackgroundSupported)
import closure_0 from "_detectH265HardwareDecode" /* 4501 */;
import { Features } from "DesktopSources" /* 4534 */;
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-24 06:08:38 +00:00
obj = closure_0;
2026-07-20 16:05:17 +00:00
}
let supportsResult = obj.supports(Features.MEDIAPIPE);
if (supportsResult) {
const _Object = Object;
supportsResult = Object.values(obj.getVideoDevices()).length > 0;
}
return supportsResult;
};