@rongcloud/plugin-call 5.0.1-alpha.14 → 5.0.1-alpha.18
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 +16 -4
- package/dist/index.esm.js +28 -6
- package/dist/index.js +28 -6
- package/dist/index.umd.js +28 -6
- package/package.json +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.0.1-alpha.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.0.1-alpha.18
|
|
3
|
+
* CommitId - 585e9e468031921eb371b3aa0e82630236543c18
|
|
4
|
+
* Thu Dec 02 2021 14:14:11 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { ConversationType, RTCJoinType, LogLevel, PluginContext, IRuntime, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
8
8
|
import { RCCallStateMachine, RCCallErrorCode, RCCallMediaType, IUserData, RCCallUserState, RCCallSessionState, IEndSummary, IOfflineRecord, RCCallLanguage, RCCallEndReason, IInvitedUsers } from '@rongcloud/plugin-call-engine';
|
|
9
9
|
export { IEndSummary, IInvitedUsers, IOfflineRecord, ISenderInfo, RCCallEndReason, RCCallErrorCode, RCCallLanguage, RCCallMediaType, RCCallSessionState, RCCallUserState } from '@rongcloud/plugin-call-engine';
|
|
10
|
-
import { RCRTCClient, IMicphoneAudioProfile, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
|
|
10
|
+
import { RCRTCClient, IMicphoneAudioProfile, RCRTCRoom, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* 产生session的场景
|
|
@@ -238,6 +238,10 @@ declare class RCCallSession {
|
|
|
238
238
|
* 获得mediaType
|
|
239
239
|
*/
|
|
240
240
|
getMediaType(): RCCallMediaType;
|
|
241
|
+
/**
|
|
242
|
+
* 获取 RTC Room 实例
|
|
243
|
+
*/
|
|
244
|
+
getRTCRoomInstance(): RCRTCRoom | null;
|
|
241
245
|
}
|
|
242
246
|
|
|
243
247
|
interface ISender {
|
|
@@ -378,6 +382,14 @@ interface ISessionListener {
|
|
|
378
382
|
* @since version 5.1.5
|
|
379
383
|
*/
|
|
380
384
|
onICEConnectionStateChange?: (state: RTCIceConnectionState, session: RCCallSession) => void;
|
|
385
|
+
/**
|
|
386
|
+
* 接收到房间信令时回调
|
|
387
|
+
*/
|
|
388
|
+
onMessageReceive?: (name: string, content: any, senderUserId: string, messageUId: string, session: RCCallSession) => void;
|
|
389
|
+
/**
|
|
390
|
+
* 监听房间属性变更通知
|
|
391
|
+
*/
|
|
392
|
+
onRoomAttributeChange?: (name: string, content: string, session: RCCallSession) => void;
|
|
381
393
|
}
|
|
382
394
|
/**
|
|
383
395
|
* 创建session的options
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.0.1-alpha.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.0.1-alpha.18
|
|
3
|
+
* CommitId - 585e9e468031921eb371b3aa0e82630236543c18
|
|
4
|
+
* Thu Dec 02 2021 14:14:11 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { RCCallMediaType, RCCallLanguage, RCCallSessionState, RCCallEndReason, RCCallErrorCode, RCCallEngine } from '@rongcloud/plugin-call-engine';
|
|
@@ -1053,14 +1053,30 @@ class RCCallSession {
|
|
|
1053
1053
|
* @param senderUserId 发送者 Id
|
|
1054
1054
|
* @param messageUId 消息唯一标识
|
|
1055
1055
|
*/
|
|
1056
|
-
onMessageReceive(name, content, senderUserId, messageUId) {
|
|
1056
|
+
onMessageReceive: (name, content, senderUserId, messageUId) => {
|
|
1057
|
+
try {
|
|
1058
|
+
// 通知给业务
|
|
1059
|
+
this._listener.onMessageReceive && this._listener.onMessageReceive(name, content, senderUserId, messageUId, this);
|
|
1060
|
+
}
|
|
1061
|
+
catch (error) {
|
|
1062
|
+
logger.error('[RCCallSession onMessageReceive] listening onMessageReceive exception');
|
|
1063
|
+
console.error(error);
|
|
1064
|
+
}
|
|
1057
1065
|
},
|
|
1058
1066
|
/**
|
|
1059
1067
|
* 监听房间属性变更通知
|
|
1060
1068
|
* @param name
|
|
1061
1069
|
* @param content
|
|
1062
1070
|
*/
|
|
1063
|
-
onRoomAttributeChange(name, content) {
|
|
1071
|
+
onRoomAttributeChange: (name, content) => {
|
|
1072
|
+
try {
|
|
1073
|
+
// 通知给业务
|
|
1074
|
+
this._listener.onRoomAttributeChange && this._listener.onRoomAttributeChange(name, content, this);
|
|
1075
|
+
}
|
|
1076
|
+
catch (error) {
|
|
1077
|
+
logger.error('[RCCallSession onRoomAttributeChange] listening onRoomAttributeChange exception');
|
|
1078
|
+
console.error(error);
|
|
1079
|
+
}
|
|
1064
1080
|
},
|
|
1065
1081
|
/**
|
|
1066
1082
|
* 发布者禁用/启用音频
|
|
@@ -1267,6 +1283,12 @@ class RCCallSession {
|
|
|
1267
1283
|
getMediaType() {
|
|
1268
1284
|
return this._stateMachine.getMediaType();
|
|
1269
1285
|
}
|
|
1286
|
+
/**
|
|
1287
|
+
* 获取 RTC Room 实例
|
|
1288
|
+
*/
|
|
1289
|
+
getRTCRoomInstance() {
|
|
1290
|
+
return this._room;
|
|
1291
|
+
}
|
|
1270
1292
|
}
|
|
1271
1293
|
|
|
1272
1294
|
class RCCallClient {
|
|
@@ -1658,7 +1680,7 @@ const installer = {
|
|
|
1658
1680
|
}
|
|
1659
1681
|
logger.setLogLevel(options.logLevel);
|
|
1660
1682
|
logger.setLogStdout(options.logStdout);
|
|
1661
|
-
logger.warn(`RCCall Version: ${"5.0.1-alpha.
|
|
1683
|
+
logger.warn(`RCCall Version: ${"5.0.1-alpha.18"}, Commit: ${"585e9e468031921eb371b3aa0e82630236543c18"}`);
|
|
1662
1684
|
return new RCCallClient(context, runtime, options);
|
|
1663
1685
|
}
|
|
1664
1686
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.0.1-alpha.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.0.1-alpha.18
|
|
3
|
+
* CommitId - 585e9e468031921eb371b3aa0e82630236543c18
|
|
4
|
+
* Thu Dec 02 2021 14:14:11 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
@@ -1056,14 +1056,30 @@ class RCCallSession {
|
|
|
1056
1056
|
* @param senderUserId 发送者 Id
|
|
1057
1057
|
* @param messageUId 消息唯一标识
|
|
1058
1058
|
*/
|
|
1059
|
-
onMessageReceive(name, content, senderUserId, messageUId) {
|
|
1059
|
+
onMessageReceive: (name, content, senderUserId, messageUId) => {
|
|
1060
|
+
try {
|
|
1061
|
+
// 通知给业务
|
|
1062
|
+
this._listener.onMessageReceive && this._listener.onMessageReceive(name, content, senderUserId, messageUId, this);
|
|
1063
|
+
}
|
|
1064
|
+
catch (error) {
|
|
1065
|
+
logger.error('[RCCallSession onMessageReceive] listening onMessageReceive exception');
|
|
1066
|
+
console.error(error);
|
|
1067
|
+
}
|
|
1060
1068
|
},
|
|
1061
1069
|
/**
|
|
1062
1070
|
* 监听房间属性变更通知
|
|
1063
1071
|
* @param name
|
|
1064
1072
|
* @param content
|
|
1065
1073
|
*/
|
|
1066
|
-
onRoomAttributeChange(name, content) {
|
|
1074
|
+
onRoomAttributeChange: (name, content) => {
|
|
1075
|
+
try {
|
|
1076
|
+
// 通知给业务
|
|
1077
|
+
this._listener.onRoomAttributeChange && this._listener.onRoomAttributeChange(name, content, this);
|
|
1078
|
+
}
|
|
1079
|
+
catch (error) {
|
|
1080
|
+
logger.error('[RCCallSession onRoomAttributeChange] listening onRoomAttributeChange exception');
|
|
1081
|
+
console.error(error);
|
|
1082
|
+
}
|
|
1067
1083
|
},
|
|
1068
1084
|
/**
|
|
1069
1085
|
* 发布者禁用/启用音频
|
|
@@ -1270,6 +1286,12 @@ class RCCallSession {
|
|
|
1270
1286
|
getMediaType() {
|
|
1271
1287
|
return this._stateMachine.getMediaType();
|
|
1272
1288
|
}
|
|
1289
|
+
/**
|
|
1290
|
+
* 获取 RTC Room 实例
|
|
1291
|
+
*/
|
|
1292
|
+
getRTCRoomInstance() {
|
|
1293
|
+
return this._room;
|
|
1294
|
+
}
|
|
1273
1295
|
}
|
|
1274
1296
|
|
|
1275
1297
|
class RCCallClient {
|
|
@@ -1661,7 +1683,7 @@ const installer = {
|
|
|
1661
1683
|
}
|
|
1662
1684
|
logger.setLogLevel(options.logLevel);
|
|
1663
1685
|
logger.setLogStdout(options.logStdout);
|
|
1664
|
-
logger.warn(`RCCall Version: ${"5.0.1-alpha.
|
|
1686
|
+
logger.warn(`RCCall Version: ${"5.0.1-alpha.18"}, Commit: ${"585e9e468031921eb371b3aa0e82630236543c18"}`);
|
|
1665
1687
|
return new RCCallClient(context, runtime, options);
|
|
1666
1688
|
}
|
|
1667
1689
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.0.1-alpha.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCCall - v5.0.1-alpha.18
|
|
3
|
+
* CommitId - 585e9e468031921eb371b3aa0e82630236543c18
|
|
4
|
+
* Thu Dec 02 2021 14:14:11 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
(function (global, factory) {
|
|
@@ -1054,14 +1054,30 @@
|
|
|
1054
1054
|
* @param senderUserId 发送者 Id
|
|
1055
1055
|
* @param messageUId 消息唯一标识
|
|
1056
1056
|
*/
|
|
1057
|
-
onMessageReceive(name, content, senderUserId, messageUId) {
|
|
1057
|
+
onMessageReceive: (name, content, senderUserId, messageUId) => {
|
|
1058
|
+
try {
|
|
1059
|
+
// 通知给业务
|
|
1060
|
+
this._listener.onMessageReceive && this._listener.onMessageReceive(name, content, senderUserId, messageUId, this);
|
|
1061
|
+
}
|
|
1062
|
+
catch (error) {
|
|
1063
|
+
logger.error('[RCCallSession onMessageReceive] listening onMessageReceive exception');
|
|
1064
|
+
console.error(error);
|
|
1065
|
+
}
|
|
1058
1066
|
},
|
|
1059
1067
|
/**
|
|
1060
1068
|
* 监听房间属性变更通知
|
|
1061
1069
|
* @param name
|
|
1062
1070
|
* @param content
|
|
1063
1071
|
*/
|
|
1064
|
-
onRoomAttributeChange(name, content) {
|
|
1072
|
+
onRoomAttributeChange: (name, content) => {
|
|
1073
|
+
try {
|
|
1074
|
+
// 通知给业务
|
|
1075
|
+
this._listener.onRoomAttributeChange && this._listener.onRoomAttributeChange(name, content, this);
|
|
1076
|
+
}
|
|
1077
|
+
catch (error) {
|
|
1078
|
+
logger.error('[RCCallSession onRoomAttributeChange] listening onRoomAttributeChange exception');
|
|
1079
|
+
console.error(error);
|
|
1080
|
+
}
|
|
1065
1081
|
},
|
|
1066
1082
|
/**
|
|
1067
1083
|
* 发布者禁用/启用音频
|
|
@@ -1268,6 +1284,12 @@
|
|
|
1268
1284
|
getMediaType() {
|
|
1269
1285
|
return this._stateMachine.getMediaType();
|
|
1270
1286
|
}
|
|
1287
|
+
/**
|
|
1288
|
+
* 获取 RTC Room 实例
|
|
1289
|
+
*/
|
|
1290
|
+
getRTCRoomInstance() {
|
|
1291
|
+
return this._room;
|
|
1292
|
+
}
|
|
1271
1293
|
}
|
|
1272
1294
|
|
|
1273
1295
|
class RCCallClient {
|
|
@@ -1659,7 +1681,7 @@
|
|
|
1659
1681
|
}
|
|
1660
1682
|
logger.setLogLevel(options.logLevel);
|
|
1661
1683
|
logger.setLogStdout(options.logStdout);
|
|
1662
|
-
logger.warn(`RCCall Version: ${"5.0.1-alpha.
|
|
1684
|
+
logger.warn(`RCCall Version: ${"5.0.1-alpha.18"}, Commit: ${"585e9e468031921eb371b3aa0e82630236543c18"}`);
|
|
1663
1685
|
return new RCCallClient(context, runtime, options);
|
|
1664
1686
|
}
|
|
1665
1687
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rongcloud/plugin-call",
|
|
3
|
-
"version": "5.0.1-alpha.
|
|
3
|
+
"version": "5.0.1-alpha.18",
|
|
4
4
|
"description": "@rongcloud/plugin-call",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"__attrs__": {
|
|
@@ -32,11 +32,14 @@
|
|
|
32
32
|
"node": ">=10.0.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@rongcloud/engine": "
|
|
36
|
-
"@rongcloud/plugin-rtc": "5.1.10-alpha.
|
|
35
|
+
"@rongcloud/engine": "4.5.0-alpha.4",
|
|
36
|
+
"@rongcloud/plugin-rtc": "5.1.10-alpha.3",
|
|
37
|
+
"@rongcloud/plugin-call-engine": "5.0.1-alpha.17"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@rongcloud/
|
|
40
|
+
"@rongcloud/engine": "4.5.0-alpha.4",
|
|
41
|
+
"@rongcloud/plugin-rtc": "5.1.10-alpha.3",
|
|
42
|
+
"@rongcloud/plugin-call-engine": "5.0.1-alpha.17"
|
|
40
43
|
},
|
|
41
|
-
"__commit__": "
|
|
44
|
+
"__commit__": "585e9e468031921eb371b3aa0e82630236543c18"
|
|
42
45
|
}
|