@rongcloud/plugin-rtc 5.6.6-beem-alpha.2 → 5.6.6-beem.1
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 +7 -3
- package/dist/index.esm.js +15 -14
- package/dist/index.js +15 -14
- package/dist/index.umd.js +15 -14
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.6-beem
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.6-beem.1
|
|
3
|
+
* CommitId - a19e991ed841b686dbaded62d7d39d2342d9a45d
|
|
4
|
+
* Wed Jan 18 2023 20:12:24 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;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.6-beem
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.6-beem.1
|
|
3
|
+
* CommitId - a19e991ed841b686dbaded62d7d39d2342d9a45d
|
|
4
|
+
* Wed Jan 18 2023 20:12:24 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter, isNumber, validate, isObject as isObject$1, ErrorCode, HttpMethod, isArray, ConnectionStatus, notEmptyObject, notEmptyArray, notEmptyString, isString, RTCMode as RTCMode$1, assert, ConversationType, isHttpUrl, isBoolean, isUndefined, forEach, VersionManage, LogL } from '@rongcloud/engine';
|
|
@@ -6744,6 +6744,7 @@ class RCTrack extends EventEmitter {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
__innerSetMediaStreamTrack(track) {
|
|
6746
6746
|
this._msTrack = track;
|
|
6747
|
+
this._localMuted = !(track === null || track === void 0 ? void 0 : track.enabled);
|
|
6747
6748
|
this._setLocalMuted(this._localMuted);
|
|
6748
6749
|
const stream = this._msStream = this._msStream || new MediaStream();
|
|
6749
6750
|
const preTrack = stream.getTracks()[0];
|
|
@@ -14812,7 +14813,7 @@ const getCommonHeader$1 = () => ({
|
|
|
14812
14813
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
14813
14814
|
'Cache-Control': 'no-cache',
|
|
14814
14815
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
14815
|
-
ClientVersion: "5.6.6-beem
|
|
14816
|
+
ClientVersion: "5.6.6-beem.1",
|
|
14816
14817
|
'Client-Session-Id': getUUID(),
|
|
14817
14818
|
'Request-Id': Date.now().toString(),
|
|
14818
14819
|
});
|
|
@@ -15397,7 +15398,7 @@ const getCommonHeader = () => ({
|
|
|
15397
15398
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
15398
15399
|
'Cache-Control': 'no-cache',
|
|
15399
15400
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
15400
|
-
ClientVersion: "5.6.6-beem
|
|
15401
|
+
ClientVersion: "5.6.6-beem.1",
|
|
15401
15402
|
'Client-Session-Id': getUUID(),
|
|
15402
15403
|
'Request-Id': Date.now().toString(),
|
|
15403
15404
|
});
|
|
@@ -18689,7 +18690,7 @@ class PolarisReporter {
|
|
|
18689
18690
|
* 加入房间
|
|
18690
18691
|
*/
|
|
18691
18692
|
sendR1() {
|
|
18692
|
-
const rtcVersion = "5.6.6-beem
|
|
18693
|
+
const rtcVersion = "5.6.6-beem.1";
|
|
18693
18694
|
const imVersion = this._context.getCoreVersion();
|
|
18694
18695
|
const platform = 'web';
|
|
18695
18696
|
const pcName = navigator.platform;
|
|
@@ -18839,7 +18840,7 @@ class PolarisHttpReporter {
|
|
|
18839
18840
|
_formatR1Data() {
|
|
18840
18841
|
return {
|
|
18841
18842
|
joinTime: this._context.userJoinTime || 0,
|
|
18842
|
-
rtcVersion: "5.6.6-beem
|
|
18843
|
+
rtcVersion: "5.6.6-beem.1",
|
|
18843
18844
|
imVersion: this._context.getCoreVersion(),
|
|
18844
18845
|
platform: 'web',
|
|
18845
18846
|
device: navigator.platform,
|
|
@@ -22881,7 +22882,7 @@ class RCAbstractRoom extends EventEmitter {
|
|
|
22881
22882
|
* 如果是单 peerConnection 则不需要 在 Header中添加 'Peer-Connection-Id'
|
|
22882
22883
|
*/
|
|
22883
22884
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': pcName } : {};
|
|
22884
|
-
const heasers = Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
22885
|
+
const heasers = Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
22885
22886
|
return heasers;
|
|
22886
22887
|
}
|
|
22887
22888
|
/**
|
|
@@ -25413,7 +25414,7 @@ class RCAudienceClient {
|
|
|
25413
25414
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
25414
25415
|
return {
|
|
25415
25416
|
code: RCRTCCode.SUCCESS,
|
|
25416
|
-
headers: Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId),
|
|
25417
|
+
headers: Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 }),
|
|
25417
25418
|
};
|
|
25418
25419
|
});
|
|
25419
25420
|
}
|
|
@@ -26295,7 +26296,7 @@ class RCAudienceLivingRoom {
|
|
|
26295
26296
|
*/
|
|
26296
26297
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
26297
26298
|
// 直播观众端 RoomId 与 UserId 保持一致
|
|
26298
|
-
return Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
26299
|
+
return Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
26299
26300
|
}
|
|
26300
26301
|
_exchangeHandle(body, reTry = 0) {
|
|
26301
26302
|
var _a;
|
|
@@ -28077,7 +28078,7 @@ class RCRTCClient extends RCMediaStreamCapture {
|
|
|
28077
28078
|
}
|
|
28078
28079
|
reportSDKInfo() {
|
|
28079
28080
|
this._context.reportSDKInfo({
|
|
28080
|
-
'plugin-rtc': "5.6.6-beem
|
|
28081
|
+
'plugin-rtc': "5.6.6-beem.1",
|
|
28081
28082
|
});
|
|
28082
28083
|
}
|
|
28083
28084
|
}
|
|
@@ -29070,7 +29071,7 @@ const installer = {
|
|
|
29070
29071
|
console.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
29071
29072
|
return false;
|
|
29072
29073
|
}
|
|
29073
|
-
VersionManage.add('plugin-rtc', "5.6.6-beem
|
|
29074
|
+
VersionManage.add('plugin-rtc', "5.6.6-beem.1");
|
|
29074
29075
|
if (!VersionManage.validEngine("^5.6.0")) {
|
|
29075
29076
|
console.error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0"}'.`);
|
|
29076
29077
|
return false;
|
|
@@ -29084,8 +29085,8 @@ const installer = {
|
|
|
29084
29085
|
RTCLogger.setLogger(originLogger);
|
|
29085
29086
|
logger.setLogger(originLogger);
|
|
29086
29087
|
originLogger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
|
|
29087
|
-
'RCRTC Version': "5.6.6-beem
|
|
29088
|
-
Commit: "
|
|
29088
|
+
'RCRTC Version': "5.6.6-beem.1",
|
|
29089
|
+
Commit: "a19e991ed841b686dbaded62d7d39d2342d9a45d",
|
|
29089
29090
|
'browserInfo.browser': browserInfo.browser,
|
|
29090
29091
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
29091
29092
|
'browserInfo.version': browserInfo.version,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.6-beem
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.6-beem.1
|
|
3
|
+
* CommitId - a19e991ed841b686dbaded62d7d39d2342d9a45d
|
|
4
|
+
* Wed Jan 18 2023 20:12:24 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
@@ -6748,6 +6748,7 @@ class RCTrack extends engine.EventEmitter {
|
|
|
6748
6748
|
}
|
|
6749
6749
|
__innerSetMediaStreamTrack(track) {
|
|
6750
6750
|
this._msTrack = track;
|
|
6751
|
+
this._localMuted = !(track === null || track === void 0 ? void 0 : track.enabled);
|
|
6751
6752
|
this._setLocalMuted(this._localMuted);
|
|
6752
6753
|
const stream = this._msStream = this._msStream || new MediaStream();
|
|
6753
6754
|
const preTrack = stream.getTracks()[0];
|
|
@@ -14816,7 +14817,7 @@ const getCommonHeader$1 = () => ({
|
|
|
14816
14817
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
14817
14818
|
'Cache-Control': 'no-cache',
|
|
14818
14819
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
14819
|
-
ClientVersion: "5.6.6-beem
|
|
14820
|
+
ClientVersion: "5.6.6-beem.1",
|
|
14820
14821
|
'Client-Session-Id': getUUID(),
|
|
14821
14822
|
'Request-Id': Date.now().toString(),
|
|
14822
14823
|
});
|
|
@@ -15401,7 +15402,7 @@ const getCommonHeader = () => ({
|
|
|
15401
15402
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
15402
15403
|
'Cache-Control': 'no-cache',
|
|
15403
15404
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
15404
|
-
ClientVersion: "5.6.6-beem
|
|
15405
|
+
ClientVersion: "5.6.6-beem.1",
|
|
15405
15406
|
'Client-Session-Id': getUUID(),
|
|
15406
15407
|
'Request-Id': Date.now().toString(),
|
|
15407
15408
|
});
|
|
@@ -18693,7 +18694,7 @@ class PolarisReporter {
|
|
|
18693
18694
|
* 加入房间
|
|
18694
18695
|
*/
|
|
18695
18696
|
sendR1() {
|
|
18696
|
-
const rtcVersion = "5.6.6-beem
|
|
18697
|
+
const rtcVersion = "5.6.6-beem.1";
|
|
18697
18698
|
const imVersion = this._context.getCoreVersion();
|
|
18698
18699
|
const platform = 'web';
|
|
18699
18700
|
const pcName = navigator.platform;
|
|
@@ -18843,7 +18844,7 @@ class PolarisHttpReporter {
|
|
|
18843
18844
|
_formatR1Data() {
|
|
18844
18845
|
return {
|
|
18845
18846
|
joinTime: this._context.userJoinTime || 0,
|
|
18846
|
-
rtcVersion: "5.6.6-beem
|
|
18847
|
+
rtcVersion: "5.6.6-beem.1",
|
|
18847
18848
|
imVersion: this._context.getCoreVersion(),
|
|
18848
18849
|
platform: 'web',
|
|
18849
18850
|
device: navigator.platform,
|
|
@@ -22885,7 +22886,7 @@ class RCAbstractRoom extends engine.EventEmitter {
|
|
|
22885
22886
|
* 如果是单 peerConnection 则不需要 在 Header中添加 'Peer-Connection-Id'
|
|
22886
22887
|
*/
|
|
22887
22888
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': pcName } : {};
|
|
22888
|
-
const heasers = Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
22889
|
+
const heasers = Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
22889
22890
|
return heasers;
|
|
22890
22891
|
}
|
|
22891
22892
|
/**
|
|
@@ -25417,7 +25418,7 @@ class RCAudienceClient {
|
|
|
25417
25418
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
25418
25419
|
return {
|
|
25419
25420
|
code: exports.RCRTCCode.SUCCESS,
|
|
25420
|
-
headers: Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId),
|
|
25421
|
+
headers: Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 }),
|
|
25421
25422
|
};
|
|
25422
25423
|
});
|
|
25423
25424
|
}
|
|
@@ -26299,7 +26300,7 @@ class RCAudienceLivingRoom {
|
|
|
26299
26300
|
*/
|
|
26300
26301
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
26301
26302
|
// 直播观众端 RoomId 与 UserId 保持一致
|
|
26302
|
-
return Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
26303
|
+
return Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
26303
26304
|
}
|
|
26304
26305
|
_exchangeHandle(body, reTry = 0) {
|
|
26305
26306
|
var _a;
|
|
@@ -28081,7 +28082,7 @@ class RCRTCClient extends RCMediaStreamCapture {
|
|
|
28081
28082
|
}
|
|
28082
28083
|
reportSDKInfo() {
|
|
28083
28084
|
this._context.reportSDKInfo({
|
|
28084
|
-
'plugin-rtc': "5.6.6-beem
|
|
28085
|
+
'plugin-rtc': "5.6.6-beem.1",
|
|
28085
28086
|
});
|
|
28086
28087
|
}
|
|
28087
28088
|
}
|
|
@@ -29074,7 +29075,7 @@ const installer = {
|
|
|
29074
29075
|
console.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
29075
29076
|
return false;
|
|
29076
29077
|
}
|
|
29077
|
-
engine.VersionManage.add('plugin-rtc', "5.6.6-beem
|
|
29078
|
+
engine.VersionManage.add('plugin-rtc', "5.6.6-beem.1");
|
|
29078
29079
|
if (!engine.VersionManage.validEngine("^5.6.0")) {
|
|
29079
29080
|
console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0"}'.`);
|
|
29080
29081
|
return false;
|
|
@@ -29088,8 +29089,8 @@ const installer = {
|
|
|
29088
29089
|
RTCLogger.setLogger(originLogger);
|
|
29089
29090
|
logger.setLogger(originLogger);
|
|
29090
29091
|
originLogger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
|
|
29091
|
-
'RCRTC Version': "5.6.6-beem
|
|
29092
|
-
Commit: "
|
|
29092
|
+
'RCRTC Version': "5.6.6-beem.1",
|
|
29093
|
+
Commit: "a19e991ed841b686dbaded62d7d39d2342d9a45d",
|
|
29093
29094
|
'browserInfo.browser': browserInfo.browser,
|
|
29094
29095
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
29095
29096
|
'browserInfo.version': browserInfo.version,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.6-beem
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.6-beem.1
|
|
3
|
+
* CommitId - a19e991ed841b686dbaded62d7d39d2342d9a45d
|
|
4
|
+
* Wed Jan 18 2023 20:12:24 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
(function (global, factory) {
|
|
@@ -6748,6 +6748,7 @@
|
|
|
6748
6748
|
}
|
|
6749
6749
|
__innerSetMediaStreamTrack(track) {
|
|
6750
6750
|
this._msTrack = track;
|
|
6751
|
+
this._localMuted = !(track === null || track === void 0 ? void 0 : track.enabled);
|
|
6751
6752
|
this._setLocalMuted(this._localMuted);
|
|
6752
6753
|
const stream = this._msStream = this._msStream || new MediaStream();
|
|
6753
6754
|
const preTrack = stream.getTracks()[0];
|
|
@@ -14816,7 +14817,7 @@
|
|
|
14816
14817
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
14817
14818
|
'Cache-Control': 'no-cache',
|
|
14818
14819
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
14819
|
-
ClientVersion: "5.6.6-beem
|
|
14820
|
+
ClientVersion: "5.6.6-beem.1",
|
|
14820
14821
|
'Client-Session-Id': getUUID(),
|
|
14821
14822
|
'Request-Id': Date.now().toString(),
|
|
14822
14823
|
});
|
|
@@ -15401,7 +15402,7 @@
|
|
|
15401
15402
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
15402
15403
|
'Cache-Control': 'no-cache',
|
|
15403
15404
|
ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
|
|
15404
|
-
ClientVersion: "5.6.6-beem
|
|
15405
|
+
ClientVersion: "5.6.6-beem.1",
|
|
15405
15406
|
'Client-Session-Id': getUUID(),
|
|
15406
15407
|
'Request-Id': Date.now().toString(),
|
|
15407
15408
|
});
|
|
@@ -18693,7 +18694,7 @@
|
|
|
18693
18694
|
* 加入房间
|
|
18694
18695
|
*/
|
|
18695
18696
|
sendR1() {
|
|
18696
|
-
const rtcVersion = "5.6.6-beem
|
|
18697
|
+
const rtcVersion = "5.6.6-beem.1";
|
|
18697
18698
|
const imVersion = this._context.getCoreVersion();
|
|
18698
18699
|
const platform = 'web';
|
|
18699
18700
|
const pcName = navigator.platform;
|
|
@@ -18843,7 +18844,7 @@
|
|
|
18843
18844
|
_formatR1Data() {
|
|
18844
18845
|
return {
|
|
18845
18846
|
joinTime: this._context.userJoinTime || 0,
|
|
18846
|
-
rtcVersion: "5.6.6-beem
|
|
18847
|
+
rtcVersion: "5.6.6-beem.1",
|
|
18847
18848
|
imVersion: this._context.getCoreVersion(),
|
|
18848
18849
|
platform: 'web',
|
|
18849
18850
|
device: navigator.platform,
|
|
@@ -22885,7 +22886,7 @@
|
|
|
22885
22886
|
* 如果是单 peerConnection 则不需要 在 Header中添加 'Peer-Connection-Id'
|
|
22886
22887
|
*/
|
|
22887
22888
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': pcName } : {};
|
|
22888
|
-
const heasers = Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
22889
|
+
const heasers = Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: this._roomId, Token: this._store.getToken(), RoomType: this._store.roomMode, UserId: this._context.getCurrentId(), 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
22889
22890
|
return heasers;
|
|
22890
22891
|
}
|
|
22891
22892
|
/**
|
|
@@ -25417,7 +25418,7 @@
|
|
|
25417
25418
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
25418
25419
|
return {
|
|
25419
25420
|
code: exports.RCRTCCode.SUCCESS,
|
|
25420
|
-
headers: Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId),
|
|
25421
|
+
headers: Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), UserId: this._crtUserId, RoomId: roomId, RoomType: RTCMode.LIVE, Token: this._rtcToken, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 }),
|
|
25421
25422
|
};
|
|
25422
25423
|
});
|
|
25423
25424
|
}
|
|
@@ -26299,7 +26300,7 @@
|
|
|
26299
26300
|
*/
|
|
26300
26301
|
const peerConnectionId = this._useMutilPeerC ? { 'Peer-Connection-Id': this._pcName } : {};
|
|
26301
26302
|
// 直播观众端 RoomId 与 UserId 保持一致
|
|
26302
|
-
return Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId);
|
|
26303
|
+
return Object.assign(Object.assign({ 'App-Key': this._context.getAppkey(), RoomId: userId, Token: this._joinResData.token, RoomType: RTCMode.LIVE, UserId: userId, 'Session-Id': this._sessionId, 'Client-Session-Id': this._clientSessionId }, peerConnectionId), { 'Is-Beem': 1 });
|
|
26303
26304
|
}
|
|
26304
26305
|
_exchangeHandle(body, reTry = 0) {
|
|
26305
26306
|
var _a;
|
|
@@ -28081,7 +28082,7 @@
|
|
|
28081
28082
|
}
|
|
28082
28083
|
reportSDKInfo() {
|
|
28083
28084
|
this._context.reportSDKInfo({
|
|
28084
|
-
'plugin-rtc': "5.6.6-beem
|
|
28085
|
+
'plugin-rtc': "5.6.6-beem.1",
|
|
28085
28086
|
});
|
|
28086
28087
|
}
|
|
28087
28088
|
}
|
|
@@ -29074,7 +29075,7 @@ message probuf {
|
|
|
29074
29075
|
console.error('Please use the https protocol or use `http://localhost` to open the page!');
|
|
29075
29076
|
return false;
|
|
29076
29077
|
}
|
|
29077
|
-
engine.VersionManage.add('plugin-rtc', "5.6.6-beem
|
|
29078
|
+
engine.VersionManage.add('plugin-rtc', "5.6.6-beem.1");
|
|
29078
29079
|
if (!engine.VersionManage.validEngine("^5.6.0")) {
|
|
29079
29080
|
console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0"}'.`);
|
|
29080
29081
|
return false;
|
|
@@ -29088,8 +29089,8 @@ message probuf {
|
|
|
29088
29089
|
RTCLogger.setLogger(originLogger);
|
|
29089
29090
|
logger.setLogger(originLogger);
|
|
29090
29091
|
originLogger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
|
|
29091
|
-
'RCRTC Version': "5.6.6-beem
|
|
29092
|
-
Commit: "
|
|
29092
|
+
'RCRTC Version': "5.6.6-beem.1",
|
|
29093
|
+
Commit: "a19e991ed841b686dbaded62d7d39d2342d9a45d",
|
|
29093
29094
|
'browserInfo.browser': browserInfo.browser,
|
|
29094
29095
|
'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
|
|
29095
29096
|
'browserInfo.version': browserInfo.version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rongcloud/plugin-rtc",
|
|
3
|
-
"version": "5.6.6-beem
|
|
3
|
+
"version": "5.6.6-beem.1",
|
|
4
4
|
"description": "@rongcloud/plugin-rtc",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"__attrs__": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@rongcloud/engine": "^5.6.0"
|
|
35
35
|
},
|
|
36
|
-
"__commit__": "
|
|
36
|
+
"__commit__": "a19e991ed841b686dbaded62d7d39d2342d9a45d"
|
|
37
37
|
}
|