@rongcloud/plugin-rtc 5.5.2-alpha.2 → 5.5.2-beem
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 +3 -3
- package/dist/index.esm.js +30 -12
- package/dist/index.js +30 -12
- package/dist/index.umd.js +30 -12
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.5.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.5.2-beem
|
|
3
|
+
* CommitId - 73038cca89e7a7b77f022a18a0830821bc0bd05d
|
|
4
|
+
* Fri Sep 30 2022 16:38:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import * as _rongcloud_engine from '@rongcloud/engine';
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.5.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.5.2-beem
|
|
3
|
+
* CommitId - 73038cca89e7a7b77f022a18a0830821bc0bd05d
|
|
4
|
+
* Fri Sep 30 2022 16:38:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { Logger, EventEmitter, logger as logger$1, LogSource, isNumber, validate, isObject as isObject$1, ErrorCode, HttpMethod, isArray, ConnectionStatus, notEmptyObject, notEmptyArray, reportLog, LogLevel, notEmptyString, isString, assert, ConversationType, isHttpUrl, isBoolean, isUndefined, forEach, VersionManage } from '@rongcloud/engine';
|
|
@@ -8051,7 +8051,7 @@ const getCommonHeader$1 = () => ({
|
|
|
8051
8051
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8052
8052
|
'Cache-Control': 'no-cache',
|
|
8053
8053
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8054
|
-
ClientVersion: "5.5.2-
|
|
8054
|
+
ClientVersion: "5.5.2-beem",
|
|
8055
8055
|
'Client-Session-Id': getUUID(),
|
|
8056
8056
|
'Request-Id': Date.now().toString(),
|
|
8057
8057
|
});
|
|
@@ -8159,6 +8159,8 @@ class Memo {
|
|
|
8159
8159
|
if (!this._memo) {
|
|
8160
8160
|
this._memo = new Memo();
|
|
8161
8161
|
}
|
|
8162
|
+
// 方便调试使用
|
|
8163
|
+
// (window as any).__memo__ = this._memo;
|
|
8162
8164
|
return this._memo;
|
|
8163
8165
|
}
|
|
8164
8166
|
static destroy() {
|
|
@@ -8170,7 +8172,7 @@ const getCommonHeader = () => ({
|
|
|
8170
8172
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8171
8173
|
'Cache-Control': 'no-cache',
|
|
8172
8174
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8173
|
-
ClientVersion: "5.5.2-
|
|
8175
|
+
ClientVersion: "5.5.2-beem",
|
|
8174
8176
|
'Client-Session-Id': getUUID(),
|
|
8175
8177
|
'Request-Id': Date.now().toString(),
|
|
8176
8178
|
});
|
|
@@ -11305,7 +11307,7 @@ class PolarisReporter {
|
|
|
11305
11307
|
* 加入房间
|
|
11306
11308
|
*/
|
|
11307
11309
|
sendR1() {
|
|
11308
|
-
const rtcVersion = "5.5.2-
|
|
11310
|
+
const rtcVersion = "5.5.2-beem";
|
|
11309
11311
|
const imVersion = this._context.getCoreVersion();
|
|
11310
11312
|
const platform = 'web';
|
|
11311
11313
|
const pcName = navigator.platform;
|
|
@@ -12630,6 +12632,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12630
12632
|
});
|
|
12631
12633
|
});
|
|
12632
12634
|
if (memo.subscribeCommand) {
|
|
12635
|
+
memo.subscribeCommand = false;
|
|
12633
12636
|
// 连通率相关埋点-订阅日志上报
|
|
12634
12637
|
attrs.forEach((resource) => {
|
|
12635
12638
|
var _a, _b;
|
|
@@ -12646,6 +12649,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12646
12649
|
});
|
|
12647
12650
|
}
|
|
12648
12651
|
if (memo.unsubscribeCommand) {
|
|
12652
|
+
memo.unsubscribeCommand = false;
|
|
12649
12653
|
// 连通率相关埋点-取消订阅日志上报
|
|
12650
12654
|
attrs.forEach((resource) => {
|
|
12651
12655
|
var _a, _b;
|
|
@@ -12676,6 +12680,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12676
12680
|
});
|
|
12677
12681
|
});
|
|
12678
12682
|
if (memo.subscribeCommand) {
|
|
12683
|
+
memo.subscribeCommand = false;
|
|
12679
12684
|
// 连通率相关埋点-订阅日志上报
|
|
12680
12685
|
attrs.forEach((resource) => {
|
|
12681
12686
|
var _a, _b;
|
|
@@ -12692,6 +12697,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12692
12697
|
});
|
|
12693
12698
|
}
|
|
12694
12699
|
if (memo.unsubscribeCommand) {
|
|
12700
|
+
memo.unsubscribeCommand = false;
|
|
12695
12701
|
// 连通率相关埋点-取消订阅日志上报
|
|
12696
12702
|
attrs.forEach((resource) => {
|
|
12697
12703
|
var _a, _b;
|
|
@@ -12730,6 +12736,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12730
12736
|
});
|
|
12731
12737
|
});
|
|
12732
12738
|
if (memo.subscribeCommand) {
|
|
12739
|
+
memo.subscribeCommand = false;
|
|
12733
12740
|
attrs.forEach((resource) => {
|
|
12734
12741
|
var _a, _b;
|
|
12735
12742
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12745,6 +12752,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12745
12752
|
});
|
|
12746
12753
|
}
|
|
12747
12754
|
if (memo.unsubscribeCommand) {
|
|
12755
|
+
memo.unsubscribeCommand = false;
|
|
12748
12756
|
attrs.forEach((resource) => {
|
|
12749
12757
|
var _a, _b;
|
|
12750
12758
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12773,6 +12781,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12773
12781
|
});
|
|
12774
12782
|
});
|
|
12775
12783
|
if (memo.subscribeCommand) {
|
|
12784
|
+
memo.subscribeCommand = false;
|
|
12776
12785
|
attrs.forEach((resource) => {
|
|
12777
12786
|
var _a, _b;
|
|
12778
12787
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12788,6 +12797,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12788
12797
|
});
|
|
12789
12798
|
}
|
|
12790
12799
|
if (memo.unsubscribeCommand) {
|
|
12800
|
+
memo.unsubscribeCommand = false;
|
|
12791
12801
|
attrs.forEach((resource) => {
|
|
12792
12802
|
var _a, _b;
|
|
12793
12803
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12874,7 +12884,7 @@ class UnsubscribeCommand extends BaseCommand {
|
|
|
12874
12884
|
logSource: LogSource.RTC,
|
|
12875
12885
|
});
|
|
12876
12886
|
const memo = Memo.getMemo();
|
|
12877
|
-
memo.
|
|
12887
|
+
memo.unsubscribeCommand = true;
|
|
12878
12888
|
return new UpdateSubscribeListCommand(crtSubList, this.subhook, false).execute(store, invoker);
|
|
12879
12889
|
});
|
|
12880
12890
|
}
|
|
@@ -18956,6 +18966,7 @@ class RCAudienceLivingRoom {
|
|
|
18956
18966
|
}
|
|
18957
18967
|
if (result.code !== RCRTCCode.SUCCESS) {
|
|
18958
18968
|
if (memo.subscribeCommand) {
|
|
18969
|
+
memo.subscribeCommand = false;
|
|
18959
18970
|
attrs.forEach((resource) => {
|
|
18960
18971
|
var _a, _b;
|
|
18961
18972
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -18971,6 +18982,7 @@ class RCAudienceLivingRoom {
|
|
|
18971
18982
|
});
|
|
18972
18983
|
}
|
|
18973
18984
|
if (memo.unsubscribeCommand) {
|
|
18985
|
+
memo.unsubscribeCommand = false;
|
|
18974
18986
|
attrs.forEach((resource) => {
|
|
18975
18987
|
var _a, _b;
|
|
18976
18988
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -18990,6 +19002,7 @@ class RCAudienceLivingRoom {
|
|
|
18990
19002
|
const { sdp: answer, resultCode, message, subscribedList, } = result.data;
|
|
18991
19003
|
if (resultCode !== RCRTCCode.SUCCESS) {
|
|
18992
19004
|
if (memo.subscribeCommand) {
|
|
19005
|
+
memo.subscribeCommand = false;
|
|
18993
19006
|
attrs.forEach((resource) => {
|
|
18994
19007
|
var _a, _b;
|
|
18995
19008
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19005,6 +19018,7 @@ class RCAudienceLivingRoom {
|
|
|
19005
19018
|
});
|
|
19006
19019
|
}
|
|
19007
19020
|
if (memo.unsubscribeCommand) {
|
|
19021
|
+
memo.unsubscribeCommand = false;
|
|
19008
19022
|
attrs.forEach((resource) => {
|
|
19009
19023
|
var _a, _b;
|
|
19010
19024
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19035,6 +19049,7 @@ class RCAudienceLivingRoom {
|
|
|
19035
19049
|
const resCode = yield this._pc.setRemoteAnswer(answer.sdp);
|
|
19036
19050
|
if (resCode !== RCRTCCode.SUCCESS) {
|
|
19037
19051
|
if (memo.subscribeCommand) {
|
|
19052
|
+
memo.subscribeCommand = false;
|
|
19038
19053
|
attrs.forEach((resource) => {
|
|
19039
19054
|
var _a, _b;
|
|
19040
19055
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19050,6 +19065,7 @@ class RCAudienceLivingRoom {
|
|
|
19050
19065
|
});
|
|
19051
19066
|
}
|
|
19052
19067
|
if (memo.unsubscribeCommand) {
|
|
19068
|
+
memo.unsubscribeCommand = false;
|
|
19053
19069
|
attrs.forEach((resource) => {
|
|
19054
19070
|
var _a, _b;
|
|
19055
19071
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19068,6 +19084,7 @@ class RCAudienceLivingRoom {
|
|
|
19068
19084
|
}
|
|
19069
19085
|
// 连通率相关埋点-订阅日志上报
|
|
19070
19086
|
if (memo.subscribeCommand) {
|
|
19087
|
+
memo.subscribeCommand = false;
|
|
19071
19088
|
attrs.forEach((resource) => {
|
|
19072
19089
|
var _a, _b;
|
|
19073
19090
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19083,6 +19100,7 @@ class RCAudienceLivingRoom {
|
|
|
19083
19100
|
});
|
|
19084
19101
|
}
|
|
19085
19102
|
if (memo.unsubscribeCommand) {
|
|
19103
|
+
memo.unsubscribeCommand = false;
|
|
19086
19104
|
attrs.forEach((resource) => {
|
|
19087
19105
|
var _a, _b;
|
|
19088
19106
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -20813,7 +20831,7 @@ class RCRTCClient extends RCMediaStreamCapture {
|
|
|
20813
20831
|
}
|
|
20814
20832
|
reportSDKInfo() {
|
|
20815
20833
|
this._context.reportSDKInfo({
|
|
20816
|
-
'plugin-rtc': "5.5.2-
|
|
20834
|
+
'plugin-rtc': "5.5.2-beem",
|
|
20817
20835
|
});
|
|
20818
20836
|
}
|
|
20819
20837
|
}
|
|
@@ -21542,7 +21560,7 @@ const installer = {
|
|
|
21542
21560
|
logger.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
21543
21561
|
return false;
|
|
21544
21562
|
}
|
|
21545
|
-
VersionManage.add('plugin-rtc', "5.5.2-
|
|
21563
|
+
VersionManage.add('plugin-rtc', "5.5.2-beem");
|
|
21546
21564
|
if (!VersionManage.validEngine("^5.5.5-beem-alpha.1")) {
|
|
21547
21565
|
logger.error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.5.5-beem-alpha.1"}'.`);
|
|
21548
21566
|
return false;
|
|
@@ -21556,15 +21574,15 @@ const installer = {
|
|
|
21556
21574
|
customLogPrint: options.logStdout,
|
|
21557
21575
|
});
|
|
21558
21576
|
logger$1.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, {
|
|
21559
|
-
'RCRTC Version': "5.5.2-
|
|
21560
|
-
Commit: "
|
|
21577
|
+
'RCRTC Version': "5.5.2-beem",
|
|
21578
|
+
Commit: "73038cca89e7a7b77f022a18a0830821bc0bd05d",
|
|
21561
21579
|
'browserInfo.browser': browserInfo.browser,
|
|
21562
21580
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
21563
21581
|
'browserInfo.version': browserInfo.version,
|
|
21564
21582
|
});
|
|
21565
21583
|
logger.setLogLevel(options.logLevel);
|
|
21566
21584
|
logger.setLogStdout(options.logStdout);
|
|
21567
|
-
logger.warn(`RCRTC Version: ${"5.5.2-
|
|
21585
|
+
logger.warn(`RCRTC Version: ${"5.5.2-beem"}, Commit: ${"73038cca89e7a7b77f022a18a0830821bc0bd05d"}`);
|
|
21568
21586
|
logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
|
|
21569
21587
|
logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
|
|
21570
21588
|
logger.warn(`browserInfo.version -> ${browserInfo.version}`);
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.5.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.5.2-beem
|
|
3
|
+
* CommitId - 73038cca89e7a7b77f022a18a0830821bc0bd05d
|
|
4
|
+
* Fri Sep 30 2022 16:38:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
@@ -8055,7 +8055,7 @@ const getCommonHeader$1 = () => ({
|
|
|
8055
8055
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8056
8056
|
'Cache-Control': 'no-cache',
|
|
8057
8057
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8058
|
-
ClientVersion: "5.5.2-
|
|
8058
|
+
ClientVersion: "5.5.2-beem",
|
|
8059
8059
|
'Client-Session-Id': getUUID(),
|
|
8060
8060
|
'Request-Id': Date.now().toString(),
|
|
8061
8061
|
});
|
|
@@ -8163,6 +8163,8 @@ class Memo {
|
|
|
8163
8163
|
if (!this._memo) {
|
|
8164
8164
|
this._memo = new Memo();
|
|
8165
8165
|
}
|
|
8166
|
+
// 方便调试使用
|
|
8167
|
+
// (window as any).__memo__ = this._memo;
|
|
8166
8168
|
return this._memo;
|
|
8167
8169
|
}
|
|
8168
8170
|
static destroy() {
|
|
@@ -8174,7 +8176,7 @@ const getCommonHeader = () => ({
|
|
|
8174
8176
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8175
8177
|
'Cache-Control': 'no-cache',
|
|
8176
8178
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8177
|
-
ClientVersion: "5.5.2-
|
|
8179
|
+
ClientVersion: "5.5.2-beem",
|
|
8178
8180
|
'Client-Session-Id': getUUID(),
|
|
8179
8181
|
'Request-Id': Date.now().toString(),
|
|
8180
8182
|
});
|
|
@@ -11309,7 +11311,7 @@ class PolarisReporter {
|
|
|
11309
11311
|
* 加入房间
|
|
11310
11312
|
*/
|
|
11311
11313
|
sendR1() {
|
|
11312
|
-
const rtcVersion = "5.5.2-
|
|
11314
|
+
const rtcVersion = "5.5.2-beem";
|
|
11313
11315
|
const imVersion = this._context.getCoreVersion();
|
|
11314
11316
|
const platform = 'web';
|
|
11315
11317
|
const pcName = navigator.platform;
|
|
@@ -12634,6 +12636,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12634
12636
|
});
|
|
12635
12637
|
});
|
|
12636
12638
|
if (memo.subscribeCommand) {
|
|
12639
|
+
memo.subscribeCommand = false;
|
|
12637
12640
|
// 连通率相关埋点-订阅日志上报
|
|
12638
12641
|
attrs.forEach((resource) => {
|
|
12639
12642
|
var _a, _b;
|
|
@@ -12650,6 +12653,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12650
12653
|
});
|
|
12651
12654
|
}
|
|
12652
12655
|
if (memo.unsubscribeCommand) {
|
|
12656
|
+
memo.unsubscribeCommand = false;
|
|
12653
12657
|
// 连通率相关埋点-取消订阅日志上报
|
|
12654
12658
|
attrs.forEach((resource) => {
|
|
12655
12659
|
var _a, _b;
|
|
@@ -12680,6 +12684,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12680
12684
|
});
|
|
12681
12685
|
});
|
|
12682
12686
|
if (memo.subscribeCommand) {
|
|
12687
|
+
memo.subscribeCommand = false;
|
|
12683
12688
|
// 连通率相关埋点-订阅日志上报
|
|
12684
12689
|
attrs.forEach((resource) => {
|
|
12685
12690
|
var _a, _b;
|
|
@@ -12696,6 +12701,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12696
12701
|
});
|
|
12697
12702
|
}
|
|
12698
12703
|
if (memo.unsubscribeCommand) {
|
|
12704
|
+
memo.unsubscribeCommand = false;
|
|
12699
12705
|
// 连通率相关埋点-取消订阅日志上报
|
|
12700
12706
|
attrs.forEach((resource) => {
|
|
12701
12707
|
var _a, _b;
|
|
@@ -12734,6 +12740,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12734
12740
|
});
|
|
12735
12741
|
});
|
|
12736
12742
|
if (memo.subscribeCommand) {
|
|
12743
|
+
memo.subscribeCommand = false;
|
|
12737
12744
|
attrs.forEach((resource) => {
|
|
12738
12745
|
var _a, _b;
|
|
12739
12746
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12749,6 +12756,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12749
12756
|
});
|
|
12750
12757
|
}
|
|
12751
12758
|
if (memo.unsubscribeCommand) {
|
|
12759
|
+
memo.unsubscribeCommand = false;
|
|
12752
12760
|
attrs.forEach((resource) => {
|
|
12753
12761
|
var _a, _b;
|
|
12754
12762
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12777,6 +12785,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12777
12785
|
});
|
|
12778
12786
|
});
|
|
12779
12787
|
if (memo.subscribeCommand) {
|
|
12788
|
+
memo.subscribeCommand = false;
|
|
12780
12789
|
attrs.forEach((resource) => {
|
|
12781
12790
|
var _a, _b;
|
|
12782
12791
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12792,6 +12801,7 @@ class UpdateSubscribeListCommand extends BaseCommand {
|
|
|
12792
12801
|
});
|
|
12793
12802
|
}
|
|
12794
12803
|
if (memo.unsubscribeCommand) {
|
|
12804
|
+
memo.unsubscribeCommand = false;
|
|
12795
12805
|
attrs.forEach((resource) => {
|
|
12796
12806
|
var _a, _b;
|
|
12797
12807
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12878,7 +12888,7 @@ class UnsubscribeCommand extends BaseCommand {
|
|
|
12878
12888
|
logSource: engine.LogSource.RTC,
|
|
12879
12889
|
});
|
|
12880
12890
|
const memo = Memo.getMemo();
|
|
12881
|
-
memo.
|
|
12891
|
+
memo.unsubscribeCommand = true;
|
|
12882
12892
|
return new UpdateSubscribeListCommand(crtSubList, this.subhook, false).execute(store, invoker);
|
|
12883
12893
|
});
|
|
12884
12894
|
}
|
|
@@ -18960,6 +18970,7 @@ class RCAudienceLivingRoom {
|
|
|
18960
18970
|
}
|
|
18961
18971
|
if (result.code !== exports.RCRTCCode.SUCCESS) {
|
|
18962
18972
|
if (memo.subscribeCommand) {
|
|
18973
|
+
memo.subscribeCommand = false;
|
|
18963
18974
|
attrs.forEach((resource) => {
|
|
18964
18975
|
var _a, _b;
|
|
18965
18976
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -18975,6 +18986,7 @@ class RCAudienceLivingRoom {
|
|
|
18975
18986
|
});
|
|
18976
18987
|
}
|
|
18977
18988
|
if (memo.unsubscribeCommand) {
|
|
18989
|
+
memo.unsubscribeCommand = false;
|
|
18978
18990
|
attrs.forEach((resource) => {
|
|
18979
18991
|
var _a, _b;
|
|
18980
18992
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -18994,6 +19006,7 @@ class RCAudienceLivingRoom {
|
|
|
18994
19006
|
const { sdp: answer, resultCode, message, subscribedList, } = result.data;
|
|
18995
19007
|
if (resultCode !== exports.RCRTCCode.SUCCESS) {
|
|
18996
19008
|
if (memo.subscribeCommand) {
|
|
19009
|
+
memo.subscribeCommand = false;
|
|
18997
19010
|
attrs.forEach((resource) => {
|
|
18998
19011
|
var _a, _b;
|
|
18999
19012
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19009,6 +19022,7 @@ class RCAudienceLivingRoom {
|
|
|
19009
19022
|
});
|
|
19010
19023
|
}
|
|
19011
19024
|
if (memo.unsubscribeCommand) {
|
|
19025
|
+
memo.unsubscribeCommand = false;
|
|
19012
19026
|
attrs.forEach((resource) => {
|
|
19013
19027
|
var _a, _b;
|
|
19014
19028
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19039,6 +19053,7 @@ class RCAudienceLivingRoom {
|
|
|
19039
19053
|
const resCode = yield this._pc.setRemoteAnswer(answer.sdp);
|
|
19040
19054
|
if (resCode !== exports.RCRTCCode.SUCCESS) {
|
|
19041
19055
|
if (memo.subscribeCommand) {
|
|
19056
|
+
memo.subscribeCommand = false;
|
|
19042
19057
|
attrs.forEach((resource) => {
|
|
19043
19058
|
var _a, _b;
|
|
19044
19059
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19054,6 +19069,7 @@ class RCAudienceLivingRoom {
|
|
|
19054
19069
|
});
|
|
19055
19070
|
}
|
|
19056
19071
|
if (memo.unsubscribeCommand) {
|
|
19072
|
+
memo.unsubscribeCommand = false;
|
|
19057
19073
|
attrs.forEach((resource) => {
|
|
19058
19074
|
var _a, _b;
|
|
19059
19075
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19072,6 +19088,7 @@ class RCAudienceLivingRoom {
|
|
|
19072
19088
|
}
|
|
19073
19089
|
// 连通率相关埋点-订阅日志上报
|
|
19074
19090
|
if (memo.subscribeCommand) {
|
|
19091
|
+
memo.subscribeCommand = false;
|
|
19075
19092
|
attrs.forEach((resource) => {
|
|
19076
19093
|
var _a, _b;
|
|
19077
19094
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19087,6 +19104,7 @@ class RCAudienceLivingRoom {
|
|
|
19087
19104
|
});
|
|
19088
19105
|
}
|
|
19089
19106
|
if (memo.unsubscribeCommand) {
|
|
19107
|
+
memo.unsubscribeCommand = false;
|
|
19090
19108
|
attrs.forEach((resource) => {
|
|
19091
19109
|
var _a, _b;
|
|
19092
19110
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -20817,7 +20835,7 @@ class RCRTCClient extends RCMediaStreamCapture {
|
|
|
20817
20835
|
}
|
|
20818
20836
|
reportSDKInfo() {
|
|
20819
20837
|
this._context.reportSDKInfo({
|
|
20820
|
-
'plugin-rtc': "5.5.2-
|
|
20838
|
+
'plugin-rtc': "5.5.2-beem",
|
|
20821
20839
|
});
|
|
20822
20840
|
}
|
|
20823
20841
|
}
|
|
@@ -21546,7 +21564,7 @@ const installer = {
|
|
|
21546
21564
|
logger.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
21547
21565
|
return false;
|
|
21548
21566
|
}
|
|
21549
|
-
engine.VersionManage.add('plugin-rtc', "5.5.2-
|
|
21567
|
+
engine.VersionManage.add('plugin-rtc', "5.5.2-beem");
|
|
21550
21568
|
if (!engine.VersionManage.validEngine("^5.5.5-beem-alpha.1")) {
|
|
21551
21569
|
logger.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.5.5-beem-alpha.1"}'.`);
|
|
21552
21570
|
return false;
|
|
@@ -21560,15 +21578,15 @@ const installer = {
|
|
|
21560
21578
|
customLogPrint: options.logStdout,
|
|
21561
21579
|
});
|
|
21562
21580
|
engine.logger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, {
|
|
21563
|
-
'RCRTC Version': "5.5.2-
|
|
21564
|
-
Commit: "
|
|
21581
|
+
'RCRTC Version': "5.5.2-beem",
|
|
21582
|
+
Commit: "73038cca89e7a7b77f022a18a0830821bc0bd05d",
|
|
21565
21583
|
'browserInfo.browser': browserInfo.browser,
|
|
21566
21584
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
21567
21585
|
'browserInfo.version': browserInfo.version,
|
|
21568
21586
|
});
|
|
21569
21587
|
logger.setLogLevel(options.logLevel);
|
|
21570
21588
|
logger.setLogStdout(options.logStdout);
|
|
21571
|
-
logger.warn(`RCRTC Version: ${"5.5.2-
|
|
21589
|
+
logger.warn(`RCRTC Version: ${"5.5.2-beem"}, Commit: ${"73038cca89e7a7b77f022a18a0830821bc0bd05d"}`);
|
|
21572
21590
|
logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
|
|
21573
21591
|
logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
|
|
21574
21592
|
logger.warn(`browserInfo.version -> ${browserInfo.version}`);
|
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.5.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.5.2-beem
|
|
3
|
+
* CommitId - 73038cca89e7a7b77f022a18a0830821bc0bd05d
|
|
4
|
+
* Fri Sep 30 2022 16:38:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
(function (global, factory) {
|
|
@@ -8055,7 +8055,7 @@
|
|
|
8055
8055
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8056
8056
|
'Cache-Control': 'no-cache',
|
|
8057
8057
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8058
|
-
ClientVersion: "5.5.2-
|
|
8058
|
+
ClientVersion: "5.5.2-beem",
|
|
8059
8059
|
'Client-Session-Id': getUUID(),
|
|
8060
8060
|
'Request-Id': Date.now().toString(),
|
|
8061
8061
|
});
|
|
@@ -8163,6 +8163,8 @@
|
|
|
8163
8163
|
if (!this._memo) {
|
|
8164
8164
|
this._memo = new Memo();
|
|
8165
8165
|
}
|
|
8166
|
+
// 方便调试使用
|
|
8167
|
+
// (window as any).__memo__ = this._memo;
|
|
8166
8168
|
return this._memo;
|
|
8167
8169
|
}
|
|
8168
8170
|
static destroy() {
|
|
@@ -8174,7 +8176,7 @@
|
|
|
8174
8176
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
8175
8177
|
'Cache-Control': 'no-cache',
|
|
8176
8178
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
8177
|
-
ClientVersion: "5.5.2-
|
|
8179
|
+
ClientVersion: "5.5.2-beem",
|
|
8178
8180
|
'Client-Session-Id': getUUID(),
|
|
8179
8181
|
'Request-Id': Date.now().toString(),
|
|
8180
8182
|
});
|
|
@@ -11309,7 +11311,7 @@
|
|
|
11309
11311
|
* 加入房间
|
|
11310
11312
|
*/
|
|
11311
11313
|
sendR1() {
|
|
11312
|
-
const rtcVersion = "5.5.2-
|
|
11314
|
+
const rtcVersion = "5.5.2-beem";
|
|
11313
11315
|
const imVersion = this._context.getCoreVersion();
|
|
11314
11316
|
const platform = 'web';
|
|
11315
11317
|
const pcName = navigator.platform;
|
|
@@ -12634,6 +12636,7 @@
|
|
|
12634
12636
|
});
|
|
12635
12637
|
});
|
|
12636
12638
|
if (memo.subscribeCommand) {
|
|
12639
|
+
memo.subscribeCommand = false;
|
|
12637
12640
|
// 连通率相关埋点-订阅日志上报
|
|
12638
12641
|
attrs.forEach((resource) => {
|
|
12639
12642
|
var _a, _b;
|
|
@@ -12650,6 +12653,7 @@
|
|
|
12650
12653
|
});
|
|
12651
12654
|
}
|
|
12652
12655
|
if (memo.unsubscribeCommand) {
|
|
12656
|
+
memo.unsubscribeCommand = false;
|
|
12653
12657
|
// 连通率相关埋点-取消订阅日志上报
|
|
12654
12658
|
attrs.forEach((resource) => {
|
|
12655
12659
|
var _a, _b;
|
|
@@ -12680,6 +12684,7 @@
|
|
|
12680
12684
|
});
|
|
12681
12685
|
});
|
|
12682
12686
|
if (memo.subscribeCommand) {
|
|
12687
|
+
memo.subscribeCommand = false;
|
|
12683
12688
|
// 连通率相关埋点-订阅日志上报
|
|
12684
12689
|
attrs.forEach((resource) => {
|
|
12685
12690
|
var _a, _b;
|
|
@@ -12696,6 +12701,7 @@
|
|
|
12696
12701
|
});
|
|
12697
12702
|
}
|
|
12698
12703
|
if (memo.unsubscribeCommand) {
|
|
12704
|
+
memo.unsubscribeCommand = false;
|
|
12699
12705
|
// 连通率相关埋点-取消订阅日志上报
|
|
12700
12706
|
attrs.forEach((resource) => {
|
|
12701
12707
|
var _a, _b;
|
|
@@ -12734,6 +12740,7 @@
|
|
|
12734
12740
|
});
|
|
12735
12741
|
});
|
|
12736
12742
|
if (memo.subscribeCommand) {
|
|
12743
|
+
memo.subscribeCommand = false;
|
|
12737
12744
|
attrs.forEach((resource) => {
|
|
12738
12745
|
var _a, _b;
|
|
12739
12746
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12749,6 +12756,7 @@
|
|
|
12749
12756
|
});
|
|
12750
12757
|
}
|
|
12751
12758
|
if (memo.unsubscribeCommand) {
|
|
12759
|
+
memo.unsubscribeCommand = false;
|
|
12752
12760
|
attrs.forEach((resource) => {
|
|
12753
12761
|
var _a, _b;
|
|
12754
12762
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12777,6 +12785,7 @@
|
|
|
12777
12785
|
});
|
|
12778
12786
|
});
|
|
12779
12787
|
if (memo.subscribeCommand) {
|
|
12788
|
+
memo.subscribeCommand = false;
|
|
12780
12789
|
attrs.forEach((resource) => {
|
|
12781
12790
|
var _a, _b;
|
|
12782
12791
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -12792,6 +12801,7 @@
|
|
|
12792
12801
|
});
|
|
12793
12802
|
}
|
|
12794
12803
|
if (memo.unsubscribeCommand) {
|
|
12804
|
+
memo.unsubscribeCommand = false;
|
|
12795
12805
|
attrs.forEach((resource) => {
|
|
12796
12806
|
var _a, _b;
|
|
12797
12807
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -12878,7 +12888,7 @@
|
|
|
12878
12888
|
logSource: engine.LogSource.RTC,
|
|
12879
12889
|
});
|
|
12880
12890
|
const memo = Memo.getMemo();
|
|
12881
|
-
memo.
|
|
12891
|
+
memo.unsubscribeCommand = true;
|
|
12882
12892
|
return new UpdateSubscribeListCommand(crtSubList, this.subhook, false).execute(store, invoker);
|
|
12883
12893
|
});
|
|
12884
12894
|
}
|
|
@@ -18960,6 +18970,7 @@
|
|
|
18960
18970
|
}
|
|
18961
18971
|
if (result.code !== exports.RCRTCCode.SUCCESS) {
|
|
18962
18972
|
if (memo.subscribeCommand) {
|
|
18973
|
+
memo.subscribeCommand = false;
|
|
18963
18974
|
attrs.forEach((resource) => {
|
|
18964
18975
|
var _a, _b;
|
|
18965
18976
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -18975,6 +18986,7 @@
|
|
|
18975
18986
|
});
|
|
18976
18987
|
}
|
|
18977
18988
|
if (memo.unsubscribeCommand) {
|
|
18989
|
+
memo.unsubscribeCommand = false;
|
|
18978
18990
|
attrs.forEach((resource) => {
|
|
18979
18991
|
var _a, _b;
|
|
18980
18992
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -18994,6 +19006,7 @@
|
|
|
18994
19006
|
const { sdp: answer, resultCode, message, subscribedList, } = result.data;
|
|
18995
19007
|
if (resultCode !== exports.RCRTCCode.SUCCESS) {
|
|
18996
19008
|
if (memo.subscribeCommand) {
|
|
19009
|
+
memo.subscribeCommand = false;
|
|
18997
19010
|
attrs.forEach((resource) => {
|
|
18998
19011
|
var _a, _b;
|
|
18999
19012
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19009,6 +19022,7 @@
|
|
|
19009
19022
|
});
|
|
19010
19023
|
}
|
|
19011
19024
|
if (memo.unsubscribeCommand) {
|
|
19025
|
+
memo.unsubscribeCommand = false;
|
|
19012
19026
|
attrs.forEach((resource) => {
|
|
19013
19027
|
var _a, _b;
|
|
19014
19028
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19039,6 +19053,7 @@
|
|
|
19039
19053
|
const resCode = yield this._pc.setRemoteAnswer(answer.sdp);
|
|
19040
19054
|
if (resCode !== exports.RCRTCCode.SUCCESS) {
|
|
19041
19055
|
if (memo.subscribeCommand) {
|
|
19056
|
+
memo.subscribeCommand = false;
|
|
19042
19057
|
attrs.forEach((resource) => {
|
|
19043
19058
|
var _a, _b;
|
|
19044
19059
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19054,6 +19069,7 @@
|
|
|
19054
19069
|
});
|
|
19055
19070
|
}
|
|
19056
19071
|
if (memo.unsubscribeCommand) {
|
|
19072
|
+
memo.unsubscribeCommand = false;
|
|
19057
19073
|
attrs.forEach((resource) => {
|
|
19058
19074
|
var _a, _b;
|
|
19059
19075
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -19072,6 +19088,7 @@
|
|
|
19072
19088
|
}
|
|
19073
19089
|
// 连通率相关埋点-订阅日志上报
|
|
19074
19090
|
if (memo.subscribeCommand) {
|
|
19091
|
+
memo.subscribeCommand = false;
|
|
19075
19092
|
attrs.forEach((resource) => {
|
|
19076
19093
|
var _a, _b;
|
|
19077
19094
|
const reportData = JSON.stringify(Object.assign(memo.qualitySubscribeReportData, {
|
|
@@ -19087,6 +19104,7 @@
|
|
|
19087
19104
|
});
|
|
19088
19105
|
}
|
|
19089
19106
|
if (memo.unsubscribeCommand) {
|
|
19107
|
+
memo.unsubscribeCommand = false;
|
|
19090
19108
|
attrs.forEach((resource) => {
|
|
19091
19109
|
var _a, _b;
|
|
19092
19110
|
const reportData = JSON.stringify(Object.assign(memo.qualityUnsubscribeReportData, {
|
|
@@ -20817,7 +20835,7 @@
|
|
|
20817
20835
|
}
|
|
20818
20836
|
reportSDKInfo() {
|
|
20819
20837
|
this._context.reportSDKInfo({
|
|
20820
|
-
'plugin-rtc': "5.5.2-
|
|
20838
|
+
'plugin-rtc': "5.5.2-beem",
|
|
20821
20839
|
});
|
|
20822
20840
|
}
|
|
20823
20841
|
}
|
|
@@ -21546,7 +21564,7 @@ message probuf {
|
|
|
21546
21564
|
logger.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
21547
21565
|
return false;
|
|
21548
21566
|
}
|
|
21549
|
-
engine.VersionManage.add('plugin-rtc', "5.5.2-
|
|
21567
|
+
engine.VersionManage.add('plugin-rtc', "5.5.2-beem");
|
|
21550
21568
|
if (!engine.VersionManage.validEngine("^5.5.5-beem-alpha.1")) {
|
|
21551
21569
|
logger.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.5.5-beem-alpha.1"}'.`);
|
|
21552
21570
|
return false;
|
|
@@ -21560,15 +21578,15 @@ message probuf {
|
|
|
21560
21578
|
customLogPrint: options.logStdout,
|
|
21561
21579
|
});
|
|
21562
21580
|
engine.logger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, {
|
|
21563
|
-
'RCRTC Version': "5.5.2-
|
|
21564
|
-
Commit: "
|
|
21581
|
+
'RCRTC Version': "5.5.2-beem",
|
|
21582
|
+
Commit: "73038cca89e7a7b77f022a18a0830821bc0bd05d",
|
|
21565
21583
|
'browserInfo.browser': browserInfo.browser,
|
|
21566
21584
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
21567
21585
|
'browserInfo.version': browserInfo.version,
|
|
21568
21586
|
});
|
|
21569
21587
|
logger.setLogLevel(options.logLevel);
|
|
21570
21588
|
logger.setLogStdout(options.logStdout);
|
|
21571
|
-
logger.warn(`RCRTC Version: ${"5.5.2-
|
|
21589
|
+
logger.warn(`RCRTC Version: ${"5.5.2-beem"}, Commit: ${"73038cca89e7a7b77f022a18a0830821bc0bd05d"}`);
|
|
21572
21590
|
logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
|
|
21573
21591
|
logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
|
|
21574
21592
|
logger.warn(`browserInfo.version -> ${browserInfo.version}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rongcloud/plugin-rtc",
|
|
3
|
-
"version": "5.5.2-
|
|
3
|
+
"version": "5.5.2-beem",
|
|
4
4
|
"description": "@rongcloud/plugin-rtc",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"__attrs__": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=10.0.0"
|
|
32
32
|
},
|
|
33
|
-
"__commit__": "
|
|
33
|
+
"__commit__": "73038cca89e7a7b77f022a18a0830821bc0bd05d"
|
|
34
34
|
}
|