@rongcloud/plugin-rtc 5.7.3-enterprise-lz-alpha.1 → 5.7.3-enterprise-alpha.9
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.cjs.js +1 -1
- package/dist/index.d.ts +19 -27
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2701,10 +2701,6 @@ declare class RCMediaService {
|
|
|
2701
2701
|
* 请求超时时长
|
|
2702
2702
|
*/
|
|
2703
2703
|
private readonly _timeout;
|
|
2704
|
-
/**
|
|
2705
|
-
* navi 中获取的媒体服务地址
|
|
2706
|
-
*/
|
|
2707
|
-
private readonly _msInNavi;
|
|
2708
2704
|
/**
|
|
2709
2705
|
* 已失败的请求地址
|
|
2710
2706
|
*/
|
|
@@ -2722,23 +2718,14 @@ declare class RCMediaService {
|
|
|
2722
2718
|
*/
|
|
2723
2719
|
private _configUrl;
|
|
2724
2720
|
/**
|
|
2725
|
-
*
|
|
2726
|
-
*/
|
|
2727
|
-
private static isDetector;
|
|
2728
|
-
/**
|
|
2729
|
-
* 嗅探中获取的媒体服务地址
|
|
2721
|
+
* 排好序的探测地址
|
|
2730
2722
|
*/
|
|
2731
2723
|
private static msInDetector;
|
|
2732
2724
|
private static detectorTime;
|
|
2733
2725
|
private static detectValidMinute;
|
|
2734
|
-
static jwtToken: string;
|
|
2735
2726
|
private _msList;
|
|
2736
2727
|
private _qualityMsList;
|
|
2737
2728
|
private readonly _logger;
|
|
2738
|
-
/**
|
|
2739
|
-
* 量子特定发 /exchange 时携带自定义信息
|
|
2740
|
-
*/
|
|
2741
|
-
private _customParams;
|
|
2742
2729
|
constructor(_runtime: IRuntime, _context: RTCContext,
|
|
2743
2730
|
/**
|
|
2744
2731
|
* 自定义 MediaServer 地址,当有值时,不再使用导航内的地址
|
|
@@ -2748,21 +2735,33 @@ declare class RCMediaService {
|
|
|
2748
2735
|
* 请求超时时长
|
|
2749
2736
|
*/
|
|
2750
2737
|
_timeout?: number);
|
|
2751
|
-
|
|
2752
|
-
|
|
2738
|
+
/**
|
|
2739
|
+
* 是否需要嗅探
|
|
2740
|
+
* im 未连接,无 navi 数据时,不需要嗅探
|
|
2741
|
+
* 客户端手动配置 mediaServer 时,不需要嗅探
|
|
2742
|
+
* navi 数据中 detectionServer 为空时,不需要嗅探
|
|
2743
|
+
* navi 数据中 jwt 为空时,不需要嗅探
|
|
2744
|
+
* 在探测有效期内不需要嗅探
|
|
2745
|
+
* RCMediaService.detectorTime 为 0 时,代表未探测过,需要嗅探
|
|
2746
|
+
*/
|
|
2747
|
+
isNededDetector(): boolean;
|
|
2753
2748
|
detectorMediaSever(): void;
|
|
2754
2749
|
/**
|
|
2755
2750
|
* 地址探测
|
|
2756
2751
|
* RTC 初始化时检测是否可以拿到 navi,可以拿到开始嗅探
|
|
2757
2752
|
* 拿不到等 IM 链接成功后,再回调中调用开始嗅探
|
|
2758
2753
|
*/
|
|
2759
|
-
private
|
|
2760
|
-
|
|
2754
|
+
private _startDetector;
|
|
2755
|
+
/**
|
|
2756
|
+
* 清空 msList 列表,重新请求导航后需清空 msList 列表
|
|
2757
|
+
*/
|
|
2758
|
+
clearMSList(): void;
|
|
2759
|
+
getMsList(): string[];
|
|
2761
2760
|
/**
|
|
2762
|
-
* _mslist 列表排序:[_clusterId,
|
|
2761
|
+
* _mslist 列表排序:[_clusterId, ping1DetectorUrl, 主域名, ping2DetectorUrl, ..., pingNDetectorUrl, 备用域名list ]
|
|
2763
2762
|
* ping1 :ping 结果返回最快值
|
|
2764
2763
|
*/
|
|
2765
|
-
private
|
|
2764
|
+
private _sortMediaServiceList;
|
|
2766
2765
|
/**
|
|
2767
2766
|
* 配置 gzip 请求头和请求体
|
|
2768
2767
|
*/
|
|
@@ -4874,13 +4873,6 @@ declare class RCRTCClient extends RCMediaStreamCapture {
|
|
|
4874
4873
|
* @returns
|
|
4875
4874
|
*/
|
|
4876
4875
|
getCurrentId(): string;
|
|
4877
|
-
/**
|
|
4878
|
-
* 设置 /exchange 请求携带的自定义参数
|
|
4879
|
-
* @param info 字符串类型
|
|
4880
|
-
*/
|
|
4881
|
-
setCustomExtendInfo(info: string): {
|
|
4882
|
-
code: RCRTCCode;
|
|
4883
|
-
};
|
|
4884
4876
|
private _crtRoom;
|
|
4885
4877
|
/**
|
|
4886
4878
|
* 加入跨 AppKey 音视频房间
|