Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Module ID: 13970
|
|
// Function ID: 13971
|
|
// Name: isClientClipsCapable
|
|
// Dependencies: [4813, 13969, 1364, 2]
|
|
// Exports: default
|
|
|
|
// Module 13970 (isClientClipsCapable)
|
|
import PlatformUtilsAll from "PlatformUtils" /* 1364 */;
|
|
import Constants from "Constants" /* 4813 */;
|
|
import ClipsExperiment2 from "ClipsExperiment" /* 13969 */;
|
|
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;
|
|
};
|