UNPKG

fcr-core

Version:

Core APIs for building online scenes

57 lines (54 loc) 3.99 kB
// Other utility exports export { md5 } from 'js-md5'; import to from 'await-to-js'; import get from 'lodash/get'; import padStart from 'lodash/padStart'; import padEnd from 'lodash/padEnd'; import toLower from 'lodash/toLower'; import { default as EasemobChatSDK } from 'easemob-websdk'; export { to, get, padStart, padEnd, toLower, EasemobChatSDK }; // Third-party exports export { EasemobChat } from 'easemob-websdk'; export { RTMProvider_2_2 as FcrRTMProvider_2_2 } from '@netless/forge-rtm'; export { Room as FcrRoom } from '@netless/forge-room'; export { WhiteboardApplication as FcrWhiteboardApplication } from '@netless/forge-whiteboard'; export { WhiteboardPermissionFlag as FcrWhiteboardPermissionFlag } from '@netless/forge-whiteboard'; // Agora Foundation exports export { getLogger, createLogger } from 'agora-foundation/lib/logger'; export { serializeArgs } from 'agora-foundation/lib/decorator/log/log-serializer'; export { AgoraObservable } from 'agora-foundation/lib/utilities/observable'; export { retryAttempt } from 'agora-foundation/lib/utilities/async-retry'; export { getPlatform, FcrApplicationPlatform } from 'agora-foundation/lib/utilities/env'; export { Duration } from 'agora-foundation/lib/schedule/scheduler'; export { trace, bound } from 'agora-foundation/lib/decorator'; export { AgoraScheduler, ActionWhenTaskFail } from 'agora-foundation/lib/schedule'; export { sleep, jsonstring, randomString } from 'agora-foundation/lib/utilities/misc'; export { z, ZodError, anySchema, booleanSchema, numberSchema, // stringArraySchema, stringSchema, fcrRenderViewSchema, // stringOrObjectSchema, // unknownArraySchema, unknownSchema, objectSchema, createRecordSchemaWithKey, createUnionSchema, createArraySchema } from 'agora-foundation/lib/utilities/schema'; export { validateParams } from 'agora-foundation/lib/decorator/validate'; export { Mutex } from 'agora-foundation/lib/worker/mutex'; // Agora RTE exports export { AgoraRteError } from 'agora-rte-sdk/lib/core/utilities/error'; export { AgoraError as FcrError } from 'agora-foundation/lib/utilities/agora-error'; export { AgoraRteConnectionState, AgoraRteEngine, convertStreamTypeToPublishState, AgoraRteLatencyLevel } from 'agora-rte-sdk'; export { AgoraRteRoomConnectorType, AgoraRteStreamPrivilegeOperation, AgoraRteStreamPrivilegeVideoSourceType, AgoraRteStreamPrivilegeAudioSourceType, AgoraRteMediaStreamType } from 'agora-rte-sdk/lib/core/scene/type'; export { AgoraRtcRegion, AgoraRtcVideoSourceType, AgoraRtcAudioSourceType, AgoraRtcMediaSourceState, AgoraRtcRenderMode, AgoraRtcVideoStreamType, AgoraRtcCapability, AgoraRtcAiDenoiseLevel, AgoraRtcAudioOutputRouting, AgoraRtcLatencyLevelType, AgoraRtcEncryptionMode } from 'agora-rte-sdk/lib/core/rtc/type'; export { AgoraRtmRegion } from 'agora-rte-sdk/lib/core/rtm/type'; export { AgoraRteRegion, AgoraRteAudioSourceType, AgoraRteVideoSourceType, AgoraRteMediaPublishState, AgoraRteScreenScenarioType as FcrScreenScenarioType, AgoraRteMediaSourceState } from 'agora-rte-sdk/lib/type'; export { AgoraRestfulClientError } from 'agora-rte-sdk/lib/core/services/client'; export { getSharedDomainHolder } from 'agora-rte-sdk/lib/core/services/domain-holder'; export { AgoraRteScreenCaptureType, AgoraRteVideoOrientation } from 'agora-rte-sdk/lib/core/media/type'; export { registerPlugin } from 'agora-rte-sdk/lib/core/engine/plugin'; export { AgoraRteUserUpdatedReason } from 'agora-rte-sdk/lib/core/scene/type'; export { FcrCoreEngine } from './engine'; export { FcrWhiteboardControlFactoryImpl } from './room-control/whiteboard-control-v2/whiteboard-control/factory'; export { FcrAnnotationControlFactoryImpl } from './room-control/whiteboard-control-v2/annotation-control/factory'; export { deCompressGzipToJson } from './room-control/stt-control/de-compress-gzip'; export { getVersion } from './utilities/package-info'; export const localStorage = window.localStorage; export { v4 } from 'uuid'; export { default as merge } from 'lodash/merge';