decord/source/modules/clips/isClientClipsCapable.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

29 lines
1 KiB
TypeScript

// Module ID: 4544
// Function ID: 4545
// Name: isClientClipsCapable
// Dependencies: [4545, 4543, 1234, 2]
// Exports: default
// Module 4544 (isClientClipsCapable)
import set from "set" /* 2 */;
import setAll from "set" /* 1234 */;
import apexExperiment from "apexExperiment" /* 4543 */;
import DesktopSources from "DesktopSources" /* 4545 */;
const Features = DesktopSources.Features;
const result = set.fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
export default function isClientClipsCapable(getMediaEngine) {
const ClipsExperiment = apexExperiment.ClipsExperiment;
let ignorePlatformRestriction = ClipsExperiment.getConfig({ location: "isClipsClientCapable" }).ignorePlatformRestriction;
if (!ignorePlatformRestriction) {
let isDesktopResult = setAll.isDesktop();
if (isDesktopResult) {
const mediaEngine = getMediaEngine.getMediaEngine();
isDesktopResult = mediaEngine.supports(Features.CLIPS);
}
ignorePlatformRestriction = isDesktopResult;
const obj = setAll;
}
return ignorePlatformRestriction;
};