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.
Files changed (100) hide show
  1. package/gulpfile.js +3 -1
  2. package/js/AgoraSdk.js +4 -4
  3. package/js/Private/AgoraBase.js +367 -326
  4. package/js/Private/AgoraMediaBase.js +265 -76
  5. package/js/Private/AgoraMediaPlayerTypes.js +12 -30
  6. package/js/Private/IAgoraH265Transcoder.js +2 -5
  7. package/js/Private/IAgoraLog.js +2 -5
  8. package/js/Private/IAgoraMediaEngine.js +2 -5
  9. package/js/Private/IAgoraMediaPlayer.js +4 -10
  10. package/js/Private/IAgoraMediaRecorder.js +2 -5
  11. package/js/Private/IAgoraMediaStreamingSource.js +2 -5
  12. package/js/Private/IAgoraMusicContentCenter.js +21 -68
  13. package/js/Private/IAgoraRhythmPlayer.js +2 -5
  14. package/js/Private/IAgoraRtcEngine.js +76 -130
  15. package/js/Private/IAgoraRtcEngineEx.js +5 -28
  16. package/js/Private/IAgoraSpatialAudio.js +6 -15
  17. package/js/Private/IAudioDeviceManager.js +2 -5
  18. package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
  19. package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
  20. package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
  21. package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
  22. package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
  23. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
  24. package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
  25. package/js/Private/impl/IAgoraRtcEngineImpl.js +2445 -2423
  26. package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
  27. package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
  28. package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
  29. package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
  30. package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
  31. package/js/Private/internal/IrisApiEngine.js +94 -145
  32. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
  33. package/js/Private/internal/MediaEngineInternal.js +69 -94
  34. package/js/Private/internal/MediaPlayerInternal.js +105 -125
  35. package/js/Private/internal/MediaRecorderInternal.js +37 -64
  36. package/js/Private/internal/MusicContentCenterInternal.js +92 -129
  37. package/js/Private/internal/RtcEngineExInternal.js +213 -243
  38. package/js/Private/ti/AgoraBase-ti.js +2 -2
  39. package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
  40. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  41. package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
  42. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  43. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  44. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  45. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  46. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  47. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  48. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
  49. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  50. package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
  51. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  52. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  53. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  54. package/js/Renderer/AgoraView.js +100 -145
  55. package/js/Renderer/IRenderer.js +43 -53
  56. package/js/Renderer/IRendererManager.js +106 -132
  57. package/js/Renderer/RendererCache.js +63 -96
  58. package/js/Renderer/RendererManager.js +35 -69
  59. package/js/Renderer/WebGLRenderer/index.js +77 -106
  60. package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
  61. package/js/Utils.js +45 -64
  62. package/package.json +9 -7
  63. package/scripts/checkElectron.js +41 -0
  64. package/scripts/downloadPrebuild.js +56 -24
  65. package/scripts/synclib.js +6 -6
  66. package/ts/Private/AgoraBase.ts +269 -4
  67. package/ts/Private/AgoraMediaBase.ts +343 -1
  68. package/ts/Private/IAgoraMediaEngine.ts +3 -3
  69. package/ts/Private/IAgoraRtcEngine.ts +130 -119
  70. package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
  71. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
  72. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
  73. package/ts/Private/internal/IrisApiEngine.ts +3 -7
  74. package/ts/Private/internal/MediaEngineInternal.ts +0 -1
  75. package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
  76. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
  77. package/ts/Renderer/IRenderer.ts +1 -2
  78. package/ts/Renderer/IRendererManager.ts +21 -12
  79. package/ts/Utils.ts +15 -0
  80. package/types/Private/AgoraBase.d.ts +264 -8
  81. package/types/Private/AgoraBase.d.ts.map +1 -1
  82. package/types/Private/AgoraMediaBase.d.ts +336 -1
  83. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  84. package/types/Private/IAgoraMediaEngine.d.ts +3 -3
  85. package/types/Private/IAgoraRtcEngine.d.ts +106 -116
  86. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  87. package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
  88. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  89. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
  90. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
  91. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -5
  92. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  93. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
  94. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
  95. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  96. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  97. package/types/Renderer/IRenderer.d.ts.map +1 -1
  98. package/types/Renderer/IRendererManager.d.ts.map +1 -1
  99. package/types/Utils.d.ts +4 -0
  100. 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
- var IAgoraRtcEngineImpl_1 = require("./IAgoraRtcEngineImpl");
4
+ const IAgoraRtcEngineImpl_1 = require("./IAgoraRtcEngineImpl");
20
5
  // @ts-ignore
