2026-09-07 16:44:02 +00:00
|
|
|
// Module ID: 13680
|
|
|
|
|
// Function ID: 13681
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClientClipsCapable
|
2026-09-07 16:44:02 +00:00
|
|
|
// Dependencies: [4585, 13679, 1115, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-07 16:44:02 +00:00
|
|
|
// Module 13680 (isClientClipsCapable)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import setAll from "set" /* 1115 */;
|
|
|
|
|
import DesktopSources from "DesktopSources" /* 4585 */;
|
2026-09-07 16:44:02 +00:00
|
|
|
import apexExperiment from "apexExperiment" /* 13679 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const Features = DesktopSources.Features;
|
|
|
|
|
const result = set.fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function isClientClipsCapable(getMediaEngine) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const ClipsExperiment = apexExperiment.ClipsExperiment;
|
2026-07-20 16:05:17 +00:00
|
|
|
let ignorePlatformRestriction = ClipsExperiment.getConfig({ location: "isClipsClientCapable" }).ignorePlatformRestriction;
|
2026-09-05 10:56:28 +00:00
|
|
|
const mediaEngine = getMediaEngine.getMediaEngine();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!ignorePlatformRestriction) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let isDesktopResult = setAll.isDesktop();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isDesktopResult) {
|
|
|
|
|
isDesktopResult = mediaEngine.supports(Features.CLIPS);
|
|
|
|
|
}
|
2026-09-05 10:56:28 +00:00
|
|
|
if (isDesktopResult) {
|
|
|
|
|
isDesktopResult = mediaEngine.hasClipsV3Support();
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
ignorePlatformRestriction = isDesktopResult;
|
2026-09-05 10:56:28 +00:00
|
|
|
const obj2 = setAll;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ignorePlatformRestriction;
|
|
|
|
|
};
|