@xylink/xy-rtc-sdk 3.9.5 → 3.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main/client.d.ts +5 -0
- package/lib/tools/utils.d.ts +7 -0
- package/lib/type/client.d.ts +11 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +1 -1
package/lib/main/client.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export default class Client extends Emitter {
|
|
|
79
79
|
private operateQueue;
|
|
80
80
|
private facingMode;
|
|
81
81
|
private wsReConnectCount;
|
|
82
|
+
private recordStatusNotification;
|
|
82
83
|
private localSpeakerTimer;
|
|
83
84
|
private onDocumentChange;
|
|
84
85
|
constructor(config: IClientConfig, logger: Logger);
|
|
@@ -432,6 +433,10 @@ export default class Client extends Emitter {
|
|
|
432
433
|
* @param { IRecordStatusNotification } data
|
|
433
434
|
*/
|
|
434
435
|
private onRecordStatusNotfiMessage;
|
|
436
|
+
/**
|
|
437
|
+
* 上报远端录制状态
|
|
438
|
+
*/
|
|
439
|
+
private emitRecordStatusNotification;
|
|
435
440
|
/**
|
|
436
441
|
* 处理本地录制结果上报Message
|
|
437
442
|
*
|
package/lib/tools/utils.d.ts
CHANGED
|
@@ -78,3 +78,10 @@ export declare const TYPEOF: {
|
|
|
78
78
|
isSpecialChar(val: any): boolean;
|
|
79
79
|
isWhiteSpace(val: any): boolean;
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* JSON字符串转对象
|
|
83
|
+
*
|
|
84
|
+
* @param { any } jsonString
|
|
85
|
+
* @returns { object}
|
|
86
|
+
*/
|
|
87
|
+
export declare const jsonStringToObject: (jsonString: any) => any;
|
package/lib/type/client.d.ts
CHANGED
|
@@ -1103,11 +1103,20 @@ export declare enum AutoMute {
|
|
|
1103
1103
|
export interface IGetConferenceParams {
|
|
1104
1104
|
autoMute: AutoMute;
|
|
1105
1105
|
}
|
|
1106
|
+
/**
|
|
1107
|
+
* 录制相关信息
|
|
1108
|
+
*
|
|
1109
|
+
* @property { string } recordSessionId - sessionId
|
|
1110
|
+
*/
|
|
1111
|
+
export interface IRecordInfo {
|
|
1112
|
+
recordSessionId: string;
|
|
1113
|
+
}
|
|
1106
1114
|
/**
|
|
1107
1115
|
* 本地录制结果上报
|
|
1108
1116
|
*
|
|
1109
1117
|
* @property { string } reason - 成功STATE:200
|
|
1110
1118
|
* @property { RecordingState } state - 录制状态
|
|
1119
|
+
* @property { string } recordInfo - 录制相关信息
|
|
1111
1120
|
* @property { boolean } isRecorded - ignore
|
|
1112
1121
|
* @property { string } controlUri - ignore
|
|
1113
1122
|
* @property { string } reasonText - ignore
|
|
@@ -1115,6 +1124,7 @@ export interface IGetConferenceParams {
|
|
|
1115
1124
|
export interface IRecordingStateChanged {
|
|
1116
1125
|
reason: string;
|
|
1117
1126
|
state: RecordingState;
|
|
1127
|
+
recordInfo: IRecordInfo;
|
|
1118
1128
|
isRecorded: boolean;
|
|
1119
1129
|
controlUri: string;
|
|
1120
1130
|
reasonText: string;
|
|
@@ -1136,6 +1146,7 @@ export interface IRecordStatusNotification {
|
|
|
1136
1146
|
callerUri: string;
|
|
1137
1147
|
status: string;
|
|
1138
1148
|
isLocal: boolean;
|
|
1149
|
+
recordInfo: IRecordInfo;
|
|
1139
1150
|
}
|
|
1140
1151
|
/**
|
|
1141
1152
|
* 录制权限
|