agora-electron-sdk 4.2.0 → 4.2.2-dev.4
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/js/AgoraSdk.js +7 -5
- package/js/Private/AgoraBase.js +394 -1292
- package/js/Private/AgoraMediaBase.js +76 -340
- package/js/Private/AgoraMediaPlayerTypes.js +25 -122
- package/js/Private/IAgoraLog.js +5 -14
- package/js/Private/IAgoraMediaEngine.js +5 -2
- package/js/Private/IAgoraMediaPlayer.js +10 -4
- package/js/Private/IAgoraMediaRecorder.js +5 -2
- package/js/Private/IAgoraMediaStreamingSource.js +5 -12
- package/js/Private/IAgoraMusicContentCenter.js +68 -125
- package/js/Private/IAgoraRhythmPlayer.js +5 -10
- package/js/Private/IAgoraRtcEngine.js +141 -932
- package/js/Private/IAgoraRtcEngineEx.js +29 -13
- package/js/Private/IAgoraSpatialAudio.js +40 -53
- package/js/Private/IAudioDeviceManager.js +5 -2
- package/js/Private/impl/IAgoraMediaEngineImpl.js +156 -139
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +538 -526
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +29 -26
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +264 -192
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +419 -399
- package/js/Private/impl/IAgoraRtcEngineImpl.js +2352 -2207
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +192 -169
- package/js/Private/impl/IAudioDeviceManagerImpl.js +235 -232
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -24
- package/js/Private/internal/IrisApiEngine.js +109 -76
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +49 -29
- package/js/Private/internal/MediaEngineInternal.js +82 -58
- package/js/Private/internal/MediaPlayerInternal.js +132 -111
- package/js/Private/internal/MediaRecorderInternal.js +64 -38
- package/js/Private/internal/MusicContentCenterInternal.js +130 -100
- package/js/Private/internal/RtcEngineExInternal.js +265 -219
- package/js/Private/ti/AgoraBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaBase-ti.js +15 -15
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
- 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 +5 -4
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
- package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
- 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 +145 -100
- package/js/Renderer/IRenderer.js +18 -17
- package/js/Renderer/IRendererManager.js +5 -2
- package/js/Renderer/RendererManager.js +208 -180
- package/js/Renderer/WebGLRenderer/index.js +111 -107
- package/js/Renderer/YUVCanvasRenderer/index.js +68 -51
- package/js/Utils.js +85 -36
- package/package.json +3 -3
- package/ts/AgoraSdk.ts +3 -1
- package/ts/Private/AgoraBase.ts +227 -86
- package/ts/Private/AgoraMediaBase.ts +69 -54
- package/ts/Private/AgoraMediaPlayerTypes.ts +4 -4
- package/ts/Private/IAgoraLog.ts +1 -1
- package/ts/Private/IAgoraMediaEngine.ts +42 -39
- package/ts/Private/IAgoraMediaPlayer.ts +98 -67
- package/ts/Private/IAgoraMediaPlayerSource.ts +15 -8
- package/ts/Private/IAgoraMusicContentCenter.ts +25 -4
- package/ts/Private/IAgoraRtcEngine.ts +951 -747
- package/ts/Private/IAgoraRtcEngineEx.ts +183 -157
- package/ts/Private/IAgoraSpatialAudio.ts +55 -32
- package/ts/Private/IAudioDeviceManager.ts +39 -25
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +72 -21
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +136 -15
- package/ts/Private/internal/RtcEngineExInternal.ts +8 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +13 -13
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +3 -2
- package/types/AgoraSdk.d.ts +3 -1
- package/types/AgoraSdk.d.ts.map +1 -1
- package/types/Private/AgoraBase.d.ts +221 -86
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +69 -51
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +4 -4
- package/types/Private/IAgoraLog.d.ts +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +42 -39
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +98 -67
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +15 -8
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts +17 -5
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +936 -744
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +183 -157
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +55 -32
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +39 -25
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +9 -5
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +18 -6
- package/types/Private/impl/IAgoraRtcEngineImpl.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/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -1
|
@@ -2,46 +2,49 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IMediaRecorderImpl = void 0;
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var IMediaRecorderImpl = /** @class */ (function () {
|
|
6
|
+
function IMediaRecorderImpl() {
|
|
7
|
+
}
|
|
8
|
+
IMediaRecorderImpl.prototype.setMediaRecorderObserver = function (callback) {
|
|
9
|
+
var apiType = this.getApiTypeFromSetMediaRecorderObserver(callback);
|
|
10
|
+
var jsonParams = {
|
|
9
11
|
callback: callback,
|
|
10
|
-
toJSON: ()
|
|
12
|
+
toJSON: function () {
|
|
11
13
|
return {};
|
|
12
14
|
},
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
15
17
|
return jsonResults.result;
|
|
16
|
-
}
|
|
17
|
-
getApiTypeFromSetMediaRecorderObserver(callback) {
|
|
18
|
+
};
|
|
19
|
+
IMediaRecorderImpl.prototype.getApiTypeFromSetMediaRecorderObserver = function (callback) {
|
|
18
20
|
return 'MediaRecorder_setMediaRecorderObserver';
|
|
19
|
-
}
|
|
20
|
-
startRecording(config) {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
};
|
|
22
|
+
IMediaRecorderImpl.prototype.startRecording = function (config) {
|
|
23
|
+
var apiType = this.getApiTypeFromStartRecording(config);
|
|
24
|
+
var jsonParams = {
|
|
23
25
|
config: config,
|
|
24
|
-
toJSON: ()
|
|
26
|
+
toJSON: function () {
|
|
25
27
|
return {
|
|
26
28
|
config: config,
|
|
27
29
|
};
|
|
28
30
|
},
|
|
29
31
|
};
|
|
30
|
-
|
|
32
|
+
var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
31
33
|
return jsonResults.result;
|
|
32
|
-
}
|
|
33
|
-
getApiTypeFromStartRecording(config) {
|
|
34
|
+
};
|
|
35
|
+
IMediaRecorderImpl.prototype.getApiTypeFromStartRecording = function (config) {
|
|
34
36
|
return 'MediaRecorder_startRecording';
|
|
35
|
-
}
|
|
36
|
-
stopRecording() {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
};
|
|
38
|
+
IMediaRecorderImpl.prototype.stopRecording = function () {
|
|
39
|
+
var apiType = this.getApiTypeFromStopRecording();
|
|
40
|
+
var jsonParams = {};
|
|
41
|
+
var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
40
42
|
return jsonResults.result;
|
|
41
|
-
}
|
|
42
|
-
getApiTypeFromStopRecording() {
|
|
43
|
+
};
|
|
44
|
+
IMediaRecorderImpl.prototype.getApiTypeFromStopRecording = function () {
|
|
43
45
|
return 'MediaRecorder_stopRecording';
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
+
};
|
|
47
|
+
return IMediaRecorderImpl;
|
|
48
|
+
}());
|
|
46
49
|
exports.IMediaRecorderImpl = IMediaRecorderImpl;
|
|
47
|
-
|
|
50
|
+
var IrisApiEngine_1 = require("../internal/IrisApiEngine");
|