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
package/js/AgoraSdk.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.getMediaPlayerCacheManager = exports.createAgoraRtcEngine = void 0;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
var RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
|
|
19
|
+
var Utils_1 = require("./Utils");
|
|
20
20
|
__exportStar(require("./Private/AgoraBase"), exports);
|
|
21
21
|
__exportStar(require("./Private/AgoraMediaBase"), exports);
|
|
22
22
|
__exportStar(require("./Private/AgoraMediaPlayerTypes"), exports);
|
|
@@ -34,9 +34,10 @@ __exportStar(require("./Private/IAudioDeviceManager"), exports);
|
|
|
34
34
|
__exportStar(require("./Renderer"), exports);
|
|
35
35
|
__exportStar(require("./Types"), exports);
|
|
36
36
|
__exportStar(require("./Utils"), exports);
|
|
37
|
-
|
|
37
|
+
var instance = new RtcEngineExInternal_1.RtcEngineExInternal();
|
|
38
38
|
/**
|
|
39
39
|
* Creates one IRtcEngineEx object.
|
|
40
|
+
*
|
|
40
41
|
* Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngineEx object for each app.
|
|
41
42
|
*
|
|
42
43
|
* @returns
|
|
@@ -49,7 +50,8 @@ function createAgoraRtcEngine(options) {
|
|
|
49
50
|
exports.createAgoraRtcEngine = createAgoraRtcEngine;
|
|
50
51
|
/**
|
|
51
52
|
* Gets one IMediaPlayerCacheManager instance.
|
|
52
|
-
*
|
|
53
|
+
*
|
|
54
|
+
* When you successfully call this method, the SDK returns a media player cache manager instance. The cache manager is a singleton pattern. Therefore, multiple calls to this method returns the same instance. Make sure the IRtcEngine is initialized before you call this method.
|
|
53
55
|
*
|
|
54
56
|
* @returns
|
|
55
57
|
* The IMediaPlayerCacheManager instance.
|
|
@@ -59,4 +61,4 @@ function getMediaPlayerCacheManager() {
|
|
|
59
61
|
}
|
|
60
62
|
exports.getMediaPlayerCacheManager = getMediaPlayerCacheManager;
|
|
61
63
|
exports.default = createAgoraRtcEngine;
|
|
62
|
-
|
|
64
|
+
var IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
|