@rongcloud/plugin-rtc 5.7.3-enterprise.3 → 5.7.3-enterprise.5
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 +18 -14
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
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,16 +2718,11 @@ 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;
|
|
@@ -2744,19 +2735,32 @@ declare class RCMediaService {
|
|
|
2744
2735
|
* 请求超时时长
|
|
2745
2736
|
*/
|
|
2746
2737
|
_timeout?: number);
|
|
2738
|
+
/**
|
|
2739
|
+
* 是否需要嗅探
|
|
2740
|
+
* im 未连接,无 navi 数据时,不需要嗅探
|
|
2741
|
+
* 客户端手动配置 mediaServer 时,不需要嗅探
|
|
2742
|
+
* navi 数据中 detectionServer 为空时,不需要嗅探
|
|
2743
|
+
* navi 数据中 jwt 为空时,不需要嗅探
|
|
2744
|
+
* 在探测有效期内不需要嗅探
|
|
2745
|
+
*/
|
|
2746
|
+
isNededDetector(): boolean;
|
|
2747
2747
|
detectorMediaSever(): void;
|
|
2748
2748
|
/**
|
|
2749
2749
|
* 地址探测
|
|
2750
2750
|
* RTC 初始化时检测是否可以拿到 navi,可以拿到开始嗅探
|
|
2751
2751
|
* 拿不到等 IM 链接成功后,再回调中调用开始嗅探
|
|
2752
2752
|
*/
|
|
2753
|
-
private
|
|
2754
|
-
|
|
2753
|
+
private _startDetector;
|
|
2754
|
+
/**
|
|
2755
|
+
* 清空 msList 列表,重新请求导航后需清空 msList 列表
|
|
2756
|
+
*/
|
|
2757
|
+
clearMSList(): void;
|
|
2758
|
+
getMsList(): string[];
|
|
2755
2759
|
/**
|
|
2756
|
-
* _mslist 列表排序:[_clusterId,
|
|
2760
|
+
* _mslist 列表排序:[_clusterId, ping1DetectorUrl, 主域名, ping2DetectorUrl, ..., pingNDetectorUrl, 备用域名list ]
|
|
2757
2761
|
* ping1 :ping 结果返回最快值
|
|
2758
2762
|
*/
|
|
2759
|
-
private
|
|
2763
|
+
private _sortMediaServiceList;
|
|
2760
2764
|
/**
|
|
2761
2765
|
* 配置 gzip 请求头和请求体
|
|
2762
2766
|
*/
|