@rongcloud/plugin-rtc 5.6.5 → 5.6.6-beem-alpha.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 +27 -4
- package/dist/index.esm.js +29134 -16
- package/dist/index.js +29163 -16
- package/dist/index.umd.js +29167 -16
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.6-beem-alpha.2
|
|
3
|
+
* CommitId - a1dff2135dffdf1e99f50dccb01d304fd4c661cd
|
|
4
|
+
* Thu Dec 15 2022 16:13:38 GMT+0800 (China Standard Time)
|
|
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';
|
|
@@ -711,6 +711,7 @@ interface IExchangeReqBody {
|
|
|
711
711
|
* server 根据网络动态切换大小流开关,默认为 `false`
|
|
712
712
|
*/
|
|
713
713
|
switchstream: boolean;
|
|
714
|
+
capabilityVersion?: number;
|
|
714
715
|
}
|
|
715
716
|
interface ILiveUrls {
|
|
716
717
|
/**
|
|
@@ -787,6 +788,17 @@ interface IExchangeResponse extends IRTCResponse {
|
|
|
787
788
|
userId: string;
|
|
788
789
|
simulcast?: RCStreamType;
|
|
789
790
|
}[];
|
|
791
|
+
/**
|
|
792
|
+
* 订阅失败的资源列表
|
|
793
|
+
*/
|
|
794
|
+
subscribeErrorList?: {
|
|
795
|
+
mediaType: RCMediaType.AUDIO_ONLY | RCMediaType.VIDEO_ONLY;
|
|
796
|
+
msid: string;
|
|
797
|
+
userId: string;
|
|
798
|
+
msg: string;
|
|
799
|
+
code: number;
|
|
800
|
+
IsRetry: boolean;
|
|
801
|
+
}[];
|
|
790
802
|
}
|
|
791
803
|
interface IBroadcastSubReqBody {
|
|
792
804
|
/**
|
|
@@ -846,6 +858,17 @@ interface IBroadcastSubRespBody extends IRTCResponse {
|
|
|
846
858
|
type: 'answer';
|
|
847
859
|
sdp: string;
|
|
848
860
|
};
|
|
861
|
+
/**
|
|
862
|
+
* 订阅失败的资源列表
|
|
863
|
+
*/
|
|
864
|
+
subscribeErrorList?: {
|
|
865
|
+
mediaType: RCMediaType.AUDIO_ONLY | RCMediaType.VIDEO_ONLY;
|
|
866
|
+
msid: string;
|
|
867
|
+
userId: string;
|
|
868
|
+
msg: string;
|
|
869
|
+
code: number;
|
|
870
|
+
IsRetry: boolean;
|
|
871
|
+
}[];
|
|
849
872
|
}
|
|
850
873
|
/**
|
|
851
874
|
* 获取 CDN 资源拉流地址请求 headers
|
|
@@ -1624,7 +1647,7 @@ declare class RCMediaService {
|
|
|
1624
1647
|
* @param header
|
|
1625
1648
|
* @param body
|
|
1626
1649
|
*/
|
|
1627
|
-
exchange(headers: IRTCReqHeader, body: IExchangeReqBody, traceId: string): Promise<{
|
|
1650
|
+
exchange(headers: IRTCReqHeader, body: IExchangeReqBody, traceId: string, isNeedUpdateMsas?: boolean): Promise<{
|
|
1628
1651
|
code: RCRTCCode;
|
|
1629
1652
|
data?: IExchangeResponse | undefined;
|
|
1630
1653
|
}>;
|