agora-electron-sdk 0.0.0-dev.1

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 (369) hide show
  1. package/CHANGELOG.md +315 -0
  2. package/LICENSE +21 -0
  3. package/README.md +143 -0
  4. package/gulpfile.js +52 -0
  5. package/js/AgoraSdk.js +64 -0
  6. package/js/Decoder/gpu-utils.js +74 -0
  7. package/js/Decoder/index.js +172 -0
  8. package/js/Private/AgoraBase.js +3985 -0
  9. package/js/Private/AgoraMediaBase.js +1014 -0
  10. package/js/Private/AgoraMediaPlayerTypes.js +316 -0
  11. package/js/Private/IAgoraH265Transcoder.js +36 -0
  12. package/js/Private/IAgoraLog.js +78 -0
  13. package/js/Private/IAgoraMediaEngine.js +32 -0
  14. package/js/Private/IAgoraMediaPlayer.js +16 -0
  15. package/js/Private/IAgoraMediaPlayerSource.js +3 -0
  16. package/js/Private/IAgoraMediaRecorder.js +10 -0
  17. package/js/Private/IAgoraMediaStreamingSource.js +74 -0
  18. package/js/Private/IAgoraMusicContentCenter.js +157 -0
  19. package/js/Private/IAgoraRhythmPlayer.js +62 -0
  20. package/js/Private/IAgoraRtcEngine.js +982 -0
  21. package/js/Private/IAgoraRtcEngineEx.js +19 -0
  22. package/js/Private/IAgoraSpatialAudio.js +24 -0
  23. package/js/Private/IAudioDeviceManager.js +20 -0
  24. package/js/Private/extension/AgoraBaseExtension.js +3 -0
  25. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
  26. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
  27. package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
  28. package/js/Private/extension/IAgoraLogExtension.js +2 -0
  29. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
  30. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
  31. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
  32. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
  33. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
  34. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
  35. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
  36. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
  37. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
  38. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
  39. package/js/Private/impl/AgoraBaseImpl.js +23 -0
  40. package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
  41. package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
  42. package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
  43. package/js/Private/impl/IAgoraMediaPlayerImpl.js +950 -0
  44. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
  45. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
  46. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
  47. package/js/Private/impl/IAgoraRtcEngineExImpl.js +1042 -0
  48. package/js/Private/impl/IAgoraRtcEngineImpl.js +5167 -0
  49. package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
  50. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
  51. package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
  52. package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
  53. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
  54. package/js/Private/internal/IrisApiEngine.js +424 -0
  55. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
  56. package/js/Private/internal/MediaEngineInternal.js +122 -0
  57. package/js/Private/internal/MediaPlayerInternal.js +194 -0
  58. package/js/Private/internal/MediaRecorderInternal.js +70 -0
  59. package/js/Private/internal/MusicContentCenterInternal.js +139 -0
  60. package/js/Private/internal/RtcEngineExInternal.js +430 -0
  61. package/js/Private/ipc/main.js +21 -0
  62. package/js/Private/ipc/renderer.js +21 -0
  63. package/js/Private/ti/AgoraBase-ti.js +40 -0
  64. package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
  65. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
  66. package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
  67. package/js/Private/ti/IAgoraLog-ti.js +5 -0
  68. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
  69. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
  70. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
  71. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
  72. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  73. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
  74. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
  75. package/js/Private/ti/IAgoraRtcEngine-ti.js +141 -0
  76. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
  77. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
  78. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
  79. package/js/Renderer/AgoraView.js +161 -0
  80. package/js/Renderer/CapabilityManager.js +99 -0
  81. package/js/Renderer/IRenderer.js +136 -0
  82. package/js/Renderer/IRendererCache.js +75 -0
  83. package/js/Renderer/RendererCache.js +100 -0
  84. package/js/Renderer/RendererManager.js +301 -0
  85. package/js/Renderer/WebCodecsRenderer/index.js +109 -0
  86. package/js/Renderer/WebCodecsRendererCache.js +115 -0
  87. package/js/Renderer/WebGLRenderer/index.js +314 -0
  88. package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
  89. package/js/Renderer/YUVCanvasRenderer/index.js +46 -0
  90. package/js/Renderer/index.js +17 -0
  91. package/js/Types.js +67 -0
  92. package/js/Utils.js +187 -0
  93. package/package.json +167 -0
  94. package/scripts/bootstrap.js +29 -0
  95. package/scripts/build.js +37 -0
  96. package/scripts/buildJS.js +14 -0
  97. package/scripts/checkElectron.js +43 -0
  98. package/scripts/clean.js +16 -0
  99. package/scripts/download.js +105 -0
  100. package/scripts/downloadPrebuild.js +199 -0
  101. package/scripts/getConfig.js +73 -0
  102. package/scripts/logger.js +32 -0
  103. package/scripts/synclib.js +69 -0
  104. package/scripts/util.js +47 -0
  105. package/scripts/zipBuild.js +40 -0
  106. package/ts/AgoraSdk.ts +54 -0
  107. package/ts/Decoder/gpu-utils.ts +92 -0
  108. package/ts/Decoder/index.ts +206 -0
  109. package/ts/Private/AgoraBase.ts +5511 -0
  110. package/ts/Private/AgoraMediaBase.ts +1764 -0
  111. package/ts/Private/AgoraMediaPlayerTypes.ts +464 -0
  112. package/ts/Private/IAgoraH265Transcoder.ts +73 -0
  113. package/ts/Private/IAgoraLog.ts +91 -0
  114. package/ts/Private/IAgoraMediaEngine.ts +316 -0
  115. package/ts/Private/IAgoraMediaPlayer.ts +744 -0
  116. package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
  117. package/ts/Private/IAgoraMediaRecorder.ts +25 -0
  118. package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
  119. package/ts/Private/IAgoraMusicContentCenter.ts +455 -0
  120. package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
  121. package/ts/Private/IAgoraRtcEngine.ts +7306 -0
  122. package/ts/Private/IAgoraRtcEngineEx.ts +992 -0
  123. package/ts/Private/IAgoraSpatialAudio.ts +250 -0
  124. package/ts/Private/IAudioDeviceManager.ts +342 -0
  125. package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
  126. package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
  127. package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
  128. package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
  129. package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
  130. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
  131. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
  132. package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
  133. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
  134. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
  135. package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
  136. package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
  137. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
  138. package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
  139. package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
  140. package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
  141. package/ts/Private/impl/AgoraMediaBaseImpl.ts +237 -0
  142. package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
  143. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
  144. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1169 -0
  145. package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
  146. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
  147. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
  148. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1672 -0
  149. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7352 -0
  150. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
  151. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
  152. package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
  153. package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
  154. package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
  155. package/ts/Private/internal/IrisApiEngine.ts +598 -0
  156. package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
  157. package/ts/Private/internal/MediaEngineInternal.ts +190 -0
  158. package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
  159. package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
  160. package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
  161. package/ts/Private/internal/RtcEngineExInternal.ts +647 -0
  162. package/ts/Private/ipc/main.ts +22 -0
  163. package/ts/Private/ipc/renderer.ts +21 -0
  164. package/ts/Private/ti/AgoraBase-ti.ts +16 -0
  165. package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
  166. package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
  167. package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
  168. package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
  169. package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
  170. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
  171. package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
  172. package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
  173. package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
  174. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
  175. package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
  176. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +119 -0
  177. package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
  178. package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
  179. package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
  180. package/ts/Renderer/AgoraView.ts +235 -0
  181. package/ts/Renderer/CapabilityManager.ts +126 -0
  182. package/ts/Renderer/IRenderer.ts +158 -0
  183. package/ts/Renderer/IRendererCache.ts +96 -0
  184. package/ts/Renderer/RendererCache.ts +124 -0
  185. package/ts/Renderer/RendererManager.ts +400 -0
  186. package/ts/Renderer/WebCodecsRenderer/index.ts +145 -0
  187. package/ts/Renderer/WebCodecsRendererCache.ts +137 -0
  188. package/ts/Renderer/WebGLRenderer/index.ts +489 -0
  189. package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
  190. package/ts/Renderer/YUVCanvasRenderer/index.ts +67 -0
  191. package/ts/Renderer/index.ts +1 -0
  192. package/ts/Types.ts +249 -0
  193. package/ts/Utils.ts +197 -0
  194. package/types/AgoraSdk.d.ts +40 -0
  195. package/types/AgoraSdk.d.ts.map +1 -0
  196. package/types/Decoder/gpu-utils.d.ts +21 -0
  197. package/types/Decoder/gpu-utils.d.ts.map +1 -0
  198. package/types/Decoder/index.d.ts +26 -0
  199. package/types/Decoder/index.d.ts.map +1 -0
  200. package/types/Private/AgoraBase.d.ts +5310 -0
  201. package/types/Private/AgoraBase.d.ts.map +1 -0
  202. package/types/Private/AgoraMediaBase.d.ts +1668 -0
  203. package/types/Private/AgoraMediaBase.d.ts.map +1 -0
  204. package/types/Private/AgoraMediaPlayerTypes.d.ts +453 -0
  205. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  206. package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
  207. package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
  208. package/types/Private/IAgoraLog.d.ts +89 -0
  209. package/types/Private/IAgoraLog.d.ts.map +1 -0
  210. package/types/Private/IAgoraMediaEngine.d.ts +250 -0
  211. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
  212. package/types/Private/IAgoraMediaPlayer.d.ts +648 -0
  213. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  214. package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
  215. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  216. package/types/Private/IAgoraMediaRecorder.d.ts +20 -0
  217. package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  218. package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
  219. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  220. package/types/Private/IAgoraMusicContentCenter.d.ts +381 -0
  221. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  222. package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
  223. package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  224. package/types/Private/IAgoraRtcEngine.d.ts +6103 -0
  225. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
  226. package/types/Private/IAgoraRtcEngineEx.d.ts +741 -0
  227. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  228. package/types/Private/IAgoraSpatialAudio.d.ts +196 -0
  229. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  230. package/types/Private/IAudioDeviceManager.d.ts +312 -0
  231. package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
  232. package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
  233. package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  234. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
  235. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  236. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
  237. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  238. package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
  239. package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
  240. package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
  241. package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  242. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
  243. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  244. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
  245. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  246. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
  247. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  248. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
  249. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  250. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
  251. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  252. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
  253. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  254. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
  255. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  256. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
  257. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  258. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
  259. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  260. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
  261. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  262. package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
  263. package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  264. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
  265. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  266. package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
  267. package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
  268. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
  269. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  270. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +143 -0
  271. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  272. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
  273. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  274. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
  275. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  276. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
  277. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  278. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +116 -0
  279. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  280. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +628 -0
  281. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  282. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
  283. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  284. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
  285. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  286. package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
  287. package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
  288. package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
  289. package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
  290. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
  291. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  292. package/types/Private/internal/IrisApiEngine.d.ts +69 -0
  293. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
  294. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
  295. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  296. package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
  297. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  298. package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
  299. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  300. package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
  301. package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  302. package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
  303. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  304. package/types/Private/internal/RtcEngineExInternal.d.ts +73 -0
  305. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  306. package/types/Private/ipc/main.d.ts +2 -0
  307. package/types/Private/ipc/main.d.ts.map +1 -0
  308. package/types/Private/ipc/renderer.d.ts +3 -0
  309. package/types/Private/ipc/renderer.d.ts.map +1 -0
  310. package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
  311. package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  312. package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
  313. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  314. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
  315. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  316. package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
  317. package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
  318. package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
  319. package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  320. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
  321. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  322. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
  323. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  324. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
  325. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  326. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
  327. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  328. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
  329. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  330. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
  331. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  332. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
  333. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  334. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
  335. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  336. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
  337. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  338. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
  339. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  340. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
  341. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  342. package/types/Renderer/AgoraView.d.ts +76 -0
  343. package/types/Renderer/AgoraView.d.ts.map +1 -0
  344. package/types/Renderer/CapabilityManager.d.ts +20 -0
  345. package/types/Renderer/CapabilityManager.d.ts.map +1 -0
  346. package/types/Renderer/IRenderer.d.ts +20 -0
  347. package/types/Renderer/IRenderer.d.ts.map +1 -0
  348. package/types/Renderer/IRendererCache.d.ts +26 -0
  349. package/types/Renderer/IRendererCache.d.ts.map +1 -0
  350. package/types/Renderer/RendererCache.d.ts +24 -0
  351. package/types/Renderer/RendererCache.d.ts.map +1 -0
  352. package/types/Renderer/RendererManager.d.ts +66 -0
  353. package/types/Renderer/RendererManager.d.ts.map +1 -0
  354. package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
  355. package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
  356. package/types/Renderer/WebCodecsRendererCache.d.ts +15 -0
  357. package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
  358. package/types/Renderer/WebGLRenderer/index.d.ts +27 -0
  359. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  360. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
  361. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  362. package/types/Renderer/YUVCanvasRenderer/index.d.ts +9 -0
  363. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  364. package/types/Renderer/index.d.ts +2 -0
  365. package/types/Renderer/index.d.ts.map +1 -0
  366. package/types/Types.d.ts +177 -0
  367. package/types/Types.d.ts.map +1 -0
  368. package/types/Utils.d.ts +50 -0
  369. package/types/Utils.d.ts.map +1 -0
@@ -0,0 +1,1672 @@
1
+ import {
2
+ ChannelMediaRelayConfiguration,
3
+ ConnectionStateType,
4
+ DataStreamConfig,
5
+ EncryptionConfig,
6
+ LiveTranscoding,
7
+ SimulcastConfig,
8
+ SimulcastStreamConfig,
9
+ SimulcastStreamMode,
10
+ SpatialAudioParams,
11
+ UserInfo,
12
+ VideoCanvas,
13
+ VideoEncoderConfiguration,
14
+ VideoMirrorModeType,
15
+ VideoStreamType,
16
+ VideoSubscriptionOptions,
17
+ WatermarkOptions,
18
+ } from '../AgoraBase';
19
+ import {
20
+ ContentInspectConfig,
21
+ RenderModeType,
22
+ SnapshotConfig,
23
+ } from '../AgoraMediaBase';
24
+ import {
25
+ ChannelMediaOptions,
26
+ LeaveChannelOptions,
27
+ StreamFallbackOptions,
28
+ } from '../IAgoraRtcEngine';
29
+ import { IRtcEngineEx, RtcConnection } from '../IAgoraRtcEngineEx';
30
+
31
+ import { IRtcEngineImpl } from './IAgoraRtcEngineImpl';
32
+
33
+ // @ts-ignore
34
+ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
35
+ joinChannelEx(
36
+ token: string,
37
+ connection: RtcConnection,
38
+ options: ChannelMediaOptions
39
+ ): number {
40
+ const apiType = this.getApiTypeFromJoinChannelEx(
41
+ token,
42
+ connection,
43
+ options
44
+ );
45
+ const jsonParams = {
46
+ token: token,
47
+ connection: connection,
48
+ options: options,
49
+ toJSON: () => {
50
+ return {
51
+ token: token,
52
+ connection: connection,
53
+ options: options,
54
+ };
55
+ },
56
+ };
57
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
58
+ return jsonResults.result;
59
+ }
60
+
61
+ protected getApiTypeFromJoinChannelEx(
62
+ token: string,
63
+ connection: RtcConnection,
64
+ options: ChannelMediaOptions
65
+ ): string {
66
+ return 'RtcEngineEx_joinChannelEx_a3cd08c';
67
+ }
68
+
69
+ leaveChannelEx(
70
+ connection: RtcConnection,
71
+ options?: LeaveChannelOptions
72
+ ): number {
73
+ const apiType = this.getApiTypeFromLeaveChannelEx(connection, options);
74
+ const jsonParams = {
75
+ connection: connection,
76
+ options: options,
77
+ toJSON: () => {
78
+ return {
79
+ connection: connection,
80
+ options: options,
81
+ };
82
+ },
83
+ };
84
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
85
+ return jsonResults.result;
86
+ }
87
+
88
+ protected getApiTypeFromLeaveChannelEx(
89
+ connection: RtcConnection,
90
+ options?: LeaveChannelOptions
91
+ ): string {
92
+ return 'RtcEngineEx_leaveChannelEx_b03ee9a';
93
+ }
94
+
95
+ leaveChannelWithUserAccountEx(
96
+ channelId: string,
97
+ userAccount: string,
98
+ options?: LeaveChannelOptions
99
+ ): number {
100
+ const apiType = this.getApiTypeFromLeaveChannelWithUserAccountEx(
101
+ channelId,
102
+ userAccount,
103
+ options
104
+ );
105
+ const jsonParams = {
106
+ channelId: channelId,
107
+ userAccount: userAccount,
108
+ options: options,
109
+ toJSON: () => {
110
+ return {
111
+ channelId: channelId,
112
+ userAccount: userAccount,
113
+ options: options,
114
+ };
115
+ },
116
+ };
117
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
118
+ return jsonResults.result;
119
+ }
120
+
121
+ protected getApiTypeFromLeaveChannelWithUserAccountEx(
122
+ channelId: string,
123
+ userAccount: string,
124
+ options?: LeaveChannelOptions
125
+ ): string {
126
+ return 'RtcEngineEx_leaveChannelWithUserAccountEx_8bbe372';
127
+ }
128
+
129
+ updateChannelMediaOptionsEx(
130
+ options: ChannelMediaOptions,
131
+ connection: RtcConnection
132
+ ): number {
133
+ const apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(
134
+ options,
135
+ connection
136
+ );
137
+ const jsonParams = {
138
+ options: options,
139
+ connection: connection,
140
+ toJSON: () => {
141
+ return {
142
+ options: options,
143
+ connection: connection,
144
+ };
145
+ },
146
+ };
147
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
148
+ return jsonResults.result;
149
+ }
150
+
151
+ protected getApiTypeFromUpdateChannelMediaOptionsEx(
152
+ options: ChannelMediaOptions,
153
+ connection: RtcConnection
154
+ ): string {
155
+ return 'RtcEngineEx_updateChannelMediaOptionsEx_457bb35';
156
+ }
157
+
158
+ setVideoEncoderConfigurationEx(
159
+ config: VideoEncoderConfiguration,
160
+ connection: RtcConnection
161
+ ): number {
162
+ const apiType = this.getApiTypeFromSetVideoEncoderConfigurationEx(
163
+ config,
164
+ connection
165
+ );
166
+ const jsonParams = {
167
+ config: config,
168
+ connection: connection,
169
+ toJSON: () => {
170
+ return {
171
+ config: config,
172
+ connection: connection,
173
+ };
174
+ },
175
+ };
176
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
177
+ return jsonResults.result;
178
+ }
179
+
180
+ protected getApiTypeFromSetVideoEncoderConfigurationEx(
181
+ config: VideoEncoderConfiguration,
182
+ connection: RtcConnection
183
+ ): string {
184
+ return 'RtcEngineEx_setVideoEncoderConfigurationEx_4670c1e';
185
+ }
186
+
187
+ setupRemoteVideoEx(canvas: VideoCanvas, connection: RtcConnection): number {
188
+ const apiType = this.getApiTypeFromSetupRemoteVideoEx(canvas, connection);
189
+ const jsonParams = {
190
+ canvas: canvas,
191
+ connection: connection,
192
+ toJSON: () => {
193
+ return {
194
+ canvas: canvas,
195
+ connection: connection,
196
+ };
197
+ },
198
+ };
199
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
200
+ return jsonResults.result;
201
+ }
202
+
203
+ protected getApiTypeFromSetupRemoteVideoEx(
204
+ canvas: VideoCanvas,
205
+ connection: RtcConnection
206
+ ): string {
207
+ return 'RtcEngineEx_setupRemoteVideoEx_522a409';
208
+ }
209
+
210
+ muteRemoteAudioStreamEx(
211
+ uid: number,
212
+ mute: boolean,
213
+ connection: RtcConnection
214
+ ): number {
215
+ const apiType = this.getApiTypeFromMuteRemoteAudioStreamEx(
216
+ uid,
217
+ mute,
218
+ connection
219
+ );
220
+ const jsonParams = {
221
+ uid: uid,
222
+ mute: mute,
223
+ connection: connection,
224
+ toJSON: () => {
225
+ return {
226
+ uid: uid,
227
+ mute: mute,
228
+ connection: connection,
229
+ };
230
+ },
231
+ };
232
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
233
+ return jsonResults.result;
234
+ }
235
+
236
+ protected getApiTypeFromMuteRemoteAudioStreamEx(
237
+ uid: number,
238
+ mute: boolean,
239
+ connection: RtcConnection
240
+ ): string {
241
+ return 'RtcEngineEx_muteRemoteAudioStreamEx_6d93082';
242
+ }
243
+
244
+ muteRemoteVideoStreamEx(
245
+ uid: number,
246
+ mute: boolean,
247
+ connection: RtcConnection
248
+ ): number {
249
+ const apiType = this.getApiTypeFromMuteRemoteVideoStreamEx(
250
+ uid,
251
+ mute,
252
+ connection
253
+ );
254
+ const jsonParams = {
255
+ uid: uid,
256
+ mute: mute,
257
+ connection: connection,
258
+ toJSON: () => {
259
+ return {
260
+ uid: uid,
261
+ mute: mute,
262
+ connection: connection,
263
+ };
264
+ },
265
+ };
266
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
267
+ return jsonResults.result;
268
+ }
269
+
270
+ protected getApiTypeFromMuteRemoteVideoStreamEx(
271
+ uid: number,
272
+ mute: boolean,
273
+ connection: RtcConnection
274
+ ): string {
275
+ return 'RtcEngineEx_muteRemoteVideoStreamEx_6d93082';
276
+ }
277
+
278
+ setRemoteVideoStreamTypeEx(
279
+ uid: number,
280
+ streamType: VideoStreamType,
281
+ connection: RtcConnection
282
+ ): number {
283
+ const apiType = this.getApiTypeFromSetRemoteVideoStreamTypeEx(
284
+ uid,
285
+ streamType,
286
+ connection
287
+ );
288
+ const jsonParams = {
289
+ uid: uid,
290
+ streamType: streamType,
291
+ connection: connection,
292
+ toJSON: () => {
293
+ return {
294
+ uid: uid,
295
+ streamType: streamType,
296
+ connection: connection,
297
+ };
298
+ },
299
+ };
300
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
301
+ return jsonResults.result;
302
+ }
303
+
304
+ protected getApiTypeFromSetRemoteVideoStreamTypeEx(
305
+ uid: number,
306
+ streamType: VideoStreamType,
307
+ connection: RtcConnection
308
+ ): string {
309
+ return 'RtcEngineEx_setRemoteVideoStreamTypeEx_01dc428';
310
+ }
311
+
312
+ muteLocalAudioStreamEx(mute: boolean, connection: RtcConnection): number {
313
+ const apiType = this.getApiTypeFromMuteLocalAudioStreamEx(mute, connection);
314
+ const jsonParams = {
315
+ mute: mute,
316
+ connection: connection,
317
+ toJSON: () => {
318
+ return {
319
+ mute: mute,
320
+ connection: connection,
321
+ };
322
+ },
323
+ };
324
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
325
+ return jsonResults.result;
326
+ }
327
+
328
+ protected getApiTypeFromMuteLocalAudioStreamEx(
329
+ mute: boolean,
330
+ connection: RtcConnection
331
+ ): string {
332
+ return 'RtcEngineEx_muteLocalAudioStreamEx_3cf17a4';
333
+ }
334
+
335
+ muteLocalVideoStreamEx(mute: boolean, connection: RtcConnection): number {
336
+ const apiType = this.getApiTypeFromMuteLocalVideoStreamEx(mute, connection);
337
+ const jsonParams = {
338
+ mute: mute,
339
+ connection: connection,
340
+ toJSON: () => {
341
+ return {
342
+ mute: mute,
343
+ connection: connection,
344
+ };
345
+ },
346
+ };
347
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
348
+ return jsonResults.result;
349
+ }
350
+
351
+ protected getApiTypeFromMuteLocalVideoStreamEx(
352
+ mute: boolean,
353
+ connection: RtcConnection
354
+ ): string {
355
+ return 'RtcEngineEx_muteLocalVideoStreamEx_3cf17a4';
356
+ }
357
+
358
+ muteAllRemoteAudioStreamsEx(
359
+ mute: boolean,
360
+ connection: RtcConnection
361
+ ): number {
362
+ const apiType = this.getApiTypeFromMuteAllRemoteAudioStreamsEx(
363
+ mute,
364
+ connection
365
+ );
366
+ const jsonParams = {
367
+ mute: mute,
368
+ connection: connection,
369
+ toJSON: () => {
370
+ return {
371
+ mute: mute,
372
+ connection: connection,
373
+ };
374
+ },
375
+ };
376
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
377
+ return jsonResults.result;
378
+ }
379
+
380
+ protected getApiTypeFromMuteAllRemoteAudioStreamsEx(
381
+ mute: boolean,
382
+ connection: RtcConnection
383
+ ): string {
384
+ return 'RtcEngineEx_muteAllRemoteAudioStreamsEx_3cf17a4';
385
+ }
386
+
387
+ muteAllRemoteVideoStreamsEx(
388
+ mute: boolean,
389
+ connection: RtcConnection
390
+ ): number {
391
+ const apiType = this.getApiTypeFromMuteAllRemoteVideoStreamsEx(
392
+ mute,
393
+ connection
394
+ );
395
+ const jsonParams = {
396
+ mute: mute,
397
+ connection: connection,
398
+ toJSON: () => {
399
+ return {
400
+ mute: mute,
401
+ connection: connection,
402
+ };
403
+ },
404
+ };
405
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
406
+ return jsonResults.result;
407
+ }
408
+
409
+ protected getApiTypeFromMuteAllRemoteVideoStreamsEx(
410
+ mute: boolean,
411
+ connection: RtcConnection
412
+ ): string {
413
+ return 'RtcEngineEx_muteAllRemoteVideoStreamsEx_3cf17a4';
414
+ }
415
+
416
+ setSubscribeAudioBlocklistEx(
417
+ uidList: number[],
418
+ uidNumber: number,
419
+ connection: RtcConnection
420
+ ): number {
421
+ const apiType = this.getApiTypeFromSetSubscribeAudioBlocklistEx(
422
+ uidList,
423
+ uidNumber,
424
+ connection
425
+ );
426
+ const jsonParams = {
427
+ uidList: uidList,
428
+ uidNumber: uidNumber,
429
+ connection: connection,
430
+ toJSON: () => {
431
+ return {
432
+ uidList: uidList,
433
+ uidNumber: uidNumber,
434
+ connection: connection,
435
+ };
436
+ },
437
+ };
438
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
439
+ return jsonResults.result;
440
+ }
441
+
442
+ protected getApiTypeFromSetSubscribeAudioBlocklistEx(
443
+ uidList: number[],
444
+ uidNumber: number,
445
+ connection: RtcConnection
446
+ ): string {
447
+ return 'RtcEngineEx_setSubscribeAudioBlocklistEx_9f1e85c';
448
+ }
449
+
450
+ setSubscribeAudioAllowlistEx(
451
+ uidList: number[],
452
+ uidNumber: number,
453
+ connection: RtcConnection
454
+ ): number {
455
+ const apiType = this.getApiTypeFromSetSubscribeAudioAllowlistEx(
456
+ uidList,
457
+ uidNumber,
458
+ connection
459
+ );
460
+ const jsonParams = {
461
+ uidList: uidList,
462
+ uidNumber: uidNumber,
463
+ connection: connection,
464
+ toJSON: () => {
465
+ return {
466
+ uidList: uidList,
467
+ uidNumber: uidNumber,
468
+ connection: connection,
469
+ };
470
+ },
471
+ };
472
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
473
+ return jsonResults.result;
474
+ }
475
+
476
+ protected getApiTypeFromSetSubscribeAudioAllowlistEx(
477
+ uidList: number[],
478
+ uidNumber: number,
479
+ connection: RtcConnection
480
+ ): string {
481
+ return 'RtcEngineEx_setSubscribeAudioAllowlistEx_9f1e85c';
482
+ }
483
+
484
+ setSubscribeVideoBlocklistEx(
485
+ uidList: number[],
486
+ uidNumber: number,
487
+ connection: RtcConnection
488
+ ): number {
489
+ const apiType = this.getApiTypeFromSetSubscribeVideoBlocklistEx(
490
+ uidList,
491
+ uidNumber,
492
+ connection
493
+ );
494
+ const jsonParams = {
495
+ uidList: uidList,
496
+ uidNumber: uidNumber,
497
+ connection: connection,
498
+ toJSON: () => {
499
+ return {
500
+ uidList: uidList,
501
+ uidNumber: uidNumber,
502
+ connection: connection,
503
+ };
504
+ },
505
+ };
506
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
507
+ return jsonResults.result;
508
+ }
509
+
510
+ protected getApiTypeFromSetSubscribeVideoBlocklistEx(
511
+ uidList: number[],
512
+ uidNumber: number,
513
+ connection: RtcConnection
514
+ ): string {
515
+ return 'RtcEngineEx_setSubscribeVideoBlocklistEx_9f1e85c';
516
+ }
517
+
518
+ setSubscribeVideoAllowlistEx(
519
+ uidList: number[],
520
+ uidNumber: number,
521
+ connection: RtcConnection
522
+ ): number {
523
+ const apiType = this.getApiTypeFromSetSubscribeVideoAllowlistEx(
524
+ uidList,
525
+ uidNumber,
526
+ connection
527
+ );
528
+ const jsonParams = {
529
+ uidList: uidList,
530
+ uidNumber: uidNumber,
531
+ connection: connection,
532
+ toJSON: () => {
533
+ return {
534
+ uidList: uidList,
535
+ uidNumber: uidNumber,
536
+ connection: connection,
537
+ };
538
+ },
539
+ };
540
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
541
+ return jsonResults.result;
542
+ }
543
+
544
+ protected getApiTypeFromSetSubscribeVideoAllowlistEx(
545
+ uidList: number[],
546
+ uidNumber: number,
547
+ connection: RtcConnection
548
+ ): string {
549
+ return 'RtcEngineEx_setSubscribeVideoAllowlistEx_9f1e85c';
550
+ }
551
+
552
+ setRemoteVideoSubscriptionOptionsEx(
553
+ uid: number,
554
+ options: VideoSubscriptionOptions,
555
+ connection: RtcConnection
556
+ ): number {
557
+ const apiType = this.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(
558
+ uid,
559
+ options,
560
+ connection
561
+ );
562
+ const jsonParams = {
563
+ uid: uid,
564
+ options: options,
565
+ connection: connection,
566
+ toJSON: () => {
567
+ return {
568
+ uid: uid,
569
+ options: options,
570
+ connection: connection,
571
+ };
572
+ },
573
+ };
574
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
575
+ return jsonResults.result;
576
+ }
577
+
578
+ protected getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(
579
+ uid: number,
580
+ options: VideoSubscriptionOptions,
581
+ connection: RtcConnection
582
+ ): string {
583
+ return 'RtcEngineEx_setRemoteVideoSubscriptionOptionsEx_3cd36bc';
584
+ }
585
+
586
+ setRemoteVoicePositionEx(
587
+ uid: number,
588
+ pan: number,
589
+ gain: number,
590
+ connection: RtcConnection
591
+ ): number {
592
+ const apiType = this.getApiTypeFromSetRemoteVoicePositionEx(
593
+ uid,
594
+ pan,
595
+ gain,
596
+ connection
597
+ );
598
+ const jsonParams = {
599
+ uid: uid,
600
+ pan: pan,
601
+ gain: gain,
602
+ connection: connection,
603
+ toJSON: () => {
604
+ return {
605
+ uid: uid,
606
+ pan: pan,
607
+ gain: gain,
608
+ connection: connection,
609
+ };
610
+ },
611
+ };
612
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
613
+ return jsonResults.result;
614
+ }
615
+
616
+ protected getApiTypeFromSetRemoteVoicePositionEx(
617
+ uid: number,
618
+ pan: number,
619
+ gain: number,
620
+ connection: RtcConnection
621
+ ): string {
622
+ return 'RtcEngineEx_setRemoteVoicePositionEx_fc0471c';
623
+ }
624
+
625
+ setRemoteUserSpatialAudioParamsEx(
626
+ uid: number,
627
+ params: SpatialAudioParams,
628
+ connection: RtcConnection
629
+ ): number {
630
+ const apiType = this.getApiTypeFromSetRemoteUserSpatialAudioParamsEx(
631
+ uid,
632
+ params,
633
+ connection
634
+ );
635
+ const jsonParams = {
636
+ uid: uid,
637
+ params: params,
638
+ connection: connection,
639
+ toJSON: () => {
640
+ return {
641
+ uid: uid,
642
+ params: params,
643
+ connection: connection,
644
+ };
645
+ },
646
+ };
647
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
648
+ return jsonResults.result;
649
+ }
650
+
651
+ protected getApiTypeFromSetRemoteUserSpatialAudioParamsEx(
652
+ uid: number,
653
+ params: SpatialAudioParams,
654
+ connection: RtcConnection
655
+ ): string {
656
+ return 'RtcEngineEx_setRemoteUserSpatialAudioParamsEx_40ca9fb';
657
+ }
658
+
659
+ setRemoteRenderModeEx(
660
+ uid: number,
661
+ renderMode: RenderModeType,
662
+ mirrorMode: VideoMirrorModeType,
663
+ connection: RtcConnection
664
+ ): number {
665
+ const apiType = this.getApiTypeFromSetRemoteRenderModeEx(
666
+ uid,
667
+ renderMode,
668
+ mirrorMode,
669
+ connection
670
+ );
671
+ const jsonParams = {
672
+ uid: uid,
673
+ renderMode: renderMode,
674
+ mirrorMode: mirrorMode,
675
+ connection: connection,
676
+ toJSON: () => {
677
+ return {
678
+ uid: uid,
679
+ renderMode: renderMode,
680
+ mirrorMode: mirrorMode,
681
+ connection: connection,
682
+ };
683
+ },
684
+ };
685
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
686
+ return jsonResults.result;
687
+ }
688
+
689
+ protected getApiTypeFromSetRemoteRenderModeEx(
690
+ uid: number,
691
+ renderMode: RenderModeType,
692
+ mirrorMode: VideoMirrorModeType,
693
+ connection: RtcConnection
694
+ ): string {
695
+ return 'RtcEngineEx_setRemoteRenderModeEx_a72fe4e';
696
+ }
697
+
698
+ enableLoopbackRecordingEx(
699
+ connection: RtcConnection,
700
+ enabled: boolean,
701
+ deviceName?: string
702
+ ): number {
703
+ const apiType = this.getApiTypeFromEnableLoopbackRecordingEx(
704
+ connection,
705
+ enabled,
706
+ deviceName
707
+ );
708
+ const jsonParams = {
709
+ connection: connection,
710
+ enabled: enabled,
711
+ deviceName: deviceName,
712
+ toJSON: () => {
713
+ return {
714
+ connection: connection,
715
+ enabled: enabled,
716
+ deviceName: deviceName,
717
+ };
718
+ },
719
+ };
720
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
721
+ return jsonResults.result;
722
+ }
723
+
724
+ protected getApiTypeFromEnableLoopbackRecordingEx(
725
+ connection: RtcConnection,
726
+ enabled: boolean,
727
+ deviceName?: string
728
+ ): string {
729
+ return 'RtcEngineEx_enableLoopbackRecordingEx_4f41542';
730
+ }
731
+
732
+ adjustRecordingSignalVolumeEx(
733
+ volume: number,
734
+ connection: RtcConnection
735
+ ): number {
736
+ const apiType = this.getApiTypeFromAdjustRecordingSignalVolumeEx(
737
+ volume,
738
+ connection
739
+ );
740
+ const jsonParams = {
741
+ volume: volume,
742
+ connection: connection,
743
+ toJSON: () => {
744
+ return {
745
+ volume: volume,
746
+ connection: connection,
747
+ };
748
+ },
749
+ };
750
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
751
+ return jsonResults.result;
752
+ }
753
+
754
+ protected getApiTypeFromAdjustRecordingSignalVolumeEx(
755
+ volume: number,
756
+ connection: RtcConnection
757
+ ): string {
758
+ return 'RtcEngineEx_adjustRecordingSignalVolumeEx_e84d10e';
759
+ }
760
+
761
+ muteRecordingSignalEx(mute: boolean, connection: RtcConnection): number {
762
+ const apiType = this.getApiTypeFromMuteRecordingSignalEx(mute, connection);
763
+ const jsonParams = {
764
+ mute: mute,
765
+ connection: connection,
766
+ toJSON: () => {
767
+ return {
768
+ mute: mute,
769
+ connection: connection,
770
+ };
771
+ },
772
+ };
773
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
774
+ return jsonResults.result;
775
+ }
776
+
777
+ protected getApiTypeFromMuteRecordingSignalEx(
778
+ mute: boolean,
779
+ connection: RtcConnection
780
+ ): string {
781
+ return 'RtcEngineEx_muteRecordingSignalEx_3cf17a4';
782
+ }
783
+
784
+ adjustUserPlaybackSignalVolumeEx(
785
+ uid: number,
786
+ volume: number,
787
+ connection: RtcConnection
788
+ ): number {
789
+ const apiType = this.getApiTypeFromAdjustUserPlaybackSignalVolumeEx(
790
+ uid,
791
+ volume,
792
+ connection
793
+ );
794
+ const jsonParams = {
795
+ uid: uid,
796
+ volume: volume,
797
+ connection: connection,
798
+ toJSON: () => {
799
+ return {
800
+ uid: uid,
801
+ volume: volume,
802
+ connection: connection,
803
+ };
804
+ },
805
+ };
806
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
807
+ return jsonResults.result;
808
+ }
809
+
810
+ protected getApiTypeFromAdjustUserPlaybackSignalVolumeEx(
811
+ uid: number,
812
+ volume: number,
813
+ connection: RtcConnection
814
+ ): string {
815
+ return 'RtcEngineEx_adjustUserPlaybackSignalVolumeEx_adbd29c';
816
+ }
817
+
818
+ getConnectionStateEx(connection: RtcConnection): ConnectionStateType {
819
+ const apiType = this.getApiTypeFromGetConnectionStateEx(connection);
820
+ const jsonParams = {
821
+ connection: connection,
822
+ toJSON: () => {
823
+ return {
824
+ connection: connection,
825
+ };
826
+ },
827
+ };
828
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
829
+ return jsonResults.result;
830
+ }
831
+
832
+ protected getApiTypeFromGetConnectionStateEx(
833
+ connection: RtcConnection
834
+ ): string {
835
+ return 'RtcEngineEx_getConnectionStateEx_c81e1a4';
836
+ }
837
+
838
+ enableEncryptionEx(
839
+ connection: RtcConnection,
840
+ enabled: boolean,
841
+ config: EncryptionConfig
842
+ ): number {
843
+ const apiType = this.getApiTypeFromEnableEncryptionEx(
844
+ connection,
845
+ enabled,
846
+ config
847
+ );
848
+ const jsonParams = {
849
+ connection: connection,
850
+ enabled: enabled,
851
+ config: config,
852
+ toJSON: () => {
853
+ return {
854
+ connection: connection,
855
+ enabled: enabled,
856
+ config: config,
857
+ };
858
+ },
859
+ };
860
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
861
+ return jsonResults.result;
862
+ }
863
+
864
+ protected getApiTypeFromEnableEncryptionEx(
865
+ connection: RtcConnection,
866
+ enabled: boolean,
867
+ config: EncryptionConfig
868
+ ): string {
869
+ return 'RtcEngineEx_enableEncryptionEx_10cd872';
870
+ }
871
+
872
+ createDataStreamEx(
873
+ config: DataStreamConfig,
874
+ connection: RtcConnection
875
+ ): number {
876
+ const apiType = this.getApiTypeFromCreateDataStreamEx(config, connection);
877
+ const jsonParams = {
878
+ config: config,
879
+ connection: connection,
880
+ toJSON: () => {
881
+ return {
882
+ config: config,
883
+ connection: connection,
884
+ };
885
+ },
886
+ };
887
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
888
+ const streamId = jsonResults.streamId;
889
+ return streamId;
890
+ }
891
+
892
+ protected getApiTypeFromCreateDataStreamEx(
893
+ config: DataStreamConfig,
894
+ connection: RtcConnection
895
+ ): string {
896
+ return 'RtcEngineEx_createDataStreamEx_9f641b6';
897
+ }
898
+
899
+ sendStreamMessageEx(
900
+ streamId: number,
901
+ data: Uint8Array,
902
+ length: number,
903
+ connection: RtcConnection
904
+ ): number {
905
+ const apiType = this.getApiTypeFromSendStreamMessageEx(
906
+ streamId,
907
+ data,
908
+ length,
909
+ connection
910
+ );
911
+ const jsonParams = {
912
+ streamId: streamId,
913
+ data: data,
914
+ length: length,
915
+ connection: connection,
916
+ toJSON: () => {
917
+ return {
918
+ streamId: streamId,
919
+ length: length,
920
+ connection: connection,
921
+ };
922
+ },
923
+ };
924
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
925
+ return jsonResults.result;
926
+ }
927
+
928
+ protected getApiTypeFromSendStreamMessageEx(
929
+ streamId: number,
930
+ data: Uint8Array,
931
+ length: number,
932
+ connection: RtcConnection
933
+ ): string {
934
+ return 'RtcEngineEx_sendStreamMessageEx_0c34857';
935
+ }
936
+
937
+ addVideoWatermarkEx(
938
+ watermarkUrl: string,
939
+ options: WatermarkOptions,
940
+ connection: RtcConnection
941
+ ): number {
942
+ const apiType = this.getApiTypeFromAddVideoWatermarkEx(
943
+ watermarkUrl,
944
+ options,
945
+ connection
946
+ );
947
+ const jsonParams = {
948
+ watermarkUrl: watermarkUrl,
949
+ options: options,
950
+ connection: connection,
951
+ toJSON: () => {
952
+ return {
953
+ watermarkUrl: watermarkUrl,
954
+ options: options,
955
+ connection: connection,
956
+ };
957
+ },
958
+ };
959
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
960
+ return jsonResults.result;
961
+ }
962
+
963
+ protected getApiTypeFromAddVideoWatermarkEx(
964
+ watermarkUrl: string,
965
+ options: WatermarkOptions,
966
+ connection: RtcConnection
967
+ ): string {
968
+ return 'RtcEngineEx_addVideoWatermarkEx_ad7daa3';
969
+ }
970
+
971
+ clearVideoWatermarkEx(connection: RtcConnection): number {
972
+ const apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
973
+ const jsonParams = {
974
+ connection: connection,
975
+ toJSON: () => {
976
+ return {
977
+ connection: connection,
978
+ };
979
+ },
980
+ };
981
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
982
+ return jsonResults.result;
983
+ }
984
+
985
+ protected getApiTypeFromClearVideoWatermarkEx(
986
+ connection: RtcConnection
987
+ ): string {
988
+ return 'RtcEngineEx_clearVideoWatermarkEx_c81e1a4';
989
+ }
990
+
991
+ sendCustomReportMessageEx(
992
+ id: string,
993
+ category: string,
994
+ event: string,
995
+ label: string,
996
+ value: number,
997
+ connection: RtcConnection
998
+ ): number {
999
+ const apiType = this.getApiTypeFromSendCustomReportMessageEx(
1000
+ id,
1001
+ category,
1002
+ event,
1003
+ label,
1004
+ value,
1005
+ connection
1006
+ );
1007
+ const jsonParams = {
1008
+ id: id,
1009
+ category: category,
1010
+ event: event,
1011
+ label: label,
1012
+ value: value,
1013
+ connection: connection,
1014
+ toJSON: () => {
1015
+ return {
1016
+ id: id,
1017
+ category: category,
1018
+ event: event,
1019
+ label: label,
1020
+ value: value,
1021
+ connection: connection,
1022
+ };
1023
+ },
1024
+ };
1025
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1026
+ return jsonResults.result;
1027
+ }
1028
+
1029
+ protected getApiTypeFromSendCustomReportMessageEx(
1030
+ id: string,
1031
+ category: string,
1032
+ event: string,
1033
+ label: string,
1034
+ value: number,
1035
+ connection: RtcConnection
1036
+ ): string {
1037
+ return 'RtcEngineEx_sendCustomReportMessageEx_833b8a5';
1038
+ }
1039
+
1040
+ enableAudioVolumeIndicationEx(
1041
+ interval: number,
1042
+ smooth: number,
1043
+ reportVad: boolean,
1044
+ connection: RtcConnection
1045
+ ): number {
1046
+ const apiType = this.getApiTypeFromEnableAudioVolumeIndicationEx(
1047
+ interval,
1048
+ smooth,
1049
+ reportVad,
1050
+ connection
1051
+ );
1052
+ const jsonParams = {
1053
+ interval: interval,
1054
+ smooth: smooth,
1055
+ reportVad: reportVad,
1056
+ connection: connection,
1057
+ toJSON: () => {
1058
+ return {
1059
+ interval: interval,
1060
+ smooth: smooth,
1061
+ reportVad: reportVad,
1062
+ connection: connection,
1063
+ };
1064
+ },
1065
+ };
1066
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1067
+ return jsonResults.result;
1068
+ }
1069
+
1070
+ protected getApiTypeFromEnableAudioVolumeIndicationEx(
1071
+ interval: number,
1072
+ smooth: number,
1073
+ reportVad: boolean,
1074
+ connection: RtcConnection
1075
+ ): string {
1076
+ return 'RtcEngineEx_enableAudioVolumeIndicationEx_ac84f2a';
1077
+ }
1078
+
1079
+ startRtmpStreamWithoutTranscodingEx(
1080
+ url: string,
1081
+ connection: RtcConnection
1082
+ ): number {
1083
+ const apiType = this.getApiTypeFromStartRtmpStreamWithoutTranscodingEx(
1084
+ url,
1085
+ connection
1086
+ );
1087
+ const jsonParams = {
1088
+ url: url,
1089
+ connection: connection,
1090
+ toJSON: () => {
1091
+ return {
1092
+ url: url,
1093
+ connection: connection,
1094
+ };
1095
+ },
1096
+ };
1097
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1098
+ return jsonResults.result;
1099
+ }
1100
+
1101
+ protected getApiTypeFromStartRtmpStreamWithoutTranscodingEx(
1102
+ url: string,
1103
+ connection: RtcConnection
1104
+ ): string {
1105
+ return 'RtcEngineEx_startRtmpStreamWithoutTranscodingEx_e405325';
1106
+ }
1107
+
1108
+ startRtmpStreamWithTranscodingEx(
1109
+ url: string,
1110
+ transcoding: LiveTranscoding,
1111
+ connection: RtcConnection
1112
+ ): number {
1113
+ const apiType = this.getApiTypeFromStartRtmpStreamWithTranscodingEx(
1114
+ url,
1115
+ transcoding,
1116
+ connection
1117
+ );
1118
+ const jsonParams = {
1119
+ url: url,
1120
+ transcoding: transcoding,
1121
+ connection: connection,
1122
+ toJSON: () => {
1123
+ return {
1124
+ url: url,
1125
+ transcoding: transcoding,
1126
+ connection: connection,
1127
+ };
1128
+ },
1129
+ };
1130
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1131
+ return jsonResults.result;
1132
+ }
1133
+
1134
+ protected getApiTypeFromStartRtmpStreamWithTranscodingEx(
1135
+ url: string,
1136
+ transcoding: LiveTranscoding,
1137
+ connection: RtcConnection
1138
+ ): string {
1139
+ return 'RtcEngineEx_startRtmpStreamWithTranscodingEx_ab121b5';
1140
+ }
1141
+
1142
+ updateRtmpTranscodingEx(
1143
+ transcoding: LiveTranscoding,
1144
+ connection: RtcConnection
1145
+ ): number {
1146
+ const apiType = this.getApiTypeFromUpdateRtmpTranscodingEx(
1147
+ transcoding,
1148
+ connection
1149
+ );
1150
+ const jsonParams = {
1151
+ transcoding: transcoding,
1152
+ connection: connection,
1153
+ toJSON: () => {
1154
+ return {
1155
+ transcoding: transcoding,
1156
+ connection: connection,
1157
+ };
1158
+ },
1159
+ };
1160
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1161
+ return jsonResults.result;
1162
+ }
1163
+
1164
+ protected getApiTypeFromUpdateRtmpTranscodingEx(
1165
+ transcoding: LiveTranscoding,
1166
+ connection: RtcConnection
1167
+ ): string {
1168
+ return 'RtcEngineEx_updateRtmpTranscodingEx_77f3ee8';
1169
+ }
1170
+
1171
+ stopRtmpStreamEx(url: string, connection: RtcConnection): number {
1172
+ const apiType = this.getApiTypeFromStopRtmpStreamEx(url, connection);
1173
+ const jsonParams = {
1174
+ url: url,
1175
+ connection: connection,
1176
+ toJSON: () => {
1177
+ return {
1178
+ url: url,
1179
+ connection: connection,
1180
+ };
1181
+ },
1182
+ };
1183
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1184
+ return jsonResults.result;
1185
+ }
1186
+
1187
+ protected getApiTypeFromStopRtmpStreamEx(
1188
+ url: string,
1189
+ connection: RtcConnection
1190
+ ): string {
1191
+ return 'RtcEngineEx_stopRtmpStreamEx_e405325';
1192
+ }
1193
+
1194
+ startOrUpdateChannelMediaRelayEx(
1195
+ configuration: ChannelMediaRelayConfiguration,
1196
+ connection: RtcConnection
1197
+ ): number {
1198
+ const apiType = this.getApiTypeFromStartOrUpdateChannelMediaRelayEx(
1199
+ configuration,
1200
+ connection
1201
+ );
1202
+ const jsonParams = {
1203
+ configuration: configuration,
1204
+ connection: connection,
1205
+ toJSON: () => {
1206
+ return {
1207
+ configuration: configuration,
1208
+ connection: connection,
1209
+ };
1210
+ },
1211
+ };
1212
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1213
+ return jsonResults.result;
1214
+ }
1215
+
1216
+ protected getApiTypeFromStartOrUpdateChannelMediaRelayEx(
1217
+ configuration: ChannelMediaRelayConfiguration,
1218
+ connection: RtcConnection
1219
+ ): string {
1220
+ return 'RtcEngineEx_startOrUpdateChannelMediaRelayEx_4ad39a8';
1221
+ }
1222
+
1223
+ stopChannelMediaRelayEx(connection: RtcConnection): number {
1224
+ const apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
1225
+ const jsonParams = {
1226
+ connection: connection,
1227
+ toJSON: () => {
1228
+ return {
1229
+ connection: connection,
1230
+ };
1231
+ },
1232
+ };
1233
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1234
+ return jsonResults.result;
1235
+ }
1236
+
1237
+ protected getApiTypeFromStopChannelMediaRelayEx(
1238
+ connection: RtcConnection
1239
+ ): string {
1240
+ return 'RtcEngineEx_stopChannelMediaRelayEx_c81e1a4';
1241
+ }
1242
+
1243
+ pauseAllChannelMediaRelayEx(connection: RtcConnection): number {
1244
+ const apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
1245
+ const jsonParams = {
1246
+ connection: connection,
1247
+ toJSON: () => {
1248
+ return {
1249
+ connection: connection,
1250
+ };
1251
+ },
1252
+ };
1253
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1254
+ return jsonResults.result;
1255
+ }
1256
+
1257
+ protected getApiTypeFromPauseAllChannelMediaRelayEx(
1258
+ connection: RtcConnection
1259
+ ): string {
1260
+ return 'RtcEngineEx_pauseAllChannelMediaRelayEx_c81e1a4';
1261
+ }
1262
+
1263
+ resumeAllChannelMediaRelayEx(connection: RtcConnection): number {
1264
+ const apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
1265
+ const jsonParams = {
1266
+ connection: connection,
1267
+ toJSON: () => {
1268
+ return {
1269
+ connection: connection,
1270
+ };
1271
+ },
1272
+ };
1273
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1274
+ return jsonResults.result;
1275
+ }
1276
+
1277
+ protected getApiTypeFromResumeAllChannelMediaRelayEx(
1278
+ connection: RtcConnection
1279
+ ): string {
1280
+ return 'RtcEngineEx_resumeAllChannelMediaRelayEx_c81e1a4';
1281
+ }
1282
+
1283
+ getUserInfoByUserAccountEx(
1284
+ userAccount: string,
1285
+ connection: RtcConnection
1286
+ ): UserInfo {
1287
+ const apiType = this.getApiTypeFromGetUserInfoByUserAccountEx(
1288
+ userAccount,
1289
+ connection
1290
+ );
1291
+ const jsonParams = {
1292
+ userAccount: userAccount,
1293
+ connection: connection,
1294
+ toJSON: () => {
1295
+ return {
1296
+ userAccount: userAccount,
1297
+ connection: connection,
1298
+ };
1299
+ },
1300
+ };
1301
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1302
+ const userInfo = jsonResults.userInfo;
1303
+ return userInfo;
1304
+ }
1305
+
1306
+ protected getApiTypeFromGetUserInfoByUserAccountEx(
1307
+ userAccount: string,
1308
+ connection: RtcConnection
1309
+ ): string {
1310
+ return 'RtcEngineEx_getUserInfoByUserAccountEx_ca39cc6';
1311
+ }
1312
+
1313
+ getUserInfoByUidEx(uid: number, connection: RtcConnection): UserInfo {
1314
+ const apiType = this.getApiTypeFromGetUserInfoByUidEx(uid, connection);
1315
+ const jsonParams = {
1316
+ uid: uid,
1317
+ connection: connection,
1318
+ toJSON: () => {
1319
+ return {
1320
+ uid: uid,
1321
+ connection: connection,
1322
+ };
1323
+ },
1324
+ };
1325
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1326
+ const userInfo = jsonResults.userInfo;
1327
+ return userInfo;
1328
+ }
1329
+
1330
+ protected getApiTypeFromGetUserInfoByUidEx(
1331
+ uid: number,
1332
+ connection: RtcConnection
1333
+ ): string {
1334
+ return 'RtcEngineEx_getUserInfoByUidEx_1e78da1';
1335
+ }
1336
+
1337
+ enableDualStreamModeEx(
1338
+ enabled: boolean,
1339
+ streamConfig: SimulcastStreamConfig,
1340
+ connection: RtcConnection
1341
+ ): number {
1342
+ const apiType = this.getApiTypeFromEnableDualStreamModeEx(
1343
+ enabled,
1344
+ streamConfig,
1345
+ connection
1346
+ );
1347
+ const jsonParams = {
1348
+ enabled: enabled,
1349
+ streamConfig: streamConfig,
1350
+ connection: connection,
1351
+ toJSON: () => {
1352
+ return {
1353
+ enabled: enabled,
1354
+ streamConfig: streamConfig,
1355
+ connection: connection,
1356
+ };
1357
+ },
1358
+ };
1359
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1360
+ return jsonResults.result;
1361
+ }
1362
+
1363
+ protected getApiTypeFromEnableDualStreamModeEx(
1364
+ enabled: boolean,
1365
+ streamConfig: SimulcastStreamConfig,
1366
+ connection: RtcConnection
1367
+ ): string {
1368
+ return 'RtcEngineEx_enableDualStreamModeEx_4b18f41';
1369
+ }
1370
+
1371
+ setDualStreamModeEx(
1372
+ mode: SimulcastStreamMode,
1373
+ streamConfig: SimulcastStreamConfig,
1374
+ connection: RtcConnection
1375
+ ): number {
1376
+ const apiType = this.getApiTypeFromSetDualStreamModeEx(
1377
+ mode,
1378
+ streamConfig,
1379
+ connection
1380
+ );
1381
+ const jsonParams = {
1382
+ mode: mode,
1383
+ streamConfig: streamConfig,
1384
+ connection: connection,
1385
+ toJSON: () => {
1386
+ return {
1387
+ mode: mode,
1388
+ streamConfig: streamConfig,
1389
+ connection: connection,
1390
+ };
1391
+ },
1392
+ };
1393
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1394
+ return jsonResults.result;
1395
+ }
1396
+
1397
+ protected getApiTypeFromSetDualStreamModeEx(
1398
+ mode: SimulcastStreamMode,
1399
+ streamConfig: SimulcastStreamConfig,
1400
+ connection: RtcConnection
1401
+ ): string {
1402
+ return 'RtcEngineEx_setDualStreamModeEx_622d0f3';
1403
+ }
1404
+
1405
+ setSimulcastConfigEx(
1406
+ simulcastConfig: SimulcastConfig,
1407
+ connection: RtcConnection
1408
+ ): number {
1409
+ const apiType = this.getApiTypeFromSetSimulcastConfigEx(
1410
+ simulcastConfig,
1411
+ connection
1412
+ );
1413
+ const jsonParams = {
1414
+ simulcastConfig: simulcastConfig,
1415
+ connection: connection,
1416
+ toJSON: () => {
1417
+ return {
1418
+ simulcastConfig: simulcastConfig,
1419
+ connection: connection,
1420
+ };
1421
+ },
1422
+ };
1423
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1424
+ return jsonResults.result;
1425
+ }
1426
+
1427
+ protected getApiTypeFromSetSimulcastConfigEx(
1428
+ simulcastConfig: SimulcastConfig,
1429
+ connection: RtcConnection
1430
+ ): string {
1431
+ return 'RtcEngineEx_setSimulcastConfigEx_bd8d7d0';
1432
+ }
1433
+
1434
+ setHighPriorityUserListEx(
1435
+ uidList: number[],
1436
+ uidNum: number,
1437
+ option: StreamFallbackOptions,
1438
+ connection: RtcConnection
1439
+ ): number {
1440
+ const apiType = this.getApiTypeFromSetHighPriorityUserListEx(
1441
+ uidList,
1442
+ uidNum,
1443
+ option,
1444
+ connection
1445
+ );
1446
+ const jsonParams = {
1447
+ uidList: uidList,
1448
+ uidNum: uidNum,
1449
+ option: option,
1450
+ connection: connection,
1451
+ toJSON: () => {
1452
+ return {
1453
+ uidList: uidList,
1454
+ uidNum: uidNum,
1455
+ option: option,
1456
+ connection: connection,
1457
+ };
1458
+ },
1459
+ };
1460
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1461
+ return jsonResults.result;
1462
+ }
1463
+
1464
+ protected getApiTypeFromSetHighPriorityUserListEx(
1465
+ uidList: number[],
1466
+ uidNum: number,
1467
+ option: StreamFallbackOptions,
1468
+ connection: RtcConnection
1469
+ ): string {
1470
+ return 'RtcEngineEx_setHighPriorityUserListEx_8736b5c';
1471
+ }
1472
+
1473
+ takeSnapshotEx(
1474
+ connection: RtcConnection,
1475
+ uid: number,
1476
+ filePath: string
1477
+ ): number {
1478
+ const apiType = this.getApiTypeFromTakeSnapshotEx(
1479
+ connection,
1480
+ uid,
1481
+ filePath
1482
+ );
1483
+ const jsonParams = {
1484
+ connection: connection,
1485
+ uid: uid,
1486
+ filePath: filePath,
1487
+ toJSON: () => {
1488
+ return {
1489
+ connection: connection,
1490
+ uid: uid,
1491
+ filePath: filePath,
1492
+ };
1493
+ },
1494
+ };
1495
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1496
+ return jsonResults.result;
1497
+ }
1498
+
1499
+ protected getApiTypeFromTakeSnapshotEx(
1500
+ connection: RtcConnection,
1501
+ uid: number,
1502
+ filePath: string
1503
+ ): string {
1504
+ return 'RtcEngineEx_takeSnapshotEx_de1c015';
1505
+ }
1506
+
1507
+ enableContentInspectEx(
1508
+ enabled: boolean,
1509
+ config: ContentInspectConfig,
1510
+ connection: RtcConnection
1511
+ ): number {
1512
+ const apiType = this.getApiTypeFromEnableContentInspectEx(
1513
+ enabled,
1514
+ config,
1515
+ connection
1516
+ );
1517
+ const jsonParams = {
1518
+ enabled: enabled,
1519
+ config: config,
1520
+ connection: connection,
1521
+ toJSON: () => {
1522
+ return {
1523
+ enabled: enabled,
1524
+ config: config,
1525
+ connection: connection,
1526
+ };
1527
+ },
1528
+ };
1529
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1530
+ return jsonResults.result;
1531
+ }
1532
+
1533
+ protected getApiTypeFromEnableContentInspectEx(
1534
+ enabled: boolean,
1535
+ config: ContentInspectConfig,
1536
+ connection: RtcConnection
1537
+ ): string {
1538
+ return 'RtcEngineEx_enableContentInspectEx_c4e7f69';
1539
+ }
1540
+
1541
+ startMediaRenderingTracingEx(connection: RtcConnection): number {
1542
+ const apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
1543
+ const jsonParams = {
1544
+ connection: connection,
1545
+ toJSON: () => {
1546
+ return {
1547
+ connection: connection,
1548
+ };
1549
+ },
1550
+ };
1551
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1552
+ return jsonResults.result;
1553
+ }
1554
+
1555
+ protected getApiTypeFromStartMediaRenderingTracingEx(
1556
+ connection: RtcConnection
1557
+ ): string {
1558
+ return 'RtcEngineEx_startMediaRenderingTracingEx_c81e1a4';
1559
+ }
1560
+
1561
+ setParametersEx(connection: RtcConnection, parameters: string): number {
1562
+ const apiType = this.getApiTypeFromSetParametersEx(connection, parameters);
1563
+ const jsonParams = {
1564
+ connection: connection,
1565
+ parameters: parameters,
1566
+ toJSON: () => {
1567
+ return {
1568
+ connection: connection,
1569
+ parameters: parameters,
1570
+ };
1571
+ },
1572
+ };
1573
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1574
+ return jsonResults.result;
1575
+ }
1576
+
1577
+ protected getApiTypeFromSetParametersEx(
1578
+ connection: RtcConnection,
1579
+ parameters: string
1580
+ ): string {
1581
+ return 'RtcEngineEx_setParametersEx_8225ea3';
1582
+ }
1583
+
1584
+ getCallIdEx(connection: RtcConnection): string {
1585
+ const apiType = this.getApiTypeFromGetCallIdEx(connection);
1586
+ const jsonParams = {
1587
+ connection: connection,
1588
+ toJSON: () => {
1589
+ return {
1590
+ connection: connection,
1591
+ };
1592
+ },
1593
+ };
1594
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1595
+ const callId = jsonResults.callId;
1596
+ return callId;
1597
+ }
1598
+
1599
+ protected getApiTypeFromGetCallIdEx(connection: RtcConnection): string {
1600
+ return 'RtcEngineEx_getCallIdEx_b13f7c4';
1601
+ }
1602
+
1603
+ sendAudioMetadataEx(
1604
+ connection: RtcConnection,
1605
+ metadata: string,
1606
+ length: number
1607
+ ): number {
1608
+ const apiType = this.getApiTypeFromSendAudioMetadataEx(
1609
+ connection,
1610
+ metadata,
1611
+ length
1612
+ );
1613
+ const jsonParams = {
1614
+ connection: connection,
1615
+ metadata: metadata,
1616
+ length: length,
1617
+ toJSON: () => {
1618
+ return {
1619
+ connection: connection,
1620
+ metadata: metadata,
1621
+ length: length,
1622
+ };
1623
+ },
1624
+ };
1625
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1626
+ return jsonResults.result;
1627
+ }
1628
+
1629
+ protected getApiTypeFromSendAudioMetadataEx(
1630
+ connection: RtcConnection,
1631
+ metadata: string,
1632
+ length: number
1633
+ ): string {
1634
+ return 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4';
1635
+ }
1636
+
1637
+ takeSnapshotWithConfigEx(
1638
+ connection: RtcConnection,
1639
+ uid: number,
1640
+ config: SnapshotConfig
1641
+ ): number {
1642
+ const apiType = this.getApiTypeFromTakeSnapshotWithConfigEx(
1643
+ connection,
1644
+ uid,
1645
+ config
1646
+ );
1647
+ const jsonParams = {
1648
+ connection: connection,
1649
+ uid: uid,
1650
+ config: config,
1651
+ toJSON: () => {
1652
+ return {
1653
+ connection: connection,
1654
+ uid: uid,
1655
+ config: config,
1656
+ };
1657
+ },
1658
+ };
1659
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
1660
+ return jsonResults.result;
1661
+ }
1662
+
1663
+ protected getApiTypeFromTakeSnapshotWithConfigEx(
1664
+ connection: RtcConnection,
1665
+ uid: number,
1666
+ config: SnapshotConfig
1667
+ ): string {
1668
+ return 'RtcEngineEx_takeSnapshotEx_b856417';
1669
+ }
1670
+ }
1671
+
1672
+ import { callIrisApi } from '../internal/IrisApiEngine';