trtc-electron-sdk 9.1.106-beta.0 → 9.3.8-beta.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/liteav/trtc.d.ts +2 -1
- package/liteav/trtc.js +6 -8
- package/package.json +1 -1
package/liteav/trtc.d.ts
CHANGED
|
@@ -1839,7 +1839,7 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
1839
1839
|
* 测速结果将会用于优化 SDK 接下来的服务器选择策略,因此推荐您在用户首次通话前先进行一次测速,这将有助于我们选择最佳的服务器。
|
|
1840
1840
|
* 同时,如果测试结果非常不理想,您可以通过醒目的 UI 提示用户选择更好的网络。
|
|
1841
1841
|
*
|
|
1842
|
-
*
|
|
1842
|
+
* 注意:测速本身会消耗一定的流量,所以也会产生少量额外的流量费用。
|
|
1843
1843
|
*
|
|
1844
1844
|
* @param {Number} sdkAppId - 应用标识
|
|
1845
1845
|
* @param {String} userId - 用户标识
|
|
@@ -1975,6 +1975,7 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
1975
1975
|
removePlugin(id: string): void;
|
|
1976
1976
|
getPluginList(): PluginInfo[];
|
|
1977
1977
|
createPlugin(pluginId: string): PluginInfo;
|
|
1978
|
+
setPluginCallback(pluginCb: (pluginId: string, errorCode: number, msg: string) => void): void;
|
|
1978
1979
|
getKey(uid: string, type: TRTCVideoStreamType): string;
|
|
1979
1980
|
/**
|
|
1980
1981
|
* 判断是否支持webGL
|
package/liteav/trtc.js
CHANGED
|
@@ -93,13 +93,8 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
93
93
|
constructor() {
|
|
94
94
|
super();
|
|
95
95
|
oriRtcCloud = new trtc.NodeRTCCloud(pkg.version);
|
|
96
|
-
this.rtcCloud =
|
|
97
|
-
|
|
98
|
-
if (prop === 'onlineLog') {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
return obj[prop];
|
|
102
|
-
}
|
|
96
|
+
this.rtcCloud = Object.assign({}, oriRtcCloud, {
|
|
97
|
+
onlineLog: undefined
|
|
103
98
|
});
|
|
104
99
|
this.streams = new Map();
|
|
105
100
|
this.firstVideoFrameList = [];
|
|
@@ -2914,7 +2909,7 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2914
2909
|
* 测速结果将会用于优化 SDK 接下来的服务器选择策略,因此推荐您在用户首次通话前先进行一次测速,这将有助于我们选择最佳的服务器。
|
|
2915
2910
|
* 同时,如果测试结果非常不理想,您可以通过醒目的 UI 提示用户选择更好的网络。
|
|
2916
2911
|
*
|
|
2917
|
-
*
|
|
2912
|
+
* 注意:测速本身会消耗一定的流量,所以也会产生少量额外的流量费用。
|
|
2918
2913
|
*
|
|
2919
2914
|
* @param {Number} sdkAppId - 应用标识
|
|
2920
2915
|
* @param {String} userId - 用户标识
|
|
@@ -3179,6 +3174,9 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
3179
3174
|
}
|
|
3180
3175
|
};
|
|
3181
3176
|
}
|
|
3177
|
+
setPluginCallback(pluginCb) {
|
|
3178
|
+
this.rtcCloud.setPluginCallback(pluginCb);
|
|
3179
|
+
}
|
|
3182
3180
|
getKey(uid, type) {
|
|
3183
3181
|
return String(uid) + '_' + String(type);
|
|
3184
3182
|
}
|