agora-electron-sdk 4.1.1-rc.1 → 4.2.0-dev.5

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 (277) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +143 -143
  3. package/gulpfile.js +5 -4
  4. package/js/AgoraSdk.d.ts +36 -36
  5. package/js/AgoraSdk.js +60 -60
  6. package/js/Private/AgoraBase.d.ts +4441 -4358
  7. package/js/Private/AgoraBase.js +3413 -3269
  8. package/js/Private/AgoraMediaBase.d.ts +1124 -1070
  9. package/js/Private/AgoraMediaBase.js +660 -564
  10. package/js/Private/AgoraMediaPlayerTypes.d.ts +408 -408
  11. package/js/Private/AgoraMediaPlayerTypes.js +310 -310
  12. package/js/Private/IAgoraLog.d.ts +80 -80
  13. package/js/Private/IAgoraLog.js +74 -74
  14. package/js/Private/IAgoraMediaEngine.d.ts +183 -193
  15. package/js/Private/IAgoraMediaEngine.js +32 -32
  16. package/js/Private/IAgoraMediaPlayer.d.ts +532 -546
  17. package/js/Private/IAgoraMediaPlayer.js +16 -16
  18. package/js/Private/IAgoraMediaPlayerSource.d.ts +82 -88
  19. package/js/Private/IAgoraMediaPlayerSource.js +3 -3
  20. package/js/Private/IAgoraMediaRecorder.d.ts +28 -49
  21. package/js/Private/IAgoraMediaRecorder.js +12 -12
  22. package/js/Private/IAgoraMediaStreamingSource.d.ts +41 -0
  23. package/js/Private/IAgoraMediaStreamingSource.js +74 -0
  24. package/js/Private/IAgoraMusicContentCenter.d.ts +335 -255
  25. package/js/Private/IAgoraMusicContentCenter.js +135 -81
  26. package/js/Private/IAgoraRhythmPlayer.d.ts +64 -64
  27. package/js/Private/IAgoraRhythmPlayer.js +62 -62
  28. package/js/Private/IAgoraRtcEngine.d.ts +4947 -5058
  29. package/js/Private/IAgoraRtcEngine.js +964 -948
  30. package/js/Private/IAgoraRtcEngineEx.d.ts +553 -570
  31. package/js/Private/IAgoraRtcEngineEx.js +18 -18
  32. package/js/Private/IAgoraSpatialAudio.d.ts +265 -248
  33. package/js/Private/IAgoraSpatialAudio.js +30 -30
  34. package/js/Private/IAudioDeviceManager.d.ts +254 -233
  35. package/js/Private/IAudioDeviceManager.js +20 -20
  36. package/js/Private/extension/AgoraBaseExtension.d.ts +1 -1
  37. package/js/Private/extension/AgoraBaseExtension.js +2 -2
  38. package/js/Private/extension/AgoraMediaBaseExtension.d.ts +1 -1
  39. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
  40. package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +1 -1
  41. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
  42. package/js/Private/extension/IAgoraLogExtension.d.ts +1 -1
  43. package/js/Private/extension/IAgoraLogExtension.js +2 -2
  44. package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -40
  45. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
  46. package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -46
  47. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
  48. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +1 -1
  49. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
  50. package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -40
  51. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
  52. package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -20
  53. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
  54. package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +1 -1
  55. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
  56. package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +1 -1
  57. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
  58. package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -42
  59. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
  60. package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +1 -1
  61. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
  62. package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +1 -1
  63. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
  64. package/js/Private/impl/AgoraBaseImpl.d.ts +2 -2
  65. package/js/Private/impl/AgoraBaseImpl.js +23 -23
  66. package/js/Private/impl/AgoraMediaBaseImpl.d.ts +8 -7
  67. package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
  68. package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +39 -43
  69. package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
  70. package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +140 -141
  71. package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
  72. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +2 -2
  73. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
  74. package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +10 -13
  75. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
  76. package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +58 -51
  77. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
  78. package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +105 -101
  79. package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
  80. package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  81. package/js/Private/impl/IAgoraRtcEngineImpl.js +4751 -4702
  82. package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +48 -48
  83. package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
  84. package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +64 -64
  85. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
  86. package/js/Private/internal/AudioDeviceManagerInternal.d.ts +8 -8
  87. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
  88. package/js/Private/internal/IrisApiEngine.d.ts +147 -146
  89. package/js/Private/internal/IrisApiEngine.js +396 -382
  90. package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +18 -18
  91. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
  92. package/js/Private/internal/MediaEngineInternal.d.ts +21 -21
  93. package/js/Private/internal/MediaEngineInternal.js +123 -123
  94. package/js/Private/internal/MediaPlayerInternal.d.ts +33 -33
  95. package/js/Private/internal/MediaPlayerInternal.js +213 -213
  96. package/js/Private/internal/MediaRecorderInternal.d.ts +17 -15
  97. package/js/Private/internal/MediaRecorderInternal.js +82 -81
  98. package/js/Private/internal/MusicContentCenterInternal.d.ts +39 -39
  99. package/js/Private/internal/MusicContentCenterInternal.js +130 -130
  100. package/js/Private/internal/RtcEngineExInternal.d.ts +80 -73
  101. package/js/Private/internal/RtcEngineExInternal.js +437 -363
  102. package/js/Private/internal/emitter/EventEmitter.d.ts +59 -59
  103. package/js/Private/internal/emitter/EventEmitter.js +111 -111
  104. package/js/Private/ti/AgoraBase-ti.d.ts +7 -7
  105. package/js/Private/ti/AgoraBase-ti.js +40 -40
  106. package/js/Private/ti/AgoraMediaBase-ti.d.ts +13 -12
  107. package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
  108. package/js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +6 -6
  109. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
  110. package/js/Private/ti/IAgoraLog-ti.d.ts +6 -6
  111. package/js/Private/ti/IAgoraLog-ti.js +5 -5
  112. package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +6 -6
  113. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
  114. package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +7 -8
  115. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
  116. package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +7 -7
  117. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
  118. package/js/Private/ti/IAgoraMediaRecorder-ti.d.ts +6 -6
  119. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
  120. package/js/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +6 -0
  121. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  122. package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +7 -7
  123. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
  124. package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +6 -6
  125. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
  126. package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +9 -9
  127. package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
  128. package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +6 -6
  129. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
  130. package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +6 -6
  131. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
  132. package/js/Private/ti/IAudioDeviceManager-ti.d.ts +6 -6
  133. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
  134. package/js/Renderer/AgoraView.d.ts +69 -70
  135. package/js/Renderer/AgoraView.js +131 -131
  136. package/js/Renderer/GlRenderer/index.d.ts +59 -59
  137. package/js/Renderer/GlRenderer/index.js +475 -473
  138. package/js/Renderer/GlRenderer/webgl-utils.js +1337 -1337
  139. package/js/Renderer/IRenderer.d.ts +21 -21
  140. package/js/Renderer/IRenderer.js +47 -48
  141. package/js/Renderer/RendererManager.d.ts +152 -71
  142. package/js/Renderer/RendererManager.js +463 -392
  143. package/js/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  144. package/js/Renderer/YUVCanvasRenderer/index.js +194 -185
  145. package/js/Types.d.ts +271 -260
  146. package/js/Types.js +17 -29
  147. package/js/Utils.d.ts +58 -58
  148. package/js/Utils.js +170 -173
  149. package/package.json +128 -66
  150. package/scripts/bootstrap.js +1 -1
  151. package/scripts/build.js +1 -0
  152. package/scripts/buildJS.js +2 -1
  153. package/scripts/clean.js +2 -1
  154. package/scripts/downloadPrebuild.js +5 -5
  155. package/scripts/getConfig.js +3 -1
  156. package/scripts/synclib.js +8 -5
  157. package/scripts/util.js +3 -2
  158. package/scripts/zipBuild.js +2 -1
  159. package/ts/AgoraSdk.ts +4 -4
  160. package/ts/Private/AgoraBase.ts +264 -173
  161. package/ts/Private/AgoraMediaBase.ts +167 -100
  162. package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
  163. package/ts/Private/IAgoraMediaEngine.ts +43 -56
  164. package/ts/Private/IAgoraMediaPlayer.ts +49 -63
  165. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
  166. package/ts/Private/IAgoraMediaRecorder.ts +8 -35
  167. package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
  168. package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
  169. package/ts/Private/IAgoraRtcEngine.ts +794 -895
  170. package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
  171. package/ts/Private/IAgoraSpatialAudio.ts +40 -22
  172. package/ts/Private/IAudioDeviceManager.ts +35 -13
  173. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
  174. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
  175. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
  176. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
  177. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
  178. package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
  179. package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
  180. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
  181. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +38 -38
  182. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
  183. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
  184. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
  185. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +441 -351
  186. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
  187. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
  188. package/ts/Private/internal/AudioDeviceManagerInternal.ts +2 -1
  189. package/ts/Private/internal/IrisApiEngine.ts +41 -28
  190. package/ts/Private/internal/MediaEngineInternal.ts +2 -4
  191. package/ts/Private/internal/MediaPlayerInternal.ts +25 -20
  192. package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
  193. package/ts/Private/internal/MusicContentCenterInternal.ts +3 -7
  194. package/ts/Private/internal/RtcEngineExInternal.ts +129 -24
  195. package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
  196. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
  197. package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
  198. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
  199. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
  200. package/ts/Renderer/AgoraView.ts +11 -7
  201. package/ts/Renderer/GlRenderer/index.ts +10 -6
  202. package/ts/Renderer/IRenderer.ts +3 -2
  203. package/ts/Renderer/RendererManager.ts +139 -75
  204. package/ts/Renderer/YUVCanvasRenderer/index.ts +33 -15
  205. package/ts/Types.ts +28 -17
  206. package/ts/Utils.ts +3 -6
  207. package/types/AgoraSdk.d.ts +36 -36
  208. package/types/Private/AgoraBase.d.ts +4441 -4358
  209. package/types/Private/AgoraMediaBase.d.ts +1124 -1070
  210. package/types/Private/AgoraMediaPlayerTypes.d.ts +408 -408
  211. package/types/Private/IAgoraLog.d.ts +80 -80
  212. package/types/Private/IAgoraMediaEngine.d.ts +183 -193
  213. package/types/Private/IAgoraMediaPlayer.d.ts +532 -546
  214. package/types/Private/IAgoraMediaPlayerSource.d.ts +82 -88
  215. package/types/Private/IAgoraMediaRecorder.d.ts +28 -49
  216. package/types/Private/IAgoraMediaStreamingSource.d.ts +41 -0
  217. package/types/Private/IAgoraMusicContentCenter.d.ts +335 -255
  218. package/types/Private/IAgoraRhythmPlayer.d.ts +64 -64
  219. package/types/Private/IAgoraRtcEngine.d.ts +4947 -5058
  220. package/types/Private/IAgoraRtcEngineEx.d.ts +553 -570
  221. package/types/Private/IAgoraSpatialAudio.d.ts +265 -248
  222. package/types/Private/IAudioDeviceManager.d.ts +254 -233
  223. package/types/Private/extension/AgoraBaseExtension.d.ts +1 -1
  224. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +1 -1
  225. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +1 -1
  226. package/types/Private/extension/IAgoraLogExtension.d.ts +1 -1
  227. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -40
  228. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -46
  229. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +1 -1
  230. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -40
  231. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -20
  232. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +1 -1
  233. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +1 -1
  234. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -42
  235. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +1 -1
  236. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +1 -1
  237. package/types/Private/impl/AgoraBaseImpl.d.ts +2 -2
  238. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +8 -7
  239. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +39 -43
  240. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +140 -141
  241. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +2 -2
  242. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +10 -13
  243. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +58 -51
  244. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +105 -101
  245. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  246. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +48 -48
  247. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +64 -64
  248. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +8 -8
  249. package/types/Private/internal/IrisApiEngine.d.ts +147 -146
  250. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +18 -18
  251. package/types/Private/internal/MediaEngineInternal.d.ts +21 -21
  252. package/types/Private/internal/MediaPlayerInternal.d.ts +33 -33
  253. package/types/Private/internal/MediaRecorderInternal.d.ts +17 -15
  254. package/types/Private/internal/MusicContentCenterInternal.d.ts +39 -39
  255. package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
  256. package/types/Private/ti/AgoraBase-ti.d.ts +7 -7
  257. package/types/Private/ti/AgoraMediaBase-ti.d.ts +13 -12
  258. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +6 -6
  259. package/types/Private/ti/IAgoraLog-ti.d.ts +6 -6
  260. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +6 -6
  261. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +7 -8
  262. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +7 -7
  263. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +6 -6
  264. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +6 -0
  265. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +7 -7
  266. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +6 -6
  267. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +9 -9
  268. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +6 -6
  269. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +6 -6
  270. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +6 -6
  271. package/types/Renderer/AgoraView.d.ts +69 -70
  272. package/types/Renderer/GlRenderer/index.d.ts +59 -59
  273. package/types/Renderer/IRenderer.d.ts +21 -21
  274. package/types/Renderer/RendererManager.d.ts +152 -71
  275. package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  276. package/types/Types.d.ts +271 -260
  277. package/types/Utils.d.ts +58 -58
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Agora.io Community
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Agora.io Community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,143 +1,143 @@
1
- > NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
2
- > - [3.x](https://github.com/AgoraIO-Extensions/Electron-SDK/tree/3.x)
3
-
4
- # Agora RTC SDK for Electron
5
-
6
- <div align="left">
7
- <a href="https://github.com/AgoraIO-Extensions/Electron-SDK"><img src="https://img.shields.io/badge/Platform-macOS--x86--64%20%7C%20macOS--arm64%20%7C%20win--32%20%7C%20win--64-blue?logo=Electron&labelColor=fff" alt="Platform"/></a>
8
- <a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/v/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
9
- <a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/dm/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
10
- <a href="./LICENSE"><img src="https://img.shields.io/github/license/agoraio-extensions/electron-sdk?color=blue&style=flat-square" alt="License"/></a>
11
- <a href="https://github.com/AgoraIO-Extensions/Electron-SDK/issues"><img src="https://flat.badgen.net/github/label-issues/AgoraIO-Extensions/Electron-SDK/help%20wanted/open" alt="License"/></a>
12
- </div>
13
-
14
- ## ✨ Features
15
-
16
- - 📦 Newly designed middle-tier API and Native C++ SDK.
17
- - 🛡 Written in TypeScript with predictable static types.
18
-
19
- ## 🖥 Environment Support
20
-
21
- - 🌈 Support macOS x86-64 and arm64 ([Electron 11+](https://www.electronjs.org/zh/blog/apple-silicon))
22
- - ⚙️ Support Windows ia32 and x64
23
- - [Electron](https://www.electronjs.org/): 4.x ~ latest
24
-
25
- | [<img src="https://simpleicons.org/icons/macos.svg" alt="Chrome" width="48px" height="24px" />]()<br>macOS | [<img src="https://simpleicons.org/icons/windows.svg" alt="Safari" width="24px" height="24px" />]()<br>Windows | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron |
26
- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
- | x86 \| arm64 | ia32 \| x64 | 4.0.0 ~ Latest |
28
-
29
- ## 📦 Install
30
-
31
- In newest version you can define installation configuration in package.json (or .npmrc, while package.json has a higher
32
- priority), usually you can just provide "prebuilt", and "arch".
33
-
34
- ```json
35
- // package.json
36
- {
37
- ...
38
- "agora_electron": {
39
- "prebuilt": true,
40
- "arch": "x64"
41
- }
42
- ...
43
- }
44
-
45
-
46
- // .npmrc
47
- agora_electron_sdk_pre_built=true // defalut value is true
48
- agora_electron_sdk_arch=x64 // only support windows:
49
- ```
50
-
51
- Properties detail:
52
-
53
- - **prebuilt** whether to automatically download prebuilt NodeJS C++ Addon or build locally(which need to provide
54
- development env)
55
- - **arch**: If not set, the script will automatically choose the arch. **only support windows**
56
- - **platform** darwin or win32
57
-
58
- ```bash
59
- ## Automatic platform and architecture selection
60
- npm install agora-electron-sdk
61
- ```
62
-
63
- or
64
-
65
- ```bash
66
- ## or select 32 bit architecture on Windows
67
- npm install --agora_electron_sdk_arch=ia32
68
-
69
- ## or select 64 bit architecture on Windows
70
- npm install --agora_electron_sdk_arch=x64
71
- ```
72
-
73
- ## 🔨 Usage
74
-
75
- ```javascript
76
- import createAgoraRtcEngine from "agora-electron-sdk";
77
-
78
- const rtcEngine = createAgoraRtcEngine();
79
- rtcEngine.initialize({appId: "<your agora app id>"});
80
- ```
81
-
82
- ### When using without electron-webpack
83
-
84
- When using directly within a web electron project with custom webpack configuration, you may see errors when compiling.
85
- It's because you have not properly configured loader for node addon. A convenient way to skip the compile process is to
86
- set `externals` property of your webpack config to `{"agora-electron-sdk": "commonjs2 agora-electron-sdk"}`
87
-
88
- ## 🔗 Links
89
-
90
- - [Document](https://docs.agora.io/en/video-call-4.x/API%20Reference/electron_ng/API/rtc_api_overview_ng.html) - Official document
91
-
92
- - [Demo](./example/) - A quick start demo based on Vue/React and this repo
93
-
94
- - [Changelog](./CHANGELOG.md) - Attention to newest information
95
-
96
- - [Release Notes](https://docs.agora.io/en/video-call-4.x/release_electron_ng?platform=Electron) - Attention to newest
97
- information
98
-
99
- ## ⌨️ Development
100
-
101
- ### Build From Source Code
102
-
103
- You will need to build **Agora RTC Electron SDK** from source if you want to work on a new feature/bug fix, try out the
104
- latest features which are not released yet, or maintain your own fork with patches that cannot be merged to the core.
105
-
106
- ### Prerequisites
107
-
108
- #### Windows
109
-
110
- - Python 2.7
111
- - Visual Studio Code C++ Desktop Develop Framework
112
-
113
- #### MacOS
114
-
115
- - Python 2.7
116
- - XCode
117
-
118
- ### Clone locally:
119
-
120
- ```bash
121
- $ git clone git@github.com:AgoraIO-Extensions/Electron-SDK.git
122
- $ cd Electron-SDK
123
- $ npm install #or yarn
124
-
125
- # build macOS
126
- $ npm install --agora_electron_sdk_pre_built=false
127
-
128
- # build 32 bit architecture on Windows
129
- $ npm install --verbose --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=ia32
130
-
131
- # build 64 bit architecture on Windows
132
- $ npm install --verbose --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=x64
133
- ```
134
-
135
- ## 🤝 Contributing [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/AgoraIO-Extensions/Electron-SDK/pulls)
136
-
137
- Read our contributing guide and let's build a better antd together. :)
138
-
139
- 1. Fork the Project
140
- 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
141
- 3. Commit your Changes (`git commit -m 'Add some AmazingFeature`)
142
- 4. Push to the Branch (`git push origin feature/AmazingFeature`)
143
- 5. Open a Pull Request
1
+ > NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
2
+ > - [3.x](https://github.com/AgoraIO-Extensions/Electron-SDK/tree/3.x)
3
+
4
+ # Agora RTC SDK for Electron
5
+
6
+ <div align="left">
7
+ <a href="https://github.com/AgoraIO-Extensions/Electron-SDK"><img src="https://img.shields.io/badge/Platform-macOS--x86--64%20%7C%20macOS--arm64%20%7C%20win--32%20%7C%20win--64-blue?logo=Electron&labelColor=fff" alt="Platform"/></a>
8
+ <a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/v/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
9
+ <a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/dm/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
10
+ <a href="./LICENSE"><img src="https://img.shields.io/github/license/agoraio-extensions/electron-sdk?color=blue&style=flat-square" alt="License"/></a>
11
+ <a href="https://github.com/AgoraIO-Extensions/Electron-SDK/issues"><img src="https://flat.badgen.net/github/label-issues/AgoraIO-Extensions/Electron-SDK/help%20wanted/open" alt="License"/></a>
12
+ </div>
13
+
14
+ ## ✨ Features
15
+
16
+ - 📦 Newly designed middle-tier API and Native C++ SDK.
17
+ - 🛡 Written in TypeScript with predictable static types.
18
+
19
+ ## 🖥 Environment Support
20
+
21
+ - 🌈 Support macOS x86-64 and arm64 ([Electron 11+](https://www.electronjs.org/zh/blog/apple-silicon))
22
+ - ⚙️ Support Windows ia32 and x64
23
+ - [Electron](https://www.electronjs.org/): 4.x ~ latest
24
+
25
+ | [<img src="https://simpleicons.org/icons/macos.svg" alt="Chrome" width="48px" height="24px" />]()<br>macOS | [<img src="https://simpleicons.org/icons/windows.svg" alt="Safari" width="24px" height="24px" />]()<br>Windows | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron |
26
+ | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
+ | x86 \| arm64 | ia32 \| x64 | 4.0.0 ~ Latest |
28
+
29
+ ## 📦 Install
30
+
31
+ In newest version you can define installation configuration in package.json (or .npmrc, while package.json has a higher
32
+ priority), usually you can just provide "prebuilt", and "arch".
33
+
34
+ ```json
35
+ // package.json
36
+ {
37
+ ...
38
+ "agora_electron": {
39
+ "prebuilt": true,
40
+ "arch": "x64"
41
+ }
42
+ ...
43
+ }
44
+
45
+
46
+ // .npmrc
47
+ agora_electron_sdk_pre_built=true // defalut value is true
48
+ agora_electron_sdk_arch=x64 // only support windows:
49
+ ```
50
+
51
+ Properties detail:
52
+
53
+ - **prebuilt** whether to automatically download prebuilt NodeJS C++ Addon or build locally(which need to provide
54
+ development env)
55
+ - **arch**: If not set, the script will automatically choose the arch. **only support windows**
56
+ - **platform** darwin or win32
57
+
58
+ ```bash
59
+ ## Automatic platform and architecture selection
60
+ npm install agora-electron-sdk
61
+ ```
62
+
63
+ or
64
+
65
+ ```bash
66
+ ## or select 32 bit architecture on Windows
67
+ npm install --agora_electron_sdk_arch=ia32
68
+
69
+ ## or select 64 bit architecture on Windows
70
+ npm install --agora_electron_sdk_arch=x64
71
+ ```
72
+
73
+ ## 🔨 Usage
74
+
75
+ ```javascript
76
+ import createAgoraRtcEngine from "agora-electron-sdk";
77
+
78
+ const rtcEngine = createAgoraRtcEngine();
79
+ rtcEngine.initialize({appId: "<your agora app id>"});
80
+ ```
81
+
82
+ ### When using without electron-webpack
83
+
84
+ When using directly within a web electron project with custom webpack configuration, you may see errors when compiling.
85
+ It's because you have not properly configured loader for node addon. A convenient way to skip the compile process is to
86
+ set `externals` property of your webpack config to `{"agora-electron-sdk": "commonjs2 agora-electron-sdk"}`
87
+
88
+ ## 🔗 Links
89
+
90
+ - [Document](https://docs.agora.io/en/video-call-4.x/API%20Reference/electron_ng/API/rtc_api_overview_ng.html) - Official document
91
+
92
+ - [Demo](./example/) - A quick start demo based on Vue/React and this repo
93
+
94
+ - [Changelog](./CHANGELOG.md) - Attention to newest information
95
+
96
+ - [Release Notes](https://docs.agora.io/en/video-call-4.x/release_electron_ng?platform=Electron) - Attention to newest
97
+ information
98
+
99
+ ## ⌨️ Development
100
+
101
+ ### Build From Source Code
102
+
103
+ You will need to build **Agora RTC Electron SDK** from source if you want to work on a new feature/bug fix, try out the
104
+ latest features which are not released yet, or maintain your own fork with patches that cannot be merged to the core.
105
+
106
+ ### Prerequisites
107
+
108
+ #### Windows
109
+
110
+ - Python 2.7
111
+ - Visual Studio Code C++ Desktop Develop Framework
112
+
113
+ #### MacOS
114
+
115
+ - Python 2.7
116
+ - XCode
117
+
118
+ ### Clone locally:
119
+
120
+ ```bash
121
+ $ git clone git@github.com:AgoraIO-Extensions/Electron-SDK.git
122
+ $ cd Electron-SDK
123
+ $ npm install #or yarn
124
+
125
+ # build macOS
126
+ $ npm install --agora_electron_sdk_pre_built=false
127
+
128
+ # build 32 bit architecture on Windows
129
+ $ npm install --verbose --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=ia32
130
+
131
+ # build 64 bit architecture on Windows
132
+ $ npm install --verbose --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=x64
133
+ ```
134
+
135
+ ## 🤝 Contributing [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/AgoraIO-Extensions/Electron-SDK/pulls)
136
+
137
+ Read our contributing guide and let's build a better antd together. :)
138
+
139
+ 1. Fork the Project
140
+ 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
141
+ 3. Commit your Changes (`git commit -m 'Add some AmazingFeature`)
142
+ 4. Push to the Branch (`git push origin feature/AmazingFeature`)
143
+ 5. Open a Pull Request
package/gulpfile.js CHANGED
@@ -1,11 +1,12 @@
1
1
  const gulp = require('gulp');
2
- const syncLib = require('./scripts/synclib');
2
+
3
3
  const build = require('./scripts/build');
4
- const getConfig = require('./scripts/getConfig');
5
- const downloadPrebuild = require('./scripts/downloadPrebuild');
6
- const { cleanBuildDir, cleanJSDir, cleanIrisDir } = require('./scripts/clean');
7
4
  const buildJS = require('./scripts/buildJS');
5
+ const { cleanBuildDir, cleanJSDir, cleanIrisDir } = require('./scripts/clean');
6
+ const downloadPrebuild = require('./scripts/downloadPrebuild');
7
+ const getConfig = require('./scripts/getConfig');
8
8
  const logger = require('./scripts/logger');
9
+ const syncLib = require('./scripts/synclib');
9
10
  const zipBuild = require('./scripts/zipBuild');
10
11
 
11
12
  const config = getConfig();
package/js/AgoraSdk.d.ts CHANGED
@@ -1,36 +1,36 @@
1
- import { IRtcEngineEx } from './Private/IAgoraRtcEngineEx';
2
- import { IMediaPlayerCacheManager } from './Private/IAgoraMediaPlayer';
3
- export * from './Private/AgoraBase';
4
- export * from './Private/AgoraMediaBase';
5
- export * from './Private/AgoraMediaPlayerTypes';
6
- export * from './Private/IAgoraLog';
7
- export * from './Private/IAgoraMediaEngine';
8
- export * from './Private/IAgoraMediaPlayer';
9
- export * from './Private/IAgoraMediaPlayerSource';
10
- export * from './Private/IAgoraMediaRecorder';
11
- export * from './Private/IAgoraMusicContentCenter';
12
- export * from './Private/IAgoraRhythmPlayer';
13
- export * from './Private/IAgoraRtcEngine';
14
- export * from './Private/IAgoraRtcEngineEx';
15
- export * from './Private/IAgoraSpatialAudio';
16
- export * from './Private/IAudioDeviceManager';
17
- export * from './Renderer/RendererManager';
18
- export * from './Types';
19
- export * from './Utils';
20
- /**
21
- * Creates an IRtcEngine object.
22
- * Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngine object for each app.
23
- *
24
- * @returns
25
- * One IRtcEngine object.
26
- */
27
- export declare function createAgoraRtcEngine(): IRtcEngineEx;
28
- /**
29
- * Gets an IMediaPlayerCacheManager instance.
30
- * Make sure the IRtcEngine is initialized before you call this method.
31
- *
32
- * @returns
33
- * The IMediaPlayerCacheManager instance.
34
- */
35
- export declare function getMediaPlayerCacheManager(): IMediaPlayerCacheManager;
36
- export default createAgoraRtcEngine;
1
+ import { IMediaPlayerCacheManager } from './Private/IAgoraMediaPlayer';
2
+ import { IRtcEngineEx } from './Private/IAgoraRtcEngineEx';
3
+ export * from './Private/AgoraBase';
4
+ export * from './Private/AgoraMediaBase';
5
+ export * from './Private/AgoraMediaPlayerTypes';
6
+ export * from './Private/IAgoraLog';
7
+ export * from './Private/IAgoraMediaEngine';
8
+ export * from './Private/IAgoraMediaPlayer';
9
+ export * from './Private/IAgoraMediaPlayerSource';
10
+ export * from './Private/IAgoraMediaRecorder';
11
+ export * from './Private/IAgoraMusicContentCenter';
12
+ export * from './Private/IAgoraRhythmPlayer';
13
+ export * from './Private/IAgoraRtcEngine';
14
+ export * from './Private/IAgoraRtcEngineEx';
15
+ export * from './Private/IAgoraSpatialAudio';
16
+ export * from './Private/IAudioDeviceManager';
17
+ export * from './Renderer/RendererManager';
18
+ export * from './Types';
19
+ export * from './Utils';
20
+ /**
21
+ * Creates an IRtcEngine object.
22
+ * Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngine object for each app.
23
+ *
24
+ * @returns
25
+ * One IRtcEngine object.
26
+ */
27
+ export declare function createAgoraRtcEngine(): IRtcEngineEx;
28
+ /**
29
+ * Gets one IMediaPlayerCacheManager instance.
30
+ * 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.
31
+ *
32
+ * @returns
33
+ * The IMediaPlayerCacheManager instance.
34
+ */
35
+ export declare function getMediaPlayerCacheManager(): IMediaPlayerCacheManager;
36
+ export default createAgoraRtcEngine;
package/js/AgoraSdk.js CHANGED
@@ -1,60 +1,60 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getMediaPlayerCacheManager = exports.createAgoraRtcEngine = void 0;
18
- const RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
19
- const IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
20
- __exportStar(require("./Private/AgoraBase"), exports);
21
- __exportStar(require("./Private/AgoraMediaBase"), exports);
22
- __exportStar(require("./Private/AgoraMediaPlayerTypes"), exports);
23
- __exportStar(require("./Private/IAgoraLog"), exports);
24
- __exportStar(require("./Private/IAgoraMediaEngine"), exports);
25
- __exportStar(require("./Private/IAgoraMediaPlayer"), exports);
26
- __exportStar(require("./Private/IAgoraMediaPlayerSource"), exports);
27
- __exportStar(require("./Private/IAgoraMediaRecorder"), exports);
28
- __exportStar(require("./Private/IAgoraMusicContentCenter"), exports);
29
- __exportStar(require("./Private/IAgoraRhythmPlayer"), exports);
30
- __exportStar(require("./Private/IAgoraRtcEngine"), exports);
31
- __exportStar(require("./Private/IAgoraRtcEngineEx"), exports);
32
- __exportStar(require("./Private/IAgoraSpatialAudio"), exports);
33
- __exportStar(require("./Private/IAudioDeviceManager"), exports);
34
- __exportStar(require("./Renderer/RendererManager"), exports);
35
- __exportStar(require("./Types"), exports);
36
- __exportStar(require("./Utils"), exports);
37
- const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
38
- /**
39
- * Creates an IRtcEngine object.
40
- * Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngine object for each app.
41
- *
42
- * @returns
43
- * One IRtcEngine object.
44
- */
45
- function createAgoraRtcEngine() {
46
- return instance;
47
- }
48
- exports.createAgoraRtcEngine = createAgoraRtcEngine;
49
- /**
50
- * Gets an IMediaPlayerCacheManager instance.
51
- * Make sure the IRtcEngine is initialized before you call this method.
52
- *
53
- * @returns
54
- * The IMediaPlayerCacheManager instance.
55
- */
56
- function getMediaPlayerCacheManager() {
57
- return new IAgoraMediaPlayerImpl_1.IMediaPlayerCacheManagerImpl();
58
- }
59
- exports.getMediaPlayerCacheManager = getMediaPlayerCacheManager;
60
- exports.default = createAgoraRtcEngine;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.getMediaPlayerCacheManager = exports.createAgoraRtcEngine = void 0;
18
+ const IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
19
+ const RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
20
+ __exportStar(require("./Private/AgoraBase"), exports);
21
+ __exportStar(require("./Private/AgoraMediaBase"), exports);
22
+ __exportStar(require("./Private/AgoraMediaPlayerTypes"), exports);
23
+ __exportStar(require("./Private/IAgoraLog"), exports);
24
+ __exportStar(require("./Private/IAgoraMediaEngine"), exports);
25
+ __exportStar(require("./Private/IAgoraMediaPlayer"), exports);
26
+ __exportStar(require("./Private/IAgoraMediaPlayerSource"), exports);
27
+ __exportStar(require("./Private/IAgoraMediaRecorder"), exports);
28
+ __exportStar(require("./Private/IAgoraMusicContentCenter"), exports);
29
+ __exportStar(require("./Private/IAgoraRhythmPlayer"), exports);
30
+ __exportStar(require("./Private/IAgoraRtcEngine"), exports);
31
+ __exportStar(require("./Private/IAgoraRtcEngineEx"), exports);
32
+ __exportStar(require("./Private/IAgoraSpatialAudio"), exports);
33
+ __exportStar(require("./Private/IAudioDeviceManager"), exports);
34
+ __exportStar(require("./Renderer/RendererManager"), exports);
35
+ __exportStar(require("./Types"), exports);
36
+ __exportStar(require("./Utils"), exports);
37
+ const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
38
+ /**
39
+ * Creates an IRtcEngine object.
40
+ * Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngine object for each app.
41
+ *
42
+ * @returns
43
+ * One IRtcEngine object.
44
+ */
45
+ function createAgoraRtcEngine() {
46
+ return instance;
47
+ }
48
+ exports.createAgoraRtcEngine = createAgoraRtcEngine;
49
+ /**
50
+ * Gets one IMediaPlayerCacheManager instance.
51
+ * 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.
52
+ *
53
+ * @returns
54
+ * The IMediaPlayerCacheManager instance.
55
+ */
56
+ function getMediaPlayerCacheManager() {
57
+ return new IAgoraMediaPlayerImpl_1.IMediaPlayerCacheManagerImpl();
58
+ }
59
+ exports.getMediaPlayerCacheManager = getMediaPlayerCacheManager;
60
+ exports.default = createAgoraRtcEngine;