21
- var IRtcEngineExImpl = /** @class */ (function (_super) {
22
- __extends(IRtcEngineExImpl, _super);
23
- function IRtcEngineExImpl() {
24
- return _super !== null && _super.apply(this, arguments) || this;
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
21
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
41
22
  return jsonResults.result;
42
- };
43
- IRtcEngineExImpl.prototype.getApiTypeFromJoinChannelEx = function (token, connection, options) {
23
+ }
24
+ getApiTypeFromJoinChannelEx(token, connection, options) {
44
25
  return 'RtcEngineEx_joinChannelEx_a3cd08c';
45
- };
46
- IRtcEngineExImpl.prototype.leaveChannelEx = function (connection, options) {
47
- var apiType = this.getApiTypeFromLeaveChannelEx(connection, options);
48
- var jsonParams = {
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: function () {
32
+ toJSON: () => {
52
33
  return {
53
34
  connection: connection,
54
35
  options: options,
55
36
  };
56
37
  },
57
38
  };
58
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
39
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
59
40
  return jsonResults.result;
60
- };
61
- IRtcEngineExImpl.prototype.getApiTypeFromLeaveChannelEx = function (connection, options) {
41
+ }
42
+ getApiTypeFromLeaveChannelEx(connection, options) {
62
43
  return 'RtcEngineEx_leaveChannelEx_b03ee9a';
63
- };
64
- IRtcEngineExImpl.prototype.updateChannelMediaOptionsEx = function (options, connection) {
65
- var apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(options, connection);
66
- var jsonParams = {
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: function () {
50
+ toJSON: () => {
70
51
  return {
71
52
  options: options,
72
53
  connection: connection,
73
54
  };
74
55
  },
75
56
  };
76
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
57
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
77
58
  return jsonResults.result;
78
- };
79
- IRtcEngineExImpl.prototype.getApiTypeFromUpdateChannelMediaOptionsEx = function (options, connection) {
59
+ }
60
+ getApiTypeFromUpdateChannelMediaOptionsEx(options, connection) {
80
61
  return 'RtcEngineEx_updateChannelMediaOptionsEx_457bb35';
81
- };
82
- IRtcEngineExImpl.prototype.setVideoEncoderConfigurationEx = function (config, connection) {
83
- var apiType = this.getApiTypeFromSetVideoEncoderConfigurationEx(config, connection);
84
- var jsonParams = {
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: function () {
68
+ toJSON: () => {
88
69
  return {
89
70
  config: config,
90
71
  connection: connection,
91
72
  };
92
73
  },
93
74
  };
94
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
75
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
95
76
  return jsonResults.result;
96
- };
97
- IRtcEngineExImpl.prototype.getApiTypeFromSetVideoEncoderConfigurationEx = function (config, connection) {
77
+ }
78
+ getApiTypeFromSetVideoEncoderConfigurationEx(config, connection) {
98
79
  return 'RtcEngineEx_setVideoEncoderConfigurationEx_4670c1e';
99
- };
100
- IRtcEngineExImpl.prototype.setupRemoteVideoEx = function (canvas, connection) {
101
- var apiType = this.getApiTypeFromSetupRemoteVideoEx(canvas, connection);
102
- var jsonParams = {
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: function () {
86
+ toJSON: () => {
106
87
  return {
107
88
  canvas: canvas,
108
89
  connection: connection,
109
90
  };
110
91
  },
111
92
  };
112
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
93
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
113
94
  return jsonResults.result;
114
- };
115
- IRtcEngineExImpl.prototype.getApiTypeFromSetupRemoteVideoEx = function (canvas, connection) {
95
+ }
96
+ getApiTypeFromSetupRemoteVideoEx(canvas, connection) {
116
97
  return 'RtcEngineEx_setupRemoteVideoEx_522a409';
117
- };
118
- IRtcEngineExImpl.prototype.muteRemoteAudioStreamEx = function (uid, mute, connection) {
119
- var apiType = this.getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection);
120
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
113
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
133
114
  return jsonResults.result;
134
- };
135
- IRtcEngineExImpl.prototype.getApiTypeFromMuteRemoteAudioStreamEx = function (uid, mute, connection) {
115
+ }
116
+ getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection) {
136
117
  return 'RtcEngineEx_muteRemoteAudioStreamEx_6d93082';
137
- };
138
- IRtcEngineExImpl.prototype.muteRemoteVideoStreamEx = function (uid, mute, connection) {
139
- var apiType = this.getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection);
140
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
133
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
153
134
  return jsonResults.result;
154
- };
155
- IRtcEngineExImpl.prototype.getApiTypeFromMuteRemoteVideoStreamEx = function (uid, mute, connection) {
135
+ }
136
+ getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection) {
156
137
  return 'RtcEngineEx_muteRemoteVideoStreamEx_6d93082';
157
- };
158
- IRtcEngineExImpl.prototype.setRemoteVideoStreamTypeEx = function (uid, streamType, connection) {
159
- var apiType = this.getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection);
160
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
153
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
173
154
  return jsonResults.result;
174
- };
175
- IRtcEngineExImpl.prototype.getApiTypeFromSetRemoteVideoStreamTypeEx = function (uid, streamType, connection) {
155
+ }
156
+ getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection) {
176
157
  return 'RtcEngineEx_setRemoteVideoStreamTypeEx_01dc428';
177
- };
178
- IRtcEngineExImpl.prototype.muteLocalAudioStreamEx = function (mute, connection) {
179
- var apiType = this.getApiTypeFromMuteLocalAudioStreamEx(mute, connection);
180
- var jsonParams = {
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: function () {
164
+ toJSON: () => {
184
165
  return {
185
166
  mute: mute,
186
167
  connection: connection,
187
168
  };
188
169
  },
189
170
  };
190
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
171
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
191
172
  return jsonResults.result;
192
- };
193
- IRtcEngineExImpl.prototype.getApiTypeFromMuteLocalAudioStreamEx = function (mute, connection) {
173
+ }
174
+ getApiTypeFromMuteLocalAudioStreamEx(mute, connection) {
194
175
  return 'RtcEngineEx_muteLocalAudioStreamEx_3cf17a4';
195
- };
196
- IRtcEngineExImpl.prototype.muteLocalVideoStreamEx = function (mute, connection) {
197
- var apiType = this.getApiTypeFromMuteLocalVideoStreamEx(mute, connection);
198
- var jsonParams = {
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: function () {
182
+ toJSON: () => {
202
183
  return {
203
184
  mute: mute,
204
185
  connection: connection,
205
186
  };
206
187
  },
207
188
  };
208
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
189
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
209
190
  return jsonResults.result;
210
- };
211
- IRtcEngineExImpl.prototype.getApiTypeFromMuteLocalVideoStreamEx = function (mute, connection) {
191
+ }
192
+ getApiTypeFromMuteLocalVideoStreamEx(mute, connection) {
212
193
  return 'RtcEngineEx_muteLocalVideoStreamEx_3cf17a4';
213
- };
214
- IRtcEngineExImpl.prototype.muteAllRemoteAudioStreamsEx = function (mute, connection) {
215
- var apiType = this.getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection);
216
- var jsonParams = {
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: function () {
200
+ toJSON: () => {
220
201
  return {
221
202
  mute: mute,
222
203
  connection: connection,
223
204
  };
224
205
  },
225
206
  };
226
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
207
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
227
208
  return jsonResults.result;
228
- };
229
- IRtcEngineExImpl.prototype.getApiTypeFromMuteAllRemoteAudioStreamsEx = function (mute, connection) {
209
+ }
210
+ getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection) {
230
211
  return 'RtcEngineEx_muteAllRemoteAudioStreamsEx_3cf17a4';
231
- };
232
- IRtcEngineExImpl.prototype.muteAllRemoteVideoStreamsEx = function (mute, connection) {
233
- var apiType = this.getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection);
234
- var jsonParams = {
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: function () {
218
+ toJSON: () => {
238
219
  return {
239
220
  mute: mute,
240
221
  connection: connection,
241
222
  };
242
223
  },
243
224
  };
244
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
225
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
245
226
  return jsonResults.result;
246
- };
247
- IRtcEngineExImpl.prototype.getApiTypeFromMuteAllRemoteVideoStreamsEx = function (mute, connection) {
227
+ }
228
+ getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection) {
248
229
  return 'RtcEngineEx_muteAllRemoteVideoStreamsEx_3cf17a4';
249
- };
250
- IRtcEngineExImpl.prototype.setSubscribeAudioBlocklistEx = function (uidList, uidNumber, connection) {
251
- var apiType = this.getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection);
252
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
245
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
265
246
  return jsonResults.result;
