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