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,23 +1,8 @@
|
|
|
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.IMusicContentCenter = exports.IMusicPlayer = exports.MusicContentCenterConfiguration = exports.MusicCollection = exports.Music = exports.ClimaxSegment = exports.MvProperty = exports.MusicChartCollection = exports.MusicCacheInfo = exports.MusicCacheStatusType = exports.MusicChartInfo = exports.MusicContentCenterStateReason = exports.PreloadState = exports.MusicPlayMode = void 0;
|
|
19
4
|
require("./extension/IAgoraMusicContentCenterExtension");
|
|
20
|
-
|
|
5
|
+
const IAgoraMediaPlayer_1 = require("./IAgoraMediaPlayer");
|
|
21
6
|
/**
|
|
22
7
|
* @ignore
|
|
23
8
|
*/
|
|
@@ -99,11 +84,8 @@ var MusicContentCenterStateReason;
|
|
|
99
84
|
/**
|
|
100
85
|
* @ignore
|
|
101
86
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
return MusicChartInfo;
|
|
106
|
-
}());
|
|
87
|
+
class MusicChartInfo {
|
|
88
|
+
}
|
|
107
89
|
exports.MusicChartInfo = MusicChartInfo;
|
|
108
90
|
/**
|
|
109
91
|
* @ignore
|
|
@@ -122,83 +104,54 @@ var MusicCacheStatusType;
|
|
|
122
104
|
/**
|
|
123
105
|
* @ignore
|
|
124
106
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
return MusicCacheInfo;
|
|
129
|
-
}());
|
|
107
|
+
class MusicCacheInfo {
|
|
108
|
+
}
|
|
130
109
|
exports.MusicCacheInfo = MusicCacheInfo;
|
|
131
110
|
/**
|
|
132
111
|
* @ignore
|
|
133
112
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
return MusicChartCollection;
|
|
138
|
-
}());
|
|
113
|
+
class MusicChartCollection {
|
|
114
|
+
}
|
|
139
115
|
exports.MusicChartCollection = MusicChartCollection;
|
|
140
116
|
/**
|
|
141
117
|
* @ignore
|
|
142
118
|
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
return MvProperty;
|
|
147
|
-
}());
|
|
119
|
+
class MvProperty {
|
|
120
|
+
}
|
|
148
121
|
exports.MvProperty = MvProperty;
|
|
149
122
|
/**
|
|
150
123
|
* The climax parts of the music.
|
|
151
124
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
return ClimaxSegment;
|
|
156
|
-
}());
|
|
125
|
+
class ClimaxSegment {
|
|
126
|
+
}
|
|
157
127
|
exports.ClimaxSegment = ClimaxSegment;
|
|
158
128
|
/**
|
|
159
129
|
* @ignore
|
|
160
130
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
return Music;
|
|
165
|
-
}());
|
|
131
|
+
class Music {
|
|
132
|
+
}
|
|
166
133
|
exports.Music = Music;
|
|
167
134
|
/**
|
|
168
135
|
* @ignore
|
|
169
136
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
return MusicCollection;
|
|
174
|
-
}());
|
|
137
|
+
class MusicCollection {
|
|
138
|
+
}
|
|
175
139
|
exports.MusicCollection = MusicCollection;
|
|
176
140
|
/**
|
|
177
141
|
* @ignore
|
|
178
142
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
return MusicContentCenterConfiguration;
|
|
183
|
-
}());
|
|
143
|
+
class MusicContentCenterConfiguration {
|
|
144
|
+
}
|
|
184
145
|
exports.MusicContentCenterConfiguration = MusicContentCenterConfiguration;
|
|
185
146
|
/**
|
|
186
147
|
* @ignore
|
|
187
148
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
function IMusicPlayer() {
|
|
191
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
192
|
-
}
|
|
193
|
-
return IMusicPlayer;
|
|
194
|
-
}(IAgoraMediaPlayer_1.IMediaPlayer));
|
|
149
|
+
class IMusicPlayer extends IAgoraMediaPlayer_1.IMediaPlayer {
|
|
150
|
+
}
|
|
195
151
|
exports.IMusicPlayer = IMusicPlayer;
|
|
196
152
|
/**
|
|
197
153
|
* @ignore
|
|
198
154
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
return IMusicContentCenter;
|
|
203
|
-
}());
|
|
155
|
+
class IMusicContentCenter {
|
|
156
|
+
}
|
|
204
157
|
exports.IMusicContentCenter = IMusicContentCenter;
|
|
@@ -57,9 +57,6 @@ var RhythmPlayerReason;
|
|
|
57
57
|
/**
|
|
58
58
|
* The metronome configuration.
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
return AgoraRhythmPlayerConfig;
|
|
64
|
-
}());
|
|
60
|
+
class AgoraRhythmPlayerConfig {
|
|
61
|
+
}
|
|
65
62
|
exports.AgoraRhythmPlayerConfig = AgoraRhythmPlayerConfig;
|
|
@@ -235,6 +235,30 @@ var StreamFallbackOptions;
|
|
|
235
235
|
* @ignore
|
|
236
236
|
*/
|
|
237
237
|
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionAudioOnly"] = 2] = "StreamFallbackOptionAudioOnly";
|
|
238
|
+
/**
|
|
239
|
+
* @ignore
|
|
240
|
+
*/
|
|
241
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer1"] = 3] = "StreamFallbackOptionVideoStreamLayer1";
|
|
242
|
+
/**
|
|
243
|
+
* @ignore
|
|
244
|
+
*/
|
|
245
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer2"] = 4] = "StreamFallbackOptionVideoStreamLayer2";
|
|
246
|
+
/**
|
|
247
|
+
* @ignore
|
|
248
|
+
*/
|
|
249
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer3"] = 5] = "StreamFallbackOptionVideoStreamLayer3";
|
|
250
|
+
/**
|
|
251
|
+
* @ignore
|
|
252
|
+
*/
|
|
253
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer4"] = 6] = "StreamFallbackOptionVideoStreamLayer4";
|
|
254
|
+
/**
|
|
255
|
+
* @ignore
|
|
256
|
+
*/
|
|
257
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer5"] = 7] = "StreamFallbackOptionVideoStreamLayer5";
|
|
258
|
+
/**
|
|
259
|
+
* @ignore
|
|
260
|
+
*/
|
|
261
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLayer6"] = 8] = "StreamFallbackOptionVideoStreamLayer6";
|
|
238
262
|
})(StreamFallbackOptions = exports.StreamFallbackOptions || (exports.StreamFallbackOptions = {}));
|
|
239
263
|
/**
|
|
240
264
|
* @ignore
|
|
@@ -253,56 +277,38 @@ var PriorityType;
|
|
|
253
277
|
/**
|
|
254
278
|
* The statistics of the local video stream.
|
|
255
279
|
*/
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
return LocalVideoStats;
|
|
260
|
-
}());
|
|
280
|
+
class LocalVideoStats {
|
|
281
|
+
}
|
|
261
282
|
exports.LocalVideoStats = LocalVideoStats;
|
|
262
283
|
/**
|
|
263
284
|
* Audio statistics of the remote user.
|
|
264
285
|
*/
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
return RemoteAudioStats;
|
|
269
|
-
}());
|
|
286
|
+
class RemoteAudioStats {
|
|
287
|
+
}
|
|
270
288
|
exports.RemoteAudioStats = RemoteAudioStats;
|
|
271
289
|
/**
|
|
272
290
|
* Statistics of the remote video stream.
|
|
273
291
|
*/
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
return RemoteVideoStats;
|
|
278
|
-
}());
|
|
292
|
+
class RemoteVideoStats {
|
|
293
|
+
}
|
|
279
294
|
exports.RemoteVideoStats = RemoteVideoStats;
|
|
280
295
|
/**
|
|
281
296
|
* @ignore
|
|
282
297
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
return Region;
|
|
287
|
-
}());
|
|
298
|
+
class Region {
|
|
299
|
+
}
|
|
288
300
|
exports.Region = Region;
|
|
289
301
|
/**
|
|
290
302
|
* @ignore
|
|
291
303
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
return VideoCompositingLayout;
|
|
296
|
-
}());
|
|
304
|
+
class VideoCompositingLayout {
|
|
305
|
+
}
|
|
297
306
|
exports.VideoCompositingLayout = VideoCompositingLayout;
|
|
298
307
|
/**
|
|
299
308
|
* @ignore
|
|
300
309
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
return InjectStreamConfig;
|
|
305
|
-
}());
|
|
310
|
+
class InjectStreamConfig {
|
|
311
|
+
}
|
|
306
312
|
exports.InjectStreamConfig = InjectStreamConfig;
|
|
307
313
|
/**
|
|
308
314
|
* Lifecycle of the CDN live video stream.
|
|
@@ -323,11 +329,8 @@ var RtmpStreamLifeCycleType;
|
|
|
323
329
|
/**
|
|
324
330
|
* @ignore
|
|
325
331
|
*/
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
return PublisherConfiguration;
|
|
330
|
-
}());
|
|
332
|
+
class PublisherConfiguration {
|
|
333
|
+
}
|
|
331
334
|
exports.PublisherConfiguration = PublisherConfiguration;
|
|
332
335
|
/**
|
|
333
336
|
* The camera direction.
|
|
@@ -364,40 +367,28 @@ var CloudProxyType;
|
|
|
364
367
|
/**
|
|
365
368
|
* The camera capturer preference.
|
|
366
369
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
return CameraCapturerConfiguration;
|
|
371
|
-
}());
|
|
370
|
+
class CameraCapturerConfiguration {
|
|
371
|
+
}
|
|
372
372
|
exports.CameraCapturerConfiguration = CameraCapturerConfiguration;
|
|
373
373
|
/**
|
|
374
374
|
* The configuration of the captured screen.
|
|
375
375
|
*/
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
return ScreenCaptureConfiguration;
|
|
380
|
-
}());
|
|
376
|
+
class ScreenCaptureConfiguration {
|
|
377
|
+
}
|
|
381
378
|
exports.ScreenCaptureConfiguration = ScreenCaptureConfiguration;
|
|
382
379
|
/**
|
|
383
380
|
* @ignore
|
|
384
381
|
*/
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
return Size;
|
|
389
|
-
}());
|
|
382
|
+
class Size {
|
|
383
|
+
}
|
|
390
384
|
exports.Size = Size;
|
|
391
385
|
/**
|
|
392
386
|
* The image content of the thumbnail or icon. Set in ScreenCaptureSourceInfo.
|
|
393
387
|
*
|
|
394
388
|
* The default image is in the ARGB format. If you need to use another format, you need to convert the image on your own.
|
|
395
389
|
*/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
return ThumbImageBuffer;
|
|
400
|
-
}());
|
|
390
|
+
class ThumbImageBuffer {
|
|
391
|
+
}
|
|
401
392
|
exports.ThumbImageBuffer = ThumbImageBuffer;
|
|
402
393
|
/**
|
|
403
394
|
* The type of the shared target. Set in ScreenCaptureSourceInfo.
|
|
@@ -424,40 +415,28 @@ var ScreenCaptureSourceType;
|
|
|
424
415
|
/**
|
|
425
416
|
* The information about the specified shareable window or screen.
|
|
426
417
|
*/
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
return ScreenCaptureSourceInfo;
|
|
431
|
-
}());
|
|
418
|
+
class ScreenCaptureSourceInfo {
|
|
419
|
+
}
|
|
432
420
|
exports.ScreenCaptureSourceInfo = ScreenCaptureSourceInfo;
|
|
433
421
|
/**
|
|
434
422
|
* The advanced options for audio.
|
|
435
423
|
*/
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
return AdvancedAudioOptions;
|
|
440
|
-
}());
|
|
424
|
+
class AdvancedAudioOptions {
|
|
425
|
+
}
|
|
441
426
|
exports.AdvancedAudioOptions = AdvancedAudioOptions;
|
|
442
427
|
/**
|
|
443
428
|
* Image configurations.
|
|
444
429
|
*/
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
448
|
-
return ImageTrackOptions;
|
|
449
|
-
}());
|
|
430
|
+
class ImageTrackOptions {
|
|
431
|
+
}
|
|
450
432
|
exports.ImageTrackOptions = ImageTrackOptions;
|
|
451
433
|
/**
|
|
452
434
|
* The channel media options.
|
|
453
435
|
*
|
|
454
436
|
* Agora supports publishing multiple audio streams and one video stream at the same time and in the same RtcConnection. For example, publishMicrophoneTrack, publishCustomAudioTrack, and publishMediaPlayerAudioTrack can be set as true at the same time, but only one of publishCameraTrack, publishScreenTrack, publishCustomVideoTrack, or publishEncodedVideoTrack can be set as true. Agora recommends that you set member parameter values yourself according to your business scenario, otherwise the SDK will automatically assign values to member parameters.
|
|
455
437
|
*/
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
return ChannelMediaOptions;
|
|
460
|
-
}());
|
|
438
|
+
class ChannelMediaOptions {
|
|
439
|
+
}
|
|
461
440
|
exports.ChannelMediaOptions = ChannelMediaOptions;
|
|
462
441
|
/**
|
|
463
442
|
* The cloud proxy type.
|
|
@@ -510,29 +489,20 @@ var FeatureType;
|
|
|
510
489
|
/**
|
|
511
490
|
* The options for leaving a channel.
|
|
512
491
|
*/
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
return LeaveChannelOptions;
|
|
517
|
-
}());
|
|
492
|
+
class LeaveChannelOptions {
|
|
493
|
+
}
|
|
518
494
|
exports.LeaveChannelOptions = LeaveChannelOptions;
|
|
519
495
|
/**
|
|
520
496
|
* Video device management methods.
|
|
521
497
|
*/
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
return IVideoDeviceManager;
|
|
526
|
-
}());
|
|
498
|
+
class IVideoDeviceManager {
|
|
499
|
+
}
|
|
527
500
|
exports.IVideoDeviceManager = IVideoDeviceManager;
|
|
528
501
|
/**
|
|
529
502
|
* Configurations for the RtcEngineContext instance.
|
|
530
503
|
*/
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
return RtcEngineContext;
|
|
535
|
-
}());
|
|
504
|
+
class RtcEngineContext {
|
|
505
|
+
}
|
|
536
506
|
exports.RtcEngineContext = RtcEngineContext;
|
|
537
507
|
/**
|
|
538
508
|
* Metadata type of the observer. We only support video metadata for now.
|
|
@@ -569,11 +539,8 @@ var MaxMetadataSizeType;
|
|
|
569
539
|
/**
|
|
570
540
|
* Media metadata.
|
|
571
541
|
*/
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
return Metadata;
|
|
576
|
-
}());
|
|
542
|
+
class Metadata {
|
|
543
|
+
}
|
|
577
544
|
exports.Metadata = Metadata;
|
|
578
545
|
/**
|
|
579
546
|
* Reasons for the changes in CDN streaming status.
|
|
@@ -634,40 +601,28 @@ var DirectCdnStreamingState;
|
|
|
634
601
|
/**
|
|
635
602
|
* The statistics of the current CDN streaming.
|
|
636
603
|
*/
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
-
return DirectCdnStreamingStats;
|
|
641
|
-
}());
|
|
604
|
+
class DirectCdnStreamingStats {
|
|
605
|
+
}
|
|
642
606
|
exports.DirectCdnStreamingStats = DirectCdnStreamingStats;
|
|
643
607
|
/**
|
|
644
608
|
* The media setting options for the host.
|
|
645
609
|
*/
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
return DirectCdnStreamingMediaOptions;
|
|
650
|
-
}());
|
|
610
|
+
class DirectCdnStreamingMediaOptions {
|
|
611
|
+
}
|
|
651
612
|
exports.DirectCdnStreamingMediaOptions = DirectCdnStreamingMediaOptions;
|
|
652
613
|
/**
|
|
653
614
|
* @ignore
|
|
654
615
|
*/
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
return ExtensionInfo;
|
|
659
|
-
}());
|
|
616
|
+
class ExtensionInfo {
|
|
617
|
+
}
|
|
660
618
|
exports.ExtensionInfo = ExtensionInfo;
|
|
661
619
|
/**
|
|
662
620
|
* The basic interface of the Agora SDK that implements the core functions of real-time communication.
|
|
663
621
|
*
|
|
664
622
|
* IRtcEngine provides the main methods that your app can call. Before calling other APIs, you must call createAgoraRtcEngine to create an IRtcEngine object.
|
|
665
623
|
*/
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}
|
|
669
|
-
return IRtcEngine;
|
|
670
|
-
}());
|
|
624
|
+
class IRtcEngine {
|
|
625
|
+
}
|
|
671
626
|
exports.IRtcEngine = IRtcEngine;
|
|
672
627
|
/**
|
|
673
628
|
* @ignore
|
|
@@ -1002,27 +957,18 @@ var VideoProfileType;
|
|
|
1002
957
|
/**
|
|
1003
958
|
* SDK version information.
|
|
1004
959
|
*/
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
1008
|
-
return SDKBuildInfo;
|
|
1009
|
-
}());
|
|
960
|
+
class SDKBuildInfo {
|
|
961
|
+
}
|
|
1010
962
|
exports.SDKBuildInfo = SDKBuildInfo;
|
|
1011
963
|
/**
|
|
1012
964
|
* The VideoDeviceInfo class that contains the ID and device name of the video devices.
|
|
1013
965
|
*/
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
}
|
|
1017
|
-
return VideoDeviceInfo;
|
|
1018
|
-
}());
|
|
966
|
+
class VideoDeviceInfo {
|
|
967
|
+
}
|
|
1019
968
|
exports.VideoDeviceInfo = VideoDeviceInfo;
|
|
1020
969
|
/**
|
|
1021
970
|
* The AudioDeviceInfo class that contains the ID, name and type of the audio devices.
|
|
1022
971
|
*/
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
}
|
|
1026
|
-
return AudioDeviceInfo;
|
|
1027
|
-
}());
|
|
972
|
+
class AudioDeviceInfo {
|
|
973
|
+
}
|
|
1028
974
|
exports.AudioDeviceInfo = AudioDeviceInfo;
|
|
@@ -1,42 +1,19 @@
|
|
|
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.IRtcEngineEx = exports.RtcConnection = void 0;
|
|
19
4
|
require("./extension/IAgoraRtcEngineExExtension");
|
|
20
|
-
|
|
5
|
+
const IAgoraRtcEngine_1 = require("./IAgoraRtcEngine");
|
|
21
6
|
/**
|
|
22
7
|
* Contains connection information.
|
|
23
8
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
return RtcConnection;
|
|
28
|
-
}());
|
|
9
|
+
class RtcConnection {
|
|
10
|
+
}
|
|
29
11
|
exports.RtcConnection = RtcConnection;
|
|
30
12
|
/**
|
|
31
13
|
* This interface class contains multi-channel methods.
|
|
32
14
|
*
|
|
33
15
|
* Inherited from IRtcEngine.
|
|
34
16
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
function IRtcEngineEx() {
|
|
38
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
-
}
|
|
40
|
-
return IRtcEngineEx;
|
|
41
|
-
}(IAgoraRtcEngine_1.IRtcEngine));
|
|
17
|
+
class IRtcEngineEx extends IAgoraRtcEngine_1.IRtcEngine {
|
|
18
|
+
}
|
|
42
19
|
exports.IRtcEngineEx = IRtcEngineEx;
|
|
@@ -5,29 +5,20 @@ require("./extension/IAgoraSpatialAudioExtension");
|
|
|
5
5
|
/**
|
|
6
6
|
* The spatial position of the remote user or the media player.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
return RemoteVoicePositionInfo;
|
|
12
|
-
}());
|
|
8
|
+
class RemoteVoicePositionInfo {
|
|
9
|
+
}
|
|
13
10
|
exports.RemoteVoicePositionInfo = RemoteVoicePositionInfo;
|
|
14
11
|
/**
|
|
15
12
|
* Sound insulation area settings.
|
|
16
13
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
return SpatialAudioZone;
|
|
21
|
-
}());
|
|
14
|
+
class SpatialAudioZone {
|
|
15
|
+
}
|
|
22
16
|
exports.SpatialAudioZone = SpatialAudioZone;
|
|
23
17
|
/**
|
|
24
18
|
* This class calculates user positions through the SDK to implement the spatial audio effect.
|
|
25
19
|
*
|
|
26
20
|
* This class inherits from IBaseSpatialAudioEngine. Before calling other APIs in this class, you need to call the initialize method to initialize this class.
|
|
27
21
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
return ILocalSpatialAudioEngine;
|
|
32
|
-
}());
|
|
22
|
+
class ILocalSpatialAudioEngine {
|
|
23
|
+
}
|
|
33
24
|
exports.ILocalSpatialAudioEngine = ILocalSpatialAudioEngine;
|
|
@@ -15,9 +15,6 @@ var MaxDeviceIdLengthType;
|
|
|
15
15
|
/**
|
|
16
16
|
* Audio device management methods.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
return IAudioDeviceManager;
|
|
22
|
-
}());
|
|
18
|
+
class IAudioDeviceManager {
|
|
19
|
+
}
|
|
23
20
|
exports.IAudioDeviceManager = IAudioDeviceManager;
|
|
@@ -2,27 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processIMediaRecorderObserver = exports.processIFaceInfoObserver = exports.processIVideoFrameObserver = exports.processIVideoEncodedFrameObserver = exports.processIAudioSpectrumObserver = exports.processIAudioFrameObserver = exports.processIAudioFrameObserverBase = exports.processIAudioPcmFrameSink = exports.IVideoFrameMetaInfoImpl = void 0;
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var apiType = this.getApiTypeFromGetMetaInfoStr(key);
|
|
10
|
-
var jsonParams = {
|
|
5
|
+
class IVideoFrameMetaInfoImpl {
|
|
6
|
+
getMetaInfoStr(key) {
|
|
7
|
+
const apiType = this.getApiTypeFromGetMetaInfoStr(key);
|
|
8
|
+
const jsonParams = {
|
|
11
9
|
key: key,
|
|
12
|
-
toJSON:
|
|
10
|
+
toJSON: () => {
|
|
13
11
|
return {
|
|
14
12
|
key: key,
|
|
15
13
|
};
|
|
16
14
|
},
|
|
17
15
|
};
|
|
18
|
-
|
|
16
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
19
17
|
return jsonResults.result;
|
|
20
|
-
}
|
|
21
|
-
|
|
18
|
+
}
|
|
19
|
+
getApiTypeFromGetMetaInfoStr(key) {
|
|
22
20
|
return 'VideoFrameMetaInfo_getMetaInfoStr_c81192f';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
26
23
|
exports.IVideoFrameMetaInfoImpl = IVideoFrameMetaInfoImpl;
|
|
27
24
|
function processIAudioPcmFrameSink(handler, event, jsonParams) {
|
|
28
25
|
switch (event) {
|
|
@@ -149,4 +146,4 @@ function processIMediaRecorderObserver(handler, event, jsonParams) {
|
|
|
149
146
|
}
|
|
150
147
|
}
|
|
151
148
|
exports.processIMediaRecorderObserver = processIMediaRecorderObserver;
|
|
152
|
-
|
|
149
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|