266
- };
267
- IRtcEngineExImpl.prototype.getApiTypeFromSetSubscribeAudioBlocklistEx = function (uidList, uidNumber, connection) {
247
+ }
248
+ getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
268
249
  return 'RtcEngineEx_setSubscribeAudioBlocklistEx_9f1e85c';
269
- };
270
- IRtcEngineExImpl.prototype.setSubscribeAudioAllowlistEx = function (uidList, uidNumber, connection) {
271
- var apiType = this.getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection);
272
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
265
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
285
266
  return jsonResults.result;
286
- };
287
- IRtcEngineExImpl.prototype.getApiTypeFromSetSubscribeAudioAllowlistEx = function (uidList, uidNumber, connection) {
267
+ }
268
+ getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
288
269
  return 'RtcEngineEx_setSubscribeAudioAllowlistEx_9f1e85c';
289
- };
290
- IRtcEngineExImpl.prototype.setSubscribeVideoBlocklistEx = function (uidList, uidNumber, connection) {
291
- var apiType = this.getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection);
292
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
285
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
305
286
  return jsonResults.result;
306
- };
307
- IRtcEngineExImpl.prototype.getApiTypeFromSetSubscribeVideoBlocklistEx = function (uidList, uidNumber, connection) {
287
+ }
288
+ getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
308
289
  return 'RtcEngineEx_setSubscribeVideoBlocklistEx_9f1e85c';
309
- };
310
- IRtcEngineExImpl.prototype.setSubscribeVideoAllowlistEx = function (uidList, uidNumber, connection) {
311
- var apiType = this.getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection);
312
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
305
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
325
306
  return jsonResults.result;
