29 lines
1 KiB
TypeScript
29 lines
1 KiB
TypeScript
// Module ID: 4511
|
|
// Function ID: 4512
|
|
// Name: isClientClipsCapable
|
|
// Dependencies: [4512, 4510, 500, 2]
|
|
// Exports: default
|
|
|
|
// Module 4511 (isClientClipsCapable)
|
|
import set from "set" /* 2 */;
|
|
import setAll from "set" /* 500 */;
|
|
import apexExperiment from "apexExperiment" /* 4510 */;
|
|
import DesktopSources from "DesktopSources" /* 4512 */;
|
|
|
|
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;
|
|
};
|