@rongcloud/plugin-call 5.2.1 → 5.2.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConversationType, IReceivedMessage, EventEmitter, RTCPluginContext, IRuntime, ILogger, RTCJoinType, LogLevel, BasicLogger, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
1
+ import { ConversationType, IReceivedMessage, EventEmitter, RTCPluginContext, IRuntime, ILogger, RTCJoinType, LogLevel, LogL, BasicLogger, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
2
2
  import { RCRTCClient, IMicphoneAudioProfile, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
3
3
  export { IRCRTCStateReport } from '@rongcloud/plugin-rtc';
4
4
 
@@ -1250,6 +1250,11 @@ interface IRCCallInitOptions {
1250
1250
  * session已关闭
1251
1251
  */
1252
1252
  onSessionClose: (session: RCCallSession, summary?: IEndSummary) => void;
1253
+ /**
1254
+ * 离线期间收到的呼叫记录
1255
+ * @param record
1256
+ * @returns
1257
+ */
1253
1258
  onOfflineRecord?: (record: IOfflineRecord) => void;
1254
1259
  /**
1255
1260
  * 是否允许接听新呼叫,当前正在通话,如果收到新的邀请,是直接挂断,还是允许选择, 默认值false,直接挂断新的session
@@ -1277,9 +1282,19 @@ interface IRCCallInitOptions {
1277
1282
  */
1278
1283
  isAllowDemotionGetStream?: boolean;
1279
1284
  /**
1280
- * 日志等级
1285
+ * 该参数已废弃,请使用 `logOutputLevel` 替代
1286
+ * @deprecated - version 5.2.2
1281
1287
  */
1282
1288
  logLevel?: LogLevel;
1289
+ /**
1290
+ * 日志输出等级
1291
+ * @since version 5.2.2
1292
+ */
1293
+ logOutputLevel?: LogL.DEBUG | LogL.INFO | LogL.WARN | LogL.ERROR;
1294
+ /**
1295
+ * 该参数已废弃
1296
+ * @deprecated - version 5.2.0
1297
+ */
1283
1298
  logStdout?: (logLevel: LogLevel, content: string) => void;
1284
1299
  /**
1285
1300
  * 语言设置 (推送), 不传默认为中文