326
- };
327
- IRtcEngineExImpl.prototype.getApiTypeFromSetSubscribeVideoAllowlistEx = function (uidList, uidNumber, connection) {
307
+ }
308
+ getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
328
309
  return 'RtcEngineEx_setSubscribeVideoAllowlistEx_9f1e85c';
329
- };
330
- IRtcEngineExImpl.prototype.setRemoteVideoSubscriptionOptionsEx = function (uid, options, connection) {
331
- var apiType = this.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection);
332
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
325
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
345
326
  return jsonResults.result;
346
- };
347
- IRtcEngineExImpl.prototype.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx = function (uid, options, connection) {
327
+ }
328
+ getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
348
329
  return 'RtcEngineEx_setRemoteVideoSubscriptionOptionsEx_3cd36bc';
349
- };
350
- IRtcEngineExImpl.prototype.setRemoteVoicePositionEx = function (uid, pan, gain, connection) {
351
- var apiType = this.getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection);
352
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
347
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
367
348
  return jsonResults.result;
368
- };
369
- IRtcEngineExImpl.prototype.getApiTypeFromSetRemoteVoicePositionEx = function (uid, pan, gain, connection) {
349
+ }
350
+ getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection) {
370
351
  return 'RtcEngineEx_setRemoteVoicePositionEx_fc0471c';
371
- };
372
- IRtcEngineExImpl.prototype.setRemoteUserSpatialAudioParamsEx = function (uid, params, connection) {
373
- var apiType = this.getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection);
374
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
367
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
387
368
  return jsonResults.result;
388
- };
389
- IRtcEngineExImpl.prototype.getApiTypeFromSetRemoteUserSpatialAudioParamsEx = function (uid, params, connection) {
369
+ }
370
+ getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection) {
390
371
  return 'RtcEngineEx_setRemoteUserSpatialAudioParamsEx_40ca9fb';
391
- };
392
- IRtcEngineExImpl.prototype.setRemoteRenderModeEx = function (uid, renderMode, mirrorMode, connection) {
393
- var apiType = this.getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection);
394
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
389
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
409
390
  return jsonResults.result;
410
- };
411
- IRtcEngineExImpl.prototype.getApiTypeFromSetRemoteRenderModeEx = function (uid, renderMode, mirrorMode, connection) {
391
+ }
392
+ getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
412
393
  return 'RtcEngineEx_setRemoteRenderModeEx_a72fe4e';
413
- };
414
- IRtcEngineExImpl.prototype.enableLoopbackRecordingEx = function (connection, enabled, deviceName) {
415
- var apiType = this.getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName);
416
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
409
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
429
410
  return jsonResults.result;
430
- };
431
- IRtcEngineExImpl.prototype.getApiTypeFromEnableLoopbackRecordingEx = function (connection, enabled, deviceName) {
411
+ }
412
+ getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName) {
432
413
  return 'RtcEngineEx_enableLoopbackRecordingEx_4f41542';
433
- };
434
- IRtcEngineExImpl.prototype.adjustRecordingSignalVolumeEx = function (volume, connection) {
435
- var apiType = this.getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection);
436
- var jsonParams = {
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: function () {
420
+ toJSON: () => {
440
421
  return {
441
422
  volume: volume,
442
423
  connection: connection,
443
424
  };
444
425
  },
445
426
  };
446
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
427
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
447
428
  return jsonResults.result;
448
- };
449
- IRtcEngineExImpl.prototype.getApiTypeFromAdjustRecordingSignalVolumeEx = function (volume, connection) {
429
+ }
430
+ getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection) {
450
431
  return 'RtcEngineEx_adjustRecordingSignalVolumeEx_e84d10e';
451
- };
452
- IRtcEngineExImpl.prototype.muteRecordingSignalEx = function (mute, connection) {
453
- var apiType = this.getApiTypeFromMuteRecordingSignalEx(mute, connection);
454
- var jsonParams = {
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: function () {
438
+ toJSON: () => {
458
439
  return {
459
440
  mute: mute,
460
441
  connection: connection,
461
442
  };
462
443
  },
463
444
  };
464
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
445
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
465
446
  return jsonResults.result;
466
- };
467
- IRtcEngineExImpl.prototype.getApiTypeFromMuteRecordingSignalEx = function (mute, connection) {
447
+ }
448
+ getApiTypeFromMuteRecordingSignalEx(mute, connection) {
468
449
  return 'RtcEngineEx_muteRecordingSignalEx_3cf17a4';
469
- };
470
- IRtcEngineExImpl.prototype.adjustUserPlaybackSignalVolumeEx = function (uid, volume, connection) {
471
- var apiType = this.getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection);
472
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
465
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
485
466
  return jsonResults.result;
486
- };
487
- IRtcEngineExImpl.prototype.getApiTypeFromAdjustUserPlaybackSignalVolumeEx = function (uid, volume, connection) {
467
+ }
468
+ getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
488
469
  return 'RtcEngineEx_adjustUserPlaybackSignalVolumeEx_adbd29c';
489
- };
490
- IRtcEngineExImpl.prototype.getConnectionStateEx = function (connection) {
491
- var apiType = this.getApiTypeFromGetConnectionStateEx(connection);
492
- var jsonParams = {
470
+ }
471
+ getConnectionStateEx(connection) {
472
+ const apiType = this.getApiTypeFromGetConnectionStateEx(connection);
473
+ const jsonParams = {
493
474
  connection: connection,
494
- toJSON: function () {
475
+ toJSON: () => {
495
476
  return {
496
477
  connection: connection,
497
478
  };
498
479
  },
499
480
  };
500
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
481
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
501
482
  return jsonResults.result;
502
- };
503
- IRtcEngineExImpl.prototype.getApiTypeFromGetConnectionStateEx = function (connection) {
483
+ }
484
+ getApiTypeFromGetConnectionStateEx(connection) {
504
485
  return 'RtcEngineEx_getConnectionStateEx_c81e1a4';
505
- };
506
- IRtcEngineExImpl.prototype.enableEncryptionEx = function (connection, enabled, config) {
507
- var apiType = this.getApiTypeFromEnableEncryptionEx(connection, enabled, config);
508
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
501
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
521
502
  return jsonResults.result;
522
- };
523
- IRtcEngineExImpl.prototype.getApiTypeFromEnableEncryptionEx = function (connection, enabled, config) {
503
+ }
504
+ getApiTypeFromEnableEncryptionEx(connection, enabled, config) {
524
505
  return 'RtcEngineEx_enableEncryptionEx_10cd872';
525
- };
526
- IRtcEngineExImpl.prototype.createDataStreamEx = function (config, connection) {
527
- var apiType = this.getApiTypeFromCreateDataStreamEx(config, connection);
528
- var jsonParams = {
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: function () {
512
+ toJSON: () => {
532
513
  return {
533
514
  config: config,
534
515
  connection: connection,
535
516
  };
536
517
  },
537
518
  };
538
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
539
- var streamId = jsonResults.streamId;
519
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
520
+ const streamId = jsonResults.streamId;
540
521
  return streamId;
541
- };
542
- IRtcEngineExImpl.prototype.getApiTypeFromCreateDataStreamEx = function (config, connection) {
522
+ }
523
+ getApiTypeFromCreateDataStreamEx(config, connection) {
543
524
  return 'RtcEngineEx_createDataStreamEx_9f641b6';
544
- };
545
- IRtcEngineExImpl.prototype.sendStreamMessageEx = function (streamId, data, length, connection) {
546
- var apiType = this.getApiTypeFromSendStreamMessageEx(streamId, data, length, connection);
547
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
541
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
561
542
  return jsonResults.result;
562
- };
563
- IRtcEngineExImpl.prototype.getApiTypeFromSendStreamMessageEx = function (streamId, data, length, connection) {
543
+ }
544
+ getApiTypeFromSendStreamMessageEx(streamId, data, length, connection) {
564
545
  return 'RtcEngineEx_sendStreamMessageEx_0c34857';
565
- };
566
- IRtcEngineExImpl.prototype.addVideoWatermarkEx = function (watermarkUrl, options, connection) {
567
- var apiType = this.getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection);
568
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
561
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
581
562
  return jsonResults.result;
582
- };
583
- IRtcEngineExImpl.prototype.getApiTypeFromAddVideoWatermarkEx = function (watermarkUrl, options, connection) {
563
+ }
564
+ getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection) {
584
565
  return 'RtcEngineEx_addVideoWatermarkEx_ad7daa3';
585
- };
586
- IRtcEngineExImpl.prototype.clearVideoWatermarkEx = function (connection) {
587
- var apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
588
- var jsonParams = {
566
+ }
567
+ clearVideoWatermarkEx(connection) {
568
+ const apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
569
+ const jsonParams = {
589
570
  connection: connection,
590
- toJSON: function () {
571
+ toJSON: () => {
591
572
  return {
592
573
  connection: connection,
593
574
  };
594
575
  },
595
576
  };
596
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
577
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
597
578
  return jsonResults.result;
598
- };
599
- IRtcEngineExImpl.prototype.getApiTypeFromClearVideoWatermarkEx = function (connection) {
579
+ }
580
+ getApiTypeFromClearVideoWatermarkEx(connection) {
600
581
  return 'RtcEngineEx_clearVideoWatermarkEx_c81e1a4';
601
- };
602
- IRtcEngineExImpl.prototype.sendCustomReportMessageEx = function (id, category, event, label, value, connection) {
603
- var apiType = this.getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection);
604
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
603
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
623
604
  return jsonResults.result;
624
- };
625
- IRtcEngineExImpl.prototype.getApiTypeFromSendCustomReportMessageEx = function (id, category, event, label, value, connection) {
605
+ }
606
+ getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection) {
626
607
  return 'RtcEngineEx_sendCustomReportMessageEx_833b8a5';
627
- };
628
- IRtcEngineExImpl.prototype.enableAudioVolumeIndicationEx = function (interval, smooth, reportVad, connection) {
629
- var apiType = this.getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection);
630
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
625
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
645
626
  return jsonResults.result;
646
- };
647
- IRtcEngineExImpl.prototype.getApiTypeFromEnableAudioVolumeIndicationEx = function (interval, smooth, reportVad, connection) {
627
+ }
628
+ getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
648
629
  return 'RtcEngineEx_enableAudioVolumeIndicationEx_ac84f2a';
649
- };
650
- IRtcEngineExImpl.prototype.startRtmpStreamWithoutTranscodingEx = function (url, connection) {
651
- var apiType = this.getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection);
652
- var jsonParams = {
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: function () {
636
+ toJSON: () => {
656
637
  return {
657
638
  url: url,
658
639
  connection: connection,
659
640
  };
660
641
  },
661
642
  };
662
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
643
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
663
644
  return jsonResults.result;
664
- };
665
- IRtcEngineExImpl.prototype.getApiTypeFromStartRtmpStreamWithoutTranscodingEx = function (url, connection) {
645
+ }
646
+ getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection) {
666
647
  return 'RtcEngineEx_startRtmpStreamWithoutTranscodingEx_e405325';
667
- };
668
- IRtcEngineExImpl.prototype.startRtmpStreamWithTranscodingEx = function (url, transcoding, connection) {
669
- var apiType = this.getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection);
670
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
663
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
683
664
  return jsonResults.result;
684
- };
685
- IRtcEngineExImpl.prototype.getApiTypeFromStartRtmpStreamWithTranscodingEx = function (url, transcoding, connection) {
665
+ }
666
+ getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection) {
686
667
  return 'RtcEngineEx_startRtmpStreamWithTranscodingEx_ab121b5';
687
- };
688
- IRtcEngineExImpl.prototype.updateRtmpTranscodingEx = function (transcoding, connection) {
689
- var apiType = this.getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection);
690
- var jsonParams = {
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: function () {
674
+ toJSON: () => {
694
675
  return {
695
676
  transcoding: transcoding,
696
677
  connection: connection,
697
678
  };
698
679
  },
699
680
  };
700
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
681
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
701
682
  return jsonResults.result;
702
- };
703
- IRtcEngineExImpl.prototype.getApiTypeFromUpdateRtmpTranscodingEx = function (transcoding, connection) {
683
+ }
684
+ getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection) {
704
685
  return 'RtcEngineEx_updateRtmpTranscodingEx_77f3ee8';
705
- };
706
- IRtcEngineExImpl.prototype.stopRtmpStreamEx = function (url, connection) {
707
- var apiType = this.getApiTypeFromStopRtmpStreamEx(url, connection);
708
- var jsonParams = {
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: function () {
692
+ toJSON: () => {
712
693
  return {
713
694
  url: url,
714
695
  connection: connection,
715
696
  };
716
697
  },
717
698
  };
718
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
699
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
719
700
  return jsonResults.result;
720
- };
721
- IRtcEngineExImpl.prototype.getApiTypeFromStopRtmpStreamEx = function (url, connection) {
701
+ }
702
+ getApiTypeFromStopRtmpStreamEx(url, connection) {
722
703
  return 'RtcEngineEx_stopRtmpStreamEx_e405325';
723
- };
724
- IRtcEngineExImpl.prototype.startOrUpdateChannelMediaRelayEx = function (configuration, connection) {
725
- var apiType = this.getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection);
726
- var jsonParams = {
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: function () {
710
+ toJSON: () => {
730
711
  return {
731
712
  configuration: configuration,
732
713
  connection: connection,
733
714
  };
734
715
  },
735
716
  };
736
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
717
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
737
718
  return jsonResults.result;
738
- };
739
- IRtcEngineExImpl.prototype.getApiTypeFromStartOrUpdateChannelMediaRelayEx = function (configuration, connection) {
719
+ }
720
+ getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection) {
740
721
  return 'RtcEngineEx_startOrUpdateChannelMediaRelayEx_4ad39a8';
741
- };
742
- IRtcEngineExImpl.prototype.stopChannelMediaRelayEx = function (connection) {
743
- var apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
744
- var jsonParams = {
722
+ }
723
+ stopChannelMediaRelayEx(connection) {
724
+ const apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
725
+ const jsonParams = {
745
726
  connection: connection,
746
- toJSON: function () {
727
+ toJSON: () => {
747
728
  return {
748
729
  connection: connection,
749
730
  };
750
731
  },
751
732
  };
752
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
733
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
753
734
  return jsonResults.result;
754
- };
755
- IRtcEngineExImpl.prototype.getApiTypeFromStopChannelMediaRelayEx = function (connection) {
735
+ }
736
+ getApiTypeFromStopChannelMediaRelayEx(connection) {
756
737
  return 'RtcEngineEx_stopChannelMediaRelayEx_c81e1a4';
757
- };
758
- IRtcEngineExImpl.prototype.pauseAllChannelMediaRelayEx = function (connection) {
759
- var apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
760
- var jsonParams = {
738
+ }
739
+ pauseAllChannelMediaRelayEx(connection) {
740
+ const apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
741
+ const jsonParams = {
761
742
  connection: connection,
762
- toJSON: function () {
743
+ toJSON: () => {
763
744
  return {
764
745
  connection: connection,
765
746
  };
766
747
  },
767
748
  };
768
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
749
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
769
750
  return jsonResults.result;
770
- };
771
- IRtcEngineExImpl.prototype.getApiTypeFromPauseAllChannelMediaRelayEx = function (connection) {
751
+ }
752
+ getApiTypeFromPauseAllChannelMediaRelayEx(connection) {
772
753
  return 'RtcEngineEx_pauseAllChannelMediaRelayEx_c81e1a4';
773
- };
774
- IRtcEngineExImpl.prototype.resumeAllChannelMediaRelayEx = function (connection) {
775
- var apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
776
- var jsonParams = {
754
+ }
755
+ resumeAllChannelMediaRelayEx(connection) {
756
+ const apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
757
+ const jsonParams = {
777
758
  connection: connection,
778
- toJSON: function () {
759
+ toJSON: () => {
779
760
  return {
780
761
  connection: connection,
781
762
  };
782
763
  },
783
764
  };
784
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
765
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
785
766
  return jsonResults.result;
786
- };
787
- IRtcEngineExImpl.prototype.getApiTypeFromResumeAllChannelMediaRelayEx = function (connection) {
767
+ }
768
+ getApiTypeFromResumeAllChannelMediaRelayEx(connection) {
788
769
  return 'RtcEngineEx_resumeAllChannelMediaRelayEx_c81e1a4';
789
- };
790
- IRtcEngineExImpl.prototype.getUserInfoByUserAccountEx = function (userAccount, connection) {
791
- var apiType = this.getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection);
792
- var jsonParams = {
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: function () {
776
+ toJSON: () => {
796
777
  return {
797
778
  userAccount: userAccount,
798
779
  connection: connection,
799
780
  };
800
781
  },
801
782
  };
802
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
803
- var userInfo = jsonResults.userInfo;
783
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
784
+ const userInfo = jsonResults.userInfo;
804
785
  return userInfo;
805
- };
806
- IRtcEngineExImpl.prototype.getApiTypeFromGetUserInfoByUserAccountEx = function (userAccount, connection) {
786
+ }
787
+ getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection) {
807
788
  return 'RtcEngineEx_getUserInfoByUserAccountEx_ca39cc6';
808
- };
809
- IRtcEngineExImpl.prototype.getUserInfoByUidEx = function (uid, connection) {
810
- var apiType = this.getApiTypeFromGetUserInfoByUidEx(uid, connection);
811
- var jsonParams = {
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: function () {
795
+ toJSON: () => {
815
796
  return {
816
797
  uid: uid,
817
798
  connection: connection,
818
799
  };
819
800
  },
820
801
  };
821
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
822
- var userInfo = jsonResults.userInfo;
802
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
803
+ const userInfo = jsonResults.userInfo;
823
804
  return userInfo;
824
- };
825
- IRtcEngineExImpl.prototype.getApiTypeFromGetUserInfoByUidEx = function (uid, connection) {
805
+ }
806
+ getApiTypeFromGetUserInfoByUidEx(uid, connection) {
826
807
  return 'RtcEngineEx_getUserInfoByUidEx_1e78da1';
827
- };
828
- IRtcEngineExImpl.prototype.enableDualStreamModeEx = function (enabled, streamConfig, connection) {
829
- var apiType = this.getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection);
830
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
823
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
843
824
  return jsonResults.result;
844
- };
845
- IRtcEngineExImpl.prototype.getApiTypeFromEnableDualStreamModeEx = function (enabled, streamConfig, connection) {
825
+ }
826
+ getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection) {
846
827
  return 'RtcEngineEx_enableDualStreamModeEx_4b18f41';
847
- };
848
- IRtcEngineExImpl.prototype.setDualStreamModeEx = function (mode, streamConfig, connection) {
849
- var apiType = this.getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection);
850
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
843
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
863
844
  return jsonResults.result;
864
- };
865
- IRtcEngineExImpl.prototype.getApiTypeFromSetDualStreamModeEx = function (mode, streamConfig, connection) {
845
+ }
846
+ getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection) {
866
847
  return 'RtcEngineEx_setDualStreamModeEx_622d0f3';
867
- };
868
- IRtcEngineExImpl.prototype.setHighPriorityUserListEx = function (uidList, uidNum, option, connection) {
869
- var apiType = this.getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection);
870
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
883
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
885
884
  return jsonResults.result;
886
- };
887
- IRtcEngineExImpl.prototype.getApiTypeFromSetHighPriorityUserListEx = function (uidList, uidNum, option, connection) {
885
+ }
886
+ getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection) {
888
887
  return 'RtcEngineEx_setHighPriorityUserListEx_8736b5c';
889
- };
890
- IRtcEngineExImpl.prototype.takeSnapshotEx = function (connection, uid, filePath) {
891
- var apiType = this.getApiTypeFromTakeSnapshotEx(connection, uid, filePath);
892
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
903
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
905
904
  return jsonResults.result;
906
- };
907
- IRtcEngineExImpl.prototype.getApiTypeFromTakeSnapshotEx = function (connection, uid, filePath) {
905
+ }
906
+ getApiTypeFromTakeSnapshotEx(connection, uid, filePath) {
908
907
  return 'RtcEngineEx_takeSnapshotEx_de1c015';
909
- };
910
- IRtcEngineExImpl.prototype.enableContentInspectEx = function (enabled, config, connection) {
911
- var apiType = this.getApiTypeFromEnableContentInspectEx(enabled, config, connection);
912
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
923
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
925
924
  return jsonResults.result;
926
- };
927
- IRtcEngineExImpl.prototype.getApiTypeFromEnableContentInspectEx = function (enabled, config, connection) {
925
+ }
926
+ getApiTypeFromEnableContentInspectEx(enabled, config, connection) {
928
927
  return 'RtcEngineEx_enableContentInspectEx_c4e7f69';
929
- };
930
- IRtcEngineExImpl.prototype.startMediaRenderingTracingEx = function (connection) {
931
- var apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
932
- var jsonParams = {
928
+ }
929
+ startMediaRenderingTracingEx(connection) {
930
+ const apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
931
+ const jsonParams = {
933
932
  connection: connection,
934
- toJSON: function () {
933
+ toJSON: () => {
935
934
  return {
936
935
  connection: connection,
937
936
  };
938
937
  },
939
938
  };
940
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
939
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
941
940
  return jsonResults.result;
942
- };
943
- IRtcEngineExImpl.prototype.getApiTypeFromStartMediaRenderingTracingEx = function (connection) {
941
+ }
942
+ getApiTypeFromStartMediaRenderingTracingEx(connection) {
944
943
  return 'RtcEngineEx_startMediaRenderingTracingEx_c81e1a4';
945
- };
946
- IRtcEngineExImpl.prototype.setParametersEx = function (connection, parameters) {
947
- var apiType = this.getApiTypeFromSetParametersEx(connection, parameters);
948
- var jsonParams = {
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: function () {
950
+ toJSON: () => {
952
951
  return {
953
952
  connection: connection,
954
953
  parameters: parameters,
955
954
  };
956
955
  },
957
956
  };
958
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
957
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
959
958
  return jsonResults.result;
960
- };
961
- IRtcEngineExImpl.prototype.getApiTypeFromSetParametersEx = function (connection, parameters) {
959
+ }
960
+ getApiTypeFromSetParametersEx(connection, parameters) {
962
961
  return 'RtcEngineEx_setParametersEx_8225ea3';
963
- };
964
- IRtcEngineExImpl.prototype.getCallIdEx = function (connection) {
965
- var apiType = this.getApiTypeFromGetCallIdEx(connection);
966
- var jsonParams = {
962
+ }
963
+ getCallIdEx(connection) {
964
+ const apiType = this.getApiTypeFromGetCallIdEx(connection);
965
+ const jsonParams = {
967
966
  connection: connection,
968
- toJSON: function () {
967
+ toJSON: () => {
969
968
  return {
970
969
  connection: connection,
971
970
  };
972
971
  },
973
972
  };
974
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
975
- var callId = jsonResults.callId;
973
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
974
+ const callId = jsonResults.callId;
976
975
  return callId;
977
- };
978
- IRtcEngineExImpl.prototype.getApiTypeFromGetCallIdEx = function (connection) {
976
+ }
977
+ getApiTypeFromGetCallIdEx(connection) {
979
978
  return 'RtcEngineEx_getCallIdEx_b13f7c4';
980
- };
981
- IRtcEngineExImpl.prototype.sendAudioMetadataEx = function (connection, metadata, length) {
982
- var apiType = this.getApiTypeFromSendAudioMetadataEx(connection, metadata, length);
983
- var jsonParams = {
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: function () {
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
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
994
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
996
995
  return jsonResults.result;
997
- };
998
- IRtcEngineExImpl.prototype.getApiTypeFromSendAudioMetadataEx = function (connection, metadata, length) {
996
+ }
997
+ getApiTypeFromSendAudioMetadataEx(connection, metadata, length) {
999
998
  return 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4';
1000
- };
1001
- return IRtcEngineExImpl;
1002
- }(IAgoraRtcEngineImpl_1.IRtcEngineImpl));
999
+ }
1000
+ }
1003
1001
  exports.IRtcEngineExImpl = IRtcEngineExImpl;
1004
- var IrisApiEngine_1 = require("../internal/IrisApiEngine");
1002
+ const IrisApiEngine_1 = require("../internal/IrisApiEngine");