agora-electron-sdk 4.3.2 → 4.4.0-dev.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/gulpfile.js +3 -1
- package/js/AgoraSdk.js +4 -4
- package/js/Private/AgoraBase.js +367 -326
- package/js/Private/AgoraMediaBase.js +265 -76
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +2 -5
- package/js/Private/IAgoraMediaEngine.js +2 -5
- package/js/Private/IAgoraMediaPlayer.js +4 -10
- package/js/Private/IAgoraMediaRecorder.js +2 -5
- package/js/Private/IAgoraMediaStreamingSource.js +2 -5
- package/js/Private/IAgoraMusicContentCenter.js +21 -68
- package/js/Private/IAgoraRhythmPlayer.js +2 -5
- package/js/Private/IAgoraRtcEngine.js +76 -130
- package/js/Private/IAgoraRtcEngineEx.js +5 -28
- package/js/Private/IAgoraSpatialAudio.js +6 -15
- package/js/Private/IAudioDeviceManager.js +2 -5
- package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
- package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
- package/js/Private/impl/IAgoraRtcEngineImpl.js +2445 -2423
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
- package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
- package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
- package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
- package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
- package/js/Private/internal/IrisApiEngine.js +94 -145
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
- package/js/Private/internal/MediaEngineInternal.js +69 -94
- package/js/Private/internal/MediaPlayerInternal.js +105 -125
- package/js/Private/internal/MediaRecorderInternal.js +37 -64
- package/js/Private/internal/MusicContentCenterInternal.js +92 -129
- package/js/Private/internal/RtcEngineExInternal.js +213 -243
- package/js/Private/ti/AgoraBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
- package/js/Private/ti/IAgoraLog-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
- package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
- package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
- package/js/Renderer/AgoraView.js +100 -145
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +106 -132
- package/js/Renderer/RendererCache.js +63 -96
- package/js/Renderer/RendererManager.js +35 -69
- package/js/Renderer/WebGLRenderer/index.js +77 -106
- package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
- package/js/Utils.js +45 -64
- package/package.json +9 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +56 -24
- package/scripts/synclib.js +6 -6
- package/ts/Private/AgoraBase.ts +269 -4
- package/ts/Private/AgoraMediaBase.ts +343 -1
- package/ts/Private/IAgoraMediaEngine.ts +3 -3
- package/ts/Private/IAgoraRtcEngine.ts +130 -119
- package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +21 -12
- package/ts/Utils.ts +15 -0
- package/types/Private/AgoraBase.d.ts +264 -8
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +336 -1
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +3 -3
- package/types/Private/IAgoraRtcEngine.d.ts +106 -116
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -5
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.IRtcEngineExImpl = void 0;
|
|
19
|
-
|
|
4
|
+
const IAgoraRtcEngineImpl_1 = require("./IAgoraRtcEngineImpl");
|
|
20
5
|
// @ts-ignore
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
IRtcEngineExImpl.prototype.joinChannelEx = function (token, connection, options) {
|
|
27
|
-
var apiType = this.getApiTypeFromJoinChannelEx(token, connection, options);
|
|
28
|
-
var jsonParams = {
|
|
6
|
+
class IRtcEngineExImpl extends IAgoraRtcEngineImpl_1.IRtcEngineImpl {
|
|
7
|
+
joinChannelEx(token, connection, options) {
|
|
8
|
+
const apiType = this.getApiTypeFromJoinChannelEx(token, connection, options);
|
|
9
|
+
const jsonParams = {
|
|
29
10
|
token: token,
|
|
30
11
|
connection: connection,
|
|
31
12
|
options: options,
|
|
32
|
-
toJSON:
|
|
13
|
+
toJSON: () => {
|
|
33
14
|
return {
|
|
34
15
|
token: token,
|
|
35
16
|
connection: connection,
|
|
@@ -37,91 +18,91 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
37
18
|
};
|
|
38
19
|
},
|
|
39
20
|
};
|
|
40
|
-
|
|
21
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
41
22
|
return jsonResults.result;
|
|
42
|
-
}
|
|
43
|
-
|
|
23
|
+
}
|
|
24
|
+
getApiTypeFromJoinChannelEx(token, connection, options) {
|
|
44
25
|
return 'RtcEngineEx_joinChannelEx_a3cd08c';
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
26
|
+
}
|
|
27
|
+
leaveChannelEx(connection, options) {
|
|
28
|
+
const apiType = this.getApiTypeFromLeaveChannelEx(connection, options);
|
|
29
|
+
const jsonParams = {
|
|
49
30
|
connection: connection,
|
|
50
31
|
options: options,
|
|
51
|
-
toJSON:
|
|
32
|
+
toJSON: () => {
|
|
52
33
|
return {
|
|
53
34
|
connection: connection,
|
|
54
35
|
options: options,
|
|
55
36
|
};
|
|
56
37
|
},
|
|
57
38
|
};
|
|
58
|
-
|
|
39
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
59
40
|
return jsonResults.result;
|
|
60
|
-
}
|
|
61
|
-
|
|
41
|
+
}
|
|
42
|
+
getApiTypeFromLeaveChannelEx(connection, options) {
|
|
62
43
|
return 'RtcEngineEx_leaveChannelEx_b03ee9a';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
}
|
|
45
|
+
updateChannelMediaOptionsEx(options, connection) {
|
|
46
|
+
const apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(options, connection);
|
|
47
|
+
const jsonParams = {
|
|
67
48
|
options: options,
|
|
68
49
|
connection: connection,
|
|
69
|
-
toJSON:
|
|
50
|
+
toJSON: () => {
|
|
70
51
|
return {
|
|
71
52
|
options: options,
|
|
72
53
|
connection: connection,
|
|
73
54
|
};
|
|
74
55
|
},
|
|
75
56
|
};
|
|
76
|
-
|
|
57
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
77
58
|
return jsonResults.result;
|
|
78
|
-
}
|
|
79
|
-
|
|
59
|
+
}
|
|
60
|
+
getApiTypeFromUpdateChannelMediaOptionsEx(options, connection) {
|
|
80
61
|
return 'RtcEngineEx_updateChannelMediaOptionsEx_457bb35';
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
62
|
+
}
|
|
63
|
+
setVideoEncoderConfigurationEx(config, connection) {
|
|
64
|
+
const apiType = this.getApiTypeFromSetVideoEncoderConfigurationEx(config, connection);
|
|
65
|
+
const jsonParams = {
|
|
85
66
|
config: config,
|
|
86
67
|
connection: connection,
|
|
87
|
-
toJSON:
|
|
68
|
+
toJSON: () => {
|
|
88
69
|
return {
|
|
89
70
|
config: config,
|
|
90
71
|
connection: connection,
|
|
91
72
|
};
|
|
92
73
|
},
|
|
93
74
|
};
|
|
94
|
-
|
|
75
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
95
76
|
return jsonResults.result;
|
|
96
|
-
}
|
|
97
|
-
|
|
77
|
+
}
|
|
78
|
+
getApiTypeFromSetVideoEncoderConfigurationEx(config, connection) {
|
|
98
79
|
return 'RtcEngineEx_setVideoEncoderConfigurationEx_4670c1e';
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
}
|
|
81
|
+
setupRemoteVideoEx(canvas, connection) {
|
|
82
|
+
const apiType = this.getApiTypeFromSetupRemoteVideoEx(canvas, connection);
|
|
83
|
+
const jsonParams = {
|
|
103
84
|
canvas: canvas,
|
|
104
85
|
connection: connection,
|
|
105
|
-
toJSON:
|
|
86
|
+
toJSON: () => {
|
|
106
87
|
return {
|
|
107
88
|
canvas: canvas,
|
|
108
89
|
connection: connection,
|
|
109
90
|
};
|
|
110
91
|
},
|
|
111
92
|
};
|
|
112
|
-
|
|
93
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
113
94
|
return jsonResults.result;
|
|
114
|
-
}
|
|
115
|
-
|
|
95
|
+
}
|
|
96
|
+
getApiTypeFromSetupRemoteVideoEx(canvas, connection) {
|
|
116
97
|
return 'RtcEngineEx_setupRemoteVideoEx_522a409';
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
}
|
|
99
|
+
muteRemoteAudioStreamEx(uid, mute, connection) {
|
|
100
|
+
const apiType = this.getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection);
|
|
101
|
+
const jsonParams = {
|
|
121
102
|
uid: uid,
|
|
122
103
|
mute: mute,
|
|
123
104
|
connection: connection,
|
|
124
|
-
toJSON:
|
|
105
|
+
toJSON: () => {
|
|
125
106
|
return {
|
|
126
107
|
uid: uid,
|
|
127
108
|
mute: mute,
|
|
@@ -129,19 +110,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
129
110
|
};
|
|
130
111
|
},
|
|
131
112
|
};
|
|
132
|
-
|
|
113
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
133
114
|
return jsonResults.result;
|
|
134
|
-
}
|
|
135
|
-
|
|
115
|
+
}
|
|
116
|
+
getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection) {
|
|
136
117
|
return 'RtcEngineEx_muteRemoteAudioStreamEx_6d93082';
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
118
|
+
}
|
|
119
|
+
muteRemoteVideoStreamEx(uid, mute, connection) {
|
|
120
|
+
const apiType = this.getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection);
|
|
121
|
+
const jsonParams = {
|
|
141
122
|
uid: uid,
|
|
142
123
|
mute: mute,
|
|
143
124
|
connection: connection,
|
|
144
|
-
toJSON:
|
|
125
|
+
toJSON: () => {
|
|
145
126
|
return {
|
|
146
127
|
uid: uid,
|
|
147
128
|
mute: mute,
|
|
@@ -149,19 +130,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
149
130
|
};
|
|
150
131
|
},
|
|
151
132
|
};
|
|
152
|
-
|
|
133
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
153
134
|
return jsonResults.result;
|
|
154
|
-
}
|
|
155
|
-
|
|
135
|
+
}
|
|
136
|
+
getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection) {
|
|
156
137
|
return 'RtcEngineEx_muteRemoteVideoStreamEx_6d93082';
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
138
|
+
}
|
|
139
|
+
setRemoteVideoStreamTypeEx(uid, streamType, connection) {
|
|
140
|
+
const apiType = this.getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection);
|
|
141
|
+
const jsonParams = {
|
|
161
142
|
uid: uid,
|
|
162
143
|
streamType: streamType,
|
|
163
144
|
connection: connection,
|
|
164
|
-
toJSON:
|
|
145
|
+
toJSON: () => {
|
|
165
146
|
return {
|
|
166
147
|
uid: uid,
|
|
167
148
|
streamType: streamType,
|
|
@@ -169,91 +150,91 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
169
150
|
};
|
|
170
151
|
},
|
|
171
152
|
};
|
|
172
|
-
|
|
153
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
173
154
|
return jsonResults.result;
|
|
174
|
-
}
|
|
175
|
-
|
|
155
|
+
}
|
|
156
|
+
getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection) {
|
|
176
157
|
return 'RtcEngineEx_setRemoteVideoStreamTypeEx_01dc428';
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
158
|
+
}
|
|
159
|
+
muteLocalAudioStreamEx(mute, connection) {
|
|
160
|
+
const apiType = this.getApiTypeFromMuteLocalAudioStreamEx(mute, connection);
|
|
161
|
+
const jsonParams = {
|
|
181
162
|
mute: mute,
|
|
182
163
|
connection: connection,
|
|
183
|
-
toJSON:
|
|
164
|
+
toJSON: () => {
|
|
184
165
|
return {
|
|
185
166
|
mute: mute,
|
|
186
167
|
connection: connection,
|
|
187
168
|
};
|
|
188
169
|
},
|
|
189
170
|
};
|
|
190
|
-
|
|
171
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
191
172
|
return jsonResults.result;
|
|
192
|
-
}
|
|
193
|
-
|
|
173
|
+
}
|
|
174
|
+
getApiTypeFromMuteLocalAudioStreamEx(mute, connection) {
|
|
194
175
|
return 'RtcEngineEx_muteLocalAudioStreamEx_3cf17a4';
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
176
|
+
}
|
|
177
|
+
muteLocalVideoStreamEx(mute, connection) {
|
|
178
|
+
const apiType = this.getApiTypeFromMuteLocalVideoStreamEx(mute, connection);
|
|
179
|
+
const jsonParams = {
|
|
199
180
|
mute: mute,
|
|
200
181
|
connection: connection,
|
|
201
|
-
toJSON:
|
|
182
|
+
toJSON: () => {
|
|
202
183
|
return {
|
|
203
184
|
mute: mute,
|
|
204
185
|
connection: connection,
|
|
205
186
|
};
|
|
206
187
|
},
|
|
207
188
|
};
|
|
208
|
-
|
|
189
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
209
190
|
return jsonResults.result;
|
|
210
|
-
}
|
|
211
|
-
|
|
191
|
+
}
|
|
192
|
+
getApiTypeFromMuteLocalVideoStreamEx(mute, connection) {
|
|
212
193
|
return 'RtcEngineEx_muteLocalVideoStreamEx_3cf17a4';
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
194
|
+
}
|
|
195
|
+
muteAllRemoteAudioStreamsEx(mute, connection) {
|
|
196
|
+
const apiType = this.getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection);
|
|
197
|
+
const jsonParams = {
|
|
217
198
|
mute: mute,
|
|
218
199
|
connection: connection,
|
|
219
|
-
toJSON:
|
|
200
|
+
toJSON: () => {
|
|
220
201
|
return {
|
|
221
202
|
mute: mute,
|
|
222
203
|
connection: connection,
|
|
223
204
|
};
|
|
224
205
|
},
|
|
225
206
|
};
|
|
226
|
-
|
|
207
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
227
208
|
return jsonResults.result;
|
|
228
|
-
}
|
|
229
|
-
|
|
209
|
+
}
|
|
210
|
+
getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection) {
|
|
230
211
|
return 'RtcEngineEx_muteAllRemoteAudioStreamsEx_3cf17a4';
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
212
|
+
}
|
|
213
|
+
muteAllRemoteVideoStreamsEx(mute, connection) {
|
|
214
|
+
const apiType = this.getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection);
|
|
215
|
+
const jsonParams = {
|
|
235
216
|
mute: mute,
|
|
236
217
|
connection: connection,
|
|
237
|
-
toJSON:
|
|
218
|
+
toJSON: () => {
|
|
238
219
|
return {
|
|
239
220
|
mute: mute,
|
|
240
221
|
connection: connection,
|
|
241
222
|
};
|
|
242
223
|
},
|
|
243
224
|
};
|
|
244
|
-
|
|
225
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
245
226
|
return jsonResults.result;
|
|
246
|
-
}
|
|
247
|
-
|
|
227
|
+
}
|
|
228
|
+
getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection) {
|
|
248
229
|
return 'RtcEngineEx_muteAllRemoteVideoStreamsEx_3cf17a4';
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
230
|
+
}
|
|
231
|
+
setSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
|
|
232
|
+
const apiType = this.getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection);
|
|
233
|
+
const jsonParams = {
|
|
253
234
|
uidList: uidList,
|
|
254
235
|
uidNumber: uidNumber,
|
|
255
236
|
connection: connection,
|
|
256
|
-
toJSON:
|
|
237
|
+
toJSON: () => {
|
|
257
238
|
return {
|
|
258
239
|
uidList: uidList,
|
|
259
240
|
uidNumber: uidNumber,
|
|
@@ -261,19 +242,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
261
242
|
};
|
|
262
243
|
},
|
|
263
244
|
};
|
|
264
|
-
|
|
245
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
265
246
|
return jsonResults.result;
|
|
266
|
-
}
|
|
267
|
-
|
|
247
|
+
}
|
|
248
|
+
getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
|
|
268
249
|
return 'RtcEngineEx_setSubscribeAudioBlocklistEx_9f1e85c';
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
250
|
+
}
|
|
251
|
+
setSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
|
|
252
|
+
const apiType = this.getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection);
|
|
253
|
+
const jsonParams = {
|
|
273
254
|
uidList: uidList,
|
|
274
255
|
uidNumber: uidNumber,
|
|
275
256
|
connection: connection,
|
|
276
|
-
toJSON:
|
|
257
|
+
toJSON: () => {
|
|
277
258
|
return {
|
|
278
259
|
uidList: uidList,
|
|
279
260
|
uidNumber: uidNumber,
|
|
@@ -281,19 +262,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
281
262
|
};
|
|
282
263
|
},
|
|
283
264
|
};
|
|
284
|
-
|
|
265
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
285
266
|
return jsonResults.result;
|
|
286
|
-
}
|
|
287
|
-
|
|
267
|
+
}
|
|
268
|
+
getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
|
|
288
269
|
return 'RtcEngineEx_setSubscribeAudioAllowlistEx_9f1e85c';
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
270
|
+
}
|
|
271
|
+
setSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
|
|
272
|
+
const apiType = this.getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection);
|
|
273
|
+
const jsonParams = {
|
|
293
274
|
uidList: uidList,
|
|
294
275
|
uidNumber: uidNumber,
|
|
295
276
|
connection: connection,
|
|
296
|
-
toJSON:
|
|
277
|
+
toJSON: () => {
|
|
297
278
|
return {
|
|
298
279
|
uidList: uidList,
|
|
299
280
|
uidNumber: uidNumber,
|
|
@@ -301,19 +282,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
301
282
|
};
|
|
302
283
|
},
|
|
303
284
|
};
|
|
304
|
-
|
|
285
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
305
286
|
return jsonResults.result;
|
|
306
|
-
}
|
|
307
|
-
|
|
287
|
+
}
|
|
288
|
+
getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
|
|
308
289
|
return 'RtcEngineEx_setSubscribeVideoBlocklistEx_9f1e85c';
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
290
|
+
}
|
|
291
|
+
setSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
|
|
292
|
+
const apiType = this.getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection);
|
|
293
|
+
const jsonParams = {
|
|
313
294
|
uidList: uidList,
|
|
314
295
|
uidNumber: uidNumber,
|
|
315
296
|
connection: connection,
|
|
316
|
-
toJSON:
|
|
297
|
+
toJSON: () => {
|
|
317
298
|
return {
|
|
318
299
|
uidList: uidList,
|
|
319
300
|
uidNumber: uidNumber,
|
|
@@ -321,19 +302,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
321
302
|
};
|
|
322
303
|
},
|
|
323
304
|
};
|
|
324
|
-
|
|
305
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
325
306
|
return jsonResults.result;
|
|
326
|
-
}
|
|
327
|
-
|
|
307
|
+
}
|
|
308
|
+
getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
|
|
328
309
|
return 'RtcEngineEx_setSubscribeVideoAllowlistEx_9f1e85c';
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
310
|
+
}
|
|
311
|
+
setRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
|
|
312
|
+
const apiType = this.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection);
|
|
313
|
+
const jsonParams = {
|
|
333
314
|
uid: uid,
|
|
334
315
|
options: options,
|
|
335
316
|
connection: connection,
|
|
336
|
-
toJSON:
|
|
317
|
+
toJSON: () => {
|
|
337
318
|
return {
|
|
338
319
|
uid: uid,
|
|
339
320
|
options: options,
|
|
@@ -341,20 +322,20 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
341
322
|
};
|
|
342
323
|
},
|
|
343
324
|
};
|
|
344
|
-
|
|
325
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
345
326
|
return jsonResults.result;
|
|
346
|
-
}
|
|
347
|
-
|
|
327
|
+
}
|
|
328
|
+
getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
|
|
348
329
|
return 'RtcEngineEx_setRemoteVideoSubscriptionOptionsEx_3cd36bc';
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
330
|
+
}
|
|
331
|
+
setRemoteVoicePositionEx(uid, pan, gain, connection) {
|
|
332
|
+
const apiType = this.getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection);
|
|
333
|
+
const jsonParams = {
|
|
353
334
|
uid: uid,
|
|
354
335
|
pan: pan,
|
|
355
336
|
gain: gain,
|
|
356
337
|
connection: connection,
|
|
357
|
-
toJSON:
|
|
338
|
+
toJSON: () => {
|
|
358
339
|
return {
|
|
359
340
|
uid: uid,
|
|
360
341
|
pan: pan,
|
|
@@ -363,19 +344,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
363
344
|
};
|
|
364
345
|
},
|
|
365
346
|
};
|
|
366
|
-
|
|
347
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
367
348
|
return jsonResults.result;
|
|
368
|
-
}
|
|
369
|
-
|
|
349
|
+
}
|
|
350
|
+
getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection) {
|
|
370
351
|
return 'RtcEngineEx_setRemoteVoicePositionEx_fc0471c';
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
352
|
+
}
|
|
353
|
+
setRemoteUserSpatialAudioParamsEx(uid, params, connection) {
|
|
354
|
+
const apiType = this.getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection);
|
|
355
|
+
const jsonParams = {
|
|
375
356
|
uid: uid,
|
|
376
357
|
params: params,
|
|
377
358
|
connection: connection,
|
|
378
|
-
toJSON:
|
|
359
|
+
toJSON: () => {
|
|
379
360
|
return {
|
|
380
361
|
uid: uid,
|
|
381
362
|
params: params,
|
|
@@ -383,20 +364,20 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
383
364
|
};
|
|
384
365
|
},
|
|
385
366
|
};
|
|
386
|
-
|
|
367
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
387
368
|
return jsonResults.result;
|
|
388
|
-
}
|
|
389
|
-
|
|
369
|
+
}
|
|
370
|
+
getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection) {
|
|
390
371
|
return 'RtcEngineEx_setRemoteUserSpatialAudioParamsEx_40ca9fb';
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
372
|
+
}
|
|
373
|
+
setRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
|
|
374
|
+
const apiType = this.getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection);
|
|
375
|
+
const jsonParams = {
|
|
395
376
|
uid: uid,
|
|
396
377
|
renderMode: renderMode,
|
|
397
378
|
mirrorMode: mirrorMode,
|
|
398
379
|
connection: connection,
|
|
399
|
-
toJSON:
|
|
380
|
+
toJSON: () => {
|
|
400
381
|
return {
|
|
401
382
|
uid: uid,
|
|
402
383
|
renderMode: renderMode,
|
|
@@ -405,19 +386,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
405
386
|
};
|
|
406
387
|
},
|
|
407
388
|
};
|
|
408
|
-
|
|
389
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
409
390
|
return jsonResults.result;
|
|
410
|
-
}
|
|
411
|
-
|
|
391
|
+
}
|
|
392
|
+
getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
|
|
412
393
|
return 'RtcEngineEx_setRemoteRenderModeEx_a72fe4e';
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
394
|
+
}
|
|
395
|
+
enableLoopbackRecordingEx(connection, enabled, deviceName) {
|
|
396
|
+
const apiType = this.getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName);
|
|
397
|
+
const jsonParams = {
|
|
417
398
|
connection: connection,
|
|
418
399
|
enabled: enabled,
|
|
419
400
|
deviceName: deviceName,
|
|
420
|
-
toJSON:
|
|
401
|
+
toJSON: () => {
|
|
421
402
|
return {
|
|
422
403
|
connection: connection,
|
|
423
404
|
enabled: enabled,
|
|
@@ -425,55 +406,55 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
425
406
|
};
|
|
426
407
|
},
|
|
427
408
|
};
|
|
428
|
-
|
|
409
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
429
410
|
return jsonResults.result;
|
|
430
|
-
}
|
|
431
|
-
|
|
411
|
+
}
|
|
412
|
+
getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName) {
|
|
432
413
|
return 'RtcEngineEx_enableLoopbackRecordingEx_4f41542';
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
414
|
+
}
|
|
415
|
+
adjustRecordingSignalVolumeEx(volume, connection) {
|
|
416
|
+
const apiType = this.getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection);
|
|
417
|
+
const jsonParams = {
|
|
437
418
|
volume: volume,
|
|
438
419
|
connection: connection,
|
|
439
|
-
toJSON:
|
|
420
|
+
toJSON: () => {
|
|
440
421
|
return {
|
|
441
422
|
volume: volume,
|
|
442
423
|
connection: connection,
|
|
443
424
|
};
|
|
444
425
|
},
|
|
445
426
|
};
|
|
446
|
-
|
|
427
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
447
428
|
return jsonResults.result;
|
|
448
|
-
}
|
|
449
|
-
|
|
429
|
+
}
|
|
430
|
+
getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection) {
|
|
450
431
|
return 'RtcEngineEx_adjustRecordingSignalVolumeEx_e84d10e';
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
432
|
+
}
|
|
433
|
+
muteRecordingSignalEx(mute, connection) {
|
|
434
|
+
const apiType = this.getApiTypeFromMuteRecordingSignalEx(mute, connection);
|
|
435
|
+
const jsonParams = {
|
|
455
436
|
mute: mute,
|
|
456
437
|
connection: connection,
|
|
457
|
-
toJSON:
|
|
438
|
+
toJSON: () => {
|
|
458
439
|
return {
|
|
459
440
|
mute: mute,
|
|
460
441
|
connection: connection,
|
|
461
442
|
};
|
|
462
443
|
},
|
|
463
444
|
};
|
|
464
|
-
|
|
445
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
465
446
|
return jsonResults.result;
|
|
466
|
-
}
|
|
467
|
-
|
|
447
|
+
}
|
|
448
|
+
getApiTypeFromMuteRecordingSignalEx(mute, connection) {
|
|
468
449
|
return 'RtcEngineEx_muteRecordingSignalEx_3cf17a4';
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
450
|
+
}
|
|
451
|
+
adjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
|
|
452
|
+
const apiType = this.getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection);
|
|
453
|
+
const jsonParams = {
|
|
473
454
|
uid: uid,
|
|
474
455
|
volume: volume,
|
|
475
456
|
connection: connection,
|
|
476
|
-
toJSON:
|
|
457
|
+
toJSON: () => {
|
|
477
458
|
return {
|
|
478
459
|
uid: uid,
|
|
479
460
|
volume: volume,
|
|
@@ -481,35 +462,35 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
481
462
|
};
|
|
482
463
|
},
|
|
483
464
|
};
|
|
484
|
-
|
|
465
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
485
466
|
return jsonResults.result;
|
|
486
|
-
}
|
|
487
|
-
|
|
467
|
+
}
|
|
468
|
+
getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
|
|
488
469
|
return 'RtcEngineEx_adjustUserPlaybackSignalVolumeEx_adbd29c';
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
470
|
+
}
|
|
471
|
+
getConnectionStateEx(connection) {
|
|
472
|
+
const apiType = this.getApiTypeFromGetConnectionStateEx(connection);
|
|
473
|
+
const jsonParams = {
|
|
493
474
|
connection: connection,
|
|
494
|
-
toJSON:
|
|
475
|
+
toJSON: () => {
|
|
495
476
|
return {
|
|
496
477
|
connection: connection,
|
|
497
478
|
};
|
|
498
479
|
},
|
|
499
480
|
};
|
|
500
|
-
|
|
481
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
501
482
|
return jsonResults.result;
|
|
502
|
-
}
|
|
503
|
-
|
|
483
|
+
}
|
|
484
|
+
getApiTypeFromGetConnectionStateEx(connection) {
|
|
504
485
|
return 'RtcEngineEx_getConnectionStateEx_c81e1a4';
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
486
|
+
}
|
|
487
|
+
enableEncryptionEx(connection, enabled, config) {
|
|
488
|
+
const apiType = this.getApiTypeFromEnableEncryptionEx(connection, enabled, config);
|
|
489
|
+
const jsonParams = {
|
|
509
490
|
connection: connection,
|
|
510
491
|
enabled: enabled,
|
|
511
492
|
config: config,
|
|
512
|
-
toJSON:
|
|
493
|
+
toJSON: () => {
|
|
513
494
|
return {
|
|
514
495
|
connection: connection,
|
|
515
496
|
enabled: enabled,
|
|
@@ -517,39 +498,39 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
517
498
|
};
|
|
518
499
|
},
|
|
519
500
|
};
|
|
520
|
-
|
|
501
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
521
502
|
return jsonResults.result;
|
|
522
|
-
}
|
|
523
|
-
|
|
503
|
+
}
|
|
504
|
+
getApiTypeFromEnableEncryptionEx(connection, enabled, config) {
|
|
524
505
|
return 'RtcEngineEx_enableEncryptionEx_10cd872';
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
506
|
+
}
|
|
507
|
+
createDataStreamEx(config, connection) {
|
|
508
|
+
const apiType = this.getApiTypeFromCreateDataStreamEx(config, connection);
|
|
509
|
+
const jsonParams = {
|
|
529
510
|
config: config,
|
|
530
511
|
connection: connection,
|
|
531
|
-
toJSON:
|
|
512
|
+
toJSON: () => {
|
|
532
513
|
return {
|
|
533
514
|
config: config,
|
|
534
515
|
connection: connection,
|
|
535
516
|
};
|
|
536
517
|
},
|
|
537
518
|
};
|
|
538
|
-
|
|
539
|
-
|
|
519
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
520
|
+
const streamId = jsonResults.streamId;
|
|
540
521
|
return streamId;
|
|
541
|
-
}
|
|
542
|
-
|
|
522
|
+
}
|
|
523
|
+
getApiTypeFromCreateDataStreamEx(config, connection) {
|
|
543
524
|
return 'RtcEngineEx_createDataStreamEx_9f641b6';
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
525
|
+
}
|
|
526
|
+
sendStreamMessageEx(streamId, data, length, connection) {
|
|
527
|
+
const apiType = this.getApiTypeFromSendStreamMessageEx(streamId, data, length, connection);
|
|
528
|
+
const jsonParams = {
|
|
548
529
|
streamId: streamId,
|
|
549
530
|
data: data,
|
|
550
531
|
length: length,
|
|
551
532
|
connection: connection,
|
|
552
|
-
toJSON:
|
|
533
|
+
toJSON: () => {
|
|
553
534
|
return {
|
|
554
535
|
streamId: streamId,
|
|
555
536
|
length: length,
|
|
@@ -557,19 +538,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
557
538
|
};
|
|
558
539
|
},
|
|
559
540
|
};
|
|
560
|
-
|
|
541
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
561
542
|
return jsonResults.result;
|
|
562
|
-
}
|
|
563
|
-
|
|
543
|
+
}
|
|
544
|
+
getApiTypeFromSendStreamMessageEx(streamId, data, length, connection) {
|
|
564
545
|
return 'RtcEngineEx_sendStreamMessageEx_0c34857';
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
546
|
+
}
|
|
547
|
+
addVideoWatermarkEx(watermarkUrl, options, connection) {
|
|
548
|
+
const apiType = this.getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection);
|
|
549
|
+
const jsonParams = {
|
|
569
550
|
watermarkUrl: watermarkUrl,
|
|
570
551
|
options: options,
|
|
571
552
|
connection: connection,
|
|
572
|
-
toJSON:
|
|
553
|
+
toJSON: () => {
|
|
573
554
|
return {
|
|
574
555
|
watermarkUrl: watermarkUrl,
|
|
575
556
|
options: options,
|
|
@@ -577,38 +558,38 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
577
558
|
};
|
|
578
559
|
},
|
|
579
560
|
};
|
|
580
|
-
|
|
561
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
581
562
|
return jsonResults.result;
|
|
582
|
-
}
|
|
583
|
-
|
|
563
|
+
}
|
|
564
|
+
getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection) {
|
|
584
565
|
return 'RtcEngineEx_addVideoWatermarkEx_ad7daa3';
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
566
|
+
}
|
|
567
|
+
clearVideoWatermarkEx(connection) {
|
|
568
|
+
const apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
|
|
569
|
+
const jsonParams = {
|
|
589
570
|
connection: connection,
|
|
590
|
-
toJSON:
|
|
571
|
+
toJSON: () => {
|
|
591
572
|
return {
|
|
592
573
|
connection: connection,
|
|
593
574
|
};
|
|
594
575
|
},
|
|
595
576
|
};
|
|
596
|
-
|
|
577
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
597
578
|
return jsonResults.result;
|
|
598
|
-
}
|
|
599
|
-
|
|
579
|
+
}
|
|
580
|
+
getApiTypeFromClearVideoWatermarkEx(connection) {
|
|
600
581
|
return 'RtcEngineEx_clearVideoWatermarkEx_c81e1a4';
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
582
|
+
}
|
|
583
|
+
sendCustomReportMessageEx(id, category, event, label, value, connection) {
|
|
584
|
+
const apiType = this.getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection);
|
|
585
|
+
const jsonParams = {
|
|
605
586
|
id: id,
|
|
606
587
|
category: category,
|
|
607
588
|
event: event,
|
|
608
589
|
label: label,
|
|
609
590
|
value: value,
|
|
610
591
|
connection: connection,
|
|
611
|
-
toJSON:
|
|
592
|
+
toJSON: () => {
|
|
612
593
|
return {
|
|
613
594
|
id: id,
|
|
614
595
|
category: category,
|
|
@@ -619,20 +600,20 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
619
600
|
};
|
|
620
601
|
},
|
|
621
602
|
};
|
|
622
|
-
|
|
603
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
623
604
|
return jsonResults.result;
|
|
624
|
-
}
|
|
625
|
-
|
|
605
|
+
}
|
|
606
|
+
getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection) {
|
|
626
607
|
return 'RtcEngineEx_sendCustomReportMessageEx_833b8a5';
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
608
|
+
}
|
|
609
|
+
enableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
|
|
610
|
+
const apiType = this.getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection);
|
|
611
|
+
const jsonParams = {
|
|
631
612
|
interval: interval,
|
|
632
613
|
smooth: smooth,
|
|
633
614
|
reportVad: reportVad,
|
|
634
615
|
connection: connection,
|
|
635
|
-
toJSON:
|
|
616
|
+
toJSON: () => {
|
|
636
617
|
return {
|
|
637
618
|
interval: interval,
|
|
638
619
|
smooth: smooth,
|
|
@@ -641,37 +622,37 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
641
622
|
};
|
|
642
623
|
},
|
|
643
624
|
};
|
|
644
|
-
|
|
625
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
645
626
|
return jsonResults.result;
|
|
646
|
-
}
|
|
647
|
-
|
|
627
|
+
}
|
|
628
|
+
getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
|
|
648
629
|
return 'RtcEngineEx_enableAudioVolumeIndicationEx_ac84f2a';
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
630
|
+
}
|
|
631
|
+
startRtmpStreamWithoutTranscodingEx(url, connection) {
|
|
632
|
+
const apiType = this.getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection);
|
|
633
|
+
const jsonParams = {
|
|
653
634
|
url: url,
|
|
654
635
|
connection: connection,
|
|
655
|
-
toJSON:
|
|
636
|
+
toJSON: () => {
|
|
656
637
|
return {
|
|
657
638
|
url: url,
|
|
658
639
|
connection: connection,
|
|
659
640
|
};
|
|
660
641
|
},
|
|
661
642
|
};
|
|
662
|
-
|
|
643
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
663
644
|
return jsonResults.result;
|
|
664
|
-
}
|
|
665
|
-
|
|
645
|
+
}
|
|
646
|
+
getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection) {
|
|
666
647
|
return 'RtcEngineEx_startRtmpStreamWithoutTranscodingEx_e405325';
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
648
|
+
}
|
|
649
|
+
startRtmpStreamWithTranscodingEx(url, transcoding, connection) {
|
|
650
|
+
const apiType = this.getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection);
|
|
651
|
+
const jsonParams = {
|
|
671
652
|
url: url,
|
|
672
653
|
transcoding: transcoding,
|
|
673
654
|
connection: connection,
|
|
674
|
-
toJSON:
|
|
655
|
+
toJSON: () => {
|
|
675
656
|
return {
|
|
676
657
|
url: url,
|
|
677
658
|
transcoding: transcoding,
|
|
@@ -679,159 +660,159 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
679
660
|
};
|
|
680
661
|
},
|
|
681
662
|
};
|
|
682
|
-
|
|
663
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
683
664
|
return jsonResults.result;
|
|
684
|
-
}
|
|
685
|
-
|
|
665
|
+
}
|
|
666
|
+
getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection) {
|
|
686
667
|
return 'RtcEngineEx_startRtmpStreamWithTranscodingEx_ab121b5';
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
668
|
+
}
|
|
669
|
+
updateRtmpTranscodingEx(transcoding, connection) {
|
|
670
|
+
const apiType = this.getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection);
|
|
671
|
+
const jsonParams = {
|
|
691
672
|
transcoding: transcoding,
|
|
692
673
|
connection: connection,
|
|
693
|
-
toJSON:
|
|
674
|
+
toJSON: () => {
|
|
694
675
|
return {
|
|
695
676
|
transcoding: transcoding,
|
|
696
677
|
connection: connection,
|
|
697
678
|
};
|
|
698
679
|
},
|
|
699
680
|
};
|
|
700
|
-
|
|
681
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
701
682
|
return jsonResults.result;
|
|
702
|
-
}
|
|
703
|
-
|
|
683
|
+
}
|
|
684
|
+
getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection) {
|
|
704
685
|
return 'RtcEngineEx_updateRtmpTranscodingEx_77f3ee8';
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
686
|
+
}
|
|
687
|
+
stopRtmpStreamEx(url, connection) {
|
|
688
|
+
const apiType = this.getApiTypeFromStopRtmpStreamEx(url, connection);
|
|
689
|
+
const jsonParams = {
|
|
709
690
|
url: url,
|
|
710
691
|
connection: connection,
|
|
711
|
-
toJSON:
|
|
692
|
+
toJSON: () => {
|
|
712
693
|
return {
|
|
713
694
|
url: url,
|
|
714
695
|
connection: connection,
|
|
715
696
|
};
|
|
716
697
|
},
|
|
717
698
|
};
|
|
718
|
-
|
|
699
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
719
700
|
return jsonResults.result;
|
|
720
|
-
}
|
|
721
|
-
|
|
701
|
+
}
|
|
702
|
+
getApiTypeFromStopRtmpStreamEx(url, connection) {
|
|
722
703
|
return 'RtcEngineEx_stopRtmpStreamEx_e405325';
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
704
|
+
}
|
|
705
|
+
startOrUpdateChannelMediaRelayEx(configuration, connection) {
|
|
706
|
+
const apiType = this.getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection);
|
|
707
|
+
const jsonParams = {
|
|
727
708
|
configuration: configuration,
|
|
728
709
|
connection: connection,
|
|
729
|
-
toJSON:
|
|
710
|
+
toJSON: () => {
|
|
730
711
|
return {
|
|
731
712
|
configuration: configuration,
|
|
732
713
|
connection: connection,
|
|
733
714
|
};
|
|
734
715
|
},
|
|
735
716
|
};
|
|
736
|
-
|
|
717
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
737
718
|
return jsonResults.result;
|
|
738
|
-
}
|
|
739
|
-
|
|
719
|
+
}
|
|
720
|
+
getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection) {
|
|
740
721
|
return 'RtcEngineEx_startOrUpdateChannelMediaRelayEx_4ad39a8';
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
722
|
+
}
|
|
723
|
+
stopChannelMediaRelayEx(connection) {
|
|
724
|
+
const apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
|
|
725
|
+
const jsonParams = {
|
|
745
726
|
connection: connection,
|
|
746
|
-
toJSON:
|
|
727
|
+
toJSON: () => {
|
|
747
728
|
return {
|
|
748
729
|
connection: connection,
|
|
749
730
|
};
|
|
750
731
|
},
|
|
751
732
|
};
|
|
752
|
-
|
|
733
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
753
734
|
return jsonResults.result;
|
|
754
|
-
}
|
|
755
|
-
|
|
735
|
+
}
|
|
736
|
+
getApiTypeFromStopChannelMediaRelayEx(connection) {
|
|
756
737
|
return 'RtcEngineEx_stopChannelMediaRelayEx_c81e1a4';
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
738
|
+
}
|
|
739
|
+
pauseAllChannelMediaRelayEx(connection) {
|
|
740
|
+
const apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
|
|
741
|
+
const jsonParams = {
|
|
761
742
|
connection: connection,
|
|
762
|
-
toJSON:
|
|
743
|
+
toJSON: () => {
|
|
763
744
|
return {
|
|
764
745
|
connection: connection,
|
|
765
746
|
};
|
|
766
747
|
},
|
|
767
748
|
};
|
|
768
|
-
|
|
749
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
769
750
|
return jsonResults.result;
|
|
770
|
-
}
|
|
771
|
-
|
|
751
|
+
}
|
|
752
|
+
getApiTypeFromPauseAllChannelMediaRelayEx(connection) {
|
|
772
753
|
return 'RtcEngineEx_pauseAllChannelMediaRelayEx_c81e1a4';
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
754
|
+
}
|
|
755
|
+
resumeAllChannelMediaRelayEx(connection) {
|
|
756
|
+
const apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
|
|
757
|
+
const jsonParams = {
|
|
777
758
|
connection: connection,
|
|
778
|
-
toJSON:
|
|
759
|
+
toJSON: () => {
|
|
779
760
|
return {
|
|
780
761
|
connection: connection,
|
|
781
762
|
};
|
|
782
763
|
},
|
|
783
764
|
};
|
|
784
|
-
|
|
765
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
785
766
|
return jsonResults.result;
|
|
786
|
-
}
|
|
787
|
-
|
|
767
|
+
}
|
|
768
|
+
getApiTypeFromResumeAllChannelMediaRelayEx(connection) {
|
|
788
769
|
return 'RtcEngineEx_resumeAllChannelMediaRelayEx_c81e1a4';
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
770
|
+
}
|
|
771
|
+
getUserInfoByUserAccountEx(userAccount, connection) {
|
|
772
|
+
const apiType = this.getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection);
|
|
773
|
+
const jsonParams = {
|
|
793
774
|
userAccount: userAccount,
|
|
794
775
|
connection: connection,
|
|
795
|
-
toJSON:
|
|
776
|
+
toJSON: () => {
|
|
796
777
|
return {
|
|
797
778
|
userAccount: userAccount,
|
|
798
779
|
connection: connection,
|
|
799
780
|
};
|
|
800
781
|
},
|
|
801
782
|
};
|
|
802
|
-
|
|
803
|
-
|
|
783
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
784
|
+
const userInfo = jsonResults.userInfo;
|
|
804
785
|
return userInfo;
|
|
805
|
-
}
|
|
806
|
-
|
|
786
|
+
}
|
|
787
|
+
getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection) {
|
|
807
788
|
return 'RtcEngineEx_getUserInfoByUserAccountEx_ca39cc6';
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
789
|
+
}
|
|
790
|
+
getUserInfoByUidEx(uid, connection) {
|
|
791
|
+
const apiType = this.getApiTypeFromGetUserInfoByUidEx(uid, connection);
|
|
792
|
+
const jsonParams = {
|
|
812
793
|
uid: uid,
|
|
813
794
|
connection: connection,
|
|
814
|
-
toJSON:
|
|
795
|
+
toJSON: () => {
|
|
815
796
|
return {
|
|
816
797
|
uid: uid,
|
|
817
798
|
connection: connection,
|
|
818
799
|
};
|
|
819
800
|
},
|
|
820
801
|
};
|
|
821
|
-
|
|
822
|
-
|
|
802
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
803
|
+
const userInfo = jsonResults.userInfo;
|
|
823
804
|
return userInfo;
|
|
824
|
-
}
|
|
825
|
-
|
|
805
|
+
}
|
|
806
|
+
getApiTypeFromGetUserInfoByUidEx(uid, connection) {
|
|
826
807
|
return 'RtcEngineEx_getUserInfoByUidEx_1e78da1';
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
808
|
+
}
|
|
809
|
+
enableDualStreamModeEx(enabled, streamConfig, connection) {
|
|
810
|
+
const apiType = this.getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection);
|
|
811
|
+
const jsonParams = {
|
|
831
812
|
enabled: enabled,
|
|
832
813
|
streamConfig: streamConfig,
|
|
833
814
|
connection: connection,
|
|
834
|
-
toJSON:
|
|
815
|
+
toJSON: () => {
|
|
835
816
|
return {
|
|
836
817
|
enabled: enabled,
|
|
837
818
|
streamConfig: streamConfig,
|
|
@@ -839,19 +820,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
839
820
|
};
|
|
840
821
|
},
|
|
841
822
|
};
|
|
842
|
-
|
|
823
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
843
824
|
return jsonResults.result;
|
|
844
|
-
}
|
|
845
|
-
|
|
825
|
+
}
|
|
826
|
+
getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection) {
|
|
846
827
|
return 'RtcEngineEx_enableDualStreamModeEx_4b18f41';
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
828
|
+
}
|
|
829
|
+
setDualStreamModeEx(mode, streamConfig, connection) {
|
|
830
|
+
const apiType = this.getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection);
|
|
831
|
+
const jsonParams = {
|
|
851
832
|
mode: mode,
|
|
852
833
|
streamConfig: streamConfig,
|
|
853
834
|
connection: connection,
|
|
854
|
-
toJSON:
|
|
835
|
+
toJSON: () => {
|
|
855
836
|
return {
|
|
856
837
|
mode: mode,
|
|
857
838
|
streamConfig: streamConfig,
|
|
@@ -859,20 +840,38 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
859
840
|
};
|
|
860
841
|
},
|
|
861
842
|
};
|
|
862
|
-
|
|
843
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
863
844
|
return jsonResults.result;
|
|
864
|
-
}
|
|
865
|
-
|
|
845
|
+
}
|
|
846
|
+
getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection) {
|
|
866
847
|
return 'RtcEngineEx_setDualStreamModeEx_622d0f3';
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
848
|
+
}
|
|
849
|
+
setSimulcastConfigEx(simulcastConfig, connection) {
|
|
850
|
+
const apiType = this.getApiTypeFromSetSimulcastConfigEx(simulcastConfig, connection);
|
|
851
|
+
const jsonParams = {
|
|
852
|
+
simulcastConfig: simulcastConfig,
|
|
853
|
+
connection: connection,
|
|
854
|
+
toJSON: () => {
|
|
855
|
+
return {
|
|
856
|
+
simulcastConfig: simulcastConfig,
|
|
857
|
+
connection: connection,
|
|
858
|
+
};
|
|
859
|
+
},
|
|
860
|
+
};
|
|
861
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
862
|
+
return jsonResults.result;
|
|
863
|
+
}
|
|
864
|
+
getApiTypeFromSetSimulcastConfigEx(simulcastConfig, connection) {
|
|
865
|
+
return 'RtcEngineEx_setSimulcastConfigEx_bd8d7d0';
|
|
866
|
+
}
|
|
867
|
+
setHighPriorityUserListEx(uidList, uidNum, option, connection) {
|
|
868
|
+
const apiType = this.getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection);
|
|
869
|
+
const jsonParams = {
|
|
871
870
|
uidList: uidList,
|
|
872
871
|
uidNum: uidNum,
|
|
873
872
|
option: option,
|
|
874
873
|
connection: connection,
|
|
875
|
-
toJSON:
|
|
874
|
+
toJSON: () => {
|
|
876
875
|
return {
|
|
877
876
|
uidList: uidList,
|
|
878
877
|
uidNum: uidNum,
|
|
@@ -881,19 +880,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
881
880
|
};
|
|
882
881
|
},
|
|
883
882
|
};
|
|
884
|
-
|
|
883
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
885
884
|
return jsonResults.result;
|
|
886
|
-
}
|
|
887
|
-
|
|
885
|
+
}
|
|
886
|
+
getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection) {
|
|
888
887
|
return 'RtcEngineEx_setHighPriorityUserListEx_8736b5c';
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
888
|
+
}
|
|
889
|
+
takeSnapshotEx(connection, uid, filePath) {
|
|
890
|
+
const apiType = this.getApiTypeFromTakeSnapshotEx(connection, uid, filePath);
|
|
891
|
+
const jsonParams = {
|
|
893
892
|
connection: connection,
|
|
894
893
|
uid: uid,
|
|
895
894
|
filePath: filePath,
|
|
896
|
-
toJSON:
|
|
895
|
+
toJSON: () => {
|
|
897
896
|
return {
|
|
898
897
|
connection: connection,
|
|
899
898
|
uid: uid,
|
|
@@ -901,19 +900,19 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
901
900
|
};
|
|
902
901
|
},
|
|
903
902
|
};
|
|
904
|
-
|
|
903
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
905
904
|
return jsonResults.result;
|
|
906
|
-
}
|
|
907
|
-
|
|
905
|
+
}
|
|
906
|
+
getApiTypeFromTakeSnapshotEx(connection, uid, filePath) {
|
|
908
907
|
return 'RtcEngineEx_takeSnapshotEx_de1c015';
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
908
|
+
}
|
|
909
|
+
enableContentInspectEx(enabled, config, connection) {
|
|
910
|
+
const apiType = this.getApiTypeFromEnableContentInspectEx(enabled, config, connection);
|
|
911
|
+
const jsonParams = {
|
|
913
912
|
enabled: enabled,
|
|
914
913
|
config: config,
|
|
915
914
|
connection: connection,
|
|
916
|
-
toJSON:
|
|
915
|
+
toJSON: () => {
|
|
917
916
|
return {
|
|
918
917
|
enabled: enabled,
|
|
919
918
|
config: config,
|
|
@@ -921,70 +920,70 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
921
920
|
};
|
|
922
921
|
},
|
|
923
922
|
};
|
|
924
|
-
|
|
923
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
925
924
|
return jsonResults.result;
|
|
926
|
-
}
|
|
927
|
-
|
|
925
|
+
}
|
|
926
|
+
getApiTypeFromEnableContentInspectEx(enabled, config, connection) {
|
|
928
927
|
return 'RtcEngineEx_enableContentInspectEx_c4e7f69';
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
928
|
+
}
|
|
929
|
+
startMediaRenderingTracingEx(connection) {
|
|
930
|
+
const apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
|
|
931
|
+
const jsonParams = {
|
|
933
932
|
connection: connection,
|
|
934
|
-
toJSON:
|
|
933
|
+
toJSON: () => {
|
|
935
934
|
return {
|
|
936
935
|
connection: connection,
|
|
937
936
|
};
|
|
938
937
|
},
|
|
939
938
|
};
|
|
940
|
-
|
|
939
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
941
940
|
return jsonResults.result;
|
|
942
|
-
}
|
|
943
|
-
|
|
941
|
+
}
|
|
942
|
+
getApiTypeFromStartMediaRenderingTracingEx(connection) {
|
|
944
943
|
return 'RtcEngineEx_startMediaRenderingTracingEx_c81e1a4';
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
944
|
+
}
|
|
945
|
+
setParametersEx(connection, parameters) {
|
|
946
|
+
const apiType = this.getApiTypeFromSetParametersEx(connection, parameters);
|
|
947
|
+
const jsonParams = {
|
|
949
948
|
connection: connection,
|
|
950
949
|
parameters: parameters,
|
|
951
|
-
toJSON:
|
|
950
|
+
toJSON: () => {
|
|
952
951
|
return {
|
|
953
952
|
connection: connection,
|
|
954
953
|
parameters: parameters,
|
|
955
954
|
};
|
|
956
955
|
},
|
|
957
956
|
};
|
|
958
|
-
|
|
957
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
959
958
|
return jsonResults.result;
|
|
960
|
-
}
|
|
961
|
-
|
|
959
|
+
}
|
|
960
|
+
getApiTypeFromSetParametersEx(connection, parameters) {
|
|
962
961
|
return 'RtcEngineEx_setParametersEx_8225ea3';
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
962
|
+
}
|
|
963
|
+
getCallIdEx(connection) {
|
|
964
|
+
const apiType = this.getApiTypeFromGetCallIdEx(connection);
|
|
965
|
+
const jsonParams = {
|
|
967
966
|
connection: connection,
|
|
968
|
-
toJSON:
|
|
967
|
+
toJSON: () => {
|
|
969
968
|
return {
|
|
970
969
|
connection: connection,
|
|
971
970
|
};
|
|
972
971
|
},
|
|
973
972
|
};
|
|
974
|
-
|
|
975
|
-
|
|
973
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
974
|
+
const callId = jsonResults.callId;
|
|
976
975
|
return callId;
|
|
977
|
-
}
|
|
978
|
-
|
|
976
|
+
}
|
|
977
|
+
getApiTypeFromGetCallIdEx(connection) {
|
|
979
978
|
return 'RtcEngineEx_getCallIdEx_b13f7c4';
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
979
|
+
}
|
|
980
|
+
sendAudioMetadataEx(connection, metadata, length) {
|
|
981
|
+
const apiType = this.getApiTypeFromSendAudioMetadataEx(connection, metadata, length);
|
|
982
|
+
const jsonParams = {
|
|
984
983
|
connection: connection,
|
|
985
984
|
metadata: metadata,
|
|
986
985
|
length: length,
|
|
987
|
-
toJSON:
|
|
986
|
+
toJSON: () => {
|
|
988
987
|
return {
|
|
989
988
|
connection: connection,
|
|
990
989
|
metadata: metadata,
|
|
@@ -992,13 +991,12 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
|
|
|
992
991
|
};
|
|
993
992
|
},
|
|
994
993
|
};
|
|
995
|
-
|
|
994
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
996
995
|
return jsonResults.result;
|
|
997
|
-
}
|
|
998
|
-
|
|
996
|
+
}
|
|
997
|
+
getApiTypeFromSendAudioMetadataEx(connection, metadata, length) {
|
|
999
998
|
return 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4';
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
}(IAgoraRtcEngineImpl_1.IRtcEngineImpl));
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1003
1001
|
exports.IRtcEngineExImpl = IRtcEngineExImpl;
|
|
1004
|
-
|
|
1002
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|