32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
|
|
// Module ID: 13680
|
||
|
|
// Function ID: 13681
|
||
|
|
// Name: isClientClipsCapable
|
||
|
|
// Dependencies: [4585, 13679, 1115, 2]
|
||
|
|
// Exports: default
|
||
|
|
|
||
|
|
// Module 13680 (isClientClipsCapable)
|
||
|
|
import PlatformUtilsAll from "PlatformUtils" /* 1115 */;
|
||
|
|
import Constants from "Constants" /* 4585 */;
|
||
|
|
import ClipsExperiment2 from "ClipsExperiment" /* 13679 */;
|
||
|
|
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;
|
||
|
|
};
|