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
@@ -1,5 +1,6 @@
1
1
  import './extension/AgoraBaseExtension';
2
- import { MediaSourceType, RenderModeType } from './AgoraMediaBase';
2
+ import { RenderModeType, VideoSourceType } from './AgoraMediaBase';
3
+
3
4
  /**
4
5
  * The channel profile.
5
6
  */
@@ -545,10 +546,6 @@ export enum InterfaceIdType {
545
546
  * @ignore
546
547
  */
547
548
  AgoraIidLocalSpatialAudio = 11,
548
- /**
549
- * The IMediaRecorder interface class.
550
- */
551
- AgoraIidMediaRecorder = 12,
552
549
  /**
553
550
  * @ignore
554
551
  */
@@ -561,6 +558,10 @@ export enum InterfaceIdType {
561
558
  * @ignore
562
559
  */
563
560
  AgoraIidMusicContentCenter = 15,
561
+ /**
562
+ * @ignore
563
+ */
564
+ AgoraIidH265Transcoder = 16,
564
565
  }
565
566
 
566
567
  /**
@@ -682,7 +683,7 @@ export enum FrameWidth {
682
683
  /**
683
684
  * @ignore
684
685
  */
685
- FrameWidth640 = 640,
686
+ FrameWidth960 = 960,
686
687
  }
687
688
 
688
689
  /**
@@ -692,7 +693,7 @@ export enum FrameHeight {
692
693
  /**
693
694
  * @ignore
694
695
  */
695
- FrameHeight360 = 360,
696
+ FrameHeight540 = 540,
696
697
  }
697
698
 
698
699
  /**
@@ -783,6 +784,24 @@ export class VideoDimensions {
783
784
  height?: number;
784
785
  }
785
786
 
787
+ /**
788
+ * @ignore
789
+ */
790
+ export enum ScreenCaptureFramerateCapability {
791
+ /**
792
+ * @ignore
793
+ */
794
+ ScreenCaptureFramerateCapability15Fps = 0,
795
+ /**
796
+ * @ignore
797
+ */
798
+ ScreenCaptureFramerateCapability30Fps = 1,
799
+ /**
800
+ * @ignore
801
+ */
802
+ ScreenCaptureFramerateCapability60Fps = 2,
803
+ }
804
+
786
805
  /**
787
806
  * Video codec types.
788
807
  */
@@ -1135,6 +1154,7 @@ export enum CompressionPreference {
1135
1154
  PreferLowLatency = 0,
1136
1155
  /**
1137
1156
  * 1: (Default) High quality preference. The SDK compresses video frames while maintaining video quality. This preference is suitable for scenarios where video quality is prioritized.
1157
+ *
1138
1158
  */
1139
1159
  PreferQuality = 1,
1140
1160
  }
@@ -1189,6 +1209,46 @@ export enum VideoMirrorModeType {
1189
1209
  VideoMirrorModeDisabled = 2,
1190
1210
  }
1191
1211
 
1212
+ /**
1213
+ * @ignore
1214
+ */
1215
+ export enum CodecCapMask {
1216
+ /**
1217
+ * @ignore
1218
+ */
1219
+ CodecCapMaskNone = 0,
1220
+ /**
1221
+ * @ignore
1222
+ */
1223
+ CodecCapMaskHwDec = 1 << 0,
1224
+ /**
1225
+ * @ignore
1226
+ */
1227
+ CodecCapMaskHwEnc = 1 << 1,
1228
+ /**
1229
+ * @ignore
1230
+ */
1231
+ CodecCapMaskSwDec = 1 << 2,
1232
+ /**
1233
+ * @ignore
1234
+ */
1235
+ CodecCapMaskSwEnc = 1 << 3,
1236
+ }
1237
+
1238
+ /**
1239
+ * @ignore
1240
+ */
1241
+ export class CodecCapInfo {
1242
+ /**
1243
+ * @ignore
1244
+ */
1245
+ codecType?: VideoCodecType;
1246
+ /**
1247
+ * @ignore
1248
+ */
1249
+ codecCapMask?: number;
1250
+ }
1251
+
1192
1252
  /**
1193
1253
  * Video encoder configurations.
1194
1254
  */
@@ -1487,68 +1547,6 @@ export class RtcStats {
1487
1547
  rxPacketLossRate?: number;
1488
1548
  }
1489
1549
 
