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

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 (358) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +143 -143
  3. package/gulpfile.js +5 -4
  4. package/js/AgoraSdk.js +62 -60
  5. package/js/Private/AgoraBase.js +4575 -3269
  6. package/js/Private/AgoraMediaBase.js +968 -564
  7. package/js/Private/AgoraMediaPlayerTypes.js +422 -310
  8. package/js/Private/IAgoraLog.js +86 -74
  9. package/js/Private/IAgoraMediaEngine.js +32 -32
  10. package/js/Private/IAgoraMediaPlayer.js +16 -16
  11. package/js/Private/IAgoraMediaPlayerSource.js +3 -3
  12. package/js/Private/IAgoraMediaRecorder.js +12 -12
  13. package/js/Private/IAgoraMediaStreamingSource.js +84 -0
  14. package/js/Private/IAgoraMusicContentCenter.js +239 -81
  15. package/js/Private/IAgoraRhythmPlayer.js +70 -62
  16. package/js/Private/IAgoraRtcEngine.js +1807 -948
  17. package/js/Private/IAgoraRtcEngineEx.js +26 -18
  18. package/js/Private/IAgoraSpatialAudio.js +74 -30
  19. package/js/Private/IAudioDeviceManager.js +20 -20
  20. package/js/Private/extension/AgoraBaseExtension.js +2 -2
  21. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
  22. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
  23. package/js/Private/extension/IAgoraLogExtension.js +2 -2
  24. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
  25. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
  26. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
  27. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
  28. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
  29. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
  30. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
  31. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
  32. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
  33. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
  34. package/js/Private/impl/AgoraBaseImpl.js +23 -23
  35. package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
  36. package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
  37. package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
  38. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
  39. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
  40. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
  41. package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
  42. package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
  43. package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
  44. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
  45. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
  46. package/js/Private/internal/IrisApiEngine.js +391 -382
  47. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
  48. package/js/Private/internal/MediaEngineInternal.js +119 -123
  49. package/js/Private/internal/MediaPlayerInternal.js +215 -213
  50. package/js/Private/internal/MediaRecorderInternal.js +82 -81
  51. package/js/Private/internal/MusicContentCenterInternal.js +128 -130
  52. package/js/Private/internal/RtcEngineExInternal.js +422 -363
  53. package/js/Private/internal/emitter/EventEmitter.js +111 -111
  54. package/js/Private/ti/AgoraBase-ti.js +40 -40
  55. package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
  56. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
  57. package/js/Private/ti/IAgoraLog-ti.js +5 -5
  58. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
  59. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
  60. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
  61. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
  62. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  63. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
  64. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
  65. package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
  66. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
  67. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
  68. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
  69. package/js/Renderer/AgoraView.js +128 -131
  70. package/js/Renderer/IRenderer.js +40 -48
  71. package/js/Renderer/IRendererManager.js +9 -0
  72. package/js/Renderer/RendererManager.js +479 -392
  73. package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
  74. package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
  75. package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
  76. package/js/Renderer/index.js +18 -0
  77. package/js/Types.js +17 -29
  78. package/js/Utils.js +168 -173
  79. package/package.json +61 -103
  80. package/scripts/bootstrap.js +1 -1
  81. package/scripts/build.js +1 -0
  82. package/scripts/buildJS.js +3 -3
  83. package/scripts/clean.js +2 -1
  84. package/scripts/downloadPrebuild.js +5 -5
  85. package/scripts/getConfig.js +3 -2
  86. package/scripts/synclib.js +8 -5
  87. package/scripts/util.js +3 -2
  88. package/scripts/zipBuild.js +2 -1
  89. package/ts/AgoraSdk.ts +9 -6
  90. package/ts/Private/AgoraBase.ts +278 -173
  91. package/ts/Private/AgoraMediaBase.ts +167 -100
  92. package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
  93. package/ts/Private/IAgoraMediaEngine.ts +43 -56
  94. package/ts/Private/IAgoraMediaPlayer.ts +90 -104
  95. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
  96. package/ts/Private/IAgoraMediaRecorder.ts +8 -35
  97. package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
  98. package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
  99. package/ts/Private/IAgoraRtcEngine.ts +807 -910
  100. package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
  101. package/ts/Private/IAgoraSpatialAudio.ts +40 -22
  102. package/ts/Private/IAudioDeviceManager.ts +35 -13
  103. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
  104. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
  105. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
  106. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
  107. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
  108. package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
  109. package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
  110. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
  111. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
  112. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
  113. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
  114. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
  115. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
  116. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
  117. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
  118. package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
  119. package/ts/Private/internal/IrisApiEngine.ts +41 -32
  120. package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
  121. package/ts/Private/internal/MediaEngineInternal.ts +9 -11
  122. package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
  123. package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
  124. package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
  125. package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
  126. package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
  127. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
  128. package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
  129. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
  130. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
  131. package/ts/Renderer/AgoraView.ts +12 -7
  132. package/ts/Renderer/IRenderer.ts +11 -16
  133. package/ts/Renderer/IRendererManager.ts +35 -0
  134. package/ts/Renderer/RendererManager.ts +146 -82
  135. package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
  136. package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
  137. package/ts/Renderer/index.ts +2 -0
  138. package/ts/Types.ts +43 -23
  139. package/ts/Utils.ts +7 -12
  140. package/types/AgoraSdk.d.ts +38 -36
  141. package/types/AgoraSdk.d.ts.map +1 -0
  142. package/types/Private/AgoraBase.d.ts +4455 -4358
  143. package/types/Private/AgoraBase.d.ts.map +1 -0
  144. package/types/Private/AgoraMediaBase.d.ts +1125 -1070
  145. package/types/Private/AgoraMediaBase.d.ts.map +1 -0
  146. package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
  147. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  148. package/types/Private/IAgoraLog.d.ts +81 -80
  149. package/types/Private/IAgoraLog.d.ts.map +1 -0
  150. package/types/Private/IAgoraMediaEngine.d.ts +184 -193
  151. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
  152. package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
  153. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  154. package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
  155. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  156. package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
  157. package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  158. package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
  159. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  160. package/types/Private/IAgoraMusicContentCenter.d.ts +336 -255
  161. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  162. package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
  163. package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  164. package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
  165. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
  166. package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
  167. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  168. package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
  169. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  170. package/types/Private/IAudioDeviceManager.d.ts +255 -233
  171. package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
  172. package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
  173. package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  174. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
  175. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  176. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
  177. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  178. package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
  179. package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  180. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
  181. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  182. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
  183. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  184. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
  185. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  186. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
  187. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  188. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
  189. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  190. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
  191. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  192. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
  193. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  194. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
  195. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  196. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
  197. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  198. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
  199. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  200. package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
  201. package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  202. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
  203. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  204. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
  205. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  206. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
  207. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  208. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
  209. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  210. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
  211. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  212. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
  213. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  214. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
  215. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  216. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  217. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  218. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
  219. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  220. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
  221. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  222. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
  223. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  224. package/types/Private/internal/IrisApiEngine.d.ts +148 -146
  225. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
  226. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
  227. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  228. package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
  229. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  230. package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
  231. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  232. package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
  233. package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  234. package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
  235. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  236. package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
  237. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  238. package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
  239. package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
  240. package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
  241. package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  242. package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
  243. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  244. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
  245. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  246. package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
  247. package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  248. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
  249. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  250. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
  251. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  252. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
  253. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  254. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
  255. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  256. package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
  257. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  258. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
  259. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  260. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
  261. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  262. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
  263. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  264. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
  265. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  266. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
  267. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  268. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
  269. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  270. package/types/Renderer/AgoraView.d.ts +70 -70
  271. package/types/Renderer/AgoraView.d.ts.map +1 -0
  272. package/types/Renderer/IRenderer.d.ts +22 -21
  273. package/types/Renderer/IRenderer.d.ts.map +1 -0
  274. package/types/Renderer/IRendererManager.d.ts +18 -0
  275. package/types/Renderer/IRendererManager.d.ts.map +1 -0
  276. package/types/Renderer/RendererManager.d.ts +154 -71
  277. package/types/Renderer/RendererManager.d.ts.map +1 -0
  278. package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
  279. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  280. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
  281. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  282. package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  283. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  284. package/types/Renderer/index.d.ts +3 -0
  285. package/types/Renderer/index.d.ts.map +1 -0
  286. package/types/Types.d.ts +280 -260
  287. package/types/Types.d.ts.map +1 -0
  288. package/types/Utils.d.ts +59 -58
  289. package/types/Utils.d.ts.map +1 -0
  290. package/js/AgoraSdk.d.ts +0 -36
  291. package/js/Private/AgoraBase.d.ts +0 -4358
  292. package/js/Private/AgoraMediaBase.d.ts +0 -1070
  293. package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
  294. package/js/Private/IAgoraLog.d.ts +0 -80
  295. package/js/Private/IAgoraMediaEngine.d.ts +0 -193
  296. package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
  297. package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
  298. package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
  299. package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
  300. package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
  301. package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
  302. package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
  303. package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
  304. package/js/Private/IAudioDeviceManager.d.ts +0 -233
  305. package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
  306. package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
  307. package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
  308. package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
  309. package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
  310. package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
  311. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
  312. package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
  313. package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
  314. package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
  315. package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
  316. package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
  317. package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
  318. package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
  319. package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
  320. package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
  321. package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
  322. package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
  323. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
  324. package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
  325. package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
  326. package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
  327. package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
  328. package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
  329. package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
  330. package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
  331. package/js/Private/internal/IrisApiEngine.d.ts +0 -146
  332. package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
  333. package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
  334. package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
  335. package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
  336. package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
  337. package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
  338. package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
  339. package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
  340. package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
  341. package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
  342. package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
  343. package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
  344. package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
  345. package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
  346. package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
  347. package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
  348. package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
  349. package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
  350. package/js/Renderer/AgoraView.d.ts +0 -70
  351. package/js/Renderer/GlRenderer/index.d.ts +0 -59
  352. package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
  353. package/js/Renderer/IRenderer.d.ts +0 -21
  354. package/js/Renderer/RendererManager.d.ts +0 -71
  355. package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
  356. package/js/Types.d.ts +0 -260
  357. package/js/Utils.d.ts +0 -58
  358. /package/ts/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +0 -0
package/types/Types.d.ts CHANGED
@@ -1,260 +1,280 @@
1
- /// <reference types="node" />
2
- import { VideoSourceType } from './Private/AgoraBase';
3
- import { RenderModeType } from './Private/AgoraMediaBase';
4
- import { IRenderer } from './Renderer/IRenderer';
5
- import { RendererManager } from './Renderer/RendererManager';
6
- /**
7
- * @ignore
8
- */
9
- export interface AgoraEnvType {
10
- /**
11
- * @ignore
12
- */
13
- enableLogging: boolean;
14
- /**
15
- * @ignore
16
- */
17
- enableDebugLogging: boolean;
18
- /**
19
- * @ignore
20
- */
21
- AgoraElectronBridge: AgoraElectronBridge;
22
- /**
23
- * @ignore
24
- */
25
- AgoraRendererManager?: RendererManager;
26
- }
27
- /**
28
- * @ignore
29
- */
30
- export interface CanvasOptions {
31
- /**
32
- * @ignore
33
- */
34
- frameWidth: number;
35
- /**
36
- * @ignore
37
- */
38
- frameHeight: number;
39
- /**
40
- * @ignore
41
- */
42
- rotation: number;
43
- /**
44
- * @ignore
45
- */
46
- contentMode: RenderModeType;
47
- /**
48
- * @ignore
49
- */
50
- clientWidth: number;
51
- /**
52
- * @ignore
53
- */
54
- clientHeight: number;
55
- }
56
- /**
57
- * @ignore
58
- */
59
- export interface RendererOptions {
60
- /**
61
- * @ignore
62
- */
63
- contentMode?: RenderModeType;
64
- /**
65
- * @ignore
66
- */
67
- mirror?: boolean;
68
- }
69
- /**
70
- * @ignore
71
- */
72
- export declare enum RENDER_MODE {
73
- /**
74
- * @ignore
75
- */
76
- WEBGL = 1,
77
- /**
78
- * @ignore
79
- */
80
- SOFTWARE = 2
81
- }
82
- export declare type User = 'local' | 'videoSource' | number | string;
83
- export declare type Channel = '' | string;
84
- /**
85
- * @ignore
86
- */
87
- export interface RendererVideoConfig {
88
- /**
89
- * @ignore
90
- */
91
- videoSourceType?: VideoSourceType;
92
- /**
93
- * @ignore
94
- */
95
- channelId?: Channel;
96
- /**
97
- * @ignore
98
- */
99
- uid?: number;
100
- /**
101
- * @ignore
102
- */
103
- view?: HTMLElement;
104
- /**
105
- * @ignore
106
- */
107
- rendererOptions?: RendererOptions;
108
- }
109
- /**
110
- * @ignore
111
- */
112
- export interface FormatRendererVideoConfig {
113
- /**
114
- * @ignore
115
- */
116
- videoSourceType: VideoSourceType;
117
- /**
118
- * @ignore
119
- */
120
- channelId: Channel;
121
- /**
122
- * @ignore
123
- */
124
- uid: number;
125
- /**
126
- * @ignore
127
- */
128
- view?: HTMLElement;
129
- /**
130
- * @ignore
131
- */
132
- rendererOptions: RendererOptions;
133
- }
134
- /**
135
- * @ignore
136
- */
137
- export interface VideoFrameCacheConfig {
138
- /**
139
- * @ignore
140
- */
141
- uid: number;
142
- /**
143
- * @ignore
144
- */
145
- channelId: string;
146
- /**
147
- * @ignore
148
- */
149
- videoSourceType: VideoSourceType;
150
- }
151
- /**
152
- * @ignore
153
- */
154
- export interface ShareVideoFrame {
155
- /**
156
- * @ignore
157
- */
158
- width: number;
159
- /**
160
- * @ignore
161
- */
162
- height: number;
163
- /**
164
- * @ignore
165
- */
166
- yBuffer: Buffer | Uint8Array;
167
- /**
168
- * @ignore
169
- */
170
- uBuffer: Buffer | Uint8Array;
171
- /**
172
- * @ignore
173
- */
174
- vBuffer: Buffer | Uint8Array;
175
- /**
176
- * @ignore
177
- */
178
- mirror?: boolean;
179
- /**
180
- * @ignore
181
- */
182
- rotation?: number;
183
- /**
184
- * @ignore
185
- */
186
- uid?: number;
187
- /**
188
- * @ignore
189
- */
190
- channelId?: string;
191
- /**
192
- * @ignore
193
- */
194
- videoSourceType: VideoSourceType;
195
- }
196
- /**
197
- * @ignore
198
- */
199
- export interface Result {
200
- /**
201
- * @ignore
202
- */
203
- callApiReturnCode: number;
204
- /**
205
- * @ignore
206
- */
207
- callApiResult: any;
208
- }
209
- /**
210
- * @ignore
211
- */
212
- export declare enum CallBackModule {
213
- /**
214
- * @ignore
215
- */
216
- RTC = 0,
217
- MPK = 1,
218
- OBSERVER = 2
219
- }
220
- /**
221
- * @ignore
222
- */
223
- export interface AgoraElectronBridge {
224
- /**
225
- * @ignore
226
- */
227
- OnEvent(callbackName: string, callback: (event: string, data: string, buffer: Uint8Array[], bufferLength: number[], bufferCount: number) => void): void;
228
- CallApi(funcName: string, params: any, buffer?: (Uint8Array | undefined)[], bufferCount?: number): Result;
229
- InitializeEnv(): void;
230
- ReleaseEnv(): void;
231
- EnableVideoFrameCache(config: VideoFrameCacheConfig): void;
232
- DisableVideoFrameCache(config: VideoFrameCacheConfig): void;
233
- GetBuffer(ptr: number, length: number): Buffer;
234
- GetVideoFrame(streamInfo: ShareVideoFrame): {
235
- ret: number;
236
- isNewFrame: boolean;
237
- yStride: number;
238
- width: number;
239
- height: number;
240
- rotation: number;
241
- timestamp: number;
242
- };
243
- sendMsg: (funcName: string, params: any, buffer?: Uint8Array[], bufferCount?: number) => Result;
244
- }
245
- /**
246
- * @ignore
247
- */
248
- export interface RenderConfig {
249
- /**
250
- * @ignore
251
- */
252
- renders: IRenderer[];
253
- /**
254
- * @ignore
255
- */
256
- shareVideoFrame: ShareVideoFrame;
257
- }
258
- export declare type UidMap = Map<number, RenderConfig>;
259
- export declare type ChannelIdMap = Map<Channel, UidMap>;
260
- export declare type RenderMap = Map<VideoSourceType, ChannelIdMap>;
1
+ /// <reference types="node" />
2
+ import { RenderModeType, VideoSourceType } from './Private/AgoraMediaBase';
3
+ import { IRenderer, IRendererManager } from './Renderer';
4
+ /**
5
+ * @ignore
6
+ */
7
+ export interface AgoraEnvOptions {
8
+ /**
9
+ * @ignore
10
+ */
11
+ enableLogging?: boolean;
12
+ /**
13
+ * @ignore
14
+ */
15
+ enableDebugLogging?: boolean;
16
+ /**
17
+ * @ignore
18
+ */
19
+ webEnvReady?: boolean;
20
+ }
21
+ /**
22
+ * @ignore
23
+ */
24
+ export interface AgoraEnvType extends AgoraEnvOptions {
25
+ /**
26
+ * @ignore
27
+ */
28
+ AgoraElectronBridge: AgoraElectronBridge;
29
+ /**
30
+ * @ignore
31
+ */
32
+ AgoraRendererManager?: IRendererManager;
33
+ }
34
+ /**
35
+ * @ignore
36
+ */
37
+ export interface CanvasOptions {
38
+ /**
39
+ * @ignore
40
+ */
41
+ frameWidth: number;
42
+ /**
43
+ * @ignore
44
+ */
45
+ frameHeight: number;
46
+ /**
47
+ * @ignore
48
+ */
49
+ rotation: number;
50
+ /**
51
+ * @ignore
52
+ */
53
+ contentMode: RenderModeType;
54
+ /**
55
+ * @ignore
56
+ */
57
+ clientWidth: number;
58
+ /**
59
+ * @ignore
60
+ */
61
+ clientHeight: number;
62
+ }
63
+ /**
64
+ * @ignore
65
+ */
66
+ export interface RendererOptions {
67
+ /**
68
+ * @ignore
69
+ */
70
+ contentMode?: RenderModeType;
71
+ /**
72
+ * @ignore
73
+ */
74
+ mirror?: boolean;
75
+ }
76
+ /**
77
+ * @ignore
78
+ */
79
+ export declare enum RENDER_MODE {
80
+ /**
81
+ * @ignore
82
+ */
83
+ WEBGL = 1,
84
+ /**
85
+ * @ignore
86
+ */
87
+ SOFTWARE = 2
88
+ }
89
+ export declare type User = 'local' | 'videoSource' | number | string;
90
+ export declare type Channel = '' | string;
91
+ /**
92
+ * @ignore
93
+ */
94
+ export interface RendererVideoConfig {
95
+ /**
96
+ * @ignore
97
+ */
98
+ videoSourceType?: VideoSourceType;
99
+ /**
100
+ * @ignore
101
+ */
102
+ channelId?: Channel;
103
+ /**
104
+ * @ignore
105
+ */
106
+ uid?: number;
107
+ /**
108
+ * @ignore
109
+ */
110
+ view?: HTMLElement;
111
+ /**
112
+ * @ignore
113
+ */
114
+ rendererOptions?: RendererOptions;
115
+ }
116
+ /**
117
+ * @ignore
118
+ */
119
+ export interface FormatRendererVideoConfig {
120
+ /**
121
+ * @ignore
122
+ */
123
+ videoSourceType: VideoSourceType;
124
+ /**
125
+ * @ignore
126
+ */
127
+ channelId: Channel;
128
+ /**
129
+ * @ignore
130
+ */
131
+ uid: number;
132
+ /**
133
+ * @ignore
134
+ */
135
+ view?: HTMLElement;
136
+ /**
137
+ * @ignore
138
+ */
139
+ rendererOptions: RendererOptions;
140
+ }
141
+ /**
142
+ * @ignore
143
+ */
144
+ export interface VideoFrameCacheConfig {
145
+ /**
146
+ * @ignore
147
+ */
148
+ uid: number;
149
+ /**
150
+ * @ignore
151
+ */
152
+ channelId: string;
153
+ /**
154
+ * @ignore
155
+ */
156
+ videoSourceType: VideoSourceType;
157
+ }
158
+ /**
159
+ * @ignore
160
+ */
161
+ export interface ShareVideoFrame {
162
+ /**
163
+ * @ignore
164
+ */
165
+ width: number;
166
+ /**
167
+ * @ignore
168
+ */
169
+ height: number;
170
+ /**
171
+ * @ignore
172
+ */
173
+ yStride: number;
174
+ /**
175
+ * @ignore
176
+ */
177
+ yBuffer: Buffer | Uint8Array;
178
+ /**
179
+ * @ignore
180
+ */
181
+ uBuffer: Buffer | Uint8Array;
182
+ /**
183
+ * @ignore
184
+ */
185
+ vBuffer: Buffer | Uint8Array;
186
+ /**
187
+ * @ignore
188
+ */
189
+ mirror?: boolean;
190
+ /**
191
+ * @ignore
192
+ */
193
+ rotation?: number;
194
+ /**
195
+ * @ignore
196
+ */
197
+ uid?: number;
198
+ /**
199
+ * @ignore
200
+ */
201
+ channelId?: string;
202
+ /**
203
+ * @ignore
204
+ */
205
+ videoSourceType: VideoSourceType;
206
+ }
207
+ /**
208
+ * @ignore
209
+ */
210
+ export interface Result {
211
+ /**
212
+ * @ignore
213
+ */
214
+ callApiReturnCode: number;
215
+ /**
216
+ * @ignore
217
+ */
218
+ callApiResult: any;
219
+ }
220
+ /**
221
+ * @ignore
222
+ */
223
+ export interface AgoraElectronBridge {
224
+ OnEvent(callbackName: string, callback: (event: string, data: string, buffer: Uint8Array[], bufferLength: number[], bufferCount: number) => void): void;
225
+ CallApi(funcName: string, params: any, buffer?: (Uint8Array | undefined)[], bufferCount?: number): Result;
226
+ InitializeEnv(): void;
227
+ ReleaseEnv(): void;
228
+ ReleaseRenderer(): void;
229
+ EnableVideoFrameCache(config: VideoFrameCacheConfig): void;
230
+ DisableVideoFrameCache(config: VideoFrameCacheConfig): void;
231
+ GetBuffer(ptr: number, length: number): Buffer;
232
+ /**
233
+ * @ignore
234
+ */
235
+ GetVideoFrame(streamInfo: ShareVideoFrame): {
236
+ ret: number;
237
+ /**
238
+ * @ignore
239
+ */
240
+ isNewFrame: boolean;
241
+ /**
242
+ * @ignore
243
+ */
244
+ yStride: number;
245
+ /**
246
+ * @ignore
247
+ */
248
+ width: number;
249
+ /**
250
+ * @ignore
251
+ */
252
+ height: number;
253
+ /**
254
+ * @ignore
255
+ */
256
+ rotation: number;
257
+ /**
258
+ * @ignore
259
+ */
260
+ timestamp: number;
261
+ };
262
+ sendMsg: (funcName: string, params: any, buffer?: Uint8Array[], bufferCount?: number) => Result;
263
+ }
264
+ /**
265
+ * @ignore
266
+ */
267
+ export interface RenderConfig {
268
+ /**
269
+ * @ignore
270
+ */
271
+ renders: IRenderer[];
272
+ /**
273
+ * @ignore
274
+ */
275
+ shareVideoFrame: ShareVideoFrame;
276
+ }
277
+ export declare type UidMap = Map<number, RenderConfig>;
278
+ export declare type ChannelIdMap = Map<Channel, UidMap>;
279
+ export declare type RenderMap = Map<VideoSourceType, ChannelIdMap>;
280
+ //# sourceMappingURL=Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../ts/Types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;O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AAC;CAClC;AAED,oBAAY,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC/C,oBAAY,YAAY,GAAG,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAChD,oBAAY,SAAS,GAAG,GAAG,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
package/types/Utils.d.ts CHANGED
@@ -1,58 +1,59 @@
1
- import { VideoSourceType } from './Private/AgoraBase';
2
- import { AgoraEnvType, FormatRendererVideoConfig, RendererVideoConfig } from './Types';
3
- /**
4
- * @ignore
5
- */
6
- export declare const TAG = "[Agora]: ";
7
- /**
8
- * @ignore
9
- */
10
- export declare const DEBUG_TAG = "[Agora Debug]: ";
11
- /**
12
- * @ignore
13
- */
14
- export declare const deprecate: (originApi?: string, replaceApi?: string) => void;
15
- /**
16
- * @ignore
17
- */
18
- export declare const logWarn: (msg: string, ...optParams: any[]) => void;
19
- /**
20
- * @ignore
21
- */
22
- export declare const logError: (msg: string, ...optParams: any[]) => void;
23
- /**
24
- * @ignore
25
- */
26
- export declare const logInfo: (msg: string, ...optParams: any[]) => void;
27
- /**
28
- * @ignore
29
- */
30
- export declare const logDebug: (msg: string, ...optParams: any[]) => void;
31
- /**
32
- * @ignore
33
- */
34
- export declare const parseJSON: (jsonString: string) => any;
35
- /**
36
- * @ignore
37
- */
38
- export declare const objsKeysToLowerCase: (array: Array<any>) => void;
39
- /**
40
- * @ignore
41
- */
42
- export declare const formatConfigByVideoSourceType: (videoSourceType?: VideoSourceType, originChannelId?: string, originUid?: number) => {
43
- uid: number;
44
- channelId: string;
45
- videoSourceType: VideoSourceType;
46
- };
47
- /**
48
- * @ignore
49
- */
50
- export declare const getDefaultRendererVideoConfig: (config: RendererVideoConfig) => FormatRendererVideoConfig;
51
- /**
52
- * @ignore
53
- */
54
- export declare function classMix(...mixins: any[]): any;
55
- /**
56
- * @ignore
57
- */
58
- export declare const AgoraEnv: AgoraEnvType;
1
+ import { VideoSourceType } from './Private/AgoraMediaBase';
2
+ import { AgoraEnvType, FormatRendererVideoConfig, RendererVideoConfig } from './Types';
3
+ /**
4
+ * @ignore
5
+ */
6
+ export declare const TAG = "[Agora]: ";
7
+ /**
8
+ * @ignore
9
+ */
10
+ export declare const DEBUG_TAG = "[Agora Debug]: ";
11
+ /**
12
+ * @ignore
13
+ */
14
+ export declare const deprecate: (originApi?: string, replaceApi?: string) => void;
15
+ /**
16
+ * @ignore
17
+ */
18
+ export declare const logWarn: (msg: string, ...optParams: any[]) => void;
19
+ /**
20
+ * @ignore
21
+ */
22
+ export declare const logError: (msg: string, ...optParams: any[]) => void;
23
+ /**
24
+ * @ignore
25
+ */
26
+ export declare const logInfo: (msg: string, ...optParams: any[]) => void;
27
+ /**
28
+ * @ignore
29
+ */
30
+ export declare const logDebug: (msg: string, ...optParams: any[]) => void;
31
+ /**
32
+ * @ignore
33
+ */
34
+ export declare const parseJSON: (jsonString: string) => any;
35
+ /**
36
+ * @ignore
37
+ */
38
+ export declare const objsKeysToLowerCase: (array: Array<any>) => void;
39
+ /**
40
+ * @ignore
41
+ */
42
+ export declare const formatConfigByVideoSourceType: (videoSourceType?: VideoSourceType, originChannelId?: string, originUid?: number) => {
43
+ uid: number;
44
+ channelId: string;
45
+ videoSourceType: VideoSourceType;
46
+ };
47
+ /**
48
+ * @ignore
49
+ */
50
+ export declare const getDefaultRendererVideoConfig: (config: RendererVideoConfig) => FormatRendererVideoConfig;
51
+ /**
52
+ * @ignore
53
+ */
54
+ export declare function classMix(...mixins: any[]): any;
55
+ /**
56
+ * @ignore
57
+ */
58
+ export declare const AgoraEnv: AgoraEnvType;
59
+ //# sourceMappingURL=Utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../ts/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,E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