agora-electron-sdk 4.3.2 → 4.4.0-dev.2
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/CHANGELOG.md +12 -0
- package/gulpfile.js +3 -1
- package/js/AgoraSdk.js +5 -5
- package/js/Private/AgoraBase.js +374 -333
- package/js/Private/AgoraMediaBase.js +293 -78
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +6 -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 +14 -17
- 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 +2429 -2439
- 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 +219 -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 +120 -146
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +119 -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 +13 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +54 -16
- package/scripts/synclib.js +6 -6
- package/ts/AgoraSdk.ts +1 -1
- package/ts/Private/AgoraBase.ts +282 -13
- package/ts/Private/AgoraMediaBase.ts +390 -32
- package/ts/Private/IAgoraLog.ts +4 -0
- package/ts/Private/IAgoraMediaEngine.ts +10 -21
- package/ts/Private/IAgoraMediaPlayer.ts +2 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +12 -12
- package/ts/Private/IAgoraRtcEngine.ts +243 -237
- package/ts/Private/IAgoraRtcEngineEx.ts +34 -26
- package/ts/Private/IAudioDeviceManager.ts +4 -4
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -103
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +14 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/AgoraView.ts +33 -4
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +41 -14
- package/ts/Renderer/RendererCache.ts +2 -2
- package/ts/Types.ts +1 -1
- package/ts/Utils.ts +15 -0
- package/types/AgoraSdk.d.ts +1 -1
- package/types/Private/AgoraBase.d.ts +277 -17
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +382 -32
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +5 -1
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +10 -21
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +2 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +12 -12
- package/types/Private/IAgoraRtcEngine.d.ts +219 -232
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +30 -27
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +4 -4
- 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 -9
- 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/AgoraView.d.ts +8 -2
- package/types/Renderer/AgoraView.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/Renderer/RendererCache.d.ts +1 -1
- package/types/Renderer/RendererCache.d.ts.map +1 -1
- package/types/Types.d.ts +1 -1
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
# [4.4.0-dev.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.2...v4.4.0-dev.2) (2024-08-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **example:** add call quality monitoring in JoinChannelAudio and JoinChannelVideo ([42b4593](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/42b459338df8a06a8d14cf765d25c5e8cbdc836f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Reverts
|
|
12
|
+
|
|
13
|
+
* Revert "chore: optimize" ([49423ec](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/49423ec648392be27862afd8358b8b5fbaa5b127))
|
|
14
|
+
|
|
3
15
|
## [4.3.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.1...v4.3.2) (2024-06-06)
|
|
4
16
|
|
|
5
17
|
|
package/gulpfile.js
CHANGED
|
@@ -2,6 +2,7 @@ const gulp = require('gulp');
|
|
|
2
2
|
|
|
3
3
|
const build = require('./scripts/build');
|
|
4
4
|
const buildJS = require('./scripts/buildJS');
|
|
5
|
+
const checkElectron = require('./scripts/checkElectron');
|
|
5
6
|
const {
|
|
6
7
|
buildDir,
|
|
7
8
|
jsDir,
|
|
@@ -26,7 +27,7 @@ const clean = async (cb) => {
|
|
|
26
27
|
cb();
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
const totalBuild = gulp.series(clean, syncLib, build, buildJS);
|
|
30
|
+
const totalBuild = gulp.series(clean, syncLib, checkElectron, build, buildJS);
|
|
30
31
|
|
|
31
32
|
const wrapDownloadPreBuild = async (cb) => {
|
|
32
33
|
await downloadPrebuild(cb);
|
|
@@ -43,6 +44,7 @@ exports.clean = clean;
|
|
|
43
44
|
exports.build = build;
|
|
44
45
|
exports.buildJS = buildJS;
|
|
45
46
|
exports.zipBuild = zipBuild;
|
|
47
|
+
exports.checkElectron = checkElectron;
|
|
46
48
|
exports.totalBuild = totalBuild;
|
|
47
49
|
exports.NPM_Install = NPM_Install;
|
|
48
50
|
|
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
|
+
const RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
|
|
19
|
+
const 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,7 +34,7 @@ __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
|
+
const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
|
|
38
38
|
/**
|
|
39
39
|
* Creates one IRtcEngineEx object.
|
|
40
40
|
*
|
|
@@ -51,7 +51,7 @@ exports.createAgoraRtcEngine = createAgoraRtcEngine;
|
|
|
51
51
|
/**
|
|
52
52
|
* Gets one IMediaPlayerCacheManager instance.
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* Before calling any APIs in the IMediaPlayerCacheManager class, you need to call this method to get a cache manager instance of a media player.
|
|
55
55
|
*
|
|
56
56
|
* @returns
|
|
57
57
|
* The IMediaPlayerCacheManager instance.
|
|
@@ -61,4 +61,4 @@ function getMediaPlayerCacheManager() {
|
|
|
61
61
|
}
|
|
62
62
|
exports.getMediaPlayerCacheManager = getMediaPlayerCacheManager;
|
|
63
63
|
exports.default = createAgoraRtcEngine;
|
|
64
|
-
|
|
64
|
+
const IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
|