UNPKG

@azure/communication-react

Version:

React library for building modern communication user experiences utilizing Azure Communication Services

31 lines 1.52 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; /** * * Dependency resolution for video background effects using lazy loading. * @public */ export const onResolveVideoEffectDependencyLazy = () => __awaiter(void 0, void 0, void 0, function* () { const module = yield import('@azure/communication-calling-effects'); const createBackgroundBlurEffect = (config) => { return new module.BackgroundBlurEffect(config); }; const createBackgroundReplacementEffect = (config) => { return new module.BackgroundReplacementEffect(config); }; const VideoBackgroundEffectsDependency = { createBackgroundBlurEffect, createBackgroundReplacementEffect }; return VideoBackgroundEffectsDependency; }); //# sourceMappingURL=resolveVideoEffectDependencyLazy.js.map