1490
- /**
1491
- * The capture type of the custom video source.
1492
- */
1493
- export enum VideoSourceType {
1494
- /**
1495
- * @ignore
1496
- */
1497
- VideoSourceCameraPrimary = 0,
1498
- /**
1499
- * The camera.
1500
- */
1501
- VideoSourceCamera = 0,
1502
- /**
1503
- * The secondary camera.
1504
- */
1505
- VideoSourceCameraSecondary = 1,
1506
- /**
1507
- * The primary screen.
1508
- */
1509
- VideoSourceScreenPrimary = 2,
1510
- /**
1511
- * The screen.
1512
- */
1513
- VideoSourceScreen = 2,
1514
- /**
1515
- * The secondary screen.
1516
- */
1517
- VideoSourceScreenSecondary = 3,
1518
- /**
1519
- * The custom video source.
1520
- */
1521
- VideoSourceCustom = 4,
1522
- /**
1523
- * The video source from the media player.
1524
- */
1525
- VideoSourceMediaPlayer = 5,
1526
- /**
1527
- * The video source is a PNG image.
1528
- */
1529
- VideoSourceRtcImagePng = 6,
1530
- /**
1531
- * The video source is a JPEG image.
1532
- */
1533
- VideoSourceRtcImageJpeg = 7,
1534
- /**
1535
- * The video source is a GIF image.
1536
- */
1537
- VideoSourceRtcImageGif = 8,
1538
- /**
1539
- * The video source is remote video acquired by the network.
1540
- */
1541
- VideoSourceRemote = 9,
1542
- /**
1543
- * A transcoded video source.
1544
- */
1545
- VideoSourceTranscoded = 10,
1546
- /**
1547
- * An unknown video source.
1548
- */
1549
- VideoSourceUnknown = 100,
1550
- }
1551
-
1552
1550
  /**
1553
1551
  * The user role in the interactive live streaming.
1554
1552
  */
@@ -1646,69 +1644,21 @@ export enum ExperiencePoorReason {
1646
1644
  }
1647
1645
 
1648
1646
  /**
1649
- * Audio statistics of the remote user.
1647
+ * @ignore
1650
1648
  */
1651
- export class RemoteAudioStats {
1652
- /**
1653
- * The user ID of the remote user.
1654
- */
1655
- uid?: number;
1656
- /**
1657
- * The quality of the audio stream sent by the user. See QualityType .
1658
- */
1659
- quality?: number;
1660
- /**
1661
- * The network delay (ms) from the sender to the receiver.
1662
- */
1663
- networkTransportDelay?: number;
1664
- /**
1665
- * The network delay (ms) from the audio receiver to the jitter buffer.When the receiving end is an audience member and audienceLatencyLevel of ClientRoleOptions is 1, this parameter does not take effect.
1666
- */
1667
- jitterBufferDelay?: number;
1668
- /**
1669
- * The frame loss rate (%) of the remote audio stream in the reported interval.
1670
- */
1671
- audioLossRate?: number;
1672
- /**
1673
- * The number of audio channels.
1674
- */
1675
- numChannels?: number;
1676
- /**
1677
- * The sampling rate of the received audio stream in the reported interval.
1678
- */
1679
- receivedSampleRate?: number;
1680
- /**
1681
- * The average bitrate (Kbps) of the received audio stream in the reported interval.
1682
- */
1683
- receivedBitrate?: number;
1649
+ export enum AudioAinsMode {
1684
1650
  /**
1685
- * The total freeze time (ms) of the remote audio stream after the remote user joins the channel. In a session, audio freeze occurs when the audio frame loss rate reaches 4%.
1686
- */
1687
- totalFrozenTime?: number;
1688
- /**
1689
- * The total audio freeze time as a percentage (%) of the total time when the audio is available. The audio is considered available when the remote user neither stops sending the audio stream nor disables the audio module after joining the channel.
1690
- */
1691
- frozenRate?: number;
1692
- /**
1693
- * The quality of the remote audio stream in the reported interval. The quality is determined by the Agora real-time audio MOS (Mean Opinion Score) measurement method. The return value range is [0, 500]. Dividing the return value by 100 gets the MOS score, which ranges from 0 to 5. The higher the score, the better the audio quality.The subjective perception of audio quality corresponding to the Agora real-time audio MOS scores is as follows:MOS scorePerception of audio qualityGreater than 4Excellent. The audio sounds clear and smooth.From 3.5 to 4Good. The audio has some perceptible impairment but still sounds clear.From 3 to 3.5Fair. The audio freezes occasionally and requires attentive listening.From 2.5 to 3Poor. The audio sounds choppy and requires considerable effort to understand.From 2 to 2.5Bad. The audio has occasional noise. Consecutive audio dropouts occur, resulting in some information loss. The users can communicate only with difficulty.Less than 2Very bad. The audio has persistent noise. Consecutive audio dropouts are frequent, resulting in severe information loss. Communication is nearly impossible.
1694
- */
1695
- mosValue?: number;
1696
- /**
1697
- * The total active time (ms) between the start of the audio call and the callback of the remote user.The active time refers to the total duration of the remote user without the mute state.
1698
- */
1699
- totalActiveTime?: number;
1700
- /**
1701
- * The total duration (ms) of the remote audio stream.
1651
+ * @ignore
1702
1652
  */
1703
- publishDuration?: number;
1653
+ AinsModeBalanced = 0,
1704
1654
  /**
1705
- * The Quality of Experience (QoE) of the local user when receiving a remote audio stream. See ExperienceQualityType .
1655
+ * @ignore
1706
1656
  */
1707
- qoeQuality?: number;
1657
+ AinsModeAggressive = 1,
1708
1658
  /**
1709
- * Reasons why the QoE of the local user when receiving a remote audio stream is poor. See ExperiencePoorReason .
1659
+ * @ignore
1710
1660
  */
1711
- qualityChangedReason?: number;
1661
+ AinsModeUltralowlatency = 2,
1712
1662
  }
1713
1663
 
1714
1664
  /**
@@ -1837,6 +1787,20 @@ export enum ScreenScenarioType {
1837
1787
  ScreenScenarioRdc = 4,
1838
1788
  }
1839
1789
 
1790
+ /**
1791
+ * @ignore
1792
+ */
1793
+ export enum VideoApplicationScenarioType {
1794
+ /**
1795
+ * @ignore
1796
+ */
1797
+ ApplicationScenarioGeneral = 0,
1798
+ /**
1799
+ * @ignore
1800
+ */
1801
+ ApplicationScenarioMeeting = 1,
1802
+ }
1803
+
1840
1804
  /**
1841
1805
  * The brightness level of the video image captured by the local camera.
1842
1806
  */
@@ -1978,9 +1942,9 @@ export enum LocalVideoStreamError {
1978
1942
  */
1979
1943
  LocalVideoStreamErrorCaptureFailure = 4,
1980
1944
  /**
1981
- * 5: The local video encoding fails.
1945
+ * @ignore
1982
1946
  */
1983
- LocalVideoStreamErrorEncodeFailure = 5,
1947
+ LocalVideoStreamErrorCodecNotSupport = 5,
1984
1948
  /**
1985
1949
  * @ignore
1986
1950
  */
@@ -2177,6 +2141,10 @@ export enum RemoteVideoStateReason {
2177
2141
  * @ignore
2178
2142
  */
2179
2143
  RemoteVideoStateReasonSdkInBackground = 12,
2144
+ /**
2145
+ * @ignore
2146
+ */
2147
+ RemoteVideoStateReasonCodecNotSupport = 13,
2180
2148
  }
2181
2149
 
2182
2150
  /**
@@ -2505,7 +2473,7 @@ export enum RtmpStreamPublishErrorType {
2505
2473
  */
2506
2474
  RtmpStreamPublishErrorNetDown = 14,
2507
2475
  /**
2508
- * 15: Your App ID does not have permission to use the CDN live streaming function.
2476
+ * @ignore
2509
2477
  */
2510
2478
  RtmpStreamPublishErrorInvalidAppid = 15,
2511
2479
  /**
@@ -2595,11 +2563,11 @@ export class LiveStreamAdvancedFeature {
2595
2563
  */
2596
2564
  export enum ConnectionStateType {
2597
2565
  /**
2598
- * 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:Theinitial state before calling the joinChannel [2/2] method.The app calls the leaveChannel method.
2566
+ * 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:Theinitial state before calling the joinChannel method.The app calls the leaveChannel method.
2599
2567
  */
2600
2568
  ConnectionStateDisconnected = 1,
2601
2569
  /**
2602
- * 2: The SDK is connecting to the Agora edge server. This state indicates that the SDK is establishing a connection with the specified channel after the app calls joinChannel [2/2].If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
2570
+ * 2: The SDK is connecting to the Agora edge server. This state indicates that the SDK is establishing a connection with the specified channel after the app calls joinChannel.If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
2603
2571
  */
2604
2572
  ConnectionStateConnecting = 2,
2605
2573
  /**
@@ -2611,7 +2579,7 @@ export enum ConnectionStateType {
2611
2579
  */
2612
2580
  ConnectionStateReconnecting = 4,
2613
2581
  /**
2614
- * 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates that the SDK stops trying to rejoin the channel. You must call leaveChannel to leave the channel.You can call joinChannel [2/2] to rejoin the channel.If the SDK is banned from joining the channel by the Agora edge server through the RESTful API, the SDK triggers the onConnectionStateChanged callback.
2582
+ * 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates that the SDK stops trying to rejoin the channel. You must call leaveChannel to leave the channel.You can call joinChannel to rejoin the channel.If the SDK is banned from joining the channel by the Agora edge server through the RESTful API, the SDK triggers the onConnectionStateChanged callback.
2615
2583
  */
2616
2584
  ConnectionStateFailed = 5,
2617
2585
  }
@@ -2759,7 +2727,7 @@ export class TranscodingVideoStream {
2759
2727
  /**
2760
2728
  * The source type of video for the video mixing on the local client. See VideoSourceType .
2761
2729
  */
2762
- sourceType?: MediaSourceType;
2730
+ sourceType?: VideoSourceType;
2763
2731
  /**
2764
2732
  * The ID of the remote user.Use this parameter only when the source type of the video for the video mixing on the local client is VideoSourceRemote.
2765
2733
  */
@@ -2768,6 +2736,10 @@ export class TranscodingVideoStream {
2768
2736
  * The URL of the image.
2769
2737
  */
2770
2738
  imageUrl?: string;
2739
+ /**
2740
+ * @ignore
2741
+ */
2742
+ mediaPlayerId?: number;
2771
2743
  /**
2772
2744
  * The horizontal displacement of the top-left corner of the video for the video mixing on the client relative to the top-left corner (origin) of the canvas for this video mixing.
2773
2745
  */
@@ -2809,7 +2781,7 @@ export class LocalTranscoderConfiguration {
2809
2781
  /**
2810
2782
  * The video streams for the video mixing on the local client. See TranscodingVideoStream .
2811
2783
  */
2812
- VideoInputStreams?: TranscodingVideoStream[];
2784
+ videoInputStreams?: TranscodingVideoStream[];
2813
2785
  /**
2814
2786
  * The encoding configuration of the mixed video stream after the video mixing on the local client. See VideoEncoderConfiguration .
2815
2787
  */
@@ -2820,6 +2792,40 @@ export class LocalTranscoderConfiguration {
2820
2792
  syncWithPrimaryCamera?: boolean;
2821
2793
  }
2822
2794
 
2795
+ /**
2796
+ * @ignore
2797
+ */
2798
+ export enum VideoTranscoderError {
2799
+ /**
2800
+ * @ignore
2801
+ */
2802
+ VtErrOk = 0,
2803
+ /**
2804
+ * @ignore
2805
+ */
2806
+ VtErrVideoSourceNotReady = 1,
2807
+ /**
2808
+ * @ignore
2809
+ */
2810
+ VtErrInvalidVideoSourceType = 2,
2811
+ /**
2812
+ * @ignore
2813
+ */
2814
+ VtErrInvalidImagePath = 3,
2815
+ /**
2816
+ * @ignore
2817
+ */
2818
+ VtErrUnsupportImageFormat = 4,
2819
+ /**
2820
+ * @ignore
2821
+ */
2822
+ VtErrInvalidLayout = 5,
2823
+ /**
2824
+ * @ignore
2825
+ */
2826
+ VtErrInternal = 20,
2827
+ }
2828
+
2823
2829
  /**
2824
2830
  * Configurations of the last-mile network test.
2825
2831
  */
@@ -2937,7 +2943,7 @@ export enum ConnectionChangedReasonType {
2937
2943
  */
2938
2944
  ConnectionChangedInvalidChannelName = 7,
2939
2945
  /**
2940
- * 8: The connection failed because the token is not valid. Possible reasons are as follows:The App Certificate for the project is enabled in Agora Console, but you do not use a token when joining the channel. If you enable the App Certificate, you must use a token to join the channel.The uid specified when calling joinChannel [2/2] to join the channel is inconsistent with the uid passed in when generating the token.
2946
+ * 8: The connection failed because the token is not valid. Possible reasons are as follows:The App Certificate for the project is enabled in Agora Console, but you do not use a token when joining the channel. If you enable the App Certificate, you must use a token to join the channel.The uid specified when calling joinChannel to join the channel is inconsistent with the uid passed in when generating the token.
2941
2947
  */
2942
2948
  ConnectionChangedInvalidToken = 8,
2943
2949
  /**
@@ -2945,7 +2951,7 @@ export enum ConnectionChangedReasonType {
2945
2951
  */
2946
2952
  ConnectionChangedTokenExpired = 9,
2947
2953
  /**
2948
- * 10: The connection is rejected by server. Possible reasons are as follows:The user is already in the channel and still calls a method, for example, joinChannel [2/2], to join the channel. Stop calling this method to clear this error.The user tries to join a channel while a test call is in progress. The user needs to join the channel after the call test ends.
2954
+ * 10: The connection is rejected by server. Possible reasons are as follows:The user is already in the channel and still calls a method, for example, joinChannel, to join the channel. Stop calling this method to clear this error.The user tries to join a channel while a test call is in progress. The user needs to join the channel after the call test ends.
2949
2955
  */
2950
2956
  ConnectionChangedRejectedByServer = 10,
2951
2957
  /**
@@ -3151,13 +3157,17 @@ export class VideoCanvas {
3151
3157
  */
3152
3158
  sourceType?: VideoSourceType;
3153
3159
  /**
3154
- * The ID of the media player. You can get the media player ID by calling getMediaPlayerId .
3160
+ * The ID of the media player. You can get the Device ID by calling getMediaPlayerId .
3155
3161
  */
3156
3162
  mediaPlayerId?: number;
3157
3163
  /**
3158
3164
  * @ignore
3159
3165
  */
3160
3166
  cropArea?: Rectangle;
3167
+ /**
3168
+ * @ignore
3169
+ */
3170
+ enableAlphaMask?: boolean;
3161
3171
  }
3162
3172
 
3163
3173
  /**
@@ -3310,6 +3320,10 @@ export class ColorEnhanceOptions {
3310
3320
  * The type of the custom background image.
3311
3321
  */
3312
3322
  export enum BackgroundSourceType {
3323
+ /**
3324
+ * @ignore
3325
+ */
3326
+ BackgroundNone = 0,
3313
3327
  /**
3314
3328
  * 1: (Default) The background image is a solid color.
3315
3329
  */
@@ -3322,6 +3336,10 @@ export enum BackgroundSourceType {
3322
3336
  * The background image is the blurred background.
3323
3337
  */
3324
3338
  BackgroundBlur = 3,
3339
+ /**
3340
+ * @ignore
3341
+ */
3342
+ BackgroundVideo = 4,
3325
3343
  }
3326
3344
 
3327
3345
  /**
@@ -3392,6 +3410,34 @@ export class SegmentationProperty {
3392
3410
  greenCapacity?: number;
3393
3411
  }
3394
3412
 
3413
+ /**
3414
+ * @ignore
3415
+ */
3416
+ export enum AudioTrackType {
3417
+ /**
3418
+ * @ignore
3419
+ */
3420
+ AudioTrackInvalid = -1,
3421
+ /**
3422
+ * @ignore
3423
+ */
3424
+ AudioTrackMixable = 0,
3425
+ /**
3426
+ * @ignore
3427
+ */
3428
+ AudioTrackDirect = 1,
3429
+ }
3430
+
3431
+ /**
3432
+ * @ignore
3433
+ */
3434
+ export class AudioTrackConfig {
3435
+ /**
3436
+ * @ignore
3437
+ */
3438
+ enableLocalPlayback?: boolean;
3439
+ }
3440
+
3395
3441
  /**
3396
3442
  * The options for SDK preset voice beautifier effects.
3397
3443
  */
@@ -3449,7 +3495,7 @@ export enum VoiceBeautifierPreset {
3449
3495
  */
3450
3496
  TimbreTransformationRinging = 0x01030800,
3451
3497
  /**
3452
- * A ultra-high quality voice, which makes the audio clearer and restores more details.To achieve better audio effect quality, Agora recommends that you set the profile of setAudioProfile [2/2] to AudioProfileMusicHighQuality(4) or AudioProfileMusicHighQualityStereo(5) and scenario to AudioScenarioGameStreaming(3) before calling setVoiceBeautifierPreset .If you have an audio capturing device that can already restore audio details to a high degree, Agora recommends that you do not enable ultra-high quality; otherwise, the SDK may over-restore audio details, and you may not hear the anticipated voice effect.
3498
+ * A ultra-high quality voice, which makes the audio clearer and restores more details.To achieve better audio effect quality, Agora recommends that you set the profile of setAudioProfile to AudioProfileMusicHighQuality(4) or AudioProfileMusicHighQualityStereo(5) and scenario to AudioScenarioGameStreaming(3) before calling setVoiceBeautifierPreset .If you have an audio capturing device that can already restore audio details to a high degree, Agora recommends that you do not enable ultra-high quality; otherwise, the SDK may over-restore audio details, and you may not hear the anticipated voice effect.
3453
3499
  */
3454
3500
  UltraHighQualityVoice = 0x01040100,
3455
3501
  }
@@ -3565,6 +3611,50 @@ export enum VoiceConversionPreset {
3565
3611
  * A deep voice. To avoid audio distortion, ensure that you use this enumerator to process a male-sounding voice.
3566
3612
  */
3567
3613
  VoiceChangerBass = 0x03010400,
3614
+ /**
3615
+ * @ignore
3616
+ */
3617
+ VoiceChangerCartoon = 0x03010500,
3618
+ /**
3619
+ * @ignore
3620
+ */
3621
+ VoiceChangerChildlike = 0x03010600,
3622
+ /**
3623
+ * @ignore
3624
+ */
3625
+ VoiceChangerPhoneOperator = 0x03010700,
3626
+ /**
3627
+ * @ignore
3628
+ */
3629
+ VoiceChangerMonster = 0x03010800,
3630
+ /**
3631
+ * @ignore
3632
+ */
3633
+ VoiceChangerTransformers = 0x03010900,
3634
+ /**
3635
+ * @ignore
3636
+ */
3637
+ VoiceChangerGroot = 0x03010a00,
3638
+ /**
3639
+ * @ignore
3640
+ */
3641
+ VoiceChangerDarthVader = 0x03010b00,
3642
+ /**
3643
+ * @ignore
3644
+ */
3645
+ VoiceChangerIronLady = 0x03010c00,
3646
+ /**
3647
+ * @ignore
3648
+ */
3649
+ VoiceChangerShinChan = 0x03010d00,
3650
+ /**
3651
+ * @ignore
3652
+ */
3653
+ VoiceChangerGirlishMan = 0x03010e00,
3654
+ /**
3655
+ * @ignore
3656
+ */
3657
+ VoiceChangerChipmunk = 0x03010f00,
3568
3658
  }
3569
3659
 
3570
3660
  /**
@@ -3690,17 +3780,15 @@ export enum AudioEncodedFrameObserverPosition {
3690
3780
  }
3691
3781
 
3692
3782
  /**
3693
- * Recording configuration.
3783
+ * Recording configurations.
3694
3784
  */
3695
3785
  export class AudioRecordingConfiguration {
3696
3786
  /**
3697
- * The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.mp4.
3698
- * Ensure that the path for the recording file exists and is writable.
3787
+ * The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.mp4.Ensure that the directory for the log files exists and is writable.
3699
3788
  */
3700
3789
  filePath?: string;
3701
3790
  /**
3702
- * Whether to encode the audio data:
3703
- * true: Encode audio data in AAC.false: (Default) Do not encode audio data, but save the recorded audio data directly.
3791
+ * @ignore
3704
3792
  */
3705
3793
  encode?: boolean;
3706
3794
  /**
@@ -3708,7 +3796,7 @@ export class AudioRecordingConfiguration {
3708
3796
  */
3709
3797
  sampleRate?: number;
3710
3798
  /**
3711
- * Recording content. See AudioFileRecordingType .
3799
+ * The recording content. See AudioFileRecordingType .
3712
3800
  */
3713
3801
  fileRecordingType?: AudioFileRecordingType;
3714
3802
  /**
@@ -3716,7 +3804,7 @@ export class AudioRecordingConfiguration {
3716
3804
  */
3717
3805
  quality?: AudioRecordingQualityType;
3718
3806
  /**
3719
- * The audio channel of recording: The parameter supports the following values:1: (Default) Mono.2: Stereo.The actual recorded audio channel is related to the audio channel that you capture.If the captured audio is mono and recordingChannel is 2, the recorded audio is the dual-channel data that is copied from mono data, not stereo.If the captured audio is dual channel and recordingChannel is 1, the recorded audio is the mono data that is mixed by dual-channel data.The integration scheme also affects the final recorded audio channel. Therefore, to record in stereo, technical support for assistance.
3807
+ * The audio channel of recording: The parameter supports the following values:1: (Default) Mono.2: Stereo.The actual recorded audio channel is related to the audio channel that you capture.If the captured audio is mono and recordingChannel is 2, the recorded audio is the dual-channel data that is copied from mono data, not stereo.If the captured audio is dual channel and recordingChannel is 1, the recorded audio is the mono data that is mixed by dual-channel data.The integration scheme also affects the final recorded audio channel. If you need to record in stereo, contact .
3720
3808
  */
3721
3809
  recordingChannel?: number;
3722
3810
  }
@@ -3743,14 +3831,9 @@ export interface IAudioEncodedFrameObserver {
3743
3831
  * Gets the encoded audio data of the local user.
3744
3832
  * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionRecord, you can get the encoded audio data of the local user from this callback.
3745
3833
  *
3746
- * @param channels The number of channels.
3747
- * 1: Mono.
3748
- * 2: Stereo. If the channel uses stereo, the data is interleaved.
3749
- *
3834
+ * @param channels The number of channels.1: Mono.2: Stereo. If the channel uses stereo, the data is interleaved.
3750
3835
  * @param frameBuffer The audio buffer.
3751
- *
3752
3836
  * @param length The data length (byte).
3753
- *
3754
3837
  * @param audioEncodedFrameInfo Audio information after encoding. See EncodedAudioFrameInfo .
3755
3838
  */
3756
3839
  onRecordAudioEncodedFrame?(
@@ -3764,15 +3847,12 @@ export interface IAudioEncodedFrameObserver {
3764
3847
  * After calling registerAudioEncodedFrameObserver and setting the encoded audio as AudioEncodedFrameObserverPositionPlayback, you can get encoded audio data of all remote users through this callback.
3765
3848
  *
3766
3849
  * @param samplesPerSec Recording sample rate (Hz).
3767
- *
3768
- * @param channels The number of channels.1: Mono.2: Stereo. If the channel uses stereo, the data is interleaved.
3769
- *
3850
+ * @param channels The number of channels.
3851
+ * 1: Mono.
3852
+ * 2: Stereo. If the channel uses stereo, the data is interleaved.
3770
3853
  * @param samplesPerChannel The number of samples per channel in the audio frame.
3771
- *
3772
3854
  * @param frameBuffer The audio buffer.
3773
- *
3774
3855
  * @param length The data length (byte).
3775
- *
3776
3856
  * @param audioEncodedFrameInfo Audio information after encoding. See EncodedAudioFrameInfo .
3777
3857
  */
3778
3858
  onPlaybackAudioEncodedFrame?(
@@ -3786,17 +3866,10 @@ export interface IAudioEncodedFrameObserver {
3786
3866
  * After calling registerAudioEncodedFrameObserver and setting the audio profile as AudioEncodedFrameObserverPositionMixed, you can get the mixed and encoded audio data of the local and all remote users through this callback.
3787
3867
  *
3788
3868
  * @param samplesPerSec Recording sample rate (Hz).
3789
- *
3790
- * @param channels The number of channels.
3791
- * 1: Mono.
3792
- * 2: Stereo. If the channel uses stereo, the data is interleaved.
3793
- *
3869
+ * @param channels The number of channels.1: Mono.2: Stereo. If the channel uses stereo, the data is interleaved.
3794
3870
  * @param samplesPerChannel The number of samples per channel in the audio frame.
3795
- *
3796
3871
  * @param frameBuffer The audio buffer.
3797
- *
3798
3872
  * @param length The data length (byte).
3799
- *
3800
3873
  * @param audioEncodedFrameInfo Audio information after encoding. See EncodedAudioFrameInfo .
3801
3874
  */
3802
3875
  onMixedAudioEncodedFrame?(
@@ -3945,11 +4018,11 @@ export enum ChannelMediaRelayEvent {
3945
4018
  */
3946
4019
  RelayEventPacketJoinedSrcChannel = 2,
3947
4020
  /**
3948
- * 3: The user joins the destination channel.
4021
+ * 3: The user joins the target channel.
3949
4022
  */
3950
4023
  RelayEventPacketJoinedDestChannel = 3,
3951
4024
  /**
3952
- * 4: The SDK starts relaying the media stream to the destination channel.
4025
+ * 4: The SDK starts relaying the media stream to the target channel.
3953
4026
  */
3954
4027
  RelayEventPacketSentToDestChannel = 4,
3955
4028
  /**
@@ -3961,7 +4034,7 @@ export enum ChannelMediaRelayEvent {
3961
4034
  */
3962
4035
  RelayEventPacketReceivedAudioFromSrc = 6,
3963
4036
  /**
3964
- * 7: The destination channel is updated.
4037
+ * 7: The target channel is updated.
3965
4038
  */
3966
4039
  RelayEventPacketUpdateDestChannel = 7,
3967
4040
  /**
@@ -3969,11 +4042,11 @@ export enum ChannelMediaRelayEvent {
3969
4042
  */
3970
4043
  RelayEventPacketUpdateDestChannelRefused = 8,
3971
4044
  /**
3972
- * 9: The destination channel does not change, which means that the destination channel fails to be updated.
4045
+ * 9: The target channel does not change, which means that the target channel fails to be updated.
3973
4046
  */
3974
4047
  RelayEventPacketUpdateDestChannelNotChange = 9,
3975
4048
  /**
3976
- * 10: The destination channel name is NULL.
4049
+ * 10: The target channel name is NULL.
3977
4050
  */
3978
4051
  RelayEventPacketUpdateDestChannelIsNull = 10,
3979
4052
  /**
@@ -3981,19 +4054,19 @@ export enum ChannelMediaRelayEvent {
3981
4054
  */
3982
4055
  RelayEventVideoProfileUpdate = 11,
3983
4056
  /**
3984
- * 12: The SDK successfully pauses relaying the media stream to destination channels.
4057
+ * 12: The SDK successfully pauses relaying the media stream to target channels.
3985
4058
  */
3986
4059
  RelayEventPauseSendPacketToDestChannelSuccess = 12,
3987
4060
  /**
3988
- * 13: The SDK fails to pause relaying the media stream to destination channels.
4061
+ * 13: The SDK fails to pause relaying the media stream to target channels.
3989
4062
  */
3990
4063
  RelayEventPauseSendPacketToDestChannelFailed = 13,
3991
4064
  /**
3992
- * 14: The SDK successfully resumes relaying the media stream to destination channels.
4065
+ * 14: The SDK successfully resumes relaying the media stream to target channels.
3993
4066
  */
3994
4067
  RelayEventResumeSendPacketToDestChannelSuccess = 14,
3995
4068
  /**
3996
- * 15: The SDK fails to resume relaying the media stream to destination channels.
4069
+ * 15: The SDK fails to resume relaying the media stream to target channels.
3997
4070
  */
3998
4071
  RelayEventResumeSendPacketToDestChannelFailed = 15,
3999
4072
  }
@@ -4307,6 +4380,10 @@ export class EchoTestConfiguration {
4307
4380
  * The channel name that identifies each audio and video call loop. To ensure proper loop test functionality, the channel name passed in to identify each loop test cannot be the same when users of the same project (App ID) perform audio and video call loop tests on different devices.
4308
4381
  */
4309
4382
  channelId?: string;
4383
+ /**
4384
+ * @ignore
4385
+ */
4386
+ intervalInSeconds?: number;
4310
4387
  }
4311
4388
 
4312
4389
  /**
@@ -4482,6 +4559,34 @@ export class VideoRenderingTracingInfo {
4482
4559
  remoteJoined2PacketReceived?: number;
4483
4560
  }
4484
4561
 
4562
+ /**
4563
+ * @ignore
4564
+ */
4565
+ export enum ConfigFetchType {
4566
+ /**
4567
+ * @ignore
4568
+ */
4569
+ ConfigFetchTypeInitialize = 1,
4570
+ /**
4571
+ * @ignore
4572
+ */
4573
+ ConfigFetchTypeJoinChannel = 2,
4574
+ }
4575
+
4576
+ /**
4577
+ * @ignore
4578
+ */
4579
+ export class RecorderStreamInfo {
4580
+ /**
4581
+ * @ignore
4582
+ */
4583
+ channelId?: string;
4584
+ /**
4585
+ * @ignore
4586
+ */
4587
+ uid?: number;
4588
+ }
4589
+
4485
4590
  /**
4486
4591
  * The spatial audio parameters.
4487
4592
  */