@rongcloud/plugin-rtc 5.6.5 → 5.6.6-beem-alpha.3
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 +31 -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
|
-
* Fri Dec
|
|
2
|
+
* RCRTC - v5.6.6-beem-alpha.3
|
|
3
|
+
* CommitId - 15fcfe0e66af6b789a21ed040bdac43b0e1cdfdc
|
|
4
|
+
* Fri Dec 30 2022 11:20:37 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';
|
|
@@ -648,6 +648,10 @@ interface IRTCReqHeader {
|
|
|
648
648
|
* client-session-id 标识一个端用户进入房间后的唯一标识
|
|
649
649
|
*/
|
|
650
650
|
'Client-Session-Id'?: string;
|
|
651
|
+
/**
|
|
652
|
+
* 是否是Beem环境,Beem环境传1,其他不传
|
|
653
|
+
*/
|
|
654
|
+
'Is-Beem'?: number;
|
|
651
655
|
}
|
|
652
656
|
interface IMCUReqHeaders {
|
|
653
657
|
'App-Key': string;
|
|
@@ -711,6 +715,7 @@ interface IExchangeReqBody {
|
|
|
711
715
|
* server 根据网络动态切换大小流开关,默认为 `false`
|
|
712
716
|
*/
|
|
713
717
|
switchstream: boolean;
|
|
718
|
+
capabilityVersion?: number;
|
|
714
719
|
}
|
|
715
720
|
interface ILiveUrls {
|
|
716
721
|
/**
|
|
@@ -787,6 +792,17 @@ interface IExchangeResponse extends IRTCResponse {
|
|
|
787
792
|
userId: string;
|
|
788
793
|
simulcast?: RCStreamType;
|
|
789
794
|
}[];
|
|
795
|
+
/**
|
|
796
|
+
* 订阅失败的资源列表
|
|
797
|
+
*/
|
|
798
|
+
subscribeErrorList?: {
|
|
799
|
+
mediaType: RCMediaType.AUDIO_ONLY | RCMediaType.VIDEO_ONLY;
|
|
800
|
+
msid: string;
|
|
801
|
+
userId: string;
|
|
802
|
+
msg: string;
|
|
803
|
+
code: number;
|
|
804
|
+
IsRetry: boolean;
|
|
805
|
+
}[];
|
|
790
806
|
}
|
|
791
807
|
interface IBroadcastSubReqBody {
|
|
792
808
|
/**
|
|
@@ -846,6 +862,17 @@ interface IBroadcastSubRespBody extends IRTCResponse {
|
|
|
846
862
|
type: 'answer';
|
|
847
863
|
sdp: string;
|
|
848
864
|
};
|
|
865
|
+
/**
|
|
866
|
+
* 订阅失败的资源列表
|
|
867
|
+
*/
|
|
868
|
+
subscribeErrorList?: {
|
|
869
|
+
mediaType: RCMediaType.AUDIO_ONLY | RCMediaType.VIDEO_ONLY;
|
|
870
|
+
msid: string;
|
|
871
|
+
userId: string;
|
|
872
|
+
msg: string;
|
|
873
|
+
code: number;
|
|
874
|
+
IsRetry: boolean;
|
|
875
|
+
}[];
|
|
849
876
|
}
|
|
850
877
|
/**
|
|
851
878
|
* 获取 CDN 资源拉流地址请求 headers
|
|
@@ -1624,7 +1651,7 @@ declare class RCMediaService {
|
|
|
1624
1651
|
* @param header
|
|
1625
1652
|
* @param body
|
|
1626
1653
|
*/
|
|
1627
|
-
exchange(headers: IRTCReqHeader, body: IExchangeReqBody, traceId: string): Promise<{
|
|
1654
|
+
exchange(headers: IRTCReqHeader, body: IExchangeReqBody, traceId: string, isNeedUpdateMsas?: boolean): Promise<{
|
|
1628
1655
|
code: RCRTCCode;
|
|
1629
1656
|
data?: IExchangeResponse | undefined;
|
|
1630
1657
|
}>;
|