Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Module ID: 13944
|
|
// Function ID: 13945
|
|
// Name: isClientClipsCapable
|
|
// Dependencies: [4783, 13943, 1368, 2]
|
|
// Exports: default
|
|
|
|
// Module 13944 (isClientClipsCapable)
|
|
import PlatformUtilsAll from "PlatformUtils" /* 1368 */;
|
|
import Constants from "Constants" /* 4783 */;
|
|
import ClipsExperiment2 from "ClipsExperiment" /* 13943 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const Features = Constants.Features;
|
|
const result = size.fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
|
|
|
|
export default function isClientClipsCapable(getMediaEngine) {
|
|
const ClipsExperiment = ClipsExperiment2.ClipsExperiment;
|
|
let ignorePlatformRestriction = ClipsExperiment.getConfig({ location: "isClipsClientCapable" }).ignorePlatformRestriction;
|
|
const mediaEngine = getMediaEngine.getMediaEngine();
|
|
if (!ignorePlatformRestriction) {
|
|
let isDesktopResult = PlatformUtilsAll.isDesktop();
|
|
if (isDesktopResult) {
|
|
isDesktopResult = mediaEngine.supports(Features.CLIPS);
|
|
}
|
|
if (isDesktopResult) {
|
|
isDesktopResult = mediaEngine.hasClipsV3Support();
|
|
}
|
|
ignorePlatformRestriction = isDesktopResult;
|
|
}
|
|
return ignorePlatformRestriction;
|
|
};
|