2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 13771
|
|
|
|
|
// Function ID: 13772
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClientClipsCapable
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [4664, 13770, 1364, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 13771 (isClientClipsCapable)
|
|
|
|
|
import PlatformUtilsAll from "PlatformUtils" /* 1364 */;
|
|
|
|
|
import Constants from "Constants" /* 4664 */;
|
|
|
|
|
import ClipsExperiment2 from "ClipsExperiment" /* 13770 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const Features = Constants.Features;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function isClientClipsCapable(getMediaEngine) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const ClipsExperiment = ClipsExperiment2.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-09-10 05:38:07 +00:00
|
|
|
let isDesktopResult = PlatformUtilsAll.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;
|
|
|
|
|
}
|
|
|
|
|
return ignorePlatformRestriction;
|
|
|
|
|
};
|