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