agora-electron-sdk 4.2.0-rc.6 → 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.
Files changed (104) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/js/AgoraSdk.js +7 -5
  3. package/js/Private/AgoraBase.js +394 -1292
  4. package/js/Private/AgoraMediaBase.js +76 -340
  5. package/js/Private/AgoraMediaPlayerTypes.js +25 -122
  6. package/js/Private/IAgoraLog.js +5 -14
  7. package/js/Private/IAgoraMediaEngine.js +5 -2
  8. package/js/Private/IAgoraMediaPlayer.js +10 -4
  9. package/js/Private/IAgoraMediaRecorder.js +5 -2
  10. package/js/Private/IAgoraMediaStreamingSource.js +5 -12
  11. package/js/Private/IAgoraMusicContentCenter.js +68 -125
  12. package/js/Private/IAgoraRhythmPlayer.js +5 -10
  13. package/js/Private/IAgoraRtcEngine.js +141 -932
  14. package/js/Private/IAgoraRtcEngineEx.js +29 -13
  15. package/js/Private/IAgoraSpatialAudio.js +40 -53
  16. package/js/Private/IAudioDeviceManager.js +5 -2
  17. package/js/Private/impl/IAgoraMediaEngineImpl.js +156 -139
  18. package/js/Private/impl/IAgoraMediaPlayerImpl.js +538 -526
  19. package/js/Private/impl/IAgoraMediaRecorderImpl.js +29 -26
  20. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +264 -192
  21. package/js/Private/impl/IAgoraRtcEngineExImpl.js +419 -399
  22. package/js/Private/impl/IAgoraRtcEngineImpl.js +2352 -2207
  23. package/js/Private/impl/IAgoraSpatialAudioImpl.js +192 -169
  24. package/js/Private/impl/IAudioDeviceManagerImpl.js +235 -232
  25. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -24
  26. package/js/Private/internal/IrisApiEngine.js +109 -76
  27. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +49 -29
  28. package/js/Private/internal/MediaEngineInternal.js +82 -58
  29. package/js/Private/internal/MediaPlayerInternal.js +132 -111
  30. package/js/Private/internal/MediaRecorderInternal.js +64 -38
  31. package/js/Private/internal/MusicContentCenterInternal.js +130 -100
  32. package/js/Private/internal/RtcEngineExInternal.js +265 -219
  33. package/js/Private/ti/AgoraBase-ti.js +2 -2
  34. package/js/Private/ti/AgoraMediaBase-ti.js +15 -15
  35. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  36. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  37. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  38. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  39. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  40. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  41. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  42. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +5 -4
  43. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  44. package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
  45. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  46. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  47. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  48. package/js/Renderer/AgoraView.js +145 -100
  49. package/js/Renderer/IRenderer.js +18 -17
  50. package/js/Renderer/IRendererManager.js +5 -2
  51. package/js/Renderer/RendererManager.js +208 -180
  52. package/js/Renderer/WebGLRenderer/index.js +111 -107
  53. package/js/Renderer/YUVCanvasRenderer/index.js +68 -51
  54. package/js/Utils.js +85 -36
  55. package/package.json +3 -3
  56. package/ts/AgoraSdk.ts +3 -1
  57. package/ts/Private/AgoraBase.ts +227 -86
  58. package/ts/Private/AgoraMediaBase.ts +69 -54
  59. package/ts/Private/AgoraMediaPlayerTypes.ts +4 -4
  60. package/ts/Private/IAgoraLog.ts +1 -1
  61. package/ts/Private/IAgoraMediaEngine.ts +42 -39
  62. package/ts/Private/IAgoraMediaPlayer.ts +98 -67
  63. package/ts/Private/IAgoraMediaPlayerSource.ts +15 -8
  64. package/ts/Private/IAgoraMusicContentCenter.ts +25 -4
  65. package/ts/Private/IAgoraRtcEngine.ts +951 -747
  66. package/ts/Private/IAgoraRtcEngineEx.ts +183 -157
  67. package/ts/Private/IAgoraSpatialAudio.ts +55 -32
  68. package/ts/Private/IAudioDeviceManager.ts +39 -25
  69. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +72 -21
  70. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +136 -15
  71. package/ts/Private/internal/RtcEngineExInternal.ts +8 -0
  72. package/ts/Private/ti/AgoraMediaBase-ti.ts +13 -13
  73. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +3 -2
  74. package/types/AgoraSdk.d.ts +3 -1
  75. package/types/AgoraSdk.d.ts.map +1 -1
  76. package/types/Private/AgoraBase.d.ts +221 -86
  77. package/types/Private/AgoraBase.d.ts.map +1 -1
  78. package/types/Private/AgoraMediaBase.d.ts +69 -51
  79. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  80. package/types/Private/AgoraMediaPlayerTypes.d.ts +4 -4
  81. package/types/Private/IAgoraLog.d.ts +1 -1
  82. package/types/Private/IAgoraMediaEngine.d.ts +42 -39
  83. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
  84. package/types/Private/IAgoraMediaPlayer.d.ts +98 -67
  85. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
  86. package/types/Private/IAgoraMediaPlayerSource.d.ts +15 -8
  87. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
  88. package/types/Private/IAgoraMusicContentCenter.d.ts +17 -5
  89. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
  90. package/types/Private/IAgoraRtcEngine.d.ts +936 -744
  91. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  92. package/types/Private/IAgoraRtcEngineEx.d.ts +183 -157
  93. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  94. package/types/Private/IAgoraSpatialAudio.d.ts +55 -32
  95. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
  96. package/types/Private/IAudioDeviceManager.d.ts +39 -25
  97. package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
  98. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +9 -5
  99. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -1
  100. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +18 -6
  101. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  102. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  103. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  104. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
 
2
2
 
3
+ # [4.2.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.0-rc.6...v4.2.0) (2023-05-26)
4
+
3
5
  # [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)
4
6
 
5
7
 
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
- const RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
19
- const Utils_1 = require("./Utils");
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
- const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
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
- * 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
+ *
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
- const IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
64
+ var IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");