2026-08-03 11:20:01 +00:00
|
|
|
// Module ID: 4315
|
|
|
|
|
// Function ID: 4316
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClientClipsCapable
|
2026-08-03 11:20:01 +00:00
|
|
|
// Dependencies: [4316, 4314, 500, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-03 11:20:01 +00:00
|
|
|
// Module 4315 (isClientClipsCapable)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { Features } from "DesktopSources";
|
|
|
|
|
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function isClientClipsCapable(getMediaEngine) {
|
2026-08-03 11:20:01 +00:00
|
|
|
const ClipsExperiment = require(4314) /* apexExperiment */.ClipsExperiment;
|
2026-07-20 16:05:17 +00:00
|
|
|
let ignorePlatformRestriction = ClipsExperiment.getConfig({ location: "isClipsClientCapable" }).ignorePlatformRestriction;
|
|
|
|
|
if (!ignorePlatformRestriction) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let isDesktopResult = importAll(500).isDesktop();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isDesktopResult) {
|
|
|
|
|
const mediaEngine = getMediaEngine.getMediaEngine();
|
|
|
|
|
isDesktopResult = mediaEngine.supports(Features.CLIPS);
|
|
|
|
|
}
|
|
|
|
|
ignorePlatformRestriction = isDesktopResult;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = importAll(500);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ignorePlatformRestriction;
|
|
|
|
|
};
|