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,27 +1,29 @@
1
1
  import './extension/IAgoraRtcEngineExExtension';
2
2
  import {
3
- IRtcEngine,
4
- ChannelMediaOptions,
5
- LeaveChannelOptions,
6
- } from './IAgoraRtcEngine';
7
- import {
8
- VideoEncoderConfiguration,
9
- VideoCanvas,
10
- VideoStreamType,
11
- VideoSubscriptionOptions,
12
- SpatialAudioParams,
13
- VideoMirrorModeType,
3
+ ChannelMediaRelayConfiguration,
14
4
  ConnectionStateType,
15
- EncryptionConfig,
16
5
  DataStreamConfig,
17
- WatermarkOptions,
6
+ EncryptionConfig,
18
7
  LiveTranscoding,
19
- ChannelMediaRelayConfiguration,
20
- UserInfo,
21
8
  SimulcastStreamConfig,
22
9
  SimulcastStreamMode,
10
+ SpatialAudioParams,
11
+ UserInfo,
12
+ VideoCanvas,
13
+ VideoEncoderConfiguration,
14
+ VideoMirrorModeType,
15
+ VideoStreamType,
16
+ VideoSubscriptionOptions,
17
+ WatermarkOptions,
23
18
  } from './AgoraBase';
24
19
  import { RenderModeType } from './AgoraMediaBase';
20
+ import {
21
+ ChannelMediaOptions,
22
+ IRtcEngine,
23
+ LeaveChannelOptions,
24
+ StreamFallbackOptions,
25
+ } from './IAgoraRtcEngine';
26
+
25
27
  /**
26
28
  * Contains connection information.
27
29
  */
@@ -45,22 +47,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
45
47
  * Joins a channel with the connection ID.
46
48
  * You can call this method multiple times to join more than one channel.If you are already in a channel, you cannot rejoin it with the same user ID.If you want to join the same channel from different devices, ensure that the user IDs are different for all devices.Ensure that the app ID you use to generate the token is the same as the app ID used when creating the IRtcEngine instance.
47
49
  *
48
- * @param options The channel media options. See ChannelMediaOptions .
49
- *
50
50
  * @param token The token generated on your server for authentication.
51
- *
52
51
  * @param connection The connection information. See RtcConnection .
52
+ * @param options The channel media options. See ChannelMediaOptions .
53
53
  *
54
54
  * @returns
55
55
  * 0: Success.
56
- * < 0: Failure.
57
- * -2: The parameter is invalid. For example, the token is invalid, the uid parameter is not set to an integer, or the value of a member in ChannelMediaOptions is invalid. You need to pass in a valid parameter and join the channel again.
58
- * -3: Failes to initialize the IRtcEngine object. You need to reinitialize the IRtcEngine object.
59
- * -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
60
- * -8: The internal state of the IRtcEngine object is wrong. The typical cause is that you call this method to join the channel without calling startEchoTest to stop the test after calling stopEchoTest to start a call loop test. You need to call stopEchoTest before calling this method.
61
- * -17: The request to join the channel is rejected. The typical cause is that the user is in the channel. Agora recomments that you can use the onConnectionStateChanged callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected(1) state.
62
- * -102: The channel name is invalid. You need to pass in a valid channelname in channelId to rejoin the channel.
63
- * -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.
56
+ * < 0: Failure.
57
+ * -2: The parameter is invalid. For example, the token is invalid, the uid parameter is not set to an integer, or the value of a member in ChannelMediaOptions is invalid. You need to pass in a valid parameter and join the channel again.
58
+ * -3: Failes to initialize the IRtcEngine object. You need to reinitialize the IRtcEngine object.
59
+ * -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
60
+ * -8: The internal state of the IRtcEngine object is wrong. The typical cause is that you call this method to join the channel without calling startEchoTest to stop the test after calling stopEchoTest to start a call loop test. You need to call stopEchoTest before calling this method.
61
+ * -17: The request to join the channel is rejected. The typical cause is that the user is in the channel. Agora recomments that you can use the onConnectionStateChanged callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected(1) state.
62
+ * -102: The channel name is invalid. You need to pass in a valid channelname in channelId to rejoin the channel.
63
+ * -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.
64
64
  */
65
65
  abstract joinChannelEx(
66
66
  token: string,
@@ -70,10 +70,9 @@ export abstract class IRtcEngineEx extends IRtcEngine {
70
70
 
71
71
  /**
72
72
  * Sets channel options and leaves the channel.
73
- * This method lets the user leave the channel, for example, by hanging up or exiting the call.After calling joinChannelEx to join the channel, this method must be called to end the call before starting the next call.This method can be called whether or not a call is currently in progress. This method releases all resources related to the session.This method call is asynchronous. When this method returns, it does not necessarily mean that the user has left the channel. After you leave the channel, the SDK triggers the onLeaveChannel callback.A successful call of this method triggers the following callbacks: The local client: onLeaveChannel.The remote client: onUserOffline , if the user joining the channel is in the COMMUNICATION profile, or is a host in the LIVE_BROADCASTING profile.If you call release immediately after calling this method, the SDK does not trigger the onLeaveChannel callback.Calling leaveChannel [1/2] will leave the channels when calling joinChannel [2/2] and joinChannelEx at the same time.
73
+ * This method lets the user leave the channel, for example, by hanging up or exiting the call.After calling joinChannelEx to join the channel, this method must be called to end the call before starting the next call.This method can be called whether or not a call is currently in progress. This method releases all resources related to the session.This method call is asynchronous. When this method returns, it does not necessarily mean that the user has left the channel. After you leave the channel, the SDK triggers the onLeaveChannel callback.After actually leaving the channel, the local user triggers the onLeaveChannel callback; after the user in the communication scenario and the host in the live streaming scenario leave the channel, the remote user triggers the onUserOffline callback.If you call release immediately after calling this method, the SDK does not trigger the onLeaveChannel callback.Calling leaveChannel [1/2] will leave the channels when calling joinChannel and joinChannelEx at the same time.
74
74
  *
75
75
  * @param connection The connection information. See RtcConnection .
76
- *
77
76
  * @param options The options for leaving the channel. See LeaveChannelOptions .This parameter only supports the stopMicrophoneRecording member in the LeaveChannelOptions settings; setting other members does not take effect.
78
77
  *
79
78
  * @returns
@@ -87,16 +86,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
87
86
  /**
88
87
  * Updates the channel media options after joining the channel.
89
88
  *
90
- * @param connection The connection information. See RtcConnection .
91
- *
92
89
  * @param options The channel media options. See ChannelMediaOptions .
90
+ * @param connection The connection information. See RtcConnection .
93
91
  *
94
92
  * @returns
95
- * 0: Success.
96
- * < 0: Failure.
97
- * -2: The value of a member in the ChannelMediaOptions structure is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
98
- * -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
99
- * -8: The internal state of the IRtcEngine object is wrong. The possible reason is that the user is not in the channel. Agora recommends using the onConnectionStateChanged callback to get whether the user is in the channel. If you receive the ConnectionStateDisconnected (1) or ConnectionStateFailed (5) state, the user is not in the channel. You need to call joinChannel [2/2] to join a channel before calling this method.
93
+ * 0: Success.< 0: Failure.-2: The value of a member in the ChannelMediaOptions structure is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.-7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.-8: The internal state of the IRtcEngine object is wrong. The possible reason is that the user is not in the channel. Agora recomments that you can use the onConnectionStateChanged callback to determine whether the user exists in the channel. If you receive the ConnectionStateDisconnected (1) or ConnectionStateFailed (5) state, the user is not in the channel. You need to call joinChannel to join a channel before calling this method.
100
94
  */
101
95
  abstract updateChannelMediaOptionsEx(
102
96
  options: ChannelMediaOptions,
@@ -104,15 +98,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
104
98
  ): number;
105
99
 
106
100
  /**
107
- * Sets the encoder configuration for the local video.
108
- * Each configuration profile corresponds to a set of video parameters, including the resolution, frame rate, and bitrate.The config specified in this method is the maximum values under ideal network conditions. If the network condition is not good, the video engine cannot use the config renders local video, which automatically reduces to an appropriate video parameter setting.
101
+ * Creates a data stream.
102
+ * Creates a data stream. Each user can create up to five data streams in a single channel.Compared with createDataStreamEx , this method does not support data reliability. If a data packet is not received five seconds after it was sent, the SDK directly discards the data.
109
103
  *
104
+ * @param config The configurations for the data stream. See DataStreamConfig .
110
105
  * @param connection The connection information. See RtcConnection .
111
106
  *
112
- * @param config Video profile. See VideoEncoderConfiguration .
113
- *
114
107
  * @returns
115
- * 0: Success.< 0: Failure.
108
+ * ID of the created data stream, if the method call succeeds.< 0: Failure.
116
109
  */
117
110
  abstract setVideoEncoderConfigurationEx(
118
111
  config: VideoEncoderConfiguration,
@@ -123,9 +116,8 @@ export abstract class IRtcEngineEx extends IRtcEngine {
123
116
  * Initializes the video view of a remote user.
124
117
  * This method initializes the video view of a remote stream on the local device. It affects only the video view that the local user sees. Call this method to bind the remote video stream to a video view and to set the rendering and mirror modes of the video view.The application specifies the uid of the remote video in the VideoCanvas method before the remote user joins the channel.If the remote uid is unknown to the application, set it after the application receives the onUserJoined callback. If the Video Recording function is enabled, the Video Recording Service joins the channel as a dummy client, causing other clients to also receive the onUserJoined callback. Do not bind the dummy client to the application view because the dummy client does not send any video streams.To unbind the remote user from the view, set the view parameter to NULL.Once the remote user leaves the channel, the SDK unbinds the remote user.
125
118
  *
126
- * @param connection The connection information. See RtcConnection .
127
- *
128
119
  * @param canvas The remote video view settings. See VideoCanvas .
120
+ * @param connection The connection information. See RtcConnection .
129
121
  *
130
122
  * @returns
131
123
  * 0: Success.< 0: Failure.
@@ -138,11 +130,9 @@ export abstract class IRtcEngineEx extends IRtcEngine {
138
130
  /**
139
131
  * Stops or resumes receiving the audio stream of a specified user.
140
132
  *
141
- * @param connection The connection information. See RtcConnection .
142
- *
143
133
  * @param uid The ID of the specified user.
144
- *
145
134
  * @param mute Whether to stop receiving the audio stream of the specified user:true: Stop receiving the audio stream of the specified user.false: (Default) Resume receiving the audio stream of the specified user.
135
+ * @param connection The connection information. See RtcConnection .
146
136
  *
147
137
  * @returns
148
138
  * 0: Success. < 0: Failure.
@@ -154,17 +144,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
154
144
  ): number;
155
145
 
156
146
  /**
157
- * Stops or resumes receiving the video stream of a specified user.
158
- * This method is used to stops or resumes receiving the video stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.
147
+ * Stops or resumes receiving the audio stream of a specified user.
159
148
  *
149
+ * @param uid The ID of the specified user.
150
+ * @param mute Whether to stop receiving the audio stream of the specified user:true: Stop receiving the audio stream of the specified user.false: (Default) Resume receiving the audio stream of the specified user.
160
151
  * @param connection The connection information. See RtcConnection .
161
152
  *
162
- * @param uid The user ID of the remote user.
163
- *
164
- * @param mute Whether to stop receiving the video stream of the specified user:true: Stop receiving the video stream of the specified user.false: (Default) Resume receiving the video stream of the specified user.
165
- *
166
153
  * @returns
167
- * 0: Success.< 0: Failure.
154
+ * 0: Success. < 0: Failure.
168
155
  */
169
156
  abstract muteRemoteVideoStreamEx(
170
157
  uid: number,
@@ -176,11 +163,9 @@ export abstract class IRtcEngineEx extends IRtcEngine {
176
163
  * Sets the stream type of the remote video.
177
164
  * Under limited network conditions, if the publisher has not disabled the dual-stream mode using enableDualStreamModeEx (false), the receiver can choose to receive either the high-quality video stream or the low-quality video stream. The high-quality video stream has a higher resolution and bitrate, and the low-quality video stream has a lower resolution and bitrate.By default, users receive the high-quality video stream. Call this method if you want to switch to the low-quality video stream. This method allows the app to adjust the corresponding video stream type based on the size of the video window to reduce the bandwidth and resources. The aspect ratio of the low-quality video stream is the same as the high-quality video stream. Once the resolution of the high-quality video stream is set, the system automatically sets the resolution, frame rate, and bitrate of the low-quality video stream.The SDK enables the low-quality video stream auto mode on the sender by default (not actively sending low-quality video streams). The host at the receiving end can call this method to initiate a low-quality video stream stream request on the receiving end, and the sender automatically switches to the low-quality video stream mode after receiving the request.The result of this method returns in the onApiCallExecuted callback.
178
165
  *
179
- * @param connection The connection information. See RtcConnection .
180
- *
181
166
  * @param uid The user ID.
182
- *
183
167
  * @param streamType The video stream type: VideoStreamType .
168
+ * @param connection The connection information. See RtcConnection .
184
169
  *
185
170
  * @returns
186
171
  * 0: Success.< 0: Failure.
@@ -192,15 +177,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
192
177
  ): number;
193
178
 
194
179
  /**
195
- * Stops or resumes publishing the local audio stream.
196
- * This method does not affect any ongoing audio recording, because it does not disable the audio capture device.
180
+ * Stops or resumes subscribing to the video streams of all remote users.
181
+ * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
197
182
  *
183
+ * @param mute Whether to stop subscribing to the video streams of all remote users.true: Stop subscribing to the video streams of all remote users.false: (Default) Subscribe to the audio streams of all remote users by default.
198
184
  * @param connection The connection information. See RtcConnection .
199
185
  *
200
- * @param mute Whether to stop publishing the local audio stream:true: Stops publishing the local audio stream.false: (Default) Resumes publishing the local audio stream.
201
- *
202
186
  * @returns
203
- * 0: Success. < 0: Failure.
187
+ * 0: Success.< 0: Failure.
204
188
  */
205
189
  abstract muteLocalAudioStreamEx(
206
190
  mute: boolean,
@@ -208,13 +192,12 @@ export abstract class IRtcEngineEx extends IRtcEngine {
208
192
  ): number;
209
193
 
210
194
  /**
211
- * Stops or resumes publishing the local video stream.
212
- * A successful call of this method triggers the onUserMuteVideo callback on the remote client.This method does not affect any ongoing video recording, because it does not disable the camera.
195
+ * Stops or resumes subscribing to the video streams of all remote users.
196
+ * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
213
197
  *
198
+ * @param mute Whether to stop subscribing to the video streams of all remote users.true: Stop subscribing to the video streams of all remote users.false: (Default) Subscribe to the audio streams of all remote users by default.
214
199
  * @param connection The connection information. See RtcConnection .
215
200
  *
216
- * @param mute Whether to stop publishing the local video stream.true: Stop publishing the local video stream.false: (Default) Publish the local video stream.
217
- *
218
201
  * @returns
219
202
  * 0: Success.< 0: Failure.
220
203
  */
@@ -224,15 +207,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
224
207
  ): number;
225
208
 
226
209
  /**
227
- * Stops or resumes subscribing to the audio streams of all remote users.
228
- * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including the ones join the channel subsequent to this call.Call this method after joining a channel.If you do not want to subscribe the audio streams of remote users before joining a channel, you can set autoSubscribeAudio as false when calling joinChannel [2/2] .
210
+ * Stops or resumes subscribing to the video streams of all remote users.
211
+ * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
229
212
  *
213
+ * @param mute Whether to stop subscribing to the video streams of all remote users.true: Stop subscribing to the video streams of all remote users.false: (Default) Subscribe to the audio streams of all remote users by default.
230
214
  * @param connection The connection information. See RtcConnection .
231
215
  *
232
- * @param mute Whether to stop subscribing to the audio streams of all remote users:true: Stops subscribing to the audio streams of all remote users.false: (Default) Subscribes to the audio streams of all remote users by default.
233
- *
234
216
  * @returns
235
- * 0: Success. < 0: Failure.
217
+ * 0: Success.< 0: Failure.
236
218
  */
237
219
  abstract muteAllRemoteAudioStreamsEx(
238
220
  mute: boolean,
@@ -243,12 +225,9 @@ export abstract class IRtcEngineEx extends IRtcEngine {
243
225
  * Stops or resumes subscribing to the video streams of all remote users.
244
226
  * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
245
227
  *
228
+ * @param mute Whether to stop subscribing to the video streams of all remote users.true: Stop subscribing to the video streams of all remote users.false: (Default) Subscribe to the audio streams of all remote users by default.
246
229
  * @param connection The connection information. See RtcConnection .
247
230
  *
248
- * @param mute Whether to stop subscribing to the video streams of all remote users.
249
- * true: Stop subscribing to the video streams of all remote users.
250
- * false: (Default) Subscribe to the audio streams of all remote users by default.
251
- *
252
231
  * @returns
253
232
  * 0: Success.< 0: Failure.
254
233
  */
@@ -258,14 +237,13 @@ export abstract class IRtcEngineEx extends IRtcEngine {
258
237
  ): number;
259
238
 
260
239
  /**
261
- * Set the blocklist of subscriptions for audio streams.
262
- * You can call this method to specify the audio streams of a user that you do not want to subscribe to.You can call this method either before or after joining a channel.The blocklist is not affected by the setting in muteRemoteAudioStream , muteAllRemoteAudioStreams , and autoSubscribeAudio in ChannelMediaOptions .Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
263
- *
264
- * @param connection The connection information. See RtcConnection .
240
+ * Set the allowlist of subscriptions for video streams.
241
+ * You can call this method to specify the video streams of a user that you want to subscribe to.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
242
+ * You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
265
243
  *
244
+ * @param uidList The user ID list of users that you want to subscribe to.If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.
266
245
  * @param uidNumber The number of users in the user ID list.
267
- *
268
- * @param uidList The user ID list of users that you do not want to subscribe to.If you want to specify the audio streams of a user that you do not want to subscribe to, add the user ID in this list. If you want to remove a user from the blocklist, you need to call the setSubscribeAudioBlocklist method to update the user ID list; this means you only add the uid of users that you do not want to subscribe to in the new user ID list.
246
+ * @param connection The connection information. See RtcConnection .
269
247
  *
270
248
  * @returns
271
249
  * 0: Success.< 0: Failure.
@@ -277,16 +255,13 @@ export abstract class IRtcEngineEx extends IRtcEngine {
277
255
  ): number;
278
256
 
279
257
  /**
280
- * Sets the allowlist of subscriptions for audio streams.
281
- * You can call this method to specify the audio streams of a user that you want to subscribe to. If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteAudioStream , muteAllRemoteAudioStreams and autoSubscribeAudio in ChannelMediaOptions .
282
- * Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
283
- *
284
- * @param connection The connection information. See RtcConnection .
258
+ * Set the allowlist of subscriptions for video streams.
259
+ * You can call this method to specify the video streams of a user that you want to subscribe to.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
260
+ * You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
285
261
  *
262
+ * @param uidList The user ID list of users that you want to subscribe to.If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.
286
263
  * @param uidNumber The number of users in the user ID list.
287
- *
288
- * @param uidList The user ID list of users that you want to subscribe to.
289
- * If you want to specify the audio streams of a user for subscription, add the user ID in this list. If you want to remove a user from the allowlist, you need to call the setSubscribeAudioAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.
264
+ * @param connection The connection information. See RtcConnection .
290
265
  *
291
266
  * @returns
292
267
  * 0: Success.< 0: Failure.
@@ -298,14 +273,13 @@ export abstract class IRtcEngineEx extends IRtcEngine {
298
273
  ): number;
299
274
 
300
275
  /**
301
- * Set the blocklist of subscriptions for video streams.
302
- * You can call this method to specify the video streams of a user that you do not want to subscribe to.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.You can call this method either before or after joining a channel.The blocklist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
303
- *
304
- * @param connection The connection information. See RtcConnection .
276
+ * Set the allowlist of subscriptions for video streams.
277
+ * You can call this method to specify the video streams of a user that you want to subscribe to.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
278
+ * You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
305
279
  *
280
+ * @param uidList The user ID list of users that you want to subscribe to.If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.
306
281
  * @param uidNumber The number of users in the user ID list.
307
- *
308
- * @param uidList The user ID list of users that you do not want to subscribe to.If you want to specify the video streams of a user that you do not want to subscribe to, add the user ID of that user in this list. If you want to remove a user from the blocklist, you need to call the setSubscribeVideoBlocklist method to update the user ID list; this means you only add the uid of users that you do not want to subscribe to in the new user ID list.
282
+ * @param connection The connection information. See RtcConnection .
309
283
  *
310
284
  * @returns
311
285
  * 0: Success.< 0: Failure.
@@ -319,13 +293,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
319
293
  /**
320
294
  * Set the allowlist of subscriptions for video streams.
321
295
  * You can call this method to specify the video streams of a user that you want to subscribe to.If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
322
- * You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
323
- *
324
- * @param connection The connection information. See RtcConnection .
325
- *
326
- * @param uidNumber The number of users in the user ID list.
296
+ * You can call this method either before or after joining a channel.The allowlist is not affected by the setting in muteRemoteVideoStream , muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions .
327
297
  *
328
298
  * @param uidList The user ID list of users that you want to subscribe to.If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.
299
+ * @param uidNumber The number of users in the user ID list.
300
+ * @param connection The connection information. See RtcConnection .
329
301
  *
330
302
  * @returns
331
303
  * 0: Success.< 0: Failure.
@@ -340,11 +312,9 @@ export abstract class IRtcEngineEx extends IRtcEngine {
340
312
  * Options for subscribing to remote video streams.
341
313
  * When a remote user has enabled dual-stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user.
342
314
  *
343
- * @param connection The connection information. See RtcConnection .
344
- *
345
- * @param options The video subscription options. See VideoSubscriptionOptions .
346
- *
347
315
  * @param uid The user ID of the remote user.
316
+ * @param options The video subscription options. See VideoSubscriptionOptions .
317
+ * @param connection The connection information. See RtcConnection .
348
318
  *
349
319
  * @returns
350
320
  * 0: Success.< 0: Failure.
@@ -359,16 +329,12 @@ export abstract class IRtcEngineEx extends IRtcEngine {
359
329
  * Sets the 2D position (the position on the horizontal plane) of the remote user's voice.
360
330
  * This method sets the voice position and volume of a remote user.When the local user calls this method to set the voice position of a remote user, the voice difference between the left and right channels allows the local user to track the real-time position of the remote user, creating a sense of space. This method applies to massive multiplayer online games, such as Battle Royale games.For the best voice positioning, Agora recommends using a wired headset.Call this method after joining a channel.
361
331
  *
362
- * @param connection The connection information. See RtcConnection .
363
- *
364
332
  * @param uid The user ID of the remote user.
365
- *
366
333
  * @param pan The voice position of the remote user. The value ranges from -1.0 to 1.0:-1.0: The remote voice comes from the left.0.0: (Default) The remote voice comes from the front.1.0: The remote voice comes from the right.
367
- *
368
334
  * @param gain The volume of the remote user. The value ranges from 0.0 to 100.0. The default value is 100.0 (the original volume of the remote user). The smaller the value, the lower the volume.
335
+ * @param connection The connection information. See RtcConnection .
369
336
  *
370
337
  * @returns
371
- * >
372
338
  * 0: Success.< 0: Failure.
373
339
  */
374
340
  abstract setRemoteVoicePositionEx(
@@ -399,14 +365,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
399
365
 
400
366
  /**
401
367
  * Enables loopback audio capturing.
402
- * If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end.This method applies to the macOS and Windows platforms only.macOS does not support loopback audio capture of the default sound card. If you need to use this function, use a virtual sound card and pass its name to the deviceName parameter. Agora recommends using AgoraALD as the virtual sound card for audio capturing.
403
- *
404
- * @param deviceName macOS: The device name of the virtual sound card. The default value is set to NULL, which means using AgoraALD for loopback audio capturing.
405
- * Windows: The device name of the sound card. The default is set to null, which means the SDK uses the sound card of your device for loopback audio capturing.
368
+ * If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end.This method applies to the macOS and Windows platforms only.macOS does not support loopback audio capture of the default sound card. If you need to use this function, use a virtual sound card and pass its name to the deviceName parameter. Agora recommends using AgoraALD as the virtual sound card for audio capturing.This method only supports using one sound card for audio capturing.
406
369
  *
407
370
  * @param connection The connection information. See RtcConnection .
408
- *
409
371
  * @param enabled Sets whether to enable loopback audio capture:true: Enable loopback audio capturing.false: (Default) Disable loopback audio capturing.
372
+ * @param deviceName macOS: The device name of the virtual sound card. The default value is set to NULL, which means using AgoraALD for loopback audio capturing.Windows: The device name of the sound card. The default is set to NULL, which means the SDK uses the sound card of your device for loopback audio capturing.
410
373
  *
411
374
  * @returns
412
375
  * 0: Success.< 0: Failure.
@@ -417,16 +380,37 @@ export abstract class IRtcEngineEx extends IRtcEngine {
417
380
  deviceName?: string
418
381
  ): number;
419
382
 
383
+ /**
384
+ * @ignore
385
+ */
386
+ abstract adjustRecordingSignalVolumeEx(
387
+ volume: number,
388
+ connection: RtcConnection
389
+ ): number;
390
+
391
+ /**
392
+ * Stops or resumes subscribing to the video streams of all remote users.
393
+ * After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.
394
+ *
395
+ * @param mute Whether to stop subscribing to the video streams of all remote users.true: Stop subscribing to the video streams of all remote users.false: (Default) Subscribe to the audio streams of all remote users by default.
396
+ * @param connection The connection information. See RtcConnection .
397
+ *
398
+ * @returns
399
+ * 0: Success.< 0: Failure.
400
+ */
401
+ abstract muteRecordingSignalEx(
402
+ mute: boolean,
403
+ connection: RtcConnection
404
+ ): number;
405
+
420
406
  /**
421
407
  * Adjusts the playback signal volume of a specified remote user.
422
408
  * You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user.Call this method after joining a channel.The playback volume here refers to the mixed volume of a specified remote user.
423
409
  *
410
+ * @param uid The user ID of the remote user.
424
411
  * @param volume Audio mixing volume. The value ranges between 0 and 100. The default value is 100, which means the original volume.
425
- *
426
412
  * @param connection The connection information. See RtcConnection .
427
413
  *
428
- * @param uid The user ID of the remote user.
429
- *
430
414
  * @returns
431
415
  * 0: Success.< 0: Failure.
432
416
  */
@@ -460,9 +444,8 @@ export abstract class IRtcEngineEx extends IRtcEngine {
460
444
  * Creates a data stream.
461
445
  * Creates a data stream. Each user can create up to five data streams in a single channel.Compared with createDataStreamEx , this method does not support data reliability. If a data packet is not received five seconds after it was sent, the SDK directly discards the data.
462
446
  *
463
- * @param connection The connection information. See RtcConnection .
464
- *
465
447
  * @param config The configurations for the data stream. See DataStreamConfig .
448
+ * @param connection The connection information. See RtcConnection .
466
449
  *
467
450
  * @returns
468
451
  * ID of the created data stream, if the method call succeeds.< 0: Failure.
@@ -474,16 +457,13 @@ export abstract class IRtcEngineEx extends IRtcEngine {
474
457
 
475
458
  /**
476
459
  * Sends data stream messages.
477
- * After calling createDataStreamEx , you can call this method to send data stream messages to all users in the channel.The SDK has the following restrictions on this method:Up to 30 packets can be sent per second in a channel with each packet having a maximum size of 1 kB.Each client can send up to 6 KB of data per second.Each user can have up to five data streams simultaneously.A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message.
460
+ * After calling createDataStreamEx , you can call this method to send data stream messages to all users in the channel.The SDK has the following restrictions on this method:Up to 60 packets can be sent per second in a channel with each packet having a maximum size of 1 KB.Each client can send up to 30 KB of data per second.Each user can have up to five data streams simultaneously.A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message.
478
461
  * A failed method call triggers the onStreamMessageError callback on the remote client.Ensure that you call createDataStreamEx to create a data channel before calling this method.This method applies only to the COMMUNICATION profile or to the hosts in the LIVE_BROADCASTING profile. If an audience in the LIVE_BROADCASTING profile calls this method, the audience may be switched to a host.
479
462
  *
480
- * @param connection The connection information. See RtcConnection .
481
- *
482
463
  * @param streamId The data stream ID. You can get the data stream ID by calling createDataStreamEx.
483
- *
484
- * @param data The data to be sent.
485
- *
464
+ * @param data The message to be sent.
486
465
  * @param length The length of the data.
466
+ * @param connection The connection information. See RtcConnection .
487
467
  *
488
468
  * @returns
489
469
  * 0: Success.< 0: Failure.
@@ -497,13 +477,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
497
477
 
498
478
  /**
499
479
  * Adds a watermark image to the local video.
500
- * This method adds a PNG watermark image to the local video in the live streaming. Once the watermark image is added, all the audience in the channel (CDN audience included), and the capturing device can see and capture it. The Agora SDK supports adding only one watermark image onto a local video or CDN live stream. The newly added watermark image replaces the previous one.The watermark coordinatesare dependent on the settings in the setVideoEncoderConfigurationEx method:If the orientation mode of the encoding video ( OrientationMode ) is fixed landscape mode or the adaptive landscape mode, the watermark uses the landscape orientation.If the orientation mode of the encoding video (OrientationMode) is fixed portrait mode or the adaptive portrait mode, the watermark uses the portrait orientation.When setting the watermark position, the region must be less than the setVideoEncoderConfigurationEx dimensions set in the method; otherwise, the watermark image will be cropped.Ensure that you have called enableVideo before calling this method.This method supports adding a watermark image in the PNG file format only. Supported pixel formats of the PNG image are RGBA, RGB, Palette, Gray, and Alpha_gray.If the dimensions of the PNG image differ from your settings in this method, the image will be cropped or zoomed to conform to your settings.If you have enabled the local video preview by calling the startPreview method, you can use the visibleInPreview member to set whether or not the watermark is visible in the preview.If you have enabled the mirror mode for the local video, the watermark on the local video is also mirrored. To avoid mirroring the watermark, Agora recommends that you do not use the mirror and watermark functions for the local video at the same time. You can implement the watermark function in your application layer.
501
- *
502
- * @param connection The connection information. See RtcConnection .
503
- *
504
- * @param options The options of the watermark image to be added.
480
+ * This method adds a PNG watermark image to the local video in the live streaming. Once the watermark image is added, all the audience in the channel (CDN audience included), and the capturing device can see and capture it. The Agora SDK supports adding only one watermark image onto a local video or CDN live stream. The newly added watermark image replaces the previous one.The watermark coordinates are dependent on the settings in the setVideoEncoderConfigurationEx method:If the orientation mode of the encoding video ( OrientationMode ) is fixed landscape mode or the adaptive landscape mode, the watermark uses the landscape orientation.If the orientation mode of the encoding video (OrientationMode) is fixed portrait mode or the adaptive portrait mode, the watermark uses the portrait orientation.When setting the watermark position, the region must be less than the dimensions set in the setVideoEncoderConfigurationEx method; otherwise, the watermark image will be cropped.Ensure that you have called enableVideo before calling this method.This method supports adding a watermark image in the PNG file format only. Supported pixel formats of the PNG image are RGBA, RGB, Palette, Gray, and Alpha_gray.If the dimensions of the PNG image differ from your settings in this method, the image will be cropped or zoomed to conform to your settings.If you have enabled the local video preview by calling the startPreview method, you can use the visibleInPreview member to set whether or not the watermark is visible in the preview.If you have enabled the mirror mode for the local video, the watermark on the local video is also mirrored. To avoid mirroring the watermark, Agora recommends that you do not use the mirror and watermark functions for the local video at the same time. You can implement the watermark function in your application layer.
505
481
  *
506
482
  * @param watermarkUrl The local file path of the watermark image to be added. This method supports adding a watermark image from the local absolute or relative file path.
483
+ * @param options The options of the watermark image to be added. See WatermarkOptions .
484
+ * @param connection The connection information. See RtcConnection .
507
485
  *
508
486
  * @returns
509
487
  * 0: Success.< 0: Failure.
@@ -541,16 +519,15 @@ export abstract class IRtcEngineEx extends IRtcEngine {
541
519
  * Enables the reporting of users' volume indication.
542
520
  * This method enables the SDK to regularly report the volume information to the app of the local user who sends a stream and remote users (three users at most) whose instantaneous volumes are the highest. Once you call this method and users send streams in the channel, the SDK triggers the onAudioVolumeIndication callback at the time interval set in this method.
543
521
  *
544
- * @param connection The connection information. See RtcConnection .
545
- *
546
- * @param reportVad true: Enable the voice activity detection of the local user. Once it is enabled,the vad parameter of the onAudioVolumeIndication callback reports the voice activity status of the local user.
547
- * false: (Default) Disable the voice activity detection of the local user. Once it is disabled, the vad parameter of the onAudioVolumeIndication callback does not report the voice activity status of the local user, except for the scenario where the engine automatically detects the voice activity of the local user.
548
- *
549
- * @param smooth The smoothing factor sets the sensitivity of the audio volume indicator. The value ranges between 0 and 10. The recommended value is 3. The greater the value, the more sensitive the indicator.
550
- *
551
522
  * @param interval Sets the time interval between two consecutive volume indications:
552
523
  * ≤ 0: Disables the volume indication.
553
- * > 0: Time interval (ms) between two consecutive volume indications. You need to set this parameter to an integer multiple of 200. If the value is lower than 200, the SDK automatically adjusts the value to 200.
524
+ * > 0: Time interval (ms) between two consecutive volume indications. The lowest value is 50.
525
+ *
526
+ * @param smooth The smoothing factor that sets the sensitivity of the audio volume indicator. The value ranges between 0 and 10. The recommended value is 3. The greater the value, the more sensitive the indicator.
527
+ * @param reportVad true: Enables the voice activity detection of the local user. Once it is enabled, the vad parameter of the onAudioVolumeIndication callback reports the voice activity status of the local user.
528
+ * false: (Default) Disables the voice activity detection of the local user. Once it is disabled, the vad parameter of the onAudioVolumeIndication callback does not report the voice activity status of the local user, except for the scenario where the engine automatically detects the voice activity of the local user.
529
+ *
530
+ * @param connection The connection information. See RtcConnection .
554
531
  *
555
532
  * @returns
556
533
  * 0: Success.< 0: Failure.
@@ -565,21 +542,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
565
542
  /**
566
543
  * Starts pushing media streams to a CDN without transcoding.
567
544
  * Ensure that you enable the Media Push service before using this function. See Enable Media Push.
568
- * Call this method after joining a channel.
569
- * Only hosts in the LIVE_BROADCASTING profile can call this method.
570
- * If you want to retry pushing streams after a failed push, make sure to call stopRtmpStream first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.
571
- * Agora recommends that you use the server-side Media Push function. You can call this method to push an audio or video stream to the specified CDN address. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.After you call this method, the SDK triggers the onRtmpStreamingStateChanged callback on the local client to report the state of the streaming.
572
- *
573
- * @param connection The connection information. See RtcConnection .
545
+ * Call this method after joining a channel.
546
+ * Only hosts in the LIVE_BROADCASTING profile can call this method.
547
+ * If you want to retry pushing streams after a failed push, make sure to call stopRtmpStream first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.
548
+ * Agora recommends that you use the server-side Media Push function. You can call this method to push an audio or video stream to the specified CDN address. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.After you call this method, the SDK triggers the onRtmpStreamingStateChanged callback on the local client to report the state of the streaming.
574
549
  *
575
550
  * @param url The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
551
+ * @param connection The connection information. See RtcConnection .
576
552
  *
577
553
  * @returns
578
554
  * 0: Success.
579
- * < 0: Failure.
580
- * -2: The URL is null or the string length is 0.
581
- * -7: The SDK is not initialized before calling this method.
582
- * -19: The Media Push URL is already in use, use another URL instead.
555
+ * < 0: Failure.
556
+ * -2: The URL is null or the string length is 0.
557
+ * -7: The SDK is not initialized before calling this method.
558
+ * -19: The Media Push URL is already in use, use another URL instead.
583
559
  */
584
560
  abstract startRtmpStreamWithoutTranscodingEx(
585
561
  url: string,
@@ -590,11 +566,10 @@ export abstract class IRtcEngineEx extends IRtcEngine {
590
566
  * Starts Media Push and sets the transcoding configuration.
591
567
  * Agora recommends that you use the server-side Media Push function. You can call this method to push a live audio-and-video stream to the specified CDN address and set the transcoding configuration. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.After you call this method, the SDK triggers the onRtmpStreamingStateChanged callback on the local client to report the state of the streaming.Ensure that you enable the Media Push service before using this function. Call this method after joining a channel.Only hosts in the LIVE_BROADCASTING profile can call this method.If you want to retry pushing streams after a failed push, make sure to call stopRtmpStreamEx first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.
592
568
  *
593
- * @param connection The connection information. See RtcConnection .
594
- *
569
+ * @param url The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
595
570
  * @param transcoding The transcoding configuration for Media Push. See LiveTranscoding .
596
571
  *
597
- * @param url The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
572
+ * @param connection The connection information. See RtcConnection .
598
573
  *
599
574
  * @returns
600
575
  * 0: Success.< 0: Failure.-2: The URL is null or the string length is 0.-7: The SDK is not initialized before calling this method.-19: The Media Push URL is already in use, use another URL instead.
@@ -609,10 +584,10 @@ export abstract class IRtcEngineEx extends IRtcEngine {
609
584
  * Updates the transcoding configuration.
610
585
  * Agora recommends that you use the server-side Media Push function. After you start pushing media streams to CDN with transcoding, you can dynamically update the transcoding configuration according to the scenario. The SDK triggers the onTranscodingUpdated callback after the transcoding configuration is updated.
611
586
  *
612
- * @param connection The connection information. See RtcConnection .
613
- *
614
587
  * @param transcoding The transcoding configuration for Media Push. See LiveTranscoding .
615
588
  *
589
+ * @param connection The connection information. See RtcConnection .
590
+ *
616
591
  * @returns
617
592
  * 0: Success.< 0: Failure.
618
593
  */
@@ -622,21 +597,36 @@ export abstract class IRtcEngineEx extends IRtcEngine {
622
597
  ): number;
623
598
 
624
599
  /**
625
- * Stops pushing media streams to a CDN.
626
- * Agora recommends that you use the server-side Media Push function. You can call this method to stop the live stream on the specified CDN address. This method can stop pushing media streams to only one CDN address at a time, so if you need to stop pushing streams to multiple addresses, call this method multiple times.After you call this method, the SDK triggers the onRtmpStreamingStateChanged callback on the local client to report the state of the streaming.
600
+ * Starts pushing media streams to a CDN without transcoding.
601
+ * Ensure that you enable the Media Push service before using this function. See Enable Media Push.
602
+ * Call this method after joining a channel.
603
+ * Only hosts in the LIVE_BROADCASTING profile can call this method.
604
+ * If you want to retry pushing streams after a failed push, make sure to call stopRtmpStream first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.
605
+ * Agora recommends that you use the server-side Media Push function. You can call this method to push an audio or video stream to the specified CDN address. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.After you call this method, the SDK triggers the onRtmpStreamingStateChanged callback on the local client to report the state of the streaming.
627
606
  *
628
607
  * @param url The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
608
+ * @param connection The connection information. See RtcConnection .
629
609
  *
630
610
  * @returns
631
- * 0: Success.< 0: Failure.
611
+ * 0: Success.
612
+ * < 0: Failure.
613
+ * -2: The URL is null or the string length is 0.
614
+ * -7: The SDK is not initialized before calling this method.
615
+ * -19: The Media Push URL is already in use, use another URL instead.
632
616
  */
633
617
  abstract stopRtmpStreamEx(url: string, connection: RtcConnection): number;
634
618
 
619
+ /**
620
+ * @ignore
621
+ */
622
+ abstract startOrUpdateChannelMediaRelayEx(
623
+ configuration: ChannelMediaRelayConfiguration,
624
+ connection: RtcConnection
625
+ ): number;
626
+
635
627
  /**
636
628
  * Starts relaying media streams across channels. This method can be used to implement scenarios such as co-host across channels.
637
- * After a successful method call, the SDK triggers the onChannelMediaRelayStateChanged and onChannelMediaRelayEvent callbacks, and these callbacks return the state and events of the media stream relay.If the onChannelMediaRelayStateChanged callback returns RelayStateRunning (2) and RelayOk (0), and the onChannelMediaRelayEvent callback returns RelayEventPacketSentToDestChannel (4), it means that the SDK starts relaying media streams between the source channel and the destination channel.If the onChannelMediaRelayStateChanged callback returnsRelayStateFailure (3), an exception occurs during the media stream relay.Call this method after joining the channel.This method takes effect only when you are a host in a live streaming channel.After a successful method call, if you want to call this method again, ensure that you call the stopChannelMediaRelayEx method to quit the current relay.The relaying media streams across channels function needs to be enabled.We do not support string user accounts in this API.
638
- *
639
- * @param connection
629
+ * After a successful method call, the SDK triggers the onChannelMediaRelayStateChanged and onChannelMediaRelayEvent callbacks, and these callbacks return the state and events of the media stream relay.If the onChannelMediaRelayStateChanged callback returns RelayStateRunning (2) and RelayOk (0), and the onChannelMediaRelayEvent callback returns RelayEventPacketSentToDestChannel (4), it means that the SDK starts relaying media streams between the source channel and the target channel.If the onChannelMediaRelayStateChanged callback returnsRelayStateFailure (3), an exception occurs during the media stream relay.Call this method after joining the channel.This method takes effect only when you are a host in a live streaming channel.After a successful method call, if you want to call this method again, ensure that you call the stopChannelMediaRelayEx method to quit the current relay.The relaying media streams across channels function needs to be enabled by contacting .We do not support string user accounts in this API.
640
630
  *
641
631
  * @returns
642
632
  * 0: Success.< 0: Failure.-1: A general error occurs (no specified reason).-2: The parameter is invalid.-7: The method call was rejected. It may be because the SDK has not been initialized successfully, or the user role is not an host.-8: Internal state error. Probably because the user is not an audience member.
@@ -648,9 +638,7 @@ export abstract class IRtcEngineEx extends IRtcEngine {
648
638
 
649
639
  /**
650
640
  * Updates the channels for media stream relay.
651
- * After the media relay starts, if you want to relay the media stream to more channels, or leave the current relay channel, you can call the updateChannelMediaRelay method.After a successful method call, the SDK triggers the onChannelMediaRelayEvent callback with the RelayEventPacketUpdateDestChannel (7) state code.Call the method after successfully calling the startChannelMediaRelayEx method and receiving onChannelMediaRelayStateChanged (RelayStateRunning, RelayOk); otherwise, the method call fails.
652
- *
653
- * @param connection
641
+ * After the media relay starts, if you want to relay the media stream to more channels, or leave the current relay channel, you can call this method.After a successful method call, the SDK triggers the onChannelMediaRelayEvent callback with the RelayEventPacketUpdateDestChannel (7) state code.Call the method after successfully calling the startChannelMediaRelayEx method and receiving onChannelMediaRelayStateChanged (RelayStateRunning, RelayOk); otherwise, the method call fails.
654
642
  *
655
643
  * @returns
656
644
  * 0: Success.< 0: Failure.
@@ -661,9 +649,8 @@ export abstract class IRtcEngineEx extends IRtcEngine {
661
649
  ): number;
662
650
 
663
651
  /**
664
- * Stops the media stream relay. Once the relay stops, the host quits all the destination channels.
665
- * After a successful method call, the SDK triggers the onChannelMediaRelayStateChanged callback. If the callback reports RelayStateIdle (0) and RelayOk (0), the host successfully stops the relay.
666
- * If the method call fails, the SDK triggers the onChannelMediaRelayStateChanged callback with the RelayErrorServerNoResponse (2) or RelayErrorServerConnectionLost (8) status code. You can call the leaveChannel method to leave the channel, and the media stream relay automatically stops.
652
+ * Stops the media stream relay. Once the relay stops, the host quits all the target channels.
653
+ * After a successful method call, the SDK triggers the onChannelMediaRelayStateChanged callback. If the callback reports RelayStateIdle (0) and RelayOk (0), the host successfully stops the relay.If the method call fails, the SDK triggers the onChannelMediaRelayStateChanged callback with the RelayErrorServerNoResponse (2) or RelayErrorServerConnectionLost (8) status code. You can call the leaveChannel method to leave the channel, and the media stream relay automatically stops.
667
654
  *
668
655
  * @param connection The connection information. See RtcConnection .
669
656
  *
@@ -673,8 +660,8 @@ export abstract class IRtcEngineEx extends IRtcEngine {
673
660
  abstract stopChannelMediaRelayEx(connection: RtcConnection): number;
674
661
 
675
662
  /**
676
- * Pauses the media stream relay to all destination channels.
677
- * After the cross-channel media stream relay starts, you can call this method to pause relaying media streams to all destination channels; after the pause, if you want to resume the relay, call resumeAllChannelMediaRelay .After a successful method call, the SDK triggers the onChannelMediaRelayEvent callback to report whether the media stream relay is successfully paused.Call this method after startChannelMediaRelayEx .
663
+ * Pauses the media stream relay to all target channels.
664
+ * After the cross-channel media stream relay starts, you can call this method to pause relaying media streams to all target channels; after the pause, if you want to resume the relay, call resumeAllChannelMediaRelay .After a successful method call, the SDK triggers the onChannelMediaRelayEvent callback to report whether the media stream relay is successfully paused.Call this method after startChannelMediaRelayEx .
678
665
  *
679
666
  * @param connection The connection information. See RtcConnection .
680
667
  *
@@ -684,7 +671,7 @@ export abstract class IRtcEngineEx extends IRtcEngine {
684
671
  abstract pauseAllChannelMediaRelayEx(connection: RtcConnection): number;
685
672
 
686
673
  /**
687
- * Resumes the media stream relay to all destination channels.
674
+ * Resumes the media stream relay to all target channels.
688
675
  * After calling the pauseAllChannelMediaRelayEx method, you can call this method to resume relaying media streams to all destination channels.After a successful method call, the SDK triggers the onChannelMediaRelayEvent callback to report whether the media stream relay is successfully resumed.Call this method after pauseAllChannelMediaRelayEx .
689
676
  *
690
677
  * @param connection The connection information. See RtcConnection .
@@ -703,31 +690,21 @@ export abstract class IRtcEngineEx extends IRtcEngine {
703
690
  ): UserInfo;
704
691
 
705
692
  /**
706
- * @ignore
693
+ * Occurs when the most active remote speaker is detected.
694
+ * After a successful call of enableAudioVolumeIndication , the SDK continuously detects which remote user has the loudest volume. During the current period, the remote user, who is detected as the loudest for the most times, is the most active user.When the number of users is no less than two and an active remote speaker exists, the SDK triggers this callback and reports the uid of the most active remote speaker.If the most active remote speaker is always the same user, the SDK triggers the onActiveSpeaker callback only once.If the most active remote speaker changes to another user, the SDK triggers this callback again and reports the uid of the new active remote speaker.
695
+ *
696
+ * @param uid The user ID of the most active remote speaker.
697
+ * @param connection The connection information. See RtcConnection .
707
698
  */
708
699
  abstract getUserInfoByUidEx(uid: number, connection: RtcConnection): UserInfo;
709
700
 
710
- /**
711
- * @ignore
712
- */
713
- abstract setVideoProfileEx(
714
- width: number,
715
- height: number,
716
- frameRate: number,
717
- bitrate: number
718
- ): number;
719
-
720
701
  /**
721
702
  * Enables or disables dual-stream mode on the sender side.
722
703
  * After you enable dual-stream mode, you can call setRemoteVideoStreamType to choose to receive either the high-quality video stream or the low-quality video stream on the subscriber side.You can call this method to enable or disable the dual-stream mode on the publisher side. Dual streams are a pairing of a high-quality video stream and a low-quality video stream:High-quality video stream: High bitrate, high resolution.Low-quality video stream: Low bitrate, low resolution.This method is applicable to all types of streams from the sender, including but not limited to video streams collected from cameras, screen sharing streams, and custom-collected video streams.
723
704
  *
724
- * @param connection The connection information. See RtcConnection .
725
- *
705
+ * @param enabled Whether to enable dual-stream mode:true: Enable dual-stream mode.false: (Default) Disable dual-stream mode.
726
706
  * @param streamConfig The configuration of the low-quality video stream. See SimulcastStreamConfig .
727
- *
728
- * @param enabled Whether to enable dual-stream mode:
729
- * true: Enable dual-stream mode.
730
- * false: (Default) Disable dual-stream mode.
707
+ * @param connection The connection information. See RtcConnection .
731
708
  *
732
709
  * @returns
733
710
  * 0: Success.< 0: Failure.
@@ -739,7 +716,16 @@ export abstract class IRtcEngineEx extends IRtcEngine {
739
716
  ): number;
740
717
 
741
718
  /**
742
- * @ignore
719
+ * Sets dual-stream mode on the sender side.
720
+ * The SDK enables the low-quality video stream auto mode on the sender by default, which is equivalent to calling this method and setting the mode to AutoSimulcastStream. If you want to modify this behavior, you can call this method and modify the mode to DisableSimulcastStream(never send low-quality video streams) or EnableSimulcastStream (always send low-quality video streams).The difference and connection between this method and enableDualStreamModeEx is as follows:When calling this method and setting mode to DisableSimulcastStream, it has the same effect as enableDualStreamModeEx(false).When calling this method and setting mode to EnableSimulcastStream, it has the same effect as enableDualStreamModeEx(true).Both methods can be called before and after joining a channel. If they are used at the same time, the settings in the method called later shall prevail.
721
+ *
722
+ * @param mode The mode in which the video stream is sent. See SimulcastStreamMode .
723
+ * @param streamConfig The configuration of the low-quality video stream. See SimulcastStreamConfig .
724
+ *
725
+ * @param connection The connection information. See RtcConnection .
726
+ *
727
+ * @returns
728
+ * 0: Success.< 0: Failure.
743
729
  */
744
730
  abstract setDualStreamModeEx(
745
731
  mode: SimulcastStreamMode,
@@ -750,22 +736,26 @@ export abstract class IRtcEngineEx extends IRtcEngine {
750
736
  /**
751
737
  * @ignore
752
738
  */
753
- abstract enableWirelessAccelerate(enabled: boolean): number;
739
+ abstract setHighPriorityUserListEx(
740
+ uidList: number[],
741
+ uidNum: number,
742
+ option: StreamFallbackOptions,
743
+ connection: RtcConnection
744
+ ): number;
754
745
 
755
746
  /**
756
747
  * Takes a snapshot of a video stream.
757
748
  * The method is asynchronous, and the SDK has not taken the snapshot when the method call returns. After a successful method call, the SDK triggers the onSnapshotTaken callback to report whether the snapshot is successfully taken, as well as the details for that snapshot.
758
- * This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
759
- * Call this method after the joinChannelEx method.This method takes a snapshot of the published video stream specified in ChannelMediaOptions .If the user's video has been preprocessed, for example, watermarked or beautified, the resulting snapshot includes the pre-processing effect.
749
+ * This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
750
+ * Call this method after the joinChannelEx method.This method takes a snapshot of the published video stream specified in ChannelMediaOptions .If the user's video has been preprocessed, for example, watermarked or beautified, the resulting snapshot includes the pre-processing effect.
760
751
  *
752
+ * @param connection The connection information. See RtcConnection .
753
+ * @param uid The user ID. Set uid as 0 if you want to take a snapshot of the local user's video.
761
754
  * @param filePath The local path (including filename extensions) of the snapshot. For example:
762
755
  * Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg
763
756
  * macOS: ~/Library/Logs/example.jpg
764
757
  * Ensure that the path you specify exists and is writable.
765
758
  *
766
- * @param uid The user ID. Set uid as 0 if you want to take a snapshot of the local user's video.
767
- *
768
- * @param connection The connection information. See RtcConnection .
769
759
  *
770
760
  * @returns
771
761
  * 0: Success.< 0: Failure.
@@ -777,7 +767,13 @@ export abstract class IRtcEngineEx extends IRtcEngine {
777
767
  ): number;
778
768
 
779
769
  /**
780
- * @ignore
770
+ * Stops recording the local audio and video.
771
+ * After calling startRecording , if you want to stop the recording, you must call this method; otherwise, the generated recording files may not be playable.
772
+ *
773
+ * @param connection The connection information. See RtcConnection .
774
+ *
775
+ * @returns
776
+ * 0: Success.< 0: Failure.-7: The method is called before IRtcEngine is initialized.
781
777
  */
782
778
  abstract startMediaRenderingTracingEx(connection: RtcConnection): number;
783
779
  }