decord/source/modules/video_backgrounds/isVideoBackgroundSupported.tsx

25 lines
752 B
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 8846
// Function ID: 8847
2026-07-20 16:05:17 +00:00
// Name: isVideoBackgroundSupported
2026-07-29 08:29:29 +00:00
// Dependencies: [4236, 4250, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-30 10:14:41 +00:00
// Module 8846 (isVideoBackgroundSupported)
2026-07-29 08:29:29 +00:00
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
2026-07-23 10:11:24 +00:00
import { Features } from "DesktopSources";
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-07-29 08:29:29 +00:00
obj = _detectH265HardwareDecode;
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;
};