@rongcloud/plugin-call 5.1.2-alpha.2 → 5.1.2-enterprise.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/RCCallClient.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +19 -18
- package/dist/index.js +19 -18
- package/dist/index.umd.js +19 -18
- package/package.json +3 -3
package/dist/RCCallClient.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export default class RCCallClient {
|
|
|
93
93
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
94
94
|
* @param params.bitrate 需要设置的码率参数
|
|
95
95
|
*/
|
|
96
|
-
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, bitrate }: IRCCallInGroupParams): Promise<{
|
|
96
|
+
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate }: IRCCallInGroupParams): Promise<{
|
|
97
97
|
code: RCCallErrorCode;
|
|
98
98
|
session?: RCCallSession;
|
|
99
99
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.1.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.1.2-enterprise.1
|
|
3
|
+
* CommitId - cc1286286fed4ed0c619fe38584d48bb5d266679
|
|
4
|
+
* Mon Mar 06 2023 14:23:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { ILogger, ConversationType, RTCJoinType, LogLevel, RTCPluginContext, IRuntime, BasicLogger, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
@@ -652,7 +652,7 @@ declare class RCCallClient {
|
|
|
652
652
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
653
653
|
* @param params.bitrate 需要设置的码率参数
|
|
654
654
|
*/
|
|
655
|
-
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, bitrate }: IRCCallInGroupParams): Promise<{
|
|
655
|
+
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate }: IRCCallInGroupParams): Promise<{
|
|
656
656
|
code: RCCallErrorCode;
|
|
657
657
|
session?: RCCallSession;
|
|
658
658
|
}>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.1.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.1.2-enterprise.1
|
|
3
|
+
* CommitId - cc1286286fed4ed0c619fe38584d48bb5d266679
|
|
4
|
+
* Mon Mar 06 2023 14:23:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { RTCJoinType, LogLevel, ErrorCode, VersionManage } from '@rongcloud/engine';
|
|
@@ -253,8 +253,10 @@ const validatePushContent = (pushContent) => {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
const validatePushConfig = (pushConfig) => {
|
|
256
|
-
const { pushTitle, pushContent } = pushConfig;
|
|
257
|
-
const conclusion = [
|
|
256
|
+
const { pushTitle = '', pushContent = '' } = pushConfig;
|
|
257
|
+
const conclusion = [];
|
|
258
|
+
conclusion.push(validatePushTitle(pushTitle));
|
|
259
|
+
conclusion.push(validatePushContent(pushContent));
|
|
258
260
|
return conclusion;
|
|
259
261
|
};
|
|
260
262
|
const validateUserIds = (userIds) => {
|
|
@@ -1578,8 +1580,7 @@ class RCCallClient {
|
|
|
1578
1580
|
*/
|
|
1579
1581
|
startCrossCall({ targetId, mediaType = RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1580
1582
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1581
|
-
|
|
1582
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate, isCrossAppkey: true });
|
|
1583
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, isCrossAppkey: true });
|
|
1583
1584
|
});
|
|
1584
1585
|
}
|
|
1585
1586
|
/**
|
|
@@ -1597,14 +1598,14 @@ class RCCallClient {
|
|
|
1597
1598
|
*/
|
|
1598
1599
|
call({ targetId, mediaType = RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1599
1600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1600
|
-
|
|
1601
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate });
|
|
1601
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate });
|
|
1602
1602
|
});
|
|
1603
1603
|
}
|
|
1604
1604
|
__call({ targetId, mediaType = RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate, isCrossAppkey = false }) {
|
|
1605
1605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1606
|
-
|
|
1607
|
-
|
|
1606
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1607
|
+
this._logger.info('_', `[RCCallClient call] extra->${extra} pushTitle->${pushTitleValue} pushContent->${pushContentValue}`);
|
|
1608
|
+
const conclusion = [validateTargetId(targetId), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1608
1609
|
const messages = [];
|
|
1609
1610
|
const result = conclusion.every((obj) => {
|
|
1610
1611
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1632,7 +1633,7 @@ class RCCallClient {
|
|
|
1632
1633
|
listener.onTrackReady(track);
|
|
1633
1634
|
});
|
|
1634
1635
|
// 调用callEngine的call返回一个状态机的实例
|
|
1635
|
-
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra,
|
|
1636
|
+
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra, pushTitleValue, pushContentValue, isCrossAppkey);
|
|
1636
1637
|
if (code === RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1637
1638
|
this._logger.info('_', '[RCCallClient call] successfully created state machine');
|
|
1638
1639
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1688,9 +1689,10 @@ class RCCallClient {
|
|
|
1688
1689
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
1689
1690
|
* @param params.bitrate 需要设置的码率参数
|
|
1690
1691
|
*/
|
|
1691
|
-
callInGroup({ targetId, userIds, mediaType = RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', bitrate }) {
|
|
1692
|
+
callInGroup({ targetId, userIds, mediaType = RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1692
1693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1693
|
-
const
|
|
1694
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1695
|
+
const conclusion = [validateTargetId(targetId), validateUserIds(userIds), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1694
1696
|
const messages = [];
|
|
1695
1697
|
const result = conclusion.every((obj) => {
|
|
1696
1698
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1718,8 +1720,7 @@ class RCCallClient {
|
|
|
1718
1720
|
listener.onTrackReady(track);
|
|
1719
1721
|
});
|
|
1720
1722
|
// 往组里发消息
|
|
1721
|
-
const {
|
|
1722
|
-
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitle, pushContent);
|
|
1723
|
+
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitleValue, pushContentValue);
|
|
1723
1724
|
if (code === RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1724
1725
|
this._logger.info('_', '[RCCallClient callInGroup] successfully created state machine');
|
|
1725
1726
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1858,7 +1859,7 @@ class RCCallClient {
|
|
|
1858
1859
|
}
|
|
1859
1860
|
|
|
1860
1861
|
// plugin-call 版本上报
|
|
1861
|
-
VersionManage.add('plugin-call', "5.1.2-
|
|
1862
|
+
VersionManage.add('plugin-call', "5.1.2-enterprise.1");
|
|
1862
1863
|
const installer = {
|
|
1863
1864
|
tag: 'RCCall',
|
|
1864
1865
|
verify(runtime) {
|
|
@@ -1875,7 +1876,7 @@ const installer = {
|
|
|
1875
1876
|
throw new Error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-call required engine version at least '${"^5.7.0"}'.`);
|
|
1876
1877
|
}
|
|
1877
1878
|
const logger = context.createLogger('RCCall', 'RTC');
|
|
1878
|
-
logger.warn('_', `RCCall Version: ${"5.1.2-
|
|
1879
|
+
logger.warn('_', `RCCall Version: ${"5.1.2-enterprise.1"}, Commit: ${"cc1286286fed4ed0c619fe38584d48bb5d266679"}`);
|
|
1879
1880
|
return new RCCallClient(context, runtime, logger, options);
|
|
1880
1881
|
}
|
|
1881
1882
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.1.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.1.2-enterprise.1
|
|
3
|
+
* CommitId - cc1286286fed4ed0c619fe38584d48bb5d266679
|
|
4
|
+
* Mon Mar 06 2023 14:23:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
@@ -256,8 +256,10 @@ const validatePushContent = (pushContent) => {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
const validatePushConfig = (pushConfig) => {
|
|
259
|
-
const { pushTitle, pushContent } = pushConfig;
|
|
260
|
-
const conclusion = [
|
|
259
|
+
const { pushTitle = '', pushContent = '' } = pushConfig;
|
|
260
|
+
const conclusion = [];
|
|
261
|
+
conclusion.push(validatePushTitle(pushTitle));
|
|
262
|
+
conclusion.push(validatePushContent(pushContent));
|
|
261
263
|
return conclusion;
|
|
262
264
|
};
|
|
263
265
|
const validateUserIds = (userIds) => {
|
|
@@ -1581,8 +1583,7 @@ class RCCallClient {
|
|
|
1581
1583
|
*/
|
|
1582
1584
|
startCrossCall({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1583
1585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1584
|
-
|
|
1585
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate, isCrossAppkey: true });
|
|
1586
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, isCrossAppkey: true });
|
|
1586
1587
|
});
|
|
1587
1588
|
}
|
|
1588
1589
|
/**
|
|
@@ -1600,14 +1601,14 @@ class RCCallClient {
|
|
|
1600
1601
|
*/
|
|
1601
1602
|
call({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1602
1603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1603
|
-
|
|
1604
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate });
|
|
1604
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate });
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
1607
|
__call({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate, isCrossAppkey = false }) {
|
|
1608
1608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1609
|
-
|
|
1610
|
-
|
|
1609
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1610
|
+
this._logger.info('_', `[RCCallClient call] extra->${extra} pushTitle->${pushTitleValue} pushContent->${pushContentValue}`);
|
|
1611
|
+
const conclusion = [validateTargetId(targetId), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1611
1612
|
const messages = [];
|
|
1612
1613
|
const result = conclusion.every((obj) => {
|
|
1613
1614
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1635,7 +1636,7 @@ class RCCallClient {
|
|
|
1635
1636
|
listener.onTrackReady(track);
|
|
1636
1637
|
});
|
|
1637
1638
|
// 调用callEngine的call返回一个状态机的实例
|
|
1638
|
-
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra,
|
|
1639
|
+
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra, pushTitleValue, pushContentValue, isCrossAppkey);
|
|
1639
1640
|
if (code === pluginCallEngine.RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1640
1641
|
this._logger.info('_', '[RCCallClient call] successfully created state machine');
|
|
1641
1642
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1691,9 +1692,10 @@ class RCCallClient {
|
|
|
1691
1692
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
1692
1693
|
* @param params.bitrate 需要设置的码率参数
|
|
1693
1694
|
*/
|
|
1694
|
-
callInGroup({ targetId, userIds, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', bitrate }) {
|
|
1695
|
+
callInGroup({ targetId, userIds, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1695
1696
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1696
|
-
const
|
|
1697
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1698
|
+
const conclusion = [validateTargetId(targetId), validateUserIds(userIds), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1697
1699
|
const messages = [];
|
|
1698
1700
|
const result = conclusion.every((obj) => {
|
|
1699
1701
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1721,8 +1723,7 @@ class RCCallClient {
|
|
|
1721
1723
|
listener.onTrackReady(track);
|
|
1722
1724
|
});
|
|
1723
1725
|
// 往组里发消息
|
|
1724
|
-
const {
|
|
1725
|
-
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitle, pushContent);
|
|
1726
|
+
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitleValue, pushContentValue);
|
|
1726
1727
|
if (code === pluginCallEngine.RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1727
1728
|
this._logger.info('_', '[RCCallClient callInGroup] successfully created state machine');
|
|
1728
1729
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1861,7 +1862,7 @@ class RCCallClient {
|
|
|
1861
1862
|
}
|
|
1862
1863
|
|
|
1863
1864
|
// plugin-call 版本上报
|
|
1864
|
-
engine.VersionManage.add('plugin-call', "5.1.2-
|
|
1865
|
+
engine.VersionManage.add('plugin-call', "5.1.2-enterprise.1");
|
|
1865
1866
|
const installer = {
|
|
1866
1867
|
tag: 'RCCall',
|
|
1867
1868
|
verify(runtime) {
|
|
@@ -1878,7 +1879,7 @@ const installer = {
|
|
|
1878
1879
|
throw new Error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-call required engine version at least '${"^5.7.0"}'.`);
|
|
1879
1880
|
}
|
|
1880
1881
|
const logger = context.createLogger('RCCall', 'RTC');
|
|
1881
|
-
logger.warn('_', `RCCall Version: ${"5.1.2-
|
|
1882
|
+
logger.warn('_', `RCCall Version: ${"5.1.2-enterprise.1"}, Commit: ${"cc1286286fed4ed0c619fe38584d48bb5d266679"}`);
|
|
1882
1883
|
return new RCCallClient(context, runtime, logger, options);
|
|
1883
1884
|
}
|
|
1884
1885
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.1.2-
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.1.2-enterprise.1
|
|
3
|
+
* CommitId - cc1286286fed4ed0c619fe38584d48bb5d266679
|
|
4
|
+
* Mon Mar 06 2023 14:23:30 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
(function (global, factory) {
|
|
@@ -254,8 +254,10 @@
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
const validatePushConfig = (pushConfig) => {
|
|
257
|
-
const { pushTitle, pushContent } = pushConfig;
|
|
258
|
-
const conclusion = [
|
|
257
|
+
const { pushTitle = '', pushContent = '' } = pushConfig;
|
|
258
|
+
const conclusion = [];
|
|
259
|
+
conclusion.push(validatePushTitle(pushTitle));
|
|
260
|
+
conclusion.push(validatePushContent(pushContent));
|
|
259
261
|
return conclusion;
|
|
260
262
|
};
|
|
261
263
|
const validateUserIds = (userIds) => {
|
|
@@ -1579,8 +1581,7 @@
|
|
|
1579
1581
|
*/
|
|
1580
1582
|
startCrossCall({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1581
1583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1582
|
-
|
|
1583
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate, isCrossAppkey: true });
|
|
1584
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, isCrossAppkey: true });
|
|
1584
1585
|
});
|
|
1585
1586
|
}
|
|
1586
1587
|
/**
|
|
@@ -1598,14 +1599,14 @@
|
|
|
1598
1599
|
*/
|
|
1599
1600
|
call({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1600
1601
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1601
|
-
|
|
1602
|
-
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle: pushTitleValue, pushContent: pushContentValue, bitrate });
|
|
1602
|
+
return this.__call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate });
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
1605
1605
|
__call({ targetId, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate, isCrossAppkey = false }) {
|
|
1606
1606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1607
|
-
|
|
1608
|
-
|
|
1607
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1608
|
+
this._logger.info('_', `[RCCallClient call] extra->${extra} pushTitle->${pushTitleValue} pushContent->${pushContentValue}`);
|
|
1609
|
+
const conclusion = [validateTargetId(targetId), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1609
1610
|
const messages = [];
|
|
1610
1611
|
const result = conclusion.every((obj) => {
|
|
1611
1612
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1633,7 +1634,7 @@
|
|
|
1633
1634
|
listener.onTrackReady(track);
|
|
1634
1635
|
});
|
|
1635
1636
|
// 调用callEngine的call返回一个状态机的实例
|
|
1636
|
-
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra,
|
|
1637
|
+
const { code, stateMachine } = yield this._callEngine.call(channelId, targetId, mediaType, extra, pushTitleValue, pushContentValue, isCrossAppkey);
|
|
1637
1638
|
if (code === pluginCallEngine.RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1638
1639
|
this._logger.info('_', '[RCCallClient call] successfully created state machine');
|
|
1639
1640
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1689,9 +1690,10 @@
|
|
|
1689
1690
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
1690
1691
|
* @param params.bitrate 需要设置的码率参数
|
|
1691
1692
|
*/
|
|
1692
|
-
callInGroup({ targetId, userIds, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', bitrate }) {
|
|
1693
|
+
callInGroup({ targetId, userIds, mediaType = pluginCallEngine.RCCallMediaType.AUDIO, listener, constraints, channelId = '', extra = '', pushTitle = '', pushContent = '', bitrate }) {
|
|
1693
1694
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1694
|
-
const
|
|
1695
|
+
const { pushTitle: pushTitleValue = '', pushContent: pushContentValue = '' } = (this._callPushConfig.pushTitle || this._callPushConfig.pushContent) ? this._callPushConfig : { pushTitle, pushContent };
|
|
1696
|
+
const conclusion = [validateTargetId(targetId), validateUserIds(userIds), validateMediaType(mediaType), validateListener(listener), validateExtra(extra), validatePushTitle(pushTitleValue), validatePushContent(pushContentValue)];
|
|
1695
1697
|
const messages = [];
|
|
1696
1698
|
const result = conclusion.every((obj) => {
|
|
1697
1699
|
!obj.result && messages.push(obj.msg);
|
|
@@ -1719,8 +1721,7 @@
|
|
|
1719
1721
|
listener.onTrackReady(track);
|
|
1720
1722
|
});
|
|
1721
1723
|
// 往组里发消息
|
|
1722
|
-
const {
|
|
1723
|
-
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitle, pushContent);
|
|
1724
|
+
const { code, stateMachine } = yield this._callEngine.callInGroup(channelId, targetId, mediaType, userIds, extra, pushTitleValue, pushContentValue);
|
|
1724
1725
|
if (code === pluginCallEngine.RCCallErrorCode.SUCCESS && stateMachine) {
|
|
1725
1726
|
this._logger.info('_', '[RCCallClient callInGroup] successfully created state machine');
|
|
1726
1727
|
const session = new RCCallSession(stateMachine, this._rtcClient, this._logger, {
|
|
@@ -1859,7 +1860,7 @@
|
|
|
1859
1860
|
}
|
|
1860
1861
|
|
|
1861
1862
|
// plugin-call 版本上报
|
|
1862
|
-
engine.VersionManage.add('plugin-call', "5.1.2-
|
|
1863
|
+
engine.VersionManage.add('plugin-call', "5.1.2-enterprise.1");
|
|
1863
1864
|
const installer = {
|
|
1864
1865
|
tag: 'RCCall',
|
|
1865
1866
|
verify(runtime) {
|
|
@@ -1876,7 +1877,7 @@
|
|
|
1876
1877
|
throw new Error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-call required engine version at least '${"^5.7.0"}'.`);
|
|
1877
1878
|
}
|
|
1878
1879
|
const logger = context.createLogger('RCCall', 'RTC');
|
|
1879
|
-
logger.warn('_', `RCCall Version: ${"5.1.2-
|
|
1880
|
+
logger.warn('_', `RCCall Version: ${"5.1.2-enterprise.1"}, Commit: ${"cc1286286fed4ed0c619fe38584d48bb5d266679"}`);
|
|
1880
1881
|
return new RCCallClient(context, runtime, logger, options);
|
|
1881
1882
|
}
|
|
1882
1883
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rongcloud/plugin-call",
|
|
3
|
-
"version": "5.1.2-
|
|
3
|
+
"version": "5.1.2-enterprise.1",
|
|
4
4
|
"description": "@rongcloud/plugin-call",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"__attrs__": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@rongcloud/plugin-rtc": "^5.5.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@rongcloud/plugin-call-engine": "^5.1.2-
|
|
39
|
+
"@rongcloud/plugin-call-engine": "^5.1.2-enterprise.1"
|
|
40
40
|
},
|
|
41
|
-
"__commit__": "
|
|
41
|
+
"__commit__": "cc1286286fed4ed0c619fe38584d48bb5d266679"
|
|
42
42
|
}
|