1 line
90 KiB
Plaintext
1 line
90 KiB
Plaintext
|
{"version":3,"names":[],"sources":["RtcEvents.ts"],"sourcesContent":["import type {\r\n AudioFileInfo,\r\n AudioVolumeInfo,\r\n FacePositionInfo,\r\n LastmileProbeResult,\r\n LocalAudioStats,\r\n LocalVideoStats,\r\n RecorderInfo,\r\n Rect,\r\n RemoteAudioStats,\r\n RemoteVideoStats,\r\n RtcStats,\r\n UserInfo,\r\n WlAccStats,\r\n} from './Classes';\r\nimport type {\r\n AudioFileInfoError,\r\n AudioLocalError,\r\n AudioLocalState,\r\n AudioMixingReason,\r\n AudioMixingStateCode,\r\n AudioOutputRouting,\r\n AudioRemoteState,\r\n AudioRemoteStateReason,\r\n ChannelMediaRelayError,\r\n ChannelMediaRelayEvent,\r\n ChannelMediaRelayState,\r\n ClientRole,\r\n ConnectionChangedReason,\r\n ConnectionStateType,\r\n ErrorCode,\r\n InjectStreamStatus,\r\n LocalVideoStreamError,\r\n LocalVideoStreamState,\r\n NetworkQuality,\r\n NetworkType,\r\n RtmpStreamingErrorCode,\r\n RtmpStreamingEvent,\r\n RtmpStreamingState,\r\n StreamPublishState,\r\n StreamSubscribeState,\r\n SuperResolutionStateReason,\r\n UploadErrorReason,\r\n UserOfflineReason,\r\n VideoRemoteState,\r\n VideoRemoteStateReason,\r\n VirtualBackgroundSourceStateReason,\r\n WarningCode,\r\n ContentInspectResult,\r\n ProxyType,\r\n WlAccAction,\r\n WlAccReason,\r\n ClientRoleChangeFailedReason,\r\n} from './Enums';\r\n\r\n/**\r\n * @internal\r\n * @ignore\r\n */\r\nexport type Listener = (...args: any[]) => any;\r\n\r\n/**\r\n * @internal\r\n * @ignore\r\n */\r\nexport interface Subscription {\r\n remove(): void;\r\n}\r\n\r\nexport type EmptyCallback = () => void;\r\nexport type WarningCallback =\r\n /**\r\n * @param warn Warning code.\r\n */\r\n (warn: WarningCode) => void;\r\nexport type ErrorCallback =\r\n /**\r\n * @param err Error code.\r\n */\r\n (err: ErrorCode) => void;\r\nexport type ApiCallCallback =\r\n /**\r\n * @param error [Error Code]{@link ErrorCode} that the SDK returns when the method call fails.\r\n * @param api The method executed by the SDK.\r\n * @param result The result of the method call.\r\n */\r\n (error: ErrorCode, api: string, result: string) => void;\r\nexport type UidWithElapsedAndChannelCallback =\r\n /**\r\n * @param channel Channel name.\r\n * @param uid User ID.\r\n * @param elapsed Time elapsed (ms) from the user calling [`joinChannel`]{@link RtcEngine.joinChannel} until\r\n * this callback is triggered.\r\n */\r\n (channel: string, uid: number, elapsed: number) => void;\r\nexport type RtcStatsCallback =\r\n /**\r\n * @param stats Statistics of the call.\r\n */\r\n (stats: RtcStats) => void;\r\nexport type UserAccountCallback =\r\n /**\r\n * @param uid The ID of the local user.\r\n * @param userAccount The user account of the local user.\r\n */\r\n (uid: number, userAccount: string) => void;\r\nexport type UserInfoCallback =\r\n /**\r\n * @param uid The ID of the remote user.\r\n * @param userInfo The `UserInfo` object that contains the user ID and user account of the remote user.\r\n */\r\n (uid: number, userInfo: UserInfo) => void;\r\nexport type ClientRoleCallback =\r\n /**\r\n * @param oldRole Role that the user switches from.\r\n * @param newRole Role that the user switches to.\r\n */\r\n (oldRole: ClientRole, newRole: ClientRole) => void;\r\nexport type UidWithElapsedCallback =\r\n /**\r\n * @param uid This parameter has the following definitions in different events:\r\n * - [`UserJoined`]{@link RtcEngineEvents.UserJoined}: ID of the user or host who joins the channel.\r\n * - [`FirstRemoteAudioFrame`]{@link RtcEngineEvents.FirstRemoteAudioFrame}: User ID of the remote user.\r\n * - [`FirstRemoteAudioDecoded`]{@link RtcEngineEvents.FirstRemoteAudioDecoded}: User ID of the remote user sending the audio stream.\r\n * - [`JoinChannelSuccess`]{@link RtcChannelEvents.JoinChannelSuccess}: User ID.\r\n * - [`RejoinChannelSuccess`]{@link RtcChannelEvents.RejoinChannelSuccess}: User ID.\r\n * @param elapsed This parameter has the following definitions in different events:\r\n * - [`UserJoined`]{@link RtcEngineEv
|