agora-electron-sdk 4.5.2 → 4.5.3-dev.2

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 (411) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +6 -3
  3. package/js/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.js +395 -0
  4. package/js/{AgoraSdk.js → ts/AgoraSdk.js} +2 -12
  5. package/js/{Decoder → ts/Decoder}/index.js +1 -1
  6. package/js/{Private → ts/Private}/AgoraBase.js +829 -674
  7. package/js/{Private → ts/Private}/AgoraMediaBase.js +154 -151
  8. package/js/{Private → ts/Private}/AgoraMediaPlayerTypes.js +58 -54
  9. package/js/{Private → ts/Private}/IAgoraLog.js +13 -13
  10. package/js/{Private → ts/Private}/IAgoraMediaEngine.js +4 -4
  11. package/js/{Private → ts/Private}/IAgoraMediaPlayer.js +2 -2
  12. package/js/{Private → ts/Private}/IAgoraMusicContentCenter.js +1 -1
  13. package/js/{Private → ts/Private}/IAgoraRhythmPlayer.js +13 -13
  14. package/js/{Private → ts/Private}/IAgoraRtcEngine.js +150 -94
  15. package/js/{Private → ts/Private}/IAgoraRtcEngineEx.js +3 -3
  16. package/js/{Private → ts/Private}/IAgoraSpatialAudio.js +4 -4
  17. package/js/{Private → ts/Private}/IAudioDeviceManager.js +2 -2
  18. package/js/{Private → ts/Private}/impl/IAgoraMediaPlayerImpl.js +10 -0
  19. package/js/{Private → ts/Private}/impl/IAgoraRtcEngineExImpl.js +74 -0
  20. package/js/{Private → ts/Private}/impl/IAgoraRtcEngineImpl.js +233 -1
  21. package/js/{Private → ts/Private}/internal/IrisApiEngine.js +45 -0
  22. package/js/{Private → ts/Private}/internal/RtcEngineExInternal.js +74 -4
  23. package/js/ts/Private/internal/VideoEffectObjectInternal.js +14 -0
  24. package/js/{Private → ts/Private}/ti/IAgoraRtcEngine-ti.js +2 -0
  25. package/js/{Renderer → ts/Renderer}/AgoraView.js +19 -2
  26. package/js/{Renderer → ts/Renderer}/IRenderer.js +7 -4
  27. package/js/{Renderer → ts/Renderer}/IRendererCache.js +17 -1
  28. package/js/ts/Renderer/RendererCache.js +252 -0
  29. package/js/{Renderer → ts/Renderer}/RendererManager.js +13 -64
  30. package/js/{Renderer → ts/Renderer}/WebCodecsRenderer/index.js +5 -5
  31. package/js/{Renderer → ts/Renderer}/WebCodecsRendererCache.js +13 -1
  32. package/js/{Renderer → ts/Renderer}/WebGLRenderer/index.js +179 -26
  33. package/js/{Renderer → ts/Renderer}/YUVCanvasRenderer/index.js +12 -5
  34. package/js/{Utils.js → ts/Utils.js} +7 -7
  35. package/package.json +25 -12
  36. package/scripts/checkElectron.js +4 -2
  37. package/scripts/download.js +102 -0
  38. package/scripts/downloadPrebuild.js +2 -1
  39. package/scripts/synclib.js +2 -2
  40. package/ts/AgoraSdk.ts +2 -12
  41. package/ts/Decoder/index.ts +5 -1
  42. package/ts/Private/AgoraBase.ts +1259 -1060
  43. package/ts/Private/AgoraMediaBase.ts +351 -324
  44. package/ts/Private/AgoraMediaPlayerTypes.ts +94 -91
  45. package/ts/Private/IAgoraLog.ts +20 -18
  46. package/ts/Private/IAgoraMediaEngine.ts +86 -81
  47. package/ts/Private/IAgoraMediaPlayer.ts +196 -181
  48. package/ts/Private/IAgoraMediaPlayerSource.ts +40 -40
  49. package/ts/Private/IAgoraMusicContentCenter.ts +3 -3
  50. package/ts/Private/IAgoraRhythmPlayer.ts +15 -15
  51. package/ts/Private/IAgoraRtcEngine.ts +2492 -2047
  52. package/ts/Private/IAgoraRtcEngineEx.ts +434 -335
  53. package/ts/Private/IAgoraSpatialAudio.ts +43 -45
  54. package/ts/Private/IAudioDeviceManager.ts +106 -97
  55. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +12 -0
  56. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +138 -0
  57. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +331 -0
  58. package/ts/Private/internal/IrisApiEngine.ts +47 -0
  59. package/ts/Private/internal/RtcEngineExInternal.ts +106 -9
  60. package/ts/Private/internal/VideoEffectObjectInternal.ts +14 -0
  61. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -0
  62. package/ts/Renderer/AgoraView.ts +32 -3
  63. package/ts/Renderer/IRenderer.ts +8 -3
  64. package/ts/Renderer/IRendererCache.ts +33 -0
  65. package/ts/Renderer/RendererCache.ts +211 -12
  66. package/ts/Renderer/RendererManager.ts +21 -99
  67. package/ts/Renderer/WebCodecsRenderer/index.ts +9 -6
  68. package/ts/Renderer/WebCodecsRendererCache.ts +17 -1
  69. package/ts/Renderer/WebGLRenderer/index.ts +246 -40
  70. package/ts/Renderer/YUVCanvasRenderer/index.ts +29 -16
  71. package/ts/Types.ts +14 -9
  72. package/ts/Utils.ts +8 -7
  73. package/types/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.d.ts +168 -0
  74. package/types/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.d.ts.map +1 -0
  75. package/types/{AgoraSdk.d.ts → ts/AgoraSdk.d.ts} +2 -12
  76. package/types/ts/AgoraSdk.d.ts.map +1 -0
  77. package/types/ts/Decoder/gpu-utils.d.ts.map +1 -0
  78. package/types/ts/Decoder/index.d.ts.map +1 -0
  79. package/types/ts/Private/AgoraBase.d.ts +5504 -0
  80. package/types/ts/Private/AgoraBase.d.ts.map +1 -0
  81. package/types/ts/Private/AgoraMediaBase.d.ts +1695 -0
  82. package/types/ts/Private/AgoraMediaBase.d.ts.map +1 -0
  83. package/types/ts/Private/AgoraMediaPlayerTypes.d.ts +456 -0
  84. package/types/ts/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  85. package/types/ts/Private/IAgoraH265Transcoder.d.ts.map +1 -0
  86. package/types/ts/Private/IAgoraLog.d.ts +91 -0
  87. package/types/ts/Private/IAgoraLog.d.ts.map +1 -0
  88. package/types/ts/Private/IAgoraMediaEngine.d.ts +255 -0
  89. package/types/ts/Private/IAgoraMediaEngine.d.ts.map +1 -0
  90. package/types/ts/Private/IAgoraMediaPlayer.d.ts +662 -0
  91. package/types/ts/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  92. package/types/ts/Private/IAgoraMediaPlayerSource.d.ts +109 -0
  93. package/types/ts/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  94. package/types/ts/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  95. package/types/ts/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  96. package/types/{Private → ts/Private}/IAgoraMusicContentCenter.d.ts +3 -3
  97. package/types/ts/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  98. package/types/ts/Private/IAgoraRhythmPlayer.d.ts +65 -0
  99. package/types/ts/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  100. package/types/ts/Private/IAgoraRtcEngine.d.ts +6504 -0
  101. package/types/ts/Private/IAgoraRtcEngine.d.ts.map +1 -0
  102. package/types/ts/Private/IAgoraRtcEngineEx.d.ts +817 -0
  103. package/types/ts/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  104. package/types/ts/Private/IAgoraSpatialAudio.d.ts +194 -0
  105. package/types/ts/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  106. package/types/ts/Private/IAudioDeviceManager.d.ts +321 -0
  107. package/types/ts/Private/IAudioDeviceManager.d.ts.map +1 -0
  108. package/types/ts/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  109. package/types/ts/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  110. package/types/ts/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  111. package/types/ts/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
  112. package/types/ts/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  113. package/types/ts/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  114. package/types/ts/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  115. package/types/ts/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  116. package/types/ts/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  117. package/types/ts/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  118. package/types/ts/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  119. package/types/ts/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  120. package/types/ts/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  121. package/types/ts/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  122. package/types/ts/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  123. package/types/ts/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  124. package/types/ts/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  125. package/types/ts/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
  126. package/types/ts/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  127. package/types/{Private → ts/Private}/impl/IAgoraMediaPlayerImpl.d.ts +2 -0
  128. package/types/ts/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  129. package/types/ts/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  130. package/types/ts/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  131. package/types/ts/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  132. package/types/{Private → ts/Private}/impl/IAgoraRtcEngineExImpl.d.ts +7 -1
  133. package/types/ts/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  134. package/types/{Private → ts/Private}/impl/IAgoraRtcEngineImpl.d.ts +27 -1
  135. package/types/ts/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  136. package/types/ts/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  137. package/types/ts/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  138. package/types/ts/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
  139. package/types/ts/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
  140. package/types/ts/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  141. package/types/ts/Private/internal/IrisApiEngine.d.ts.map +1 -0
  142. package/types/ts/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  143. package/types/ts/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  144. package/types/ts/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  145. package/types/ts/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  146. package/types/ts/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  147. package/types/{Private → ts/Private}/internal/RtcEngineExInternal.d.ts +10 -4
  148. package/types/ts/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  149. package/types/ts/Private/internal/VideoEffectObjectInternal.d.ts +7 -0
  150. package/types/ts/Private/internal/VideoEffectObjectInternal.d.ts.map +1 -0
  151. package/types/{Private → ts/Private}/ipc/main.d.ts.map +1 -1
  152. package/types/ts/Private/ipc/renderer.d.ts.map +1 -0
  153. package/types/ts/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  154. package/types/ts/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  155. package/types/ts/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  156. package/types/ts/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
  157. package/types/ts/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  158. package/types/ts/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  159. package/types/ts/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  160. package/types/ts/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  161. package/types/ts/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  162. package/types/ts/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  163. package/types/ts/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  164. package/types/ts/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  165. package/types/ts/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  166. package/types/ts/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  167. package/types/ts/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  168. package/types/ts/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  169. package/types/{Renderer → ts/Renderer}/AgoraView.d.ts +6 -0
  170. package/types/ts/Renderer/AgoraView.d.ts.map +1 -0
  171. package/types/ts/Renderer/CapabilityManager.d.ts.map +1 -0
  172. package/types/{Renderer → ts/Renderer}/IRenderer.d.ts +2 -2
  173. package/types/ts/Renderer/IRenderer.d.ts.map +1 -0
  174. package/types/{Renderer → ts/Renderer}/IRendererCache.d.ts +21 -1
  175. package/types/ts/Renderer/IRendererCache.d.ts.map +1 -0
  176. package/types/{Renderer → ts/Renderer}/RendererCache.d.ts +27 -0
  177. package/types/ts/Renderer/RendererCache.d.ts.map +1 -0
  178. package/types/{Renderer → ts/Renderer}/RendererManager.d.ts +4 -17
  179. package/types/ts/Renderer/RendererManager.d.ts.map +1 -0
  180. package/types/{Renderer → ts/Renderer}/WebCodecsRenderer/index.d.ts +3 -3
  181. package/types/ts/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
  182. package/types/{Renderer → ts/Renderer}/WebCodecsRendererCache.d.ts +7 -0
  183. package/types/ts/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
  184. package/types/{Renderer → ts/Renderer}/WebGLRenderer/index.d.ts +12 -2
  185. package/types/ts/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  186. package/types/ts/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  187. package/types/ts/Renderer/YUVCanvasRenderer/index.d.ts +10 -0
  188. package/types/ts/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  189. package/types/ts/Renderer/index.d.ts.map +1 -0
  190. package/types/{Types.d.ts → ts/Types.d.ts} +11 -6
  191. package/types/ts/Types.d.ts.map +1 -0
  192. package/types/{Utils.d.ts → ts/Utils.d.ts} +1 -1
  193. package/types/ts/Utils.d.ts.map +1 -0
  194. package/js/Renderer/RendererCache.js +0 -100
  195. package/types/AgoraSdk.d.ts.map +0 -1
  196. package/types/Decoder/gpu-utils.d.ts.map +0 -1
  197. package/types/Decoder/index.d.ts.map +0 -1
  198. package/types/Private/AgoraBase.d.ts +0 -5310
  199. package/types/Private/AgoraBase.d.ts.map +0 -1
  200. package/types/Private/AgoraMediaBase.d.ts +0 -1668
  201. package/types/Private/AgoraMediaBase.d.ts.map +0 -1
  202. package/types/Private/AgoraMediaPlayerTypes.d.ts +0 -453
  203. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +0 -1
  204. package/types/Private/IAgoraH265Transcoder.d.ts.map +0 -1
  205. package/types/Private/IAgoraLog.d.ts +0 -89
  206. package/types/Private/IAgoraLog.d.ts.map +0 -1
  207. package/types/Private/IAgoraMediaEngine.d.ts +0 -250
  208. package/types/Private/IAgoraMediaEngine.d.ts.map +0 -1
  209. package/types/Private/IAgoraMediaPlayer.d.ts +0 -648
  210. package/types/Private/IAgoraMediaPlayer.d.ts.map +0 -1
  211. package/types/Private/IAgoraMediaPlayerSource.d.ts +0 -109
  212. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +0 -1
  213. package/types/Private/IAgoraMediaRecorder.d.ts.map +0 -1
  214. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +0 -1
  215. package/types/Private/IAgoraMusicContentCenter.d.ts.map +0 -1
  216. package/types/Private/IAgoraRhythmPlayer.d.ts +0 -65
  217. package/types/Private/IAgoraRhythmPlayer.d.ts.map +0 -1
  218. package/types/Private/IAgoraRtcEngine.d.ts +0 -6103
  219. package/types/Private/IAgoraRtcEngine.d.ts.map +0 -1
  220. package/types/Private/IAgoraRtcEngineEx.d.ts +0 -741
  221. package/types/Private/IAgoraRtcEngineEx.d.ts.map +0 -1
  222. package/types/Private/IAgoraSpatialAudio.d.ts +0 -196
  223. package/types/Private/IAgoraSpatialAudio.d.ts.map +0 -1
  224. package/types/Private/IAudioDeviceManager.d.ts +0 -312
  225. package/types/Private/IAudioDeviceManager.d.ts.map +0 -1
  226. package/types/Private/extension/AgoraBaseExtension.d.ts.map +0 -1
  227. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +0 -1
  228. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +0 -1
  229. package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +0 -1
  230. package/types/Private/extension/IAgoraLogExtension.d.ts.map +0 -1
  231. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +0 -1
  232. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +0 -1
  233. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +0 -1
  234. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +0 -1
  235. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +0 -1
  236. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +0 -1
  237. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +0 -1
  238. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +0 -1
  239. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +0 -1
  240. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +0 -1
  241. package/types/Private/impl/AgoraBaseImpl.d.ts.map +0 -1
  242. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +0 -1
  243. package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +0 -1
  244. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +0 -1
  245. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +0 -1
  246. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +0 -1
  247. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +0 -1
  248. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +0 -1
  249. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +0 -1
  250. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +0 -1
  251. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +0 -1
  252. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +0 -1
  253. package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +0 -1
  254. package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +0 -1
  255. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +0 -1
  256. package/types/Private/internal/IrisApiEngine.d.ts.map +0 -1
  257. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +0 -1
  258. package/types/Private/internal/MediaEngineInternal.d.ts.map +0 -1
  259. package/types/Private/internal/MediaPlayerInternal.d.ts.map +0 -1
  260. package/types/Private/internal/MediaRecorderInternal.d.ts.map +0 -1
  261. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +0 -1
  262. package/types/Private/internal/RtcEngineExInternal.d.ts.map +0 -1
  263. package/types/Private/ipc/renderer.d.ts.map +0 -1
  264. package/types/Private/ti/AgoraBase-ti.d.ts.map +0 -1
  265. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +0 -1
  266. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +0 -1
  267. package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +0 -1
  268. package/types/Private/ti/IAgoraLog-ti.d.ts.map +0 -1
  269. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +0 -1
  270. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +0 -1
  271. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +0 -1
  272. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +0 -1
  273. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +0 -1
  274. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +0 -1
  275. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +0 -1
  276. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +0 -1
  277. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +0 -1
  278. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +0 -1
  279. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +0 -1
  280. package/types/Renderer/AgoraView.d.ts.map +0 -1
  281. package/types/Renderer/CapabilityManager.d.ts.map +0 -1
  282. package/types/Renderer/IRenderer.d.ts.map +0 -1
  283. package/types/Renderer/IRendererCache.d.ts.map +0 -1
  284. package/types/Renderer/RendererCache.d.ts.map +0 -1
  285. package/types/Renderer/RendererManager.d.ts.map +0 -1
  286. package/types/Renderer/WebCodecsRenderer/index.d.ts.map +0 -1
  287. package/types/Renderer/WebCodecsRendererCache.d.ts.map +0 -1
  288. package/types/Renderer/WebGLRenderer/index.d.ts.map +0 -1
  289. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +0 -1
  290. package/types/Renderer/YUVCanvasRenderer/index.d.ts +0 -9
  291. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +0 -1
  292. package/types/Renderer/index.d.ts.map +0 -1
  293. package/types/Types.d.ts.map +0 -1
  294. package/types/Utils.d.ts.map +0 -1
  295. /package/js/{Decoder → ts/Decoder}/gpu-utils.js +0 -0
  296. /package/js/{Private → ts/Private}/IAgoraH265Transcoder.js +0 -0
  297. /package/js/{Private → ts/Private}/IAgoraMediaPlayerSource.js +0 -0
  298. /package/js/{Private → ts/Private}/IAgoraMediaRecorder.js +0 -0
  299. /package/js/{Private → ts/Private}/IAgoraMediaStreamingSource.js +0 -0
  300. /package/js/{Private → ts/Private}/extension/AgoraBaseExtension.js +0 -0
  301. /package/js/{Private → ts/Private}/extension/AgoraMediaBaseExtension.js +0 -0
  302. /package/js/{Private → ts/Private}/extension/AgoraMediaPlayerTypesExtension.js +0 -0
  303. /package/js/{Private → ts/Private}/extension/IAgoraH265TranscoderExtension.js +0 -0
  304. /package/js/{Private → ts/Private}/extension/IAgoraLogExtension.js +0 -0
  305. /package/js/{Private → ts/Private}/extension/IAgoraMediaEngineExtension.js +0 -0
  306. /package/js/{Private → ts/Private}/extension/IAgoraMediaPlayerExtension.js +0 -0
  307. /package/js/{Private → ts/Private}/extension/IAgoraMediaPlayerSourceExtension.js +0 -0
  308. /package/js/{Private → ts/Private}/extension/IAgoraMediaRecorderExtension.js +0 -0
  309. /package/js/{Private → ts/Private}/extension/IAgoraMusicContentCenterExtension.js +0 -0
  310. /package/js/{Private → ts/Private}/extension/IAgoraRhythmPlayerExtension.js +0 -0
  311. /package/js/{Private → ts/Private}/extension/IAgoraRtcEngineExExtension.js +0 -0
  312. /package/js/{Private → ts/Private}/extension/IAgoraRtcEngineExtension.js +0 -0
  313. /package/js/{Private → ts/Private}/extension/IAgoraSpatialAudioExtension.js +0 -0
  314. /package/js/{Private → ts/Private}/extension/IAudioDeviceManagerExtension.js +0 -0
  315. /package/js/{Private → ts/Private}/impl/AgoraBaseImpl.js +0 -0
  316. /package/js/{Private → ts/Private}/impl/AgoraMediaBaseImpl.js +0 -0
  317. /package/js/{Private → ts/Private}/impl/IAgoraH265TranscoderImpl.js +0 -0
  318. /package/js/{Private → ts/Private}/impl/IAgoraMediaEngineImpl.js +0 -0
  319. /package/js/{Private → ts/Private}/impl/IAgoraMediaPlayerSourceImpl.js +0 -0
  320. /package/js/{Private → ts/Private}/impl/IAgoraMediaRecorderImpl.js +0 -0
  321. /package/js/{Private → ts/Private}/impl/IAgoraMusicContentCenterImpl.js +0 -0
  322. /package/js/{Private → ts/Private}/impl/IAgoraSpatialAudioImpl.js +0 -0
  323. /package/js/{Private → ts/Private}/impl/IAudioDeviceManagerImpl.js +0 -0
  324. /package/js/{Private → ts/Private}/internal/AgoraH265TranscoderInternal.js +0 -0
  325. /package/js/{Private → ts/Private}/internal/AgoraMediaBaseInternal.js +0 -0
  326. /package/js/{Private → ts/Private}/internal/AudioDeviceManagerInternal.js +0 -0
  327. /package/js/{Private → ts/Private}/internal/LocalSpatialAudioEngineInternal.js +0 -0
  328. /package/js/{Private → ts/Private}/internal/MediaEngineInternal.js +0 -0
  329. /package/js/{Private → ts/Private}/internal/MediaPlayerInternal.js +0 -0
  330. /package/js/{Private → ts/Private}/internal/MediaRecorderInternal.js +0 -0
  331. /package/js/{Private → ts/Private}/internal/MusicContentCenterInternal.js +0 -0
  332. /package/js/{Private → ts/Private}/ipc/main.js +0 -0
  333. /package/js/{Private → ts/Private}/ipc/renderer.js +0 -0
  334. /package/js/{Private → ts/Private}/ti/AgoraBase-ti.js +0 -0
  335. /package/js/{Private → ts/Private}/ti/AgoraMediaBase-ti.js +0 -0
  336. /package/js/{Private → ts/Private}/ti/AgoraMediaPlayerTypes-ti.js +0 -0
  337. /package/js/{Private → ts/Private}/ti/IAgoraH265Transcoder-ti.js +0 -0
  338. /package/js/{Private → ts/Private}/ti/IAgoraLog-ti.js +0 -0
  339. /package/js/{Private → ts/Private}/ti/IAgoraMediaEngine-ti.js +0 -0
  340. /package/js/{Private → ts/Private}/ti/IAgoraMediaPlayer-ti.js +0 -0
  341. /package/js/{Private → ts/Private}/ti/IAgoraMediaPlayerSource-ti.js +0 -0
  342. /package/js/{Private → ts/Private}/ti/IAgoraMediaRecorder-ti.js +0 -0
  343. /package/js/{Private → ts/Private}/ti/IAgoraMediaStreamingSource-ti.js +0 -0
  344. /package/js/{Private → ts/Private}/ti/IAgoraMusicContentCenter-ti.js +0 -0
  345. /package/js/{Private → ts/Private}/ti/IAgoraRhythmPlayer-ti.js +0 -0
  346. /package/js/{Private → ts/Private}/ti/IAgoraRtcEngineEx-ti.js +0 -0
  347. /package/js/{Private → ts/Private}/ti/IAgoraSpatialAudio-ti.js +0 -0
  348. /package/js/{Private → ts/Private}/ti/IAudioDeviceManager-ti.js +0 -0
  349. /package/js/{Renderer → ts/Renderer}/CapabilityManager.js +0 -0
  350. /package/js/{Renderer → ts/Renderer}/WebGLRenderer/webgl-utils.js +0 -0
  351. /package/js/{Renderer → ts/Renderer}/index.js +0 -0
  352. /package/js/{Types.js → ts/Types.js} +0 -0
  353. /package/types/{Decoder → ts/Decoder}/gpu-utils.d.ts +0 -0
  354. /package/types/{Decoder → ts/Decoder}/index.d.ts +0 -0
  355. /package/types/{Private → ts/Private}/IAgoraH265Transcoder.d.ts +0 -0
  356. /package/types/{Private → ts/Private}/IAgoraMediaRecorder.d.ts +0 -0
  357. /package/types/{Private → ts/Private}/IAgoraMediaStreamingSource.d.ts +0 -0
  358. /package/types/{Private → ts/Private}/extension/AgoraBaseExtension.d.ts +0 -0
  359. /package/types/{Private → ts/Private}/extension/AgoraMediaBaseExtension.d.ts +0 -0
  360. /package/types/{Private → ts/Private}/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -0
  361. /package/types/{Private → ts/Private}/extension/IAgoraH265TranscoderExtension.d.ts +0 -0
  362. /package/types/{Private → ts/Private}/extension/IAgoraLogExtension.d.ts +0 -0
  363. /package/types/{Private → ts/Private}/extension/IAgoraMediaEngineExtension.d.ts +0 -0
  364. /package/types/{Private → ts/Private}/extension/IAgoraMediaPlayerExtension.d.ts +0 -0
  365. /package/types/{Private → ts/Private}/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -0
  366. /package/types/{Private → ts/Private}/extension/IAgoraMediaRecorderExtension.d.ts +0 -0
  367. /package/types/{Private → ts/Private}/extension/IAgoraMusicContentCenterExtension.d.ts +0 -0
  368. /package/types/{Private → ts/Private}/extension/IAgoraRhythmPlayerExtension.d.ts +0 -0
  369. /package/types/{Private → ts/Private}/extension/IAgoraRtcEngineExExtension.d.ts +0 -0
  370. /package/types/{Private → ts/Private}/extension/IAgoraRtcEngineExtension.d.ts +0 -0
  371. /package/types/{Private → ts/Private}/extension/IAgoraSpatialAudioExtension.d.ts +0 -0
  372. /package/types/{Private → ts/Private}/extension/IAudioDeviceManagerExtension.d.ts +0 -0
  373. /package/types/{Private → ts/Private}/impl/AgoraBaseImpl.d.ts +0 -0
  374. /package/types/{Private → ts/Private}/impl/AgoraMediaBaseImpl.d.ts +0 -0
  375. /package/types/{Private → ts/Private}/impl/IAgoraH265TranscoderImpl.d.ts +0 -0
  376. /package/types/{Private → ts/Private}/impl/IAgoraMediaEngineImpl.d.ts +0 -0
  377. /package/types/{Private → ts/Private}/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -0
  378. /package/types/{Private → ts/Private}/impl/IAgoraMediaRecorderImpl.d.ts +0 -0
  379. /package/types/{Private → ts/Private}/impl/IAgoraMusicContentCenterImpl.d.ts +0 -0
  380. /package/types/{Private → ts/Private}/impl/IAgoraSpatialAudioImpl.d.ts +0 -0
  381. /package/types/{Private → ts/Private}/impl/IAudioDeviceManagerImpl.d.ts +0 -0
  382. /package/types/{Private → ts/Private}/internal/AgoraH265TranscoderInternal.d.ts +0 -0
  383. /package/types/{Private → ts/Private}/internal/AgoraMediaBaseInternal.d.ts +0 -0
  384. /package/types/{Private → ts/Private}/internal/AudioDeviceManagerInternal.d.ts +0 -0
  385. /package/types/{Private → ts/Private}/internal/IrisApiEngine.d.ts +0 -0
  386. /package/types/{Private → ts/Private}/internal/LocalSpatialAudioEngineInternal.d.ts +0 -0
  387. /package/types/{Private → ts/Private}/internal/MediaEngineInternal.d.ts +0 -0
  388. /package/types/{Private → ts/Private}/internal/MediaPlayerInternal.d.ts +0 -0
  389. /package/types/{Private → ts/Private}/internal/MediaRecorderInternal.d.ts +0 -0
  390. /package/types/{Private → ts/Private}/internal/MusicContentCenterInternal.d.ts +0 -0
  391. /package/types/{Private → ts/Private}/ipc/main.d.ts +0 -0
  392. /package/types/{Private → ts/Private}/ipc/renderer.d.ts +0 -0
  393. /package/types/{Private → ts/Private}/ti/AgoraBase-ti.d.ts +0 -0
  394. /package/types/{Private → ts/Private}/ti/AgoraMediaBase-ti.d.ts +0 -0
  395. /package/types/{Private → ts/Private}/ti/AgoraMediaPlayerTypes-ti.d.ts +0 -0
  396. /package/types/{Private → ts/Private}/ti/IAgoraH265Transcoder-ti.d.ts +0 -0
  397. /package/types/{Private → ts/Private}/ti/IAgoraLog-ti.d.ts +0 -0
  398. /package/types/{Private → ts/Private}/ti/IAgoraMediaEngine-ti.d.ts +0 -0
  399. /package/types/{Private → ts/Private}/ti/IAgoraMediaPlayer-ti.d.ts +0 -0
  400. /package/types/{Private → ts/Private}/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -0
  401. /package/types/{Private → ts/Private}/ti/IAgoraMediaRecorder-ti.d.ts +0 -0
  402. /package/types/{Private → ts/Private}/ti/IAgoraMediaStreamingSource-ti.d.ts +0 -0
  403. /package/types/{Private → ts/Private}/ti/IAgoraMusicContentCenter-ti.d.ts +0 -0
  404. /package/types/{Private → ts/Private}/ti/IAgoraRhythmPlayer-ti.d.ts +0 -0
  405. /package/types/{Private → ts/Private}/ti/IAgoraRtcEngine-ti.d.ts +0 -0
  406. /package/types/{Private → ts/Private}/ti/IAgoraRtcEngineEx-ti.d.ts +0 -0
  407. /package/types/{Private → ts/Private}/ti/IAgoraSpatialAudio-ti.d.ts +0 -0
  408. /package/types/{Private → ts/Private}/ti/IAudioDeviceManager-ti.d.ts +0 -0
  409. /package/types/{Renderer → ts/Renderer}/CapabilityManager.d.ts +0 -0
  410. /package/types/{Renderer → ts/Renderer}/WebGLRenderer/webgl-utils.d.ts +0 -0
  411. /package/types/{Renderer → ts/Renderer}/index.d.ts +0 -0
@@ -25,52 +25,54 @@ import {
25
25
  import {
26
26
  ChannelMediaOptions,
27
27
  IRtcEngine,
28
+ ImageTrackOptions,
28
29
  LeaveChannelOptions,
29
30
  StreamFallbackOptions,
30
31
  } from './IAgoraRtcEngine';
31
32
 
32
33
  /**
33
- * Contains connection information.
34
+ * Class containing connection information.
34
35
  */
35
36
  export class RtcConnection {
36
37
  /**
37
- * The channel name.
38
+ * Channel name.
38
39
  */
39
40
  channelId?: string;
40
41
  /**
41
- * The ID of the local user.
42
+ * Local user ID.
42
43
  */
43
44
  localUid?: number;
44
45
  }
45
46
 
46
47
  /**
47
- * This interface class contains multi-channel methods.
48
+ * Interface class that provides multi-channel methods.
48
49
  *
49
- * Inherited from IRtcEngine.
50
+ * Inherits from IRtcEngine.
50
51
  */
51
52
  export abstract class IRtcEngineEx extends IRtcEngine {
52
53
  /**
53
54
  * Joins a channel.
54
55
  *
55
- * You can call this method multiple times to join more than one channel. If you want to join the same channel from different devices, ensure that the user IDs are different for all devices.
56
+ * Call this method to join multiple channels simultaneously. If you want to join the same channel on different devices, make sure the user IDs used on different devices are different. If you are already in a channel, you cannot join the same channel again with the same user ID.
57
+ * Before joining a channel, make sure the App ID used to generate the Token is the same as the one used to initialize the engine with the initialize method. Otherwise, joining the channel with the Token will fail.
56
58
  *
57
- * @param token The token generated on your server for authentication.
58
- * (Recommended) If your project has enabled the security mode (using APP ID and Token for authentication), this parameter is required.
59
- * If you have only enabled the testing mode (using APP ID for authentication), this parameter is optional. You will automatically exit the channel 24 hours after successfully joining in.
60
- * If you need to join different channels at the same time or switch between channels, Agora recommends using a wildcard token so that you don't need to apply for a new token every time joining a channel.
61
- * @param connection The connection information. See RtcConnection.
62
- * @param options The channel media options. See ChannelMediaOptions.
59
+ * @param token A dynamic key generated on the server for authentication. See [Token Authentication](https://docs.agora.io/en/video-calling/token-authentication/deploy-token-server).
60
+ * (Recommended) If your project enables security mode (i.e., using APP ID + Token for authentication), this parameter is required.
61
+ * If your project only enables debug mode (i.e., using APP ID for authentication), you can join a channel without providing a Token. You will automatically leave the channel 24 hours after joining.
62
+ * If you need to join multiple channels simultaneously or switch channels frequently, Agora recommends using a wildcard Token to avoid requesting a new Token from the server each time. See [Using Wildcard Token](https://docs.agora.io/en/video-calling/token-authentication/deploy-token-server).
63
+ * @param connection Connection information. See RtcConnection.
64
+ * @param options Channel media options. See ChannelMediaOptions.
63
65
  *
64
66
  * @returns
65
67
  * 0: Success.
66
- * < 0: Failure.
67
- * -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.
68
- * -3: Fails to initialize the IRtcEngine object. You need to reinitialize the IRtcEngine object.
69
- * -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
70
- * -8: The internal state of the IRtcEngine object is wrong. The typical cause is that after calling startEchoTest to start a call loop test, you call this method to join the channel without calling stopEchoTest to stop the test. You need to call stopEchoTest before calling this method.
71
- * -17: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected (1) state.
72
- * -102: The channel name is invalid. You need to pass in a valid channel name in channelId to rejoin the channel.
73
- * -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.
68
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
69
+ * -2: Invalid parameters. For example, invalid Token, uid is not an integer, or ChannelMediaOptions contains invalid values. Provide valid parameters and rejoin the channel.
70
+ * -3: IRtcEngine initialization failed. Reinitialize the IRtcEngine object.
71
+ * -7: IRtcEngine is not initialized. Initialize the IRtcEngine object before calling this method.
72
+ * -8: Internal state error in IRtcEngine. Possible cause: startEchoTest was called to start echo test but stopEchoTest was not called before joining the channel. Call stopEchoTest before this method.
73
+ * -17: Join channel rejected. Possible cause: the user is already in the channel. Use onConnectionStateChanged to check the connection state. Do not call this method again unless you receive ConnectionStateDisconnected (1).
74
+ * -102: Invalid channel name. Provide a valid channelId and rejoin the channel.
75
+ * -121: Invalid user ID. Provide a valid uid and rejoin the channel.
74
76
  */
75
77
  abstract joinChannelEx(
76
78
  token: string,
@@ -81,16 +83,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
81
83
  /**
82
84
  * Sets channel options and leaves the channel.
83
85
  *
84
- * After calling this method, the SDK terminates the audio and video interaction, leaves the current channel, and releases all resources related to the session. After calling joinChannelEx to join a channel, you must call this method to end the call, otherwise, the next call cannot be started.
85
- * This method call is asynchronous. When this method returns, it does not necessarily mean that the user has left the channel.
86
- * If you call leaveChannel, you will leave all the channels you have joined by calling joinChannel or joinChannelEx.
86
+ * After calling this method, the SDK stops all audio and video interactions, leaves the current channel, and releases all session-related resources.
87
+ * After successfully joining a channel using joinChannelEx, you must call this method to end the call, otherwise you cannot start a new one.
88
+ * This method is asynchronous. When the call returns, it does not mean the user has actually left the channel.
89
+ * If you call leaveChannel, it will leave both channels joined via joinChannel and joinChannelEx. If you call release immediately after this method, the SDK will not trigger the onLeaveChannel callback.
87
90
  *
88
- * @param connection The connection information. See RtcConnection.
89
- * @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.
91
+ * @param connection Connection information. See RtcConnection.
92
+ * @param options Options for leaving the channel. See LeaveChannelOptions. This parameter only supports setting the stopMicrophoneRecording member in LeaveChannelOptions. Other members are not effective.
90
93
  *
91
94
  * @returns
92
- * 0: Success.
93
- * < 0: Failure.
95
+ * 0: The method call succeeds.
96
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
94
97
  */
95
98
  abstract leaveChannelEx(
96
99
  connection: RtcConnection,
@@ -107,17 +110,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
107
110
  ): number;
108
111
 
109
112
  /**
110
- * Updates the channel media options after joining the channel.
113
+ * Updates channel media options after joining the channel.
111
114
  *
112
- * @param options The channel media options. See ChannelMediaOptions.
113
- * @param connection The connection information. See RtcConnection.
115
+ * @param options Channel media options. See ChannelMediaOptions.
116
+ * @param connection Connection information. See RtcConnection.
114
117
  *
115
118
  * @returns
116
- * 0: Success.
117
- * < 0: Failure.
118
- * -2: The value of a member in ChannelMediaOptions is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
119
- * -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
120
- * -8: The internal state of the IRtcEngine object is wrong. The possible reason is that the user is not in the channel. Agora recommends that you use the onConnectionStateChanged callback to see 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 to join a channel before calling this method.
119
+ * 0: The method call succeeds.
120
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
121
+ * -2: Invalid ChannelMediaOptions values. For example, using an invalid token or setting an invalid user role. You must provide valid parameters.
122
+ * -7: The IRtcEngine object is not initialized. You must initialize the IRtcEngine object before calling this method.
123
+ * -8: The internal state of the IRtcEngine object is incorrect. This may happen if the user is not in a channel. Use the onConnectionStateChanged callback to determine whether the user is in a channel. If you receive ConnectionStateDisconnected (1) or ConnectionStateFailed (5), the user is not in a channel. You must call joinChannel before using this method.
121
124
  */
122
125
  abstract updateChannelMediaOptionsEx(
123
126
  options: ChannelMediaOptions,
@@ -125,16 +128,16 @@ export abstract class IRtcEngineEx extends IRtcEngine {
125
128
  ): number;
126
129
 
127
130
  /**
128
- * Sets the video encoder configuration.
131
+ * Sets the video encoding configuration.
129
132
  *
130
- * Sets the encoder configuration for the local video. Each configuration profile corresponds to a set of video parameters, including the resolution, frame rate, and bitrate.
133
+ * Sets the encoding configuration for the local video. Each video encoding configuration corresponds to a set of video parameters, including resolution, frame rate, and bitrate. The config parameter of this method specifies the maximum values achievable under ideal network conditions. If the network condition is poor, the video engine may not use this config to render the local video and will automatically downgrade to a suitable video parameter configuration.
131
134
  *
132
- * @param config Video profile. See VideoEncoderConfiguration.
133
- * @param connection The connection information. See RtcConnection.
135
+ * @param config Video encoding configuration. See VideoEncoderConfiguration.
136
+ * @param connection Connection information. See RtcConnection.
134
137
  *
135
138
  * @returns
136
- * 0: Success.
137
- * < 0: Failure.
139
+ * 0: The method call succeeds.
140
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting tips.
138
141
  */
139
142
  abstract setVideoEncoderConfigurationEx(
140
143
  config: VideoEncoderConfiguration,
@@ -142,18 +145,23 @@ export abstract class IRtcEngineEx extends IRtcEngine {
142
145
  ): number;
143
146
 
144
147
  /**
145
- * Initializes the video view of a remote user.
148
+ * Initializes the remote user view.
146
149
  *
147
- * 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.
148
- * Call this method after joinChannelEx.
149
- * To update the rendering or mirror mode of the remote video view during a call, use the setRemoteRenderModeEx method.
150
+ * This method binds a remote user to a display view and sets the rendering and mirror mode for the remote user's view as seen locally. It only affects the video display seen by the local user.
151
+ * You need to specify the remote user's ID in VideoCanvas when calling this method. It is generally recommended to set this before joining the channel.
152
+ * If the remote user's uid is not available before joining the channel, you can call this method upon receiving the onUserJoined callback. If video recording is enabled, the recording service joins the channel as a dummy client. Other clients will also receive its onUserJoined event, but the app should not bind a view to it (as it does not send video streams).
153
+ * To unbind a view from a remote user, call this method and set view to null.
154
+ * After leaving the channel, the SDK clears the binding between the remote user and the view.
155
+ * You must call this method after joinChannelEx.
156
+ * In Flutter, you do not need to call this method manually. Use AgoraVideoView to render local and remote views.
157
+ * If you want to update the rendering or mirror mode of the remote user's view during a call, use the setRemoteRenderModeEx method.
150
158
  *
151
- * @param canvas The remote video view settings. See VideoCanvas.
152
- * @param connection The connection information. See RtcConnection.
159
+ * @param canvas Video canvas information. See VideoCanvas.
160
+ * @param connection Connection information. See RtcConnection.
153
161
  *
154
162
  * @returns
155
163
  * 0: Success.
156
- * < 0: Failure.
164
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
157
165
  */
158
166
  abstract setupRemoteVideoEx(
159
167
  canvas: VideoCanvas,
@@ -161,15 +169,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
161
169
  ): number;
162
170
 
163
171
  /**
164
- * Stops or resumes receiving the audio stream of a specified user.
172
+ * Stops or resumes receiving the specified audio stream.
173
+ *
174
+ * This method stops or resumes receiving the audio stream from a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.
165
175
  *
166
176
  * @param uid The ID of the specified user.
167
- * @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.
168
- * @param connection The connection information. See RtcConnection.
177
+ * @param mute Whether to stop receiving the specified audio stream: true : Stop receiving the specified audio stream. false : (Default) Continue receiving the specified audio stream.
178
+ * @param connection Connection information. See RtcConnection.
169
179
  *
170
180
  * @returns
171
181
  * 0: Success.
172
- * < 0: Failure.
182
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
173
183
  */
174
184
  abstract muteRemoteAudioStreamEx(
175
185
  uid: number,
@@ -178,17 +188,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
178
188
  ): number;
179
189
 
180
190
  /**
181
- * Stops or resumes receiving the video stream of a specified user.
191
+ * Stops or resumes receiving the specified video stream.
182
192
  *
183
- * This method is used to stop or resume 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.
193
+ * This method stops or resumes receiving the video stream from a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.
184
194
  *
185
- * @param uid The user ID of the remote user.
186
- * @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.
187
- * @param connection The connection information. See RtcConnection.
195
+ * @param uid The ID of the remote user.
196
+ * @param mute Whether to stop receiving the video stream from a remote user: true : Stop receiving. false : (Default) Resume receiving.
197
+ * @param connection Connection information. See RtcConnection.
188
198
  *
189
199
  * @returns
190
200
  * 0: Success.
191
- * < 0: Failure.
201
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
192
202
  */
193
203
  abstract muteRemoteVideoStreamEx(
194
204
  uid: number,
@@ -199,20 +209,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
199
209
  /**
200
210
  * Sets the video stream type to subscribe to.
201
211
  *
202
- * The SDK will dynamically adjust the size of the corresponding video stream based on the size of the video window to save bandwidth and computing resources. The default aspect ratio of the low-quality video stream is the same as that of the high-quality video stream. According to the current aspect ratio of the high-quality video stream, the system will automatically allocate the resolution, frame rate, and bitrate of the low-quality video stream. Depending on the default behavior of the sender and the specific settings when calling setDualStreamMode, the scenarios for the receiver calling this method are as follows:
203
- * The SDK enables low-quality video stream adaptive mode (AutoSimulcastStream) on the sender side by default, meaning only the high-quality video stream is transmitted. Only the receiver with the role of the host can call this method to initiate a low-quality video stream request. Once the sender receives the request, it starts automatically sending the low-quality video stream. At this point, all users in the channel can call this method to switch to low-quality video stream subscription mode.
204
- * If the sender calls setDualStreamMode and sets mode to DisableSimulcastStream (never send low-quality video stream), then calling this method will have no effect.
205
- * If the sender calls setDualStreamMode and sets mode to EnableSimulcastStream (always send low-quality video stream), both the host and audience receivers can call this method to switch to low-quality video stream subscription mode.
206
- * If the publisher has already called setDualStreamModeEx and set mode to DisableSimulcastStream (never send low-quality video stream), calling this method will not take effect, you should call setDualStreamModeEx again on the sending end and adjust the settings.
207
- * Calling this method on the receiving end of the audience role will not take effect.
212
+ * Depending on the sender's default behavior and the configuration of setDualStreamMode, the receiver's use of this method falls into the following cases:
213
+ * By default, the SDK enables the adaptive low stream mode (AutoSimulcastStream) on the sender side. That is, the sender only sends the high stream. Only receivers with host role can call this method to request the low stream. Once the sender receives the request, it starts sending the low stream automatically. At this point, all users in the channel can call this method to switch to low stream subscription mode.
214
+ * If the sender calls setDualStreamMode and sets mode to DisableSimulcastStream (never send low stream), then this method has no effect.
215
+ * If the sender calls setDualStreamMode and sets mode to EnableSimulcastStream (always send low stream), then both host and audience receivers can call this method to switch to low stream subscription mode. When receiving low video streams, the SDK dynamically adjusts the video stream size based on the size of the video window to save bandwidth and computing resources. The aspect ratio of the low stream is the same as that of the high stream. Based on the current aspect ratio of the high stream, the system automatically allocates resolution, frame rate, and bitrate for the low stream. If the sender has called setDualStreamModeEx and set mode to DisableSimulcastStream (never send low stream), then this method has no effect. You need to call setDualStreamModeEx again on the sender side to change the setting.
208
216
  *
209
- * @param uid The user ID.
210
- * @param streamType The video stream type, see VideoStreamType.
211
- * @param connection The connection information. See RtcConnection.
217
+ * @param uid User ID.
218
+ * @param streamType Video stream type: VideoStreamType.
219
+ * @param connection Connection information. See RtcConnection.
212
220
  *
213
221
  * @returns
214
- * 0: Success.
215
- * < 0: Failure.
222
+ * 0: The method call succeeds.
223
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
216
224
  */
217
225
  abstract setRemoteVideoStreamTypeEx(
218
226
  uid: number,
@@ -223,14 +231,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
223
231
  /**
224
232
  * Stops or resumes publishing the local audio stream.
225
233
  *
226
- * This method does not affect any ongoing audio recording, because it does not disable the audio capture device. A successful call of this method triggers the onUserMuteAudio and onRemoteAudioStateChanged callbacks on the remote client.
234
+ * After this method is successfully called, the remote client triggers the onUserMuteAudio and onRemoteAudioStateChanged callbacks. This method does not affect the audio capture state because the audio capture device is not disabled.
227
235
  *
228
- * @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.
229
- * @param connection The connection information. See RtcConnection.
236
+ * @param mute Whether to stop publishing the local audio stream. true : Stop publishing. false : (Default) Publish.
237
+ * @param connection Connection information. See RtcConnection.
230
238
  *
231
239
  * @returns
232
240
  * 0: Success.
233
- * < 0: Failure.
241
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
234
242
  */
235
243
  abstract muteLocalAudioStreamEx(
236
244
  mute: boolean,
@@ -240,15 +248,15 @@ export abstract class IRtcEngineEx extends IRtcEngine {
240
248
  /**
241
249
  * Stops or resumes publishing the local video stream.
242
250
  *
243
- * A successful call of this method triggers the onUserMuteVideo callback on the remote client.
244
- * This method does not affect any ongoing video recording, because it does not disable the camera.
251
+ * After this method is successfully called, the remote user receives the onUserMuteVideo callback.
252
+ * This method does not affect the video capture state and does not disable the camera.
245
253
  *
246
- * @param mute Whether to stop publishing the local video stream. true : Stop publishing the local video stream. false : (Default) Publish the local video stream.
247
- * @param connection The connection information. See RtcConnection.
254
+ * @param mute Whether to stop sending the local video stream. true : Stop sending the local video stream. false : (Default) Send the local video stream.
255
+ * @param connection Connection information. See RtcConnection.
248
256
  *
249
257
  * @returns
250
258
  * 0: Success.
251
- * < 0: Failure.
259
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
252
260
  */
253
261
  abstract muteLocalVideoStreamEx(
254
262
  mute: boolean,
@@ -256,18 +264,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
256
264
  ): number;
257
265
 
258
266
  /**
259
- * Stops or resumes subscribing to the audio streams of all remote users.
267
+ * Stops or resumes subscribing to all remote users' audio streams.
260
268
  *
261
- * 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.
262
- * Call this method after joining a channel.
263
- * 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.
269
+ * After this method is successfully called, the local user stops or resumes subscribing to remote users' audio streams, including the streams of users who join the channel after this method is called.
270
+ * This method must be called after joining a channel.
271
+ * To disable subscribing to remote users' audio streams before joining a channel, set autoSubscribeAudio to false when calling joinChannel.
264
272
  *
265
- * @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.
266
- * @param connection The connection information. See RtcConnection.
273
+ * @param mute Whether to stop subscribing to all remote users' audio streams: true : Stop subscribing to all remote users' audio streams. false : (Default) Subscribe to all remote users' audio streams.
274
+ * @param connection Connection information. See RtcConnection.
267
275
  *
268
276
  * @returns
269
277
  * 0: Success.
270
- * < 0: Failure.
278
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
271
279
  */
272
280
  abstract muteAllRemoteAudioStreamsEx(
273
281
  mute: boolean,
@@ -275,16 +283,16 @@ export abstract class IRtcEngineEx extends IRtcEngine {
275
283
  ): number;
276
284
 
277
285
  /**
278
- * Stops or resumes subscribing to the video streams of all remote users.
286
+ * Stops or resumes subscribing to all remote users' video streams.
279
287
  *
280
- * After successfully calling this method, the local user stops or resumes subscribing to the video streams of all remote users, including all subsequent users.
288
+ * After this method is successfully called, the local user stops or resumes subscribing to all remote users' video streams, including the streams of users who join the channel after this method is called.
281
289
  *
282
- * @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 video streams of all remote users by default.
283
- * @param connection The connection information. See RtcConnection.
290
+ * @param mute Whether to stop subscribing to all remote users' video streams. true : Stop subscribing to all users' video streams. false : (Default) Subscribe to all users' video streams.
291
+ * @param connection Connection information. See RtcConnection.
284
292
  *
285
293
  * @returns
286
294
  * 0: Success.
287
- * < 0: Failure.
295
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
288
296
  */
289
297
  abstract muteAllRemoteVideoStreamsEx(
290
298
  mute: boolean,
@@ -292,21 +300,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
292
300
  ): number;
293
301
 
294
302
  /**
295
- * Set the blocklist of subscriptions for audio streams.
303
+ * Sets the audio subscription blocklist.
296
304
  *
297
- * You can call this method to specify the audio streams of a user that you do not want to subscribe to.
298
- * You can call this method either before or after joining a channel.
299
- * The blocklist is not affected by the setting in muteRemoteAudioStream, muteAllRemoteAudioStreams, and autoSubscribeAudio in ChannelMediaOptions.
300
- * Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
301
- * If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
305
+ * You can call this method to specify the audio streams you do not want to subscribe to.
306
+ * This method can be called before or after joining a channel.
307
+ * The audio subscription blocklist is not affected by muteRemoteAudioStream, muteAllRemoteAudioStreams, or autoSubscribeAudio in ChannelMediaOptions.
308
+ * After setting the blocklist, if you leave and rejoin the channel, the blocklist remains effective.
309
+ * If a user is in both the audio subscription blocklist and allowlist, only the blocklist takes effect.
302
310
  *
303
- * @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.
304
- * @param uidNumber The number of users in the user ID list.
305
- * @param connection The connection information. See RtcConnection.
311
+ * @param uidList List of user IDs in the audio subscription blocklist.
312
+ * If you want to block the audio stream of a specific user, add that user's ID to this list. If you want to remove a user from the blocklist, call setSubscribeAudioBlocklist again with an updated list that excludes the user's uid.
313
+ * @param uidNumber Number of users in the blocklist.
314
+ * @param connection Connection information. See RtcConnection.
306
315
  *
307
316
  * @returns
308
317
  * 0: Success.
309
- * < 0: Failure.
318
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
310
319
  */
311
320
  abstract setSubscribeAudioBlocklistEx(
312
321
  uidList: number[],
@@ -315,21 +324,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
315
324
  ): number;
316
325
 
317
326
  /**
318
- * Sets the allowlist of subscriptions for audio streams.
327
+ * Sets the audio subscription allowlist.
319
328
  *
320
- * You can call this method to specify the audio streams of a user that you want to subscribe to.
321
- * If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
322
- * You can call this method either before or after joining a channel.
323
- * The allowlist is not affected by the setting in muteRemoteAudioStream, muteAllRemoteAudioStreams and autoSubscribeAudio in ChannelMediaOptions.
324
- * Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
329
+ * You can call this method to specify the audio streams you want to subscribe to.
330
+ * This method can be called before or after joining a channel.
331
+ * The audio subscription allowlist is not affected by muteRemoteAudioStream, muteAllRemoteAudioStreams, or autoSubscribeAudio in ChannelMediaOptions.
332
+ * After setting the allowlist, if you leave and rejoin the channel, the allowlist remains effective.
333
+ * If a user is in both the audio subscription blocklist and allowlist, only the blocklist takes effect.
325
334
  *
326
- * @param uidList The user ID list of users that you want to subscribe to. 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.
327
- * @param uidNumber The number of users in the user ID list.
328
- * @param connection The connection information. See RtcConnection.
335
+ * @param uidList List of user IDs in the audio subscription allowlist.
336
+ * If you want to subscribe to the audio stream of a specific user, add that user's ID to this list. If you want to remove a user from the allowlist, call setSubscribeAudioAllowlist again with an updated list that excludes the user's uid.
337
+ * @param uidNumber Number of users in the allowlist.
338
+ * @param connection Connection information. See RtcConnection.
329
339
  *
330
340
  * @returns
331
341
  * 0: Success.
332
- * < 0: Failure.
342
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
333
343
  */
334
344
  abstract setSubscribeAudioAllowlistEx(
335
345
  uidList: number[],
@@ -338,21 +348,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
338
348
  ): number;
339
349
 
340
350
  /**
341
- * Set the blocklist of subscriptions for video streams.
351
+ * Sets the video subscription blocklist.
342
352
  *
343
- * You can call this method to specify the video streams of a user that you do not want to subscribe to.
344
- * If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
345
- * Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
353
+ * You can call this method to specify the video streams you do not want to subscribe to.
346
354
  * You can call this method either before or after joining a channel.
347
- * The blocklist is not affected by the setting in muteRemoteVideoStream, muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions.
355
+ * The video subscription blocklist is not affected by muteRemoteVideoStream, muteAllRemoteVideoStreams, or autoSubscribeVideo in ChannelMediaOptions.
356
+ * After setting the blocklist, it remains effective even if you leave and rejoin the channel.
357
+ * If a user is in both the audio subscription allowlist and blocklist, only the blocklist takes effect.
348
358
  *
349
- * @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.
350
- * @param uidNumber The number of users in the user ID list.
351
- * @param connection The connection information. See RtcConnection.
359
+ * @param uidList The user ID list for the video subscription blocklist.
360
+ * If you want to block the video stream from a specific user, add that user's ID to this list. If you want to remove a user from the blocklist, you need to call the setSubscribeVideoBlocklist method again to update the list so that it no longer includes the uid of the user you want to remove.
361
+ * @param uidNumber The number of users in the blocklist.
362
+ * @param connection Connection information. See RtcConnection.
352
363
  *
353
364
  * @returns
354
365
  * 0: Success.
355
- * < 0: Failure.
366
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
356
367
  */
357
368
  abstract setSubscribeVideoBlocklistEx(
358
369
  uidList: number[],
@@ -361,21 +372,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
361
372
  ): number;
362
373
 
363
374
  /**
364
- * Set the allowlist of subscriptions for video streams.
375
+ * Sets the video subscription allowlist.
365
376
  *
366
- * You can call this method to specify the video streams of a user that you want to subscribe to.
367
- * If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
368
- * Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
377
+ * You can call this method to specify the video streams you want to subscribe to.
369
378
  * You can call this method either before or after joining a channel.
370
- * The allowlist is not affected by the setting in muteRemoteVideoStream, muteAllRemoteVideoStreams and autoSubscribeAudio in ChannelMediaOptions.
379
+ * The video subscription allowlist is not affected by muteRemoteVideoStream, muteAllRemoteVideoStreams, or autoSubscribeVideo in ChannelMediaOptions.
380
+ * After setting the allowlist, it remains effective even if you leave and rejoin the channel.
381
+ * If a user is in both the audio subscription allowlist and blocklist, only the blocklist takes effect.
371
382
  *
372
- * @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.
373
- * @param uidNumber The number of users in the user ID list.
374
- * @param connection The connection information. See RtcConnection.
383
+ * @param uidList The user ID list for the video subscription allowlist.
384
+ * If you want to subscribe to the video stream of a specific user, add that user's ID to this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method again to update the list so that it no longer includes the uid of the user you want to remove.
385
+ * @param uidNumber The number of users in the allowlist.
386
+ * @param connection Connection information. See RtcConnection.
375
387
  *
376
388
  * @returns
377
389
  * 0: Success.
378
- * < 0: Failure.
390
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
379
391
  */
380
392
  abstract setSubscribeVideoAllowlistEx(
381
393
  uidList: number[],
@@ -384,17 +396,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
384
396
  ): number;
385
397
 
386
398
  /**
387
- * Options for subscribing to remote video streams.
399
+ * Sets the subscription options for the remote video stream.
388
400
  *
389
- * 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.
401
+ * When the remote user sends dual streams, you can call this method to set the subscription options for the remote video stream.
390
402
  *
391
- * @param uid The user ID of the remote user.
392
- * @param options The video subscription options. See VideoSubscriptionOptions.
393
- * @param connection The connection information. See RtcConnection.
403
+ * @param uid Remote user ID.
404
+ * @param options Subscription settings for the video stream. See VideoSubscriptionOptions.
405
+ * @param connection Connection information. See RtcConnection.
394
406
  *
395
407
  * @returns
396
408
  * 0: Success.
397
- * < 0: Failure.
409
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
398
410
  */
399
411
  abstract setRemoteVideoSubscriptionOptionsEx(
400
412
  uid: number,
@@ -403,23 +415,24 @@ export abstract class IRtcEngineEx extends IRtcEngine {
403
415
  ): number;
404
416
 
405
417
  /**
406
- * Sets the 2D position (the position on the horizontal plane) of the remote user's voice.
418
+ * Sets the 2D position of a remote user's voice, that is, the horizontal position.
407
419
  *
408
- * 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.
409
- * For the best voice positioning, Agora recommends using a wired headset.
410
- * Call this method after joining a channel.
420
+ * Sets the spatial position and volume of a remote user's voice to help the local user determine the direction of the sound.
421
+ * By calling this method to set the position where the remote user's voice appears, the difference in sound between the left and right channels creates a sense of direction, allowing the user to determine the remote user's real-time position. In multiplayer online games, such as battle royale games, this method can effectively enhance the directional perception of game characters and simulate realistic scenarios.
422
+ * For the best listening experience, it is recommended that users wear wired headphones.
423
+ * This method must be called after joining the channel.
411
424
  *
412
- * @param uid The user ID of the remote user.
413
- * @param pan The voice position of the remote user. The value ranges from -1.0 to 1.0:
414
- * -1.0: The remote voice comes from the left.
415
- * 0.0: (Default) The remote voice comes from the front.
416
- * 1.0: The remote voice comes from the right.
417
- * @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.
418
- * @param connection The connection information. See RtcConnection.
425
+ * @param uid The ID of the remote user.
426
+ * @param pan Sets the spatial position of the remote user's voice. The range is [-1.0, 1.0]:
427
+ * -1.0: The sound appears on the left.
428
+ * (Default) 0.0: The sound appears in the center.
429
+ * 1.0: The sound appears on the right.
430
+ * @param gain Sets the volume of the remote user's voice. The range is [0.0, 100.0], and the default is 100.0, which represents the user's original volume. The smaller the value, the lower the volume.
431
+ * @param connection Connection information. See RtcConnection.
419
432
  *
420
433
  * @returns
421
434
  * 0: Success.
422
- * < 0: Failure.
435
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
423
436
  */
424
437
  abstract setRemoteVoicePositionEx(
425
438
  uid: number,
@@ -438,20 +451,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
438
451
  ): number;
439
452
 
440
453
  /**
441
- * Sets the video display mode of a specified remote user.
454
+ * Sets the display mode of the remote view.
442
455
  *
443
- * After initializing the video view of a remote user, you can call this method to update its rendering and mirror modes. This method affects only the video view that the local user sees.
444
- * Call this method after initializing the remote view by calling the setupRemoteVideo method.
445
- * During a call, you can call this method as many times as necessary to update the display mode of the video view of a remote user.
456
+ * After initializing the remote user view, you can call this method to update the rendering and mirror mode of the remote user view as displayed locally. This method only affects the video seen by the local user.
446
457
  *
447
- * @param uid The user ID of the remote user.
448
- * @param renderMode The video display mode of the remote user. See RenderModeType.
458
+ * @param uid Remote user ID.
459
+ * @param renderMode Display mode of the remote view. See RenderModeType.
449
460
  * @param mirrorMode The mirror mode of the remote user view. See VideoMirrorModeType.
450
- * @param connection The connection information. See RtcConnection.
461
+ * @param connection Connection information. See RtcConnection.
451
462
  *
452
463
  * @returns
453
464
  * 0: Success.
454
- * < 0: Failure.
465
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
455
466
  */
456
467
  abstract setRemoteRenderModeEx(
457
468
  uid: number,
@@ -461,20 +472,21 @@ export abstract class IRtcEngineEx extends IRtcEngine {
461
472
  ): number;
462
473
 
463
474
  /**
464
- * Enables loopback audio capturing.
475
+ * Enables loopback recording.
465
476
  *
466
- * If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end.
467
- * 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.
468
- * This method only supports using one sound card for audio capturing.
477
+ * After enabling loopback recording, the sound played by the sound card will be mixed into the local audio stream and can be sent to the remote side.
478
+ * The default sound card on macOS does not support recording. If you need to use this feature, please enable a virtual sound card and set deviceName to the name of that virtual sound card. Agora recommends using its self-developed virtual sound card AgoraALD for recording.
479
+ * This method currently supports only one loopback recording stream.
469
480
  *
470
- * @param connection The connection information. See RtcConnection.
471
- * @param enabled Sets whether to enable loopback audio capture: true : Enable loopback audio capturing. false : (Default) Disable loopback audio capturing.
472
- * @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.
473
- * 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.
481
+ * @param connection Connection information. See RtcConnection.
482
+ * @param enabled Whether to enable loopback recording: true : Enable loopback recording. false : (Default) Disable loopback recording.
483
+ * @param deviceName Electron for UnionTech OS SDK does not support this parameter.
484
+ * macOS: The device name of the virtual sound card. Default is empty, which means using the AgoraALD virtual sound card for recording.
485
+ * Windows: The device name of the sound card. Default is empty, which means using the built-in sound card of the device.
474
486
  *
475
487
  * @returns
476
488
  * 0: Success.
477
- * < 0: Failure.
489
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
478
490
  */
479
491
  abstract enableLoopbackRecordingEx(
480
492
  connection: RtcConnection,
@@ -499,20 +511,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
499
511
  ): number;
500
512
 
501
513
  /**
502
- * Adjusts the playback signal volume of a specified remote user.
514
+ * Adjusts the playback volume of a specified remote user.
503
515
  *
504
- * 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.
516
+ * You can call this method during a call to adjust the playback volume of a specified remote user. To adjust the playback volume of multiple users, call this method multiple times.
505
517
  *
506
- * @param uid The user ID of the remote user.
507
- * @param volume The volume of the user. The value range is [0,400].
518
+ * @param uid The ID of the remote user.
519
+ * @param volume The volume, with a range of [0,400].
508
520
  * 0: Mute.
509
- * 100: (Default) The original volume.
510
- * 400: Four times the original volume (amplifying the audio signals by four times).
511
- * @param connection The connection information. See RtcConnection.
521
+ * 100: (Default) Original volume.
522
+ * 400: Four times the original volume, with overflow protection.
523
+ * @param connection Connection information. See RtcConnection.
512
524
  *
513
525
  * @returns
514
526
  * 0: Success.
515
- * < 0: Failure.
527
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
516
528
  */
517
529
  abstract adjustUserPlaybackSignalVolumeEx(
518
530
  uid: number,
@@ -521,27 +533,29 @@ export abstract class IRtcEngineEx extends IRtcEngine {
521
533
  ): number;
522
534
 
523
535
  /**
524
- * Gets the current connection state of the SDK.
536
+ * Gets the current network connection state.
525
537
  *
526
- * @param connection The connection information. See RtcConnection.
538
+ * @param connection Connection information. See RtcConnection.
527
539
  *
528
540
  * @returns
529
- * The current connection state. See ConnectionStateType.
541
+ * The current network connection state. See ConnectionStateType.
530
542
  */
531
543
  abstract getConnectionStateEx(connection: RtcConnection): ConnectionStateType;
532
544
 
533
545
  /**
534
- * Enables or disables the built-in encryption.
546
+ * Enables or disables built-in encryption.
535
547
  *
536
- * After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again.
548
+ * The SDK automatically disables encryption after the user leaves the channel. To re-enable encryption, you must call this method before the user joins the channel again.
549
+ * All users in the same channel must use the same encryption mode and key when calling this method.
550
+ * If built-in encryption is enabled, the RTMP streaming feature cannot be used.
537
551
  *
538
- * @param connection The connection information. See RtcConnection.
539
- * @param enabled Whether to enable built-in encryption: true : Enable the built-in encryption. false : (Default) Disable the built-in encryption.
540
- * @param config Built-in encryption configurations. See EncryptionConfig.
552
+ * @param connection Connection information. See RtcConnection.
553
+ * @param enabled Whether to enable built-in encryption: true : Enable built-in encryption. false : (Default) Disable built-in encryption.
554
+ * @param config Configure the built-in encryption mode and key. See EncryptionConfig.
541
555
  *
542
556
  * @returns
543
557
  * 0: Success.
544
- * < 0: Failure.
558
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
545
559
  */
546
560
  abstract enableEncryptionEx(
547
561
  connection: RtcConnection,
@@ -552,12 +566,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
552
566
  /**
553
567
  * Creates a data stream.
554
568
  *
555
- * @param config The configurations for the data stream. See DataStreamConfig.
556
- * @param connection The connection information. See RtcConnection.
569
+ * Within the lifecycle of IRtcEngine, each user can create up to 5 data streams. The data streams are destroyed when leaving the channel. To use them again, you need to recreate them.
570
+ *
571
+ * @param config Data stream configuration. See DataStreamConfig.
572
+ * @param connection Connection information. See RtcConnection.
557
573
  *
558
574
  * @returns
559
- * ID of the created data stream, if the method call succeeds.
560
- * < 0: Failure.
575
+ * ID of the created data stream: if the method call succeeds.
576
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
561
577
  */
562
578
  abstract createDataStreamEx(
563
579
  config: DataStreamConfig,
@@ -565,23 +581,23 @@ export abstract class IRtcEngineEx extends IRtcEngine {
565
581
  ): number;
566
582
 
567
583
  /**
568
- * Sends data stream messages.
584
+ * Sends a data stream.
569
585
  *
570
- * A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the onStreamMessageError callback on the remote client. The SDK has the following restrictions on this method:
571
- * Each client within the channel can have up to 5 data channels simultaneously, with a total shared packet bitrate limit of 30 KB/s for all data channels.
572
- * Each data channel can send up to 60 packets per second, with each packet being a maximum of 1 KB. After calling createDataStreamEx, you can call this method to send data stream messages to all users in the channel.
573
- * Call this method after joinChannelEx.
574
- * Ensure that you call createDataStreamEx to create a data channel before calling this method.
575
- * 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.
586
+ * After calling createDataStreamEx, you can use this method to send data stream messages to all users in the channel.
587
+ * The SDK imposes the following restrictions on this method:
588
+ * Each client in the channel can have up to 5 data channels simultaneously, and the total sending bitrate shared by all data channels is limited to 30 KB/s.
589
+ * Each data channel can send up to 60 packets per second, with each packet up to 1 KB in size. If the method call succeeds, the remote end triggers the onStreamMessage callback, where the remote user can receive the message; if it fails, the remote end triggers the onStreamMessageError callback.
590
+ * This method must be called after joinChannelEx.
591
+ * Make sure to call createDataStreamEx to create the data channel before calling this method.
576
592
  *
577
- * @param streamId The data stream ID. You can get the data stream ID by calling createDataStreamEx.
578
- * @param data The message to be sent.
579
- * @param length The length of the data.
580
- * @param connection The connection information. See RtcConnection.
593
+ * @param streamId Data stream ID. You can get it via createDataStreamEx.
594
+ * @param data The data to be sent.
595
+ * @param length Length of the data.
596
+ * @param connection Connection information. See RtcConnection.
581
597
  *
582
598
  * @returns
583
599
  * 0: Success.
584
- * < 0: Failure.
600
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
585
601
  */
586
602
  abstract sendStreamMessageEx(
587
603
  streamId: number,
@@ -591,25 +607,26 @@ export abstract class IRtcEngineEx extends IRtcEngine {
591
607
  ): number;
592
608
 
593
609
  /**
594
- * Adds a watermark image to the local video.
595
- *
596
- * 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:
597
- * If the orientation mode of the encoding video (OrientationMode) is fixed landscape mode or the adaptive landscape mode, the watermark uses the landscape orientation.
598
- * If the orientation mode of the encoding video (OrientationMode) is fixed portrait mode or the adaptive portrait mode, the watermark uses the portrait orientation.
599
- * 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.
600
- * Ensure that you have called enableVideo before calling this method.
601
- * 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.
602
- * 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.
603
- * 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.
604
- * 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.
605
- *
606
- * @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.
607
- * @param options The options of the watermark image to be added. See WatermarkOptions.
608
- * @param connection The connection information. See RtcConnection.
610
+ * Adds a local video watermark.
611
+ *
612
+ * Deprecated Deprecated: This method is deprecated. Use addVideoWatermarkWithConfigEx instead. This method adds a PNG image as a watermark to the local live video stream. Users in the same live streaming channel, audience of the CDN live stream, and capture devices can see or capture the watermark image. Currently, only one watermark can be added to the live stream. A newly added watermark replaces the previous one.
613
+ * The watermark coordinates depend on the settings in the setVideoEncoderConfigurationEx method:
614
+ * If the video orientation (OrientationMode) is fixed to landscape or adaptive landscape, landscape coordinates are used for the watermark.
615
+ * If the video orientation (OrientationMode) is fixed to portrait or adaptive portrait, portrait coordinates are used for the watermark.
616
+ * When setting the watermark coordinates, the image area of the watermark must not exceed the video dimensions set in the setVideoEncoderConfigurationEx method; otherwise, the excess part will be cropped.
617
+ * You must call this method after calling enableVideo.
618
+ * The image to be added must be in PNG format. This method supports all pixel formats of PNG images: RGBA, RGB, Palette, Gray, and Alpha_gray.
619
+ * If the size of the PNG image differs from the size you set in this method, the SDK will scale or crop the image to match the settings.
620
+ * If you have started the local video preview using startPreview, you can use the visibleInPreview parameter to set whether the watermark is visible during preview.
621
+ * If local video mirroring is enabled, the local watermark will also be mirrored. To prevent the watermark from being mirrored when viewed locally, we recommend not using both mirroring and watermark features simultaneously. Implement local watermarking at the application level.
622
+ *
623
+ * @param watermarkUrl The local path of the watermark image to be added. This method supports adding watermark images from absolute or relative local paths.
624
+ * @param options Settings for the watermark image to be added. See WatermarkOptions.
625
+ * @param connection Connection information. See RtcConnection.
609
626
  *
610
627
  * @returns
611
628
  * 0: Success.
612
- * < 0: Failure.
629
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
613
630
  */
614
631
  abstract addVideoWatermarkEx(
615
632
  watermarkUrl: string,
@@ -618,20 +635,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
618
635
  ): number;
619
636
 
620
637
  /**
621
- * Removes the watermark image from the video stream.
638
+ * Removes added video watermarks.
622
639
  *
623
- * @param connection The connection information. See RtcConnection.
640
+ * @param connection Connection information. See RtcConnection.
624
641
  *
625
642
  * @returns
626
643
  * 0: Success.
627
- * < 0: Failure.
644
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
628
645
  */
629
646
  abstract clearVideoWatermarkEx(connection: RtcConnection): number;
630
647
 
631
648
  /**
632
- * Agora supports reporting and analyzing customized messages.
649
+ * Custom data reporting and analysis service.
633
650
  *
634
- * Agora supports reporting and analyzing customized messages. This function is in the beta stage with a free trial. The ability provided in its beta test version is reporting a maximum of 10 message pieces within 6 seconds, with each message piece not exceeding 256 bytes and each string not exceeding 100 bytes. To try out this function, contact and discuss the format of customized messages with us.
651
+ * Agora provides custom data reporting and analysis services. This service is currently in a free beta phase. During the beta, you can report up to 10 data entries within 6 seconds. Each custom data entry must not exceed 256 bytes, and each string must not exceed 100 bytes. To try this service, [contact sales](mailto:support@agora.io) to enable it and agree on the custom data format.
635
652
  */
636
653
  abstract sendCustomReportMessageEx(
637
654
  id: string,
@@ -643,20 +660,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
643
660
  ): number;
644
661
 
645
662
  /**
646
- * Enables the reporting of users' volume indication.
663
+ * Enables audio volume indication.
647
664
  *
648
- * 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.
665
+ * This method allows the SDK to periodically report to the app the volume information of the local user who is sending streams and the remote users (up to 3) with the highest instantaneous volume.
649
666
  *
650
- * @param interval Sets the time interval between two consecutive volume indications:
651
- * ≤ 0: Disables the volume indication.
652
- * > 0: Time interval (ms) between two consecutive volume indications. Ensure this parameter is set to a value greater than 10, otherwise you will not receive the onAudioVolumeIndication callback. Agora recommends that this value is set as greater than 100.
653
- * @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.
654
- * @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. 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.
655
- * @param connection The connection information. See RtcConnection.
667
+ * @param interval The time interval for the volume indication:
668
+ * ≤ 0: Disables the volume indication feature.
669
+ * > 0: Returns the interval for volume indication, in milliseconds. It is recommended to set it above 100 ms. Must not be less than 10 ms, otherwise the onAudioVolumeIndication callback will not be received.
670
+ * @param smooth The smoothing factor that specifies the sensitivity of the volume indication. The range is [0,10], and the recommended value is 3. The larger the value, the more sensitive the fluctuation; the smaller the value, the smoother the fluctuation.
671
+ * @param reportVad true : Enables the local voice detection feature. When enabled, the vad parameter in the onAudioVolumeIndication callback reports whether a human voice is detected locally. false : (Default) Disables the local voice detection feature. Except in scenarios where the engine automatically performs local voice detection, the vad parameter in the onAudioVolumeIndication callback does not report whether a human voice is detected locally.
672
+ * @param connection Connection information. See RtcConnection.
656
673
  *
657
674
  * @returns
658
675
  * 0: Success.
659
- * < 0: Failure.
676
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
660
677
  */
661
678
  abstract enableAudioVolumeIndicationEx(
662
679
  interval: number,
@@ -666,21 +683,24 @@ export abstract class IRtcEngineEx extends IRtcEngine {
666
683
  ): number;
667
684
 
668
685
  /**
669
- * Starts pushing media streams to a CDN without transcoding.
686
+ * Starts pushing media streams without transcoding.
670
687
  *
671
- * Call this method after joining a channel.
672
- * Only hosts in the LIVE_BROADCASTING profile can call this method.
673
- * 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. 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.
688
+ * Agora recommends using the more advanced server-side streaming feature. See [Implement Server-side Streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
689
+ * Call this method to push live audio and video streams to a specified streaming URL. This method supports pushing to only one URL at a time. To push to multiple URLs, call this method multiple times.
690
+ * After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
691
+ * Call this method after joining a channel.
692
+ * Only broadcasters in a live streaming scenario can call this method.
693
+ * If the streaming fails and you want to retry, you must call stopRtmpStream before calling this method again. Otherwise, the SDK will return the same error code as the previous failure.
674
694
  *
675
- * @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.
676
- * @param connection The connection information. See RtcConnection.
695
+ * @param url The streaming URL. Must be in RTMP or RTMPS format. The maximum length is 1024 bytes. Special characters such as Chinese characters are not supported.
696
+ * @param connection Connection information. See RtcConnection.
677
697
  *
678
698
  * @returns
679
699
  * 0: Success.
680
- * < 0: Failure.
681
- * -2: The URL or configuration of transcoding is invalid; check your URL and transcoding configurations.
700
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
701
+ * -2: The URL or transcoding parameter is incorrect. Check your URL or parameter settings.
682
702
  * -7: The SDK is not initialized before calling this method.
683
- * -19: The Media Push URL is already in use; use another URL instead.
703
+ * -19: The streaming URL is already in use. Use a different streaming URL.
684
704
  */
685
705
  abstract startRtmpStreamWithoutTranscodingEx(
686
706
  url: string,
@@ -688,24 +708,26 @@ export abstract class IRtcEngineEx extends IRtcEngine {
688
708
  ): number;
689
709
 
690
710
  /**
691
- * Starts Media Push and sets the transcoding configuration.
711
+ * Starts pushing streams to a CDN and sets the transcoding configuration.
692
712
  *
693
- * 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.
694
- * Ensure that you enable the Media Push service before using this function.
713
+ * Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
714
+ * Call this method to push live audio and video streams to the specified CDN streaming URL and set the transcoding configuration. This method can only push media streams to one URL at a time. To push to multiple URLs, call this method multiple times.
715
+ * After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
716
+ * Make sure the CDN streaming service is enabled.
695
717
  * Call this method after joining a channel.
696
- * Only hosts in the LIVE_BROADCASTING profile can call this method.
697
- * 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.
718
+ * Only hosts in a live streaming scenario can call this method.
719
+ * If the stream push fails and you want to retry, you must call stopRtmpStreamEx before calling this method again. Otherwise, the SDK returns the same error code as the previous failure.
698
720
  *
699
- * @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.
700
- * @param transcoding The transcoding configuration for Media Push. See LiveTranscoding.
721
+ * @param url The CDN streaming URL. Must be in RTMP or RTMPS format. The character length must not exceed 1024 bytes. Special characters such as Chinese characters are not supported.
722
+ * @param transcoding The transcoding configuration for the CDN stream. See LiveTranscoding.
701
723
  * @param connection The connection information. See RtcConnection.
702
724
  *
703
725
  * @returns
704
- * 0: Success.
705
- * < 0: Failure.
706
- * -2: The URL or configuration of transcoding is invalid; check your URL and transcoding configurations.
726
+ * 0: The method call succeeds.
727
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
728
+ * -2: The URL or transcoding parameter is invalid. Check your URL or parameter settings.
707
729
  * -7: The SDK is not initialized before calling this method.
708
- * -19: The Media Push URL is already in use; use another URL instead.
730
+ * -19: The CDN streaming URL is already in use. Use a different URL.
709
731
  */
710
732
  abstract startRtmpStreamWithTranscodingEx(
711
733
  url: string,
@@ -714,16 +736,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
714
736
  ): number;
715
737
 
716
738
  /**
717
- * Updates the transcoding configuration.
739
+ * Updates the CDN transcoding configuration.
718
740
  *
719
- * 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.
741
+ * Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
742
+ * After enabling transcoding streaming, you can dynamically update the transcoding configuration based on your scenario. After the configuration is updated, the SDK triggers the onTranscodingUpdated callback.
720
743
  *
721
- * @param transcoding The transcoding configuration for Media Push. See LiveTranscoding.
744
+ * @param transcoding The transcoding configuration for the CDN stream. See LiveTranscoding.
722
745
  * @param connection The connection information. See RtcConnection.
723
746
  *
724
747
  * @returns
725
- * 0: Success.
726
- * < 0: Failure.
748
+ * 0: The method call succeeds.
749
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
727
750
  */
728
751
  abstract updateRtmpTranscodingEx(
729
752
  transcoding: LiveTranscoding,
@@ -731,38 +754,42 @@ export abstract class IRtcEngineEx extends IRtcEngine {
731
754
  ): number;
732
755
 
733
756
  /**
734
- * Stops pushing media streams to a CDN.
757
+ * Stops pushing streams to a CDN.
735
758
  *
736
- * 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.
759
+ * Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
760
+ * Call this method to stop the live stream on the specified CDN streaming URL. This method can only stop one URL at a time. To stop multiple URLs, call this method multiple times.
761
+ * After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
737
762
  *
738
- * @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.
763
+ * @param url The CDN streaming URL. Must be in RTMP or RTMPS format. The character length must not exceed 1024 bytes. Special characters such as Chinese characters are not supported.
764
+ * @param connection The connection information. See RtcConnection.
739
765
  *
740
766
  * @returns
741
- * 0: Success.
742
- * < 0: Failure.
767
+ * 0: The method call succeeds.
768
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
743
769
  */
744
770
  abstract stopRtmpStreamEx(url: string, connection: RtcConnection): number;
745
771
 
746
772
  /**
747
- * Starts relaying media streams across channels or updates channels for media relay.
773
+ * Starts or updates the media stream relay across channels.
748
774
  *
749
- * The first successful call to this method starts relaying media streams from the source channel to the destination channels. To relay the media stream to other channels, or exit one of the current media relays, you can call this method again to update the destination channels. This feature supports relaying media streams to a maximum of six destination channels. After a successful method call, the SDK triggers the onChannelMediaRelayStateChanged callback, and this callback returns the state of the media stream relay. Common states are as follows:
750
- * If the onChannelMediaRelayStateChanged callback returns RelayStateRunning (2) and RelayOk (0), it means that the SDK starts relaying media streams from the source channel to the destination channel.
751
- * If the onChannelMediaRelayStateChanged callback returns RelayStateFailure (3), an exception occurs during the media stream relay.
752
- * Call this method after joining the channel.
753
- * This method takes effect only when you are a host in a live streaming channel.
754
- * The relaying media streams across channels function needs to be enabled by contacting.
755
- * Agora does not support string user accounts in this API.
775
+ * The first successful call to this method starts relaying media streams across channels. To relay streams to multiple destination channels or to leave a current relay channel, you can call this method again to add or remove destination channels. This feature supports relaying to up to six destination channels.
776
+ * After a successful call, the SDK triggers the onChannelMediaRelayStateChanged callback to report the current relay state. Common states include:
777
+ * If the onChannelMediaRelayStateChanged callback reports RelayStateRunning (2) and RelayOk (0), it means the SDK has started relaying media streams between the source and destination channels.
778
+ * If the callback reports RelayStateFailure (3), it indicates an error occurred during the media stream relay.
779
+ * Call this method after successfully joining a channel.
780
+ * In a live streaming scenario, only users with the broadcaster role can call this method.
781
+ * To enable the media stream relay across channels, [contact technical support](https://www.agora.io/cn/contact/).
782
+ * This feature does not support string-type UIDs.
756
783
  *
757
- * @param configuration The configuration of the media stream relay. See ChannelMediaRelayConfiguration.
758
- * @param connection The connection information. See RtcConnection.
784
+ * @param configuration Configuration for media stream relay across channels. See ChannelMediaRelayConfiguration.
785
+ * @param connection Connection information. See RtcConnection.
759
786
  *
760
787
  * @returns
761
788
  * 0: Success.
762
- * < 0: Failure.
763
- * -1: A general error occurs (no specified reason).
764
- * -2: The parameter is invalid.
765
- * -8: Internal state error. Probably because the user is not a broadcaster.
789
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
790
+ * -1: General error (not categorized).
791
+ * -2: Invalid parameter.
792
+ * -8: Internal state error, possibly due to the user not being a broadcaster.
766
793
  */
767
794
  abstract startOrUpdateChannelMediaRelayEx(
768
795
  configuration: ChannelMediaRelayConfiguration,
@@ -770,44 +797,44 @@ export abstract class IRtcEngineEx extends IRtcEngine {
770
797
  ): number;
771
798
 
772
799
  /**
773
- * Stops the media stream relay. Once the relay stops, the host quits all the target channels.
800
+ * Stops the media stream relay across channels. Once stopped, the broadcaster leaves all destination channels.
774
801
  *
775
- * 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.
802
+ * After a successful call, the SDK triggers the onChannelMediaRelayStateChanged callback. If it reports RelayStateIdle (0) and RelayOk (0), it indicates that the media stream relay has stopped. If the method call fails, the SDK triggers the onChannelMediaRelayStateChanged callback and reports the error code RelayErrorServerNoResponse (2) or RelayErrorServerConnectionLost (8). You can call the leaveChannel method to leave the channel, and the media stream relay will stop automatically.
776
803
  *
777
- * @param connection The connection information. See RtcConnection.
804
+ * @param connection Connection information. See RtcConnection.
778
805
  *
779
806
  * @returns
780
807
  * 0: Success.
781
- * < 0: Failure.
782
- * -5: The method call was rejected. There is no ongoing channel media relay.
808
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
809
+ * -5: The method call is rejected. There is no ongoing media stream relay.
783
810
  */
784
811
  abstract stopChannelMediaRelayEx(connection: RtcConnection): number;
785
812
 
786
813
  /**
787
- * Pauses the media stream relay to all target channels.
814
+ * Pauses media stream forwarding to all destination channels.
788
815
  *
789
- * 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. Call this method after startOrUpdateChannelMediaRelayEx.
816
+ * After starting media stream forwarding across channels, if you need to pause forwarding to all channels, you can call this method. To resume forwarding, call the resumeAllChannelMediaRelay method. You must call this method after calling startOrUpdateChannelMediaRelayEx to start cross-channel media stream forwarding.
790
817
  *
791
- * @param connection The connection information. See RtcConnection.
818
+ * @param connection Connection information. See RtcConnection.
792
819
  *
793
820
  * @returns
794
- * 0: Success.
795
- * < 0: Failure.
796
- * -5: The method call was rejected. There is no ongoing channel media relay.
821
+ * 0: The method call was successful.
822
+ * < 0: The method call failed. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
823
+ * -5: This method call was rejected. There is no ongoing cross-channel media stream forwarding.
797
824
  */
798
825
  abstract pauseAllChannelMediaRelayEx(connection: RtcConnection): number;
799
826
 
800
827
  /**
801
- * Resumes the media stream relay to all target channels.
828
+ * Resumes media stream forwarding to all destination channels.
802
829
  *
803
- * After calling the pauseAllChannelMediaRelayEx method, you can call this method to resume relaying media streams to all destination channels. Call this method after pauseAllChannelMediaRelayEx.
830
+ * After calling the pauseAllChannelMediaRelayEx method, if you need to resume forwarding media streams to all destination channels, you can call this method. You must call this method after pauseAllChannelMediaRelayEx.
804
831
  *
805
- * @param connection The connection information. See RtcConnection.
832
+ * @param connection Connection information. See RtcConnection.
806
833
  *
807
834
  * @returns
808
- * 0: Success.
809
- * < 0: Failure.
810
- * -5: The method call was rejected. There is no paused channel media relay.
835
+ * 0: The method call was successful.
836
+ * < 0: The method call failed. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
837
+ * -5: This method call was rejected. There is no paused cross-channel media stream forwarding.
811
838
  */
812
839
  abstract resumeAllChannelMediaRelayEx(connection: RtcConnection): number;
813
840
 
@@ -825,19 +852,19 @@ export abstract class IRtcEngineEx extends IRtcEngine {
825
852
  abstract getUserInfoByUidEx(uid: number, connection: RtcConnection): UserInfo;
826
853
 
827
854
  /**
828
- * Enables or disables dual-stream mode on the sender side.
855
+ * Enables or disables dual-stream mode on the sender.
829
856
  *
830
- * 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:
831
- * High-quality video stream: High bitrate, high resolution.
832
- * Low-quality video stream: Low bitrate, low resolution. Deprecated: This method is deprecated as of v4.2.0. Use setDualStreamModeEx instead. 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.
857
+ * Deprecated Deprecated: Deprecated since v4.2.0. Use setDualStreamModeEx instead. You can call this method on the sending side to enable or disable dual-stream mode. Dual-stream refers to high-quality and low-quality video streams:
858
+ * High-quality stream: High resolution and high frame rate video stream.
859
+ * Low-quality stream: Low resolution and low frame rate video stream. After enabling dual-stream mode, you can call setRemoteVideoStreamType on the receiving side to choose whether to receive the high-quality or low-quality video stream. This method applies to all types of streams sent by the sender, including but not limited to camera-captured video streams, screen sharing streams, and custom captured video streams.
833
860
  *
834
861
  * @param enabled Whether to enable dual-stream mode: true : Enable dual-stream mode. false : (Default) Disable dual-stream mode.
835
- * @param streamConfig The configuration of the low-quality video stream. See SimulcastStreamConfig. When setting mode to DisableSimulcastStream, setting streamConfig will not take effect.
836
- * @param connection The connection information. See RtcConnection.
862
+ * @param streamConfig Configuration of the low-quality video stream. See SimulcastStreamConfig. If mode is set to DisableSimulcastStream, then streamConfig will not take effect.
863
+ * @param connection Connection information. See RtcConnection.
837
864
  *
838
865
  * @returns
839
866
  * 0: Success.
840
- * < 0: Failure.
867
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
841
868
  */
842
869
  abstract enableDualStreamModeEx(
843
870
  enabled: boolean,
@@ -848,20 +875,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
848
875
  /**
849
876
  * Sets the dual-stream mode on the sender side.
850
877
  *
851
- * The SDK defaults to enabling low-quality video stream adaptive mode (AutoSimulcastStream) on the sender side, which means the sender does not actively send low-quality video stream. The receiving end with the role of the host can initiate a low-quality video stream request by calling setRemoteVideoStreamTypeEx, and upon receiving the request, the sending end automatically starts sending low-quality stream.
852
- * If you want to modify this behavior, you can call this method and set mode to DisableSimulcastStream (never send low-quality video streams) or EnableSimulcastStream (always send low-quality video streams).
853
- * If you want to restore the default behavior after making changes, you can call this method again with mode set to AutoSimulcastStream. The difference and connection between this method and enableDualStreamModeEx is as follows:
854
- * When calling this method and setting mode to DisableSimulcastStream, it has the same effect as enableDualStreamModeEx (false).
855
- * When calling this method and setting mode to EnableSimulcastStream, it has the same effect as enableDualStreamModeEx (true).
856
- * Both methods can be called before and after joining a channel. If both methods are used, the settings in the method called later takes precedence.
878
+ * By default, the SDK enables the adaptive low stream mode (AutoSimulcastStream) on the sender side. That is, the sender does not proactively send the low stream. A receiver with host role can call setRemoteVideoStreamTypeEx to request the low stream. Once the sender receives the request, it starts sending the low stream automatically.
879
+ * If you want to change this behavior, you can call this method and set mode to DisableSimulcastStream (never send low stream) or EnableSimulcastStream (always send low stream).
880
+ * If you want to revert to the default behavior after making changes, call this method again and set mode to AutoSimulcastStream. The differences and relationships between this method and enableDualStreamModeEx are as follows:
881
+ * Calling this method and setting mode to DisableSimulcastStream has the same effect as enableDualStreamModeEx(false).
882
+ * Calling this method and setting mode to EnableSimulcastStream has the same effect as enableDualStreamModeEx(true).
883
+ * Both methods can be called before or after joining a channel. If both are used, the settings of the method called later take precedence.
857
884
  *
858
- * @param mode The mode in which the video stream is sent. See SimulcastStreamMode.
859
- * @param streamConfig The configuration of the low-quality video stream. See SimulcastStreamConfig. When setting mode to DisableSimulcastStream, setting streamConfig will not take effect.
860
- * @param connection The connection information. See RtcConnection.
885
+ * @param mode Mode for sending video streams. See SimulcastStreamMode.
886
+ * @param streamConfig Configuration for the low video stream. See SimulcastStreamConfig. When mode is set to DisableSimulcastStream, setting streamConfig has no effect.
887
+ * @param connection Connection information. See RtcConnection.
861
888
  *
862
889
  * @returns
863
- * 0: Success.
864
- * < 0: Failure.
890
+ * 0: The method call succeeds.
891
+ * < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
865
892
  */
866
893
  abstract setDualStreamModeEx(
867
894
  mode: SimulcastStreamMode,
@@ -888,19 +915,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
888
915
  ): number;
889
916
 
890
917
  /**
891
- * Takes a snapshot of a video stream using connection ID.
918
+ * Takes a video snapshot using the connection ID.
892
919
  *
893
- * This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
920
+ * This method captures a snapshot of the specified user's video stream, generates a JPG image, and saves it to the specified path.
921
+ * This method is asynchronous. When the call returns, the SDK has not actually taken the snapshot.
922
+ * When used to capture a local video snapshot, it captures the video stream specified in ChannelMediaOptions.
923
+ * If the video has been pre-processed, such as with watermarking or beautification, the snapshot will include the effects of the pre-processing.
894
924
  *
895
- * @param connection The connection information. See RtcConnection.
896
- * @param uid The user ID. Set uid as 0 if you want to take a snapshot of the local user's video.
897
- * @param filePath The local path (including filename extensions) of the snapshot. For example:
925
+ * @param connection Connection information. See RtcConnection.
926
+ * @param uid User ID. Set to 0 to capture a snapshot of the local user's video.
927
+ * @param filePath Make sure the directory exists and is writable. The local path to save the snapshot, including file name and format. For example:
898
928
  * Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg
899
- * macOS: ~/Library/Logs/example.jpg Ensure that the path you specify exists and is writable.
929
+ * macOS: ~/Library/Logs/example.jpg
900
930
  *
901
931
  * @returns
902
932
  * 0: Success.
903
- * < 0: Failure.
933
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
904
934
  */
905
935
  abstract takeSnapshotEx(
906
936
  connection: RtcConnection,
@@ -909,17 +939,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
909
939
  ): number;
910
940
 
911
941
  /**
912
- * Enables or disables video screenshot and upload.
942
+ * Enables/disables local snapshot upload.
913
943
  *
914
- * This method can take screenshots for multiple video streams and upload them. When video screenshot and upload function is enabled, the SDK takes screenshots and uploads videos sent by local users based on the type and frequency of the module you set in ContentInspectConfig. After video screenshot and upload, the Agora server sends the callback notification to your app server in HTTPS requests and sends all screenshots to the third-party cloud storage service.
944
+ * This method allows capturing and uploading snapshots for multiple video streams. After enabling local snapshot upload, the SDK captures and uploads snapshots of the video sent by the local user based on the module type and frequency you set in ContentInspectConfig. After capturing, the Agora server sends a callback notification to your server via HTTPS request and uploads all snapshots to the third-party cloud storage you specify. Before calling this method, make sure you have [contacted technical support](https://www.agora.io/cn/contact/) to enable the local snapshot upload service.
915
945
  *
916
- * @param enabled Whether to enalbe video screenshot and upload: true : Enables video screenshot and upload. false : Disables video screenshot and upload.
917
- * @param config Screenshot and upload configuration. See ContentInspectConfig.
918
- * @param connection The connection information. See RtcConnection.
946
+ * @param enabled Whether to enable local snapshot upload: true : Enable local snapshot upload. false : Disable local snapshot upload.
947
+ * @param config Local snapshot upload configuration. See ContentInspectConfig.
948
+ * @param connection Connection information. See RtcConnection.
919
949
  *
920
950
  * @returns
921
951
  * 0: Success.
922
- * < 0: Failure.
952
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
923
953
  */
924
954
  abstract enableContentInspectEx(
925
955
  enabled: boolean,
@@ -928,16 +958,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
928
958
  ): number;
929
959
 
930
960
  /**
931
- * Enables tracing the video frame rendering process.
961
+ * Starts video frame rendering tracing.
932
962
  *
933
- * The SDK automatically starts tracking the rendering events of the video from the moment that you call joinChannel to join the channel. You can call this method at an appropriate time according to the actual application scenario to customize the tracing process.
934
- * After the local user leaves the current channel, the SDK automatically resets the time point to the next time when the user successfully joins the channel. The SDK starts tracing the rendering status of the video frames in the channel from the moment this method is successfully called and reports information about the event through the onVideoRenderingTracingResult callback.
963
+ * After this method is successfully called, the SDK uses the time of this call as the starting point and reports video frame rendering information via the onVideoRenderingTracingResult callback.
964
+ * If you do not call this method, the SDK starts tracing video rendering events automatically using the time of the joinChannel call as the starting point. You can call this method at an appropriate time based on your business scenario to customize the tracing.
965
+ * After leaving the current channel, the SDK automatically resets the time to the next joinChannel call.
935
966
  *
936
- * @param connection The connection information. See RtcConnection.
967
+ * @param connection Connection information. See RtcConnection.
937
968
  *
938
969
  * @returns
939
970
  * 0: Success.
940
- * < 0: Failure.
971
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
941
972
  */
942
973
  abstract startMediaRenderingTracingEx(connection: RtcConnection): number;
943
974
 
@@ -950,15 +981,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
950
981
  ): number;
951
982
 
952
983
  /**
953
- * Gets the call ID with the connection ID.
954
- *
955
- * When a user joins a channel on a client, a callId is generated to identify the call from the client. You can call this method to get callId, and pass it in when calling methods such as rate and complain.
984
+ * Gets the call ID using the connection ID.
956
985
  *
957
- * @param connection The connection information. See RtcConnection.
986
+ * Each time the client joins a channel, a corresponding callId is generated to identify the call session. You can call this method to get the callId and then pass it to methods such as rate and complain.
958
987
  *
959
- * @returns
960
- * The current call ID, if the method succeeds.
961
- * An empty string, if the method call fails.
988
+ * @param connection Connection information. See RtcConnection.
962
989
  */
963
990
  abstract getCallIdEx(connection: RtcConnection): string;
964
991
 
@@ -972,18 +999,90 @@ export abstract class IRtcEngineEx extends IRtcEngine {
972
999
  ): number;
973
1000
 
974
1001
  /**
975
- * Gets a video screenshot of the specified observation point using the connection ID.
1002
+ * @ignore
1003
+ */
1004
+ abstract enableVideoImageSourceEx(
1005
+ enable: boolean,
1006
+ options: ImageTrackOptions,
1007
+ connection: RtcConnection
1008
+ ): number;
1009
+
1010
+ /**
1011
+ * Preloads the specified sound effect into the channel.
976
1012
  *
977
- * This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
1013
+ * Since Available since v4.6.2. Each time you call this method, only one sound effect file can be preloaded into memory. To preload multiple sound effects, call this method multiple times. After preloading, you can call playEffect to play the preloaded sound effect, or playAllEffects to play all preloaded sound effects.
1014
+ * To ensure smooth user experience, the size of the sound effect file should not exceed the limit.
1015
+ * Agora recommends calling this method before joining a channel.
1016
+ * If you call preloadEffectEx before playEffectEx, the file resource will not be closed after playEffectEx is executed. The next call to playEffectEx will start playback from the beginning.
1017
+ * If you do not call preloadEffectEx before playEffectEx, the file resource will be destroyed after playEffectEx is executed. The next call to playEffectEx will attempt to reopen the file and play from the beginning.
978
1018
  *
979
- * @param connection The connection information. See RtcConnection.
980
- * @param uid The user ID. Set uid as 0 if you want to take a snapshot of the local user's video.
981
- * @param config The configuration of the snaptshot. See SnapshotConfig.
1019
+ * @param connection Connection information. See RtcConnection.
1020
+ * @param soundId Sound effect ID.
1021
+ * @param filePath Absolute path of the local file or URL of the online file. Supported audio formats include: mp3, mp4, m4a, aac, 3gp, mkv, and wav.
1022
+ * @param startPos Start position (in milliseconds) for playing the sound effect file.
1023
+ *
1024
+ * @returns
1025
+ * 0: Success.
1026
+ * < 0: Failure.
1027
+ */
1028
+ abstract preloadEffectEx(
1029
+ connection: RtcConnection,
1030
+ soundId: number,
1031
+ filePath: string,
1032
+ startPos?: number
1033
+ ): number;
1034
+
1035
+ /**
1036
+ * Plays the specified sound effect in the channel.
1037
+ *
1038
+ * Since Available since v4.6.2. You can call this method to play a specified sound effect to all users in the channel. Each call to this method can only play one sound effect. To play multiple sound effects simultaneously, use different soundId and filePath values and call this method multiple times. You can also set whether to publish the sound effect in the channel.
1039
+ * Agora recommends not playing more than three sound effects simultaneously.
1040
+ * The sound effect ID and file path in this method must match those in the preloadEffectEx method.
1041
+ * If you call preloadEffectEx before calling playEffectEx, the file resource will not be closed after playEffectEx is executed. The next call to playEffectEx will start playback from the beginning.
1042
+ * If you do not call preloadEffectEx before calling playEffectEx, the file resource will be destroyed after playEffectEx is executed. The next call to playEffectEx will attempt to reopen the file and play from the beginning.
1043
+ *
1044
+ * @param connection RtcConnection object. See RtcConnection.
1045
+ * @param soundId Sound effect ID.
1046
+ * @param filePath Absolute path of the local file or URL of the online file. Supported audio formats include mp3, mp4, m4a, aac, 3gp, mkv, and wav.
1047
+ * @param loopCount Number of times the sound effect is played: -1 : Loops indefinitely until stopEffect or stopAllEffects is called. 0 : Plays once. 1 : Plays twice.
1048
+ * @param pitch Pitch of the sound effect. The range is 0.5 to 2.0. The default value is 1.0 (original pitch). The smaller the value, the lower the pitch.
1049
+ * @param pan Spatial position of the sound effect. The range is -1.0 to 1.0: -1.0 : The sound effect comes from the user's left. 0.0 : The sound effect comes from the front. 1.0 : The sound effect comes from the user's right.
1050
+ * @param gain Volume of the sound effect. The range is 0 to 100. The default value is 100 (original volume). The smaller the value, the lower the volume.
1051
+ * @param publish Whether to publish the sound effect in the channel: true : Publishes the sound effect in the channel. false : (Default) Does not publish the sound effect in the channel.
1052
+ * @param startPos Start position (in milliseconds) for playing the sound effect file.
982
1053
  *
983
1054
  * @returns
984
1055
  * 0: Success.
985
1056
  * < 0: Failure.
986
1057
  */
1058
+ abstract playEffectEx(
1059
+ connection: RtcConnection,
1060
+ soundId: number,
1061
+ filePath: string,
1062
+ loopCount: number,
1063
+ pitch: number,
1064
+ pan: number,
1065
+ gain: number,
1066
+ publish?: boolean,
1067
+ startPos?: number
1068
+ ): number;
1069
+
1070
+ /**
1071
+ * Takes a video snapshot at a specified observation point using the connection ID.
1072
+ *
1073
+ * This method captures a snapshot of the specified user's video stream, generates a JPG image, and saves it to the specified path.
1074
+ * This method is asynchronous. When the call returns, the SDK has not actually taken the snapshot.
1075
+ * When used to capture a local video snapshot, it captures the video stream specified in ChannelMediaOptions.
1076
+ * If the video has been pre-processed, such as with watermarking or beautification, the snapshot will include the effects of the pre-processing.
1077
+ *
1078
+ * @param connection Connection information. See RtcConnection.
1079
+ * @param uid User ID. Set to 0 to capture a snapshot of the local user's video.
1080
+ * @param config Snapshot settings. See SnapshotConfig.
1081
+ *
1082
+ * @returns
1083
+ * 0: Success.
1084
+ * < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
1085
+ */
987
1086
  abstract takeSnapshotWithConfigEx(
988
1087
  connection: RtcConnection,
989
1088
  uid: number,