@rongcloud/plugin-rtc 5.2.2-alpha.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,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.2.2-alpha.1
3
- * CommitId - de4f9bc28bbee35d2d5f206a68144c89c098573f
4
- * Mon Nov 22 2021 10:51:42 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.2.2
3
+ * CommitId - cbd066a7185af8c1b56ef6bf88f1332ec9444daa
4
+ * Thu Nov 25 2021 17:52:32 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IJoinRTCRoomData, IReceivedMessage, KVString, RTCJoinType, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
@@ -1076,6 +1076,15 @@ interface IExchangeResponse extends IRTCResponse {
1076
1076
  * 主播发布为具体资源,会议模式为空数组
1077
1077
  */
1078
1078
  mcuPublishList?: IResource[];
1079
+ /**
1080
+ * 订阅成功的资源
1081
+ */
1082
+ subscribedList?: {
1083
+ mediaType: RCMediaType.AUDIO_ONLY | RCMediaType.VIDEO_ONLY;
1084
+ msid: string;
1085
+ userId: string;
1086
+ simulcast?: RCStreamType;
1087
+ }[];
1079
1088
  }
1080
1089
  interface IBroadcastSubReqBody {
1081
1090
  /**
@@ -1779,6 +1788,7 @@ declare class RCAudienceLivingRoom {
1779
1788
  */
1780
1789
  subscribe(tracks: (RCRemoteTrack | ISubscribeAttr)[]): Promise<{
1781
1790
  code: RCRTCCode;
1791
+ failedList?: ISubscribeAttr[];
1782
1792
  }>;
1783
1793
  private __unsubscribe;
1784
1794
  /**
@@ -1787,6 +1797,7 @@ declare class RCAudienceLivingRoom {
1787
1797
  */
1788
1798
  unsubscribe(tracks: RCRemoteTrack[]): Promise<{
1789
1799
  code: RCRTCCode;
1800
+ failedList?: ISubscribeAttr[];
1790
1801
  }>;
1791
1802
  /**
1792
1803
  * 退出房间并销毁当前房间实例,退出后该房间的所有方法将不可用
@@ -2241,6 +2252,7 @@ declare abstract class RCAbstractRoom {
2241
2252
  */
2242
2253
  subscribe(tracks: (RCRemoteTrack | ISubscribeAttr)[]): Promise<{
2243
2254
  code: RCRTCCode;
2255
+ failedList?: ISubscribeAttr[];
2244
2256
  }>;
2245
2257
  private __subscribe;
2246
2258
  /**
@@ -2249,6 +2261,7 @@ declare abstract class RCAbstractRoom {
2249
2261
  */
2250
2262
  unsubscribe(tracks: RCRemoteTrack[]): Promise<{
2251
2263
  code: RCRTCCode;
2264
+ failedList?: ISubscribeAttr[];
2252
2265
  }>;
2253
2266
  private __unsubscribe;
2254
2267
  protected _assertRoomDestroyed(): RCRTCCode | undefined;