decord/source/modules/clips/isClientClipsCapable.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4533
// Function ID: 4534
2026-07-20 16:05:17 +00:00
// Name: isClientClipsCapable
2026-08-24 06:08:38 +00:00
// Dependencies: [4534, 4532, 500, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 4533 (isClientClipsCapable)
import set from "set" /* 2 */;
import setAll from "set" /* 500 */;
import apexExperiment from "apexExperiment" /* 4532 */;
import DesktopSources from "DesktopSources" /* 4534 */;
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;
if (!ignorePlatformRestriction) {
2026-08-24 06:08:38 +00:00
let isDesktopResult = setAll.isDesktop();
2026-07-20 16:05:17 +00:00
if (isDesktopResult) {
const mediaEngine = getMediaEngine.getMediaEngine();
isDesktopResult = mediaEngine.supports(Features.CLIPS);
}
ignorePlatformRestriction = isDesktopResult;
2026-08-24 06:08:38 +00:00
const obj = setAll;
2026-07-20 16:05:17 +00:00
}
return ignorePlatformRestriction;
};