agora-electron-sdk 4.2.0 → 4.2.2-build.1-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/CHANGELOG.md +29 -0
- package/js/AgoraSdk.js +7 -5
- package/js/Private/AgoraBase.js +527 -1339
- package/js/Private/AgoraMediaBase.js +88 -346
- 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 +72 -125
- package/js/Private/IAgoraRhythmPlayer.js +5 -10
- package/js/Private/IAgoraRtcEngine.js +154 -931
- package/js/Private/IAgoraRtcEngineEx.js +30 -14
- package/js/Private/IAgoraSpatialAudio.js +40 -53
- package/js/Private/IAudioDeviceManager.js +5 -2
- package/js/Private/impl/IAgoraMediaEngineImpl.js +163 -140
- 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 +2369 -2208
- 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 +122 -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 +133 -100
- package/js/Private/internal/RtcEngineExInternal.js +284 -221
- 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 +4 -4
- 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 +121 -117
- package/js/Renderer/YUVCanvasRenderer/index.js +68 -51
- package/js/Utils.js +85 -36
- package/package.json +3 -3
- package/scripts/zipBuild.js +3 -1
- package/ts/AgoraSdk.ts +3 -1
- package/ts/Private/AgoraBase.ts +491 -187
- package/ts/Private/AgoraMediaBase.ts +120 -71
- package/ts/Private/AgoraMediaPlayerTypes.ts +10 -7
- package/ts/Private/IAgoraLog.ts +7 -3
- package/ts/Private/IAgoraMediaEngine.ts +89 -45
- package/ts/Private/IAgoraMediaPlayer.ts +173 -80
- package/ts/Private/IAgoraMediaPlayerSource.ts +17 -8
- package/ts/Private/IAgoraMusicContentCenter.ts +29 -4
- package/ts/Private/IAgoraRtcEngine.ts +1870 -852
- package/ts/Private/IAgoraRtcEngineEx.ts +312 -153
- package/ts/Private/IAgoraSpatialAudio.ts +98 -40
- package/ts/Private/IAudioDeviceManager.ts +75 -31
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +12 -6
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +72 -21
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +155 -15
- package/ts/Private/internal/IrisApiEngine.ts +14 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +4 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +43 -13
- package/ts/Private/ti/AgoraMediaBase-ti.ts +13 -13
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +3 -2
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -2
- package/ts/Renderer/WebGLRenderer/index.ts +26 -21
- package/ts/Renderer/YUVCanvasRenderer/index.ts +1 -1
- package/types/AgoraSdk.d.ts +3 -1
- package/types/AgoraSdk.d.ts.map +1 -1
- package/types/Private/AgoraBase.d.ts +487 -189
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +121 -69
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +10 -7
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +7 -3
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +89 -45
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +173 -80
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +17 -8
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts +22 -6
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +1855 -850
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +312 -153
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +98 -40
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +75 -31
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +2 -2
- package/types/Private/impl/IAgoraMediaEngineImpl.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 -4
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +1 -0
- package/types/Private/internal/MusicContentCenterInternal.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/types/Renderer/WebGLRenderer/index.d.ts +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [4.2.2-build.1-dev.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.2-dev.7...v4.2.2-build.1-dev.1) (2023-08-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support native 4.2.2.1 ([0319497](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/03194974fef67a4183c7616d883fb562afd73084))
|
|
9
|
+
|
|
10
|
+
## [4.2.2-dev.7](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.2...v4.2.2-dev.7) (2023-08-04)
|
|
11
|
+
|
|
12
|
+
## [4.2.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.1...v4.2.2) (2023-08-01)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* CSD-57615 render mode not working on software renderer ([1097ebc](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/1097ebcdf21cb6f5c66821174e8f46ec470976db))
|
|
18
|
+
* CSD-57699 removeEventListener `webglcontextlost` while unbind ([2a280c8](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/2a280c87242fe3abecb61bc23ffb0996029d6fec))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* support native 4.2.2 ([#1033](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1033)) ([f151e69](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/f151e69abf22286eb5fbec3bcee8f703188c7515))
|
|
24
|
+
|
|
25
|
+
## [4.2.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.0...v4.2.1) (2023-06-30)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* support native 4.2.1 ([#1029](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1029)) ([31ca560](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/31ca560bcd6434c4d3badad1b2e8d40eaae8be36))
|
|
31
|
+
|
|
3
32
|
# [4.2.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.0-rc.6...v4.2.0) (2023-05-26)
|
|
4
33
|
|
|
5
34
|
# [4.2.0-rc.6](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.1-rc.1...v4.2.0-rc.6) (2023-05-25)
|
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");
|