@rongcloud/plugin-rtc 5.6.3-alpha.3 → 5.6.3-alpha.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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.6.3-alpha.3
3
- * CommitId - db726c933e72872baf32689bc9690c7a34f2bab2
4
- * Sun Nov 13 2022 23:10:47 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.6.3-alpha.6
3
+ * CommitId - 57278f3bdddf532d3b7f4f3cc38e026fe8569537
4
+ * Thu Nov 17 2022 16:28:36 GMT+0800 (中国标准时间)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, EnableLogL, IPluginGenerator } from '@rongcloud/engine';
@@ -1466,10 +1466,10 @@ declare class RTCContext {
1466
1466
  * @param valueInfo 全量资源数据
1467
1467
  * @param objectName 全量 URI 消息名
1468
1468
  */
1469
- setRTCTotalRes(roomId: string, message: {
1469
+ setRTCTotalRes(roomId: string, messageList: {
1470
1470
  name: string;
1471
1471
  content: string;
1472
- }, valueInfo: string, objectName: string, mcuValInfo?: string, cdnValInfo?: string): Promise<ErrorCode>;
1472
+ }[], valueInfo: string, objectName: string, mcuValInfo?: string, cdnValInfo?: string): Promise<ErrorCode>;
1473
1473
  setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
1474
1474
  getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): IPromiseResult<KVString>;
1475
1475
  removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
@@ -1655,7 +1655,7 @@ declare class RCMediaService {
1655
1655
  /**
1656
1656
  * 房间内观众获取 CDN 资源信息、拉流地址
1657
1657
  */
1658
- getCDNResourceInfo(headers: ICDNPlayUrlReqHeaders, url: string): Promise<{
1658
+ getCDNResourceInfo(headers: ICDNPlayUrlReqHeaders, url: string, traceId: string): Promise<{
1659
1659
  code: RCRTCCode;
1660
1660
  res?: ICDNPlayUrlResponse;
1661
1661
  }>;
@@ -1992,6 +1992,10 @@ declare class RCRTCPeerCManager {
1992
1992
  * context
1993
1993
  */
1994
1994
  protected readonly _initOptions?: IRCRTCInitOptions | undefined;
1995
+ /**
1996
+ * 是否是观众
1997
+ */
1998
+ private readonly _isAudience?;
1995
1999
  /**
1996
2000
  * 存储创建的所有 peerC,key 为 pcName,/exchange 请求中 request header 中的 Peer-Connection-Id 值
1997
2001
  */
@@ -2025,7 +2029,11 @@ declare class RCRTCPeerCManager {
2025
2029
  /**
2026
2030
  * context
2027
2031
  */
2028
- _initOptions?: IRCRTCInitOptions | undefined);
2032
+ _initOptions?: IRCRTCInitOptions | undefined,
2033
+ /**
2034
+ * 是否是观众
2035
+ */
2036
+ _isAudience?: boolean | undefined);
2029
2037
  get useMutilPeerC(): boolean;
2030
2038
  /**
2031
2039
  * 根据 track 判断是否为上行
@@ -2252,7 +2260,7 @@ declare class RCLivingPKHandler {
2252
2260
  /**
2253
2261
  * 加入 PK 房间回调
2254
2262
  */
2255
- _onJoinedPKRoom: (roomId: string, room: RCLivingRoom) => void, _clientSessionId?: string | undefined);
2263
+ _onJoinedPKRoom: (roomId: string, traceId: string) => void, _clientSessionId?: string | undefined);
2256
2264
  private _callAppListener;
2257
2265
  /**
2258
2266
  * 收到连麦邀请