agora-electron-sdk 4.1.1-rc.1 → 4.2.0-dev.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +143 -143
  3. package/gulpfile.js +5 -4
  4. package/js/AgoraSdk.js +62 -60
  5. package/js/Private/AgoraBase.js +4575 -3269
  6. package/js/Private/AgoraMediaBase.js +968 -564
  7. package/js/Private/AgoraMediaPlayerTypes.js +422 -310
  8. package/js/Private/IAgoraLog.js +86 -74
  9. package/js/Private/IAgoraMediaEngine.js +32 -32
  10. package/js/Private/IAgoraMediaPlayer.js +16 -16
  11. package/js/Private/IAgoraMediaPlayerSource.js +3 -3
  12. package/js/Private/IAgoraMediaRecorder.js +12 -12
  13. package/js/Private/IAgoraMediaStreamingSource.js +84 -0
  14. package/js/Private/IAgoraMusicContentCenter.js +239 -81
  15. package/js/Private/IAgoraRhythmPlayer.js +70 -62
  16. package/js/Private/IAgoraRtcEngine.js +1807 -948
  17. package/js/Private/IAgoraRtcEngineEx.js +26 -18
  18. package/js/Private/IAgoraSpatialAudio.js +74 -30
  19. package/js/Private/IAudioDeviceManager.js +20 -20
  20. package/js/Private/extension/AgoraBaseExtension.js +2 -2
  21. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
  22. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
  23. package/js/Private/extension/IAgoraLogExtension.js +2 -2
  24. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
  25. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
  26. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
  27. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
  28. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
  29. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
  30. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
  31. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
  32. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
  33. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
  34. package/js/Private/impl/AgoraBaseImpl.js +23 -23
  35. package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
  36. package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
  37. package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
  38. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
  39. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
  40. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
  41. package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
  42. package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
  43. package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
  44. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
  45. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
  46. package/js/Private/internal/IrisApiEngine.js +391 -382
  47. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
  48. package/js/Private/internal/MediaEngineInternal.js +119 -123
  49. package/js/Private/internal/MediaPlayerInternal.js +215 -213
  50. package/js/Private/internal/MediaRecorderInternal.js +82 -81
  51. package/js/Private/internal/MusicContentCenterInternal.js +128 -130
  52. package/js/Private/internal/RtcEngineExInternal.js +422 -363
  53. package/js/Private/internal/emitter/EventEmitter.js +111 -111
  54. package/js/Private/ti/AgoraBase-ti.js +40 -40
  55. package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
  56. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
  57. package/js/Private/ti/IAgoraLog-ti.js +5 -5
  58. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
  59. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
  60. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
  61. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
  62. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  63. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
  64. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
  65. package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
  66. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
  67. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
  68. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
  69. package/js/Renderer/AgoraView.js +128 -131
  70. package/js/Renderer/IRenderer.js +40 -48
  71. package/js/Renderer/IRendererManager.js +9 -0
  72. package/js/Renderer/RendererManager.js +479 -392
  73. package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
  74. package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
  75. package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
  76. package/js/Renderer/index.js +18 -0
  77. package/js/Types.js +17 -29
  78. package/js/Utils.js +168 -173
  79. package/package.json +61 -103
  80. package/scripts/bootstrap.js +1 -1
  81. package/scripts/build.js +1 -0
  82. package/scripts/buildJS.js +3 -3
  83. package/scripts/clean.js +2 -1
  84. package/scripts/downloadPrebuild.js +5 -5
  85. package/scripts/getConfig.js +3 -2
  86. package/scripts/synclib.js +8 -5
  87. package/scripts/util.js +3 -2
  88. package/scripts/zipBuild.js +2 -1
  89. package/ts/AgoraSdk.ts +9 -6
  90. package/ts/Private/AgoraBase.ts +278 -173
  91. package/ts/Private/AgoraMediaBase.ts +167 -100
  92. package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
  93. package/ts/Private/IAgoraMediaEngine.ts +43 -56
  94. package/ts/Private/IAgoraMediaPlayer.ts +90 -104
  95. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
  96. package/ts/Private/IAgoraMediaRecorder.ts +8 -35
  97. package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
  98. package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
  99. package/ts/Private/IAgoraRtcEngine.ts +807 -910
  100. package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
  101. package/ts/Private/IAgoraSpatialAudio.ts +40 -22
  102. package/ts/Private/IAudioDeviceManager.ts +35 -13
  103. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
  104. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
  105. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
  106. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
  107. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
  108. package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
  109. package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
  110. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
  111. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
  112. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
  113. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
  114. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
  115. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
  116. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
  117. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
  118. package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
  119. package/ts/Private/internal/IrisApiEngine.ts +41 -32
  120. package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
  121. package/ts/Private/internal/MediaEngineInternal.ts +9 -11
  122. package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
  123. package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
  124. package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
  125. package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
  126. package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
  127. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
  128. package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
  129. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
  130. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
  131. package/ts/Renderer/AgoraView.ts +12 -7
  132. package/ts/Renderer/IRenderer.ts +11 -16
  133. package/ts/Renderer/IRendererManager.ts +35 -0
  134. package/ts/Renderer/RendererManager.ts +146 -82
  135. package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
  136. package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
  137. package/ts/Renderer/index.ts +2 -0
  138. package/ts/Types.ts +43 -23
  139. package/ts/Utils.ts +7 -12
  140. package/types/AgoraSdk.d.ts +38 -36
  141. package/types/AgoraSdk.d.ts.map +1 -0
  142. package/types/Private/AgoraBase.d.ts +4455 -4358
  143. package/types/Private/AgoraBase.d.ts.map +1 -0
  144. package/types/Private/AgoraMediaBase.d.ts +1125 -1070
  145. package/types/Private/AgoraMediaBase.d.ts.map +1 -0
  146. package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
  147. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  148. package/types/Private/IAgoraLog.d.ts +81 -80
  149. package/types/Private/IAgoraLog.d.ts.map +1 -0
  150. package/types/Private/IAgoraMediaEngine.d.ts +184 -193
  151. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
  152. package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
  153. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  154. package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
  155. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  156. package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
  157. package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  158. package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
  159. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  160. package/types/Private/IAgoraMusicContentCenter.d.ts +336 -255
  161. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  162. package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
  163. package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  164. package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
  165. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
  166. package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
  167. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  168. package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
  169. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  170. package/types/Private/IAudioDeviceManager.d.ts +255 -233
  171. package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
  172. package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
  173. package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  174. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
  175. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  176. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
  177. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  178. package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
  179. package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  180. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
  181. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  182. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
  183. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  184. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
  185. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  186. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
  187. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  188. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
  189. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  190. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
  191. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  192. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
  193. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  194. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
  195. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  196. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
  197. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  198. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
  199. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  200. package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
  201. package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  202. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
  203. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  204. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
  205. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  206. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
  207. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  208. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
  209. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  210. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
  211. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  212. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
  213. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  214. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
  215. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  216. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  217. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  218. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
  219. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  220. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
  221. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  222. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
  223. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  224. package/types/Private/internal/IrisApiEngine.d.ts +148 -146
  225. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
  226. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
  227. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  228. package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
  229. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  230. package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
  231. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  232. package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
  233. package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  234. package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
  235. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  236. package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
  237. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  238. package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
  239. package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
  240. package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
  241. package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  242. package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
  243. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  244. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
  245. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  246. package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
  247. package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  248. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
  249. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  250. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
  251. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  252. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
  253. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  254. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
  255. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  256. package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
  257. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  258. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
  259. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  260. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
  261. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  262. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
  263. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  264. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
  265. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  266. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
  267. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  268. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
  269. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  270. package/types/Renderer/AgoraView.d.ts +70 -70
  271. package/types/Renderer/AgoraView.d.ts.map +1 -0
  272. package/types/Renderer/IRenderer.d.ts +22 -21
  273. package/types/Renderer/IRenderer.d.ts.map +1 -0
  274. package/types/Renderer/IRendererManager.d.ts +18 -0
  275. package/types/Renderer/IRendererManager.d.ts.map +1 -0
  276. package/types/Renderer/RendererManager.d.ts +154 -71
  277. package/types/Renderer/RendererManager.d.ts.map +1 -0
  278. package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
  279. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  280. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
  281. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  282. package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  283. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  284. package/types/Renderer/index.d.ts +3 -0
  285. package/types/Renderer/index.d.ts.map +1 -0
  286. package/types/Types.d.ts +280 -260
  287. package/types/Types.d.ts.map +1 -0
  288. package/types/Utils.d.ts +59 -58
  289. package/types/Utils.d.ts.map +1 -0
  290. package/js/AgoraSdk.d.ts +0 -36
  291. package/js/Private/AgoraBase.d.ts +0 -4358
  292. package/js/Private/AgoraMediaBase.d.ts +0 -1070
  293. package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
  294. package/js/Private/IAgoraLog.d.ts +0 -80
  295. package/js/Private/IAgoraMediaEngine.d.ts +0 -193
  296. package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
  297. package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
  298. package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
  299. package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
  300. package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
  301. package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
  302. package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
  303. package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
  304. package/js/Private/IAudioDeviceManager.d.ts +0 -233
  305. package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
  306. package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
  307. package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
  308. package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
  309. package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
  310. package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
  311. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
  312. package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
  313. package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
  314. package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
  315. package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
  316. package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
  317. package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
  318. package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
  319. package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
  320. package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
  321. package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
  322. package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
  323. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
  324. package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
  325. package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
  326. package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
  327. package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
  328. package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
  329. package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
  330. package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
  331. package/js/Private/internal/IrisApiEngine.d.ts +0 -146
  332. package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
  333. package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
  334. package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
  335. package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
  336. package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
  337. package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
  338. package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
  339. package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
  340. package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
  341. package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
  342. package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
  343. package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
  344. package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
  345. package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
  346. package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
  347. package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
  348. package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
  349. package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
  350. package/js/Renderer/AgoraView.d.ts +0 -70
  351. package/js/Renderer/GlRenderer/index.d.ts +0 -59
  352. package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
  353. package/js/Renderer/IRenderer.d.ts +0 -21
  354. package/js/Renderer/RendererManager.d.ts +0 -71
  355. package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
  356. package/js/Types.d.ts +0 -260
  357. package/js/Utils.d.ts +0 -58
  358. /package/ts/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +0 -0
@@ -1,907 +1,945 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IRtcEngineExImpl = void 0;
4
- const IrisApiEngine_1 = require("../internal/IrisApiEngine");
5
- const IAgoraRtcEngineImpl_1 = require("./IAgoraRtcEngineImpl");
6
- // @ts-ignore
7
- class IRtcEngineExImpl extends IAgoraRtcEngineImpl_1.IRtcEngineImpl {
8
- joinChannelEx(token, connection, options) {
9
- const apiType = this.getApiTypeFromJoinChannelEx(token, connection, options);
10
- const jsonParams = {
11
- token: token,
12
- connection: connection,
13
- options: options,
14
- toJSON: () => {
15
- return {
16
- token: token,
17
- connection: connection,
18
- options: options,
19
- };
20
- },
21
- };
22
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
23
- return jsonResults.result;
24
- }
25
- getApiTypeFromJoinChannelEx(token, connection, options) {
26
- return 'RtcEngineEx_joinChannelEx';
27
- }
28
- leaveChannelEx(connection, options) {
29
- const apiType = this.getApiTypeFromLeaveChannelEx(connection, options);
30
- const jsonParams = {
31
- connection: connection,
32
- options: options,
33
- toJSON: () => {
34
- return {
35
- connection: connection,
36
- options: options,
37
- };
38
- },
39
- };
40
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
41
- return jsonResults.result;
42
- }
43
- getApiTypeFromLeaveChannelEx(connection, options) {
44
- return 'RtcEngineEx_leaveChannelEx';
45
- }
46
- updateChannelMediaOptionsEx(options, connection) {
47
- const apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(options, connection);
48
- const jsonParams = {
49
- options: options,
50
- connection: connection,
51
- toJSON: () => {
52
- return {
53
- options: options,
54
- connection: connection,
55
- };
56
- },
57
- };
58
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
59
- return jsonResults.result;
60
- }
61
- getApiTypeFromUpdateChannelMediaOptionsEx(options, connection) {
62
- return 'RtcEngineEx_updateChannelMediaOptionsEx';
63
- }
64
- setVideoEncoderConfigurationEx(config, connection) {
65
- const apiType = this.getApiTypeFromSetVideoEncoderConfigurationEx(config, connection);
66
- const jsonParams = {
67
- config: config,
68
- connection: connection,
69
- toJSON: () => {
70
- return {
71
- config: config,
72
- connection: connection,
73
- };
74
- },
75
- };
76
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
77
- return jsonResults.result;
78
- }
79
- getApiTypeFromSetVideoEncoderConfigurationEx(config, connection) {
80
- return 'RtcEngineEx_setVideoEncoderConfigurationEx';
81
- }
82
- setupRemoteVideoEx(canvas, connection) {
83
- const apiType = this.getApiTypeFromSetupRemoteVideoEx(canvas, connection);
84
- const jsonParams = {
85
- canvas: canvas,
86
- connection: connection,
87
- toJSON: () => {
88
- return {
89
- canvas: canvas,
90
- connection: connection,
91
- };
92
- },
93
- };
94
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
95
- return jsonResults.result;
96
- }
97
- getApiTypeFromSetupRemoteVideoEx(canvas, connection) {
98
- return 'RtcEngineEx_setupRemoteVideoEx';
99
- }
100
- muteRemoteAudioStreamEx(uid, mute, connection) {
101
- const apiType = this.getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection);
102
- const jsonParams = {
103
- uid: uid,
104
- mute: mute,
105
- connection: connection,
106
- toJSON: () => {
107
- return {
108
- uid: uid,
109
- mute: mute,
110
- connection: connection,
111
- };
112
- },
113
- };
114
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
115
- return jsonResults.result;
116
- }
117
- getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection) {
118
- return 'RtcEngineEx_muteRemoteAudioStreamEx';
119
- }
120
- muteRemoteVideoStreamEx(uid, mute, connection) {
121
- const apiType = this.getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection);
122
- const jsonParams = {
123
- uid: uid,
124
- mute: mute,
125
- connection: connection,
126
- toJSON: () => {
127
- return {
128
- uid: uid,
129
- mute: mute,
130
- connection: connection,
131
- };
132
- },
133
- };
134
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
135
- return jsonResults.result;
136
- }
137
- getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection) {
138
- return 'RtcEngineEx_muteRemoteVideoStreamEx';
139
- }
140
- setRemoteVideoStreamTypeEx(uid, streamType, connection) {
141
- const apiType = this.getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection);
142
- const jsonParams = {
143
- uid: uid,
144
- streamType: streamType,
145
- connection: connection,
146
- toJSON: () => {
147
- return {
148
- uid: uid,
149
- streamType: streamType,
150
- connection: connection,
151
- };
152
- },
153
- };
154
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
155
- return jsonResults.result;
156
- }
157
- getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection) {
158
- return 'RtcEngineEx_setRemoteVideoStreamTypeEx';
159
- }
160
- muteLocalAudioStreamEx(mute, connection) {
161
- const apiType = this.getApiTypeFromMuteLocalAudioStreamEx(mute, connection);
162
- const jsonParams = {
163
- mute: mute,
164
- connection: connection,
165
- toJSON: () => {
166
- return {
167
- mute: mute,
168
- connection: connection,
169
- };
170
- },
171
- };
172
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
173
- return jsonResults.result;
174
- }
175
- getApiTypeFromMuteLocalAudioStreamEx(mute, connection) {
176
- return 'RtcEngineEx_muteLocalAudioStreamEx';
177
- }
178
- muteLocalVideoStreamEx(mute, connection) {
179
- const apiType = this.getApiTypeFromMuteLocalVideoStreamEx(mute, connection);
180
- const jsonParams = {
181
- mute: mute,
182
- connection: connection,
183
- toJSON: () => {
184
- return {
185
- mute: mute,
186
- connection: connection,
187
- };
188
- },
189
- };
190
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
191
- return jsonResults.result;
192
- }
193
- getApiTypeFromMuteLocalVideoStreamEx(mute, connection) {
194
- return 'RtcEngineEx_muteLocalVideoStreamEx';
195
- }
196
- muteAllRemoteAudioStreamsEx(mute, connection) {
197
- const apiType = this.getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection);
198
- const jsonParams = {
199
- mute: mute,
200
- connection: connection,
201
- toJSON: () => {
202
- return {
203
- mute: mute,
204
- connection: connection,
205
- };
206
- },
207
- };
208
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
209
- return jsonResults.result;
210
- }
211
- getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection) {
212
- return 'RtcEngineEx_muteAllRemoteAudioStreamsEx';
213
- }
214
- muteAllRemoteVideoStreamsEx(mute, connection) {
215
- const apiType = this.getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection);
216
- const jsonParams = {
217
- mute: mute,
218
- connection: connection,
219
- toJSON: () => {
220
- return {
221
- mute: mute,
222
- connection: connection,
223
- };
224
- },
225
- };
226
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
227
- return jsonResults.result;
228
- }
229
- getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection) {
230
- return 'RtcEngineEx_muteAllRemoteVideoStreamsEx';
231
- }
232
- setSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
233
- const apiType = this.getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection);
234
- const jsonParams = {
235
- uidList: uidList,
236
- uidNumber: uidNumber,
237
- connection: connection,
238
- toJSON: () => {
239
- return {
240
- uidList: uidList,
241
- uidNumber: uidNumber,
242
- connection: connection,
243
- };
244
- },
245
- };
246
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
247
- return jsonResults.result;
248
- }
249
- getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
250
- return 'RtcEngineEx_setSubscribeAudioBlocklistEx';
251
- }
252
- setSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
253
- const apiType = this.getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection);
254
- const jsonParams = {
255
- uidList: uidList,
256
- uidNumber: uidNumber,
257
- connection: connection,
258
- toJSON: () => {
259
- return {
260
- uidList: uidList,
261
- uidNumber: uidNumber,
262
- connection: connection,
263
- };
264
- },
265
- };
266
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
267
- return jsonResults.result;
268
- }
269
- getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
270
- return 'RtcEngineEx_setSubscribeAudioAllowlistEx';
271
- }
272
- setSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
273
- const apiType = this.getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection);
274
- const jsonParams = {
275
- uidList: uidList,
276
- uidNumber: uidNumber,
277
- connection: connection,
278
- toJSON: () => {
279
- return {
280
- uidList: uidList,
281
- uidNumber: uidNumber,
282
- connection: connection,
283
- };
284
- },
285
- };
286
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
287
- return jsonResults.result;
288
- }
289
- getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
290
- return 'RtcEngineEx_setSubscribeVideoBlocklistEx';
291
- }
292
- setSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
293
- const apiType = this.getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection);
294
- const jsonParams = {
295
- uidList: uidList,
296
- uidNumber: uidNumber,
297
- connection: connection,
298
- toJSON: () => {
299
- return {
300
- uidList: uidList,
301
- uidNumber: uidNumber,
302
- connection: connection,
303
- };
304
- },
305
- };
306
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
307
- return jsonResults.result;
308
- }
309
- getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
310
- return 'RtcEngineEx_setSubscribeVideoAllowlistEx';
311
- }
312
- setRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
313
- const apiType = this.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection);
314
- const jsonParams = {
315
- uid: uid,
316
- options: options,
317
- connection: connection,
318
- toJSON: () => {
319
- return {
320
- uid: uid,
321
- options: options,
322
- connection: connection,
323
- };
324
- },
325
- };
326
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
327
- return jsonResults.result;
328
- }
329
- getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
330
- return 'RtcEngineEx_setRemoteVideoSubscriptionOptionsEx';
331
- }
332
- setRemoteVoicePositionEx(uid, pan, gain, connection) {
333
- const apiType = this.getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection);
334
- const jsonParams = {
335
- uid: uid,
336
- pan: pan,
337
- gain: gain,
338
- connection: connection,
339
- toJSON: () => {
340
- return {
341
- uid: uid,
342
- pan: pan,
343
- gain: gain,
344
- connection: connection,
345
- };
346
- },
347
- };
348
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
349
- return jsonResults.result;
350
- }
351
- getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection) {
352
- return 'RtcEngineEx_setRemoteVoicePositionEx';
353
- }
354
- setRemoteUserSpatialAudioParamsEx(uid, params, connection) {
355
- const apiType = this.getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection);
356
- const jsonParams = {
357
- uid: uid,
358
- params: params,
359
- connection: connection,
360
- toJSON: () => {
361
- return {
362
- uid: uid,
363
- params: params,
364
- connection: connection,
365
- };
366
- },
367
- };
368
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
369
- return jsonResults.result;
370
- }
371
- getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection) {
372
- return 'RtcEngineEx_setRemoteUserSpatialAudioParamsEx';
373
- }
374
- setRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
375
- const apiType = this.getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection);
376
- const jsonParams = {
377
- uid: uid,
378
- renderMode: renderMode,
379
- mirrorMode: mirrorMode,
380
- connection: connection,
381
- toJSON: () => {
382
- return {
383
- uid: uid,
384
- renderMode: renderMode,
385
- mirrorMode: mirrorMode,
386
- connection: connection,
387
- };
388
- },
389
- };
390
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
391
- return jsonResults.result;
392
- }
393
- getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
394
- return 'RtcEngineEx_setRemoteRenderModeEx';
395
- }
396
- enableLoopbackRecordingEx(connection, enabled, deviceName) {
397
- const apiType = this.getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName);
398
- const jsonParams = {
399
- connection: connection,
400
- enabled: enabled,
401
- deviceName: deviceName,
402
- toJSON: () => {
403
- return {
404
- connection: connection,
405
- enabled: enabled,
406
- deviceName: deviceName,
407
- };
408
- },
409
- };
410
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
411
- return jsonResults.result;
412
- }
413
- getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName) {
414
- return 'RtcEngineEx_enableLoopbackRecordingEx';
415
- }
416
- adjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
417
- const apiType = this.getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection);
418
- const jsonParams = {
419
- uid: uid,
420
- volume: volume,
421
- connection: connection,
422
- toJSON: () => {
423
- return {
424
- uid: uid,
425
- volume: volume,
426
- connection: connection,
427
- };
428
- },
429
- };
430
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
431
- return jsonResults.result;
432
- }
433
- getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
434
- return 'RtcEngineEx_adjustUserPlaybackSignalVolumeEx';
435
- }
436
- getConnectionStateEx(connection) {
437
- const apiType = this.getApiTypeFromGetConnectionStateEx(connection);
438
- const jsonParams = {
439
- connection: connection,
440
- toJSON: () => {
441
- return {
442
- connection: connection,
443
- };
444
- },
445
- };
446
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
447
- return jsonResults.result;
448
- }
449
- getApiTypeFromGetConnectionStateEx(connection) {
450
- return 'RtcEngineEx_getConnectionStateEx';
451
- }
452
- enableEncryptionEx(connection, enabled, config) {
453
- const apiType = this.getApiTypeFromEnableEncryptionEx(connection, enabled, config);
454
- const jsonParams = {
455
- connection: connection,
456
- enabled: enabled,
457
- config: config,
458
- toJSON: () => {
459
- return {
460
- connection: connection,
461
- enabled: enabled,
462
- config: config,
463
- };
464
- },
465
- };
466
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
467
- return jsonResults.result;
468
- }
469
- getApiTypeFromEnableEncryptionEx(connection, enabled, config) {
470
- return 'RtcEngineEx_enableEncryptionEx';
471
- }
472
- createDataStreamEx(config, connection) {
473
- const apiType = this.getApiTypeFromCreateDataStreamEx(config, connection);
474
- const jsonParams = {
475
- config: config,
476
- connection: connection,
477
- toJSON: () => {
478
- return {
479
- config: config,
480
- connection: connection,
481
- };
482
- },
483
- };
484
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
485
- const streamId = jsonResults.streamId;
486
- return streamId;
487
- }
488
- getApiTypeFromCreateDataStreamEx(config, connection) {
489
- return 'RtcEngineEx_createDataStreamEx';
490
- }
491
- sendStreamMessageEx(streamId, data, length, connection) {
492
- const apiType = this.getApiTypeFromSendStreamMessageEx(streamId, data, length, connection);
493
- const jsonParams = {
494
- streamId: streamId,
495
- data: data,
496
- length: length,
497
- connection: connection,
498
- toJSON: () => {
499
- return {
500
- streamId: streamId,
501
- length: length,
502
- connection: connection,
503
- };
504
- },
505
- };
506
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
507
- return jsonResults.result;
508
- }
509
- getApiTypeFromSendStreamMessageEx(streamId, data, length, connection) {
510
- return 'RtcEngineEx_sendStreamMessageEx';
511
- }
512
- addVideoWatermarkEx(watermarkUrl, options, connection) {
513
- const apiType = this.getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection);
514
- const jsonParams = {
515
- watermarkUrl: watermarkUrl,
516
- options: options,
517
- connection: connection,
518
- toJSON: () => {
519
- return {
520
- watermarkUrl: watermarkUrl,
521
- options: options,
522
- connection: connection,
523
- };
524
- },
525
- };
526
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
527
- return jsonResults.result;
528
- }
529
- getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection) {
530
- return 'RtcEngineEx_addVideoWatermarkEx';
531
- }
532
- clearVideoWatermarkEx(connection) {
533
- const apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
534
- const jsonParams = {
535
- connection: connection,
536
- toJSON: () => {
537
- return {
538
- connection: connection,
539
- };
540
- },
541
- };
542
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
543
- return jsonResults.result;
544
- }
545
- getApiTypeFromClearVideoWatermarkEx(connection) {
546
- return 'RtcEngineEx_clearVideoWatermarkEx';
547
- }
548
- sendCustomReportMessageEx(id, category, event, label, value, connection) {
549
- const apiType = this.getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection);
550
- const jsonParams = {
551
- id: id,
552
- category: category,
553
- event: event,
554
- label: label,
555
- value: value,
556
- connection: connection,
557
- toJSON: () => {
558
- return {
559
- id: id,
560
- category: category,
561
- event: event,
562
- label: label,
563
- value: value,
564
- connection: connection,
565
- };
566
- },
567
- };
568
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
569
- return jsonResults.result;
570
- }
571
- getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection) {
572
- return 'RtcEngineEx_sendCustomReportMessageEx';
573
- }
574
- enableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
575
- const apiType = this.getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection);
576
- const jsonParams = {
577
- interval: interval,
578
- smooth: smooth,
579
- reportVad: reportVad,
580
- connection: connection,
581
- toJSON: () => {
582
- return {
583
- interval: interval,
584
- smooth: smooth,
585
- reportVad: reportVad,
586
- connection: connection,
587
- };
588
- },
589
- };
590
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
591
- return jsonResults.result;
592
- }
593
- getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
594
- return 'RtcEngineEx_enableAudioVolumeIndicationEx';
595
- }
596
- startRtmpStreamWithoutTranscodingEx(url, connection) {
597
- const apiType = this.getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection);
598
- const jsonParams = {
599
- url: url,
600
- connection: connection,
601
- toJSON: () => {
602
- return {
603
- url: url,
604
- connection: connection,
605
- };
606
- },
607
- };
608
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
609
- return jsonResults.result;
610
- }
611
- getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection) {
612
- return 'RtcEngineEx_startRtmpStreamWithoutTranscodingEx';
613
- }
614
- startRtmpStreamWithTranscodingEx(url, transcoding, connection) {
615
- const apiType = this.getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection);
616
- const jsonParams = {
617
- url: url,
618
- transcoding: transcoding,
619
- connection: connection,
620
- toJSON: () => {
621
- return {
622
- url: url,
623
- transcoding: transcoding,
624
- connection: connection,
625
- };
626
- },
627
- };
628
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
629
- return jsonResults.result;
630
- }
631
- getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection) {
632
- return 'RtcEngineEx_startRtmpStreamWithTranscodingEx';
633
- }
634
- updateRtmpTranscodingEx(transcoding, connection) {
635
- const apiType = this.getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection);
636
- const jsonParams = {
637
- transcoding: transcoding,
638
- connection: connection,
639
- toJSON: () => {
640
- return {
641
- transcoding: transcoding,
642
- connection: connection,
643
- };
644
- },
645
- };
646
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
647
- return jsonResults.result;
648
- }
649
- getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection) {
650
- return 'RtcEngineEx_updateRtmpTranscodingEx';
651
- }
652
- stopRtmpStreamEx(url, connection) {
653
- const apiType = this.getApiTypeFromStopRtmpStreamEx(url, connection);
654
- const jsonParams = {
655
- url: url,
656
- connection: connection,
657
- toJSON: () => {
658
- return {
659
- url: url,
660
- connection: connection,
661
- };
662
- },
663
- };
664
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
665
- return jsonResults.result;
666
- }
667
- getApiTypeFromStopRtmpStreamEx(url, connection) {
668
- return 'RtcEngineEx_stopRtmpStreamEx';
669
- }
670
- startChannelMediaRelayEx(configuration, connection) {
671
- const apiType = this.getApiTypeFromStartChannelMediaRelayEx(configuration, connection);
672
- const jsonParams = {
673
- configuration: configuration,
674
- connection: connection,
675
- toJSON: () => {
676
- return {
677
- configuration: configuration,
678
- connection: connection,
679
- };
680
- },
681
- };
682
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
683
- return jsonResults.result;
684
- }
685
- getApiTypeFromStartChannelMediaRelayEx(configuration, connection) {
686
- return 'RtcEngineEx_startChannelMediaRelayEx';
687
- }
688
- updateChannelMediaRelayEx(configuration, connection) {
689
- const apiType = this.getApiTypeFromUpdateChannelMediaRelayEx(configuration, connection);
690
- const jsonParams = {
691
- configuration: configuration,
692
- connection: connection,
693
- toJSON: () => {
694
- return {
695
- configuration: configuration,
696
- connection: connection,
697
- };
698
- },
699
- };
700
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
701
- return jsonResults.result;
702
- }
703
- getApiTypeFromUpdateChannelMediaRelayEx(configuration, connection) {
704
- return 'RtcEngineEx_updateChannelMediaRelayEx';
705
- }
706
- stopChannelMediaRelayEx(connection) {
707
- const apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
708
- const jsonParams = {
709
- connection: connection,
710
- toJSON: () => {
711
- return {
712
- connection: connection,
713
- };
714
- },
715
- };
716
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
717
- return jsonResults.result;
718
- }
719
- getApiTypeFromStopChannelMediaRelayEx(connection) {
720
- return 'RtcEngineEx_stopChannelMediaRelayEx';
721
- }
722
- pauseAllChannelMediaRelayEx(connection) {
723
- const apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
724
- const jsonParams = {
725
- connection: connection,
726
- toJSON: () => {
727
- return {
728
- connection: connection,
729
- };
730
- },
731
- };
732
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
733
- return jsonResults.result;
734
- }
735
- getApiTypeFromPauseAllChannelMediaRelayEx(connection) {
736
- return 'RtcEngineEx_pauseAllChannelMediaRelayEx';
737
- }
738
- resumeAllChannelMediaRelayEx(connection) {
739
- const apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
740
- const jsonParams = {
741
- connection: connection,
742
- toJSON: () => {
743
- return {
744
- connection: connection,
745
- };
746
- },
747
- };
748
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
749
- return jsonResults.result;
750
- }
751
- getApiTypeFromResumeAllChannelMediaRelayEx(connection) {
752
- return 'RtcEngineEx_resumeAllChannelMediaRelayEx';
753
- }
754
- getUserInfoByUserAccountEx(userAccount, connection) {
755
- const apiType = this.getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection);
756
- const jsonParams = {
757
- userAccount: userAccount,
758
- connection: connection,
759
- toJSON: () => {
760
- return {
761
- userAccount: userAccount,
762
- connection: connection,
763
- };
764
- },
765
- };
766
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
767
- const userInfo = jsonResults.userInfo;
768
- return userInfo;
769
- }
770
- getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection) {
771
- return 'RtcEngineEx_getUserInfoByUserAccountEx';
772
- }
773
- getUserInfoByUidEx(uid, connection) {
774
- const apiType = this.getApiTypeFromGetUserInfoByUidEx(uid, connection);
775
- const jsonParams = {
776
- uid: uid,
777
- connection: connection,
778
- toJSON: () => {
779
- return {
780
- uid: uid,
781
- connection: connection,
782
- };
783
- },
784
- };
785
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
786
- const userInfo = jsonResults.userInfo;
787
- return userInfo;
788
- }
789
- getApiTypeFromGetUserInfoByUidEx(uid, connection) {
790
- return 'RtcEngineEx_getUserInfoByUidEx';
791
- }
792
- setVideoProfileEx(width, height, frameRate, bitrate) {
793
- const apiType = this.getApiTypeFromSetVideoProfileEx(width, height, frameRate, bitrate);
794
- const jsonParams = {
795
- width: width,
796
- height: height,
797
- frameRate: frameRate,
798
- bitrate: bitrate,
799
- toJSON: () => {
800
- return {
801
- width: width,
802
- height: height,
803
- frameRate: frameRate,
804
- bitrate: bitrate,
805
- };
806
- },
807
- };
808
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
809
- return jsonResults.result;
810
- }
811
- getApiTypeFromSetVideoProfileEx(width, height, frameRate, bitrate) {
812
- return 'RtcEngineEx_setVideoProfileEx';
813
- }
814
- enableDualStreamModeEx(enabled, streamConfig, connection) {
815
- const apiType = this.getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection);
816
- const jsonParams = {
817
- enabled: enabled,
818
- streamConfig: streamConfig,
819
- connection: connection,
820
- toJSON: () => {
821
- return {
822
- enabled: enabled,
823
- streamConfig: streamConfig,
824
- connection: connection,
825
- };
826
- },
827
- };
828
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
829
- return jsonResults.result;
830
- }
831
- getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection) {
832
- return 'RtcEngineEx_enableDualStreamModeEx';
833
- }
834
- setDualStreamModeEx(mode, streamConfig, connection) {
835
- const apiType = this.getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection);
836
- const jsonParams = {
837
- mode: mode,
838
- streamConfig: streamConfig,
839
- connection: connection,
840
- toJSON: () => {
841
- return {
842
- mode: mode,
843
- streamConfig: streamConfig,
844
- connection: connection,
845
- };
846
- },
847
- };
848
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
849
- return jsonResults.result;
850
- }
851
- getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection) {
852
- return 'RtcEngineEx_setDualStreamModeEx';
853
- }
854
- enableWirelessAccelerate(enabled) {
855
- const apiType = this.getApiTypeFromEnableWirelessAccelerate(enabled);
856
- const jsonParams = {
857
- enabled: enabled,
858
- toJSON: () => {
859
- return {
860
- enabled: enabled,
861
- };
862
- },
863
- };
864
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
865
- return jsonResults.result;
866
- }
867
- getApiTypeFromEnableWirelessAccelerate(enabled) {
868
- return 'RtcEngineEx_enableWirelessAccelerate';
869
- }
870
- takeSnapshotEx(connection, uid, filePath) {
871
- const apiType = this.getApiTypeFromTakeSnapshotEx(connection, uid, filePath);
872
- const jsonParams = {
873
- connection: connection,
874
- uid: uid,
875
- filePath: filePath,
876
- toJSON: () => {
877
- return {
878
- connection: connection,
879
- uid: uid,
880
- filePath: filePath,
881
- };
882
- },
883
- };
884
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
885
- return jsonResults.result;
886
- }
887
- getApiTypeFromTakeSnapshotEx(connection, uid, filePath) {
888
- return 'RtcEngineEx_takeSnapshotEx';
889
- }
890
- startMediaRenderingTracingEx(connection) {
891
- const apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
892
- const jsonParams = {
893
- connection: connection,
894
- toJSON: () => {
895
- return {
896
- connection: connection,
897
- };
898
- },
899
- };
900
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
901
- return jsonResults.result;
902
- }
903
- getApiTypeFromStartMediaRenderingTracingEx(connection) {
904
- return 'RtcEngineEx_startMediaRenderingTracingEx';
905
- }
906
- }
907
- exports.IRtcEngineExImpl = IRtcEngineExImpl;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IRtcEngineExImpl = void 0;
4
+ const IAgoraRtcEngineImpl_1 = require("./IAgoraRtcEngineImpl");
5
+ // @ts-ignore
6
+ class IRtcEngineExImpl extends IAgoraRtcEngineImpl_1.IRtcEngineImpl {
7
+ joinChannelEx(token, connection, options) {
8
+ const apiType = this.getApiTypeFromJoinChannelEx(token, connection, options);
9
+ const jsonParams = {
10
+ token: token,
11
+ connection: connection,
12
+ options: options,
13
+ toJSON: () => {
14
+ return {
15
+ token: token,
16
+ connection: connection,
17
+ options: options,
18
+ };
19
+ },
20
+ };
21
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
22
+ return jsonResults.result;
23
+ }
24
+ getApiTypeFromJoinChannelEx(token, connection, options) {
25
+ return 'RtcEngineEx_joinChannelEx';
26
+ }
27
+ leaveChannelEx(connection, options) {
28
+ const apiType = this.getApiTypeFromLeaveChannelEx(connection, options);
29
+ const jsonParams = {
30
+ connection: connection,
31
+ options: options,
32
+ toJSON: () => {
33
+ return {
34
+ connection: connection,
35
+ options: options,
36
+ };
37
+ },
38
+ };
39
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
40
+ return jsonResults.result;
41
+ }
42
+ getApiTypeFromLeaveChannelEx(connection, options) {
43
+ return 'RtcEngineEx_leaveChannelEx';
44
+ }
45
+ updateChannelMediaOptionsEx(options, connection) {
46
+ const apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(options, connection);
47
+ const jsonParams = {
48
+ options: options,
49
+ connection: connection,
50
+ toJSON: () => {
51
+ return {
52
+ options: options,
53
+ connection: connection,
54
+ };
55
+ },
56
+ };
57
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
58
+ return jsonResults.result;
59
+ }
60
+ getApiTypeFromUpdateChannelMediaOptionsEx(options, connection) {
61
+ return 'RtcEngineEx_updateChannelMediaOptionsEx';
62
+ }
63
+ setVideoEncoderConfigurationEx(config, connection) {
64
+ const apiType = this.getApiTypeFromSetVideoEncoderConfigurationEx(config, connection);
65
+ const jsonParams = {
66
+ config: config,
67
+ connection: connection,
68
+ toJSON: () => {
69
+ return {
70
+ config: config,
71
+ connection: connection,
72
+ };
73
+ },
74
+ };
75
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
76
+ return jsonResults.result;
77
+ }
78
+ getApiTypeFromSetVideoEncoderConfigurationEx(config, connection) {
79
+ return 'RtcEngineEx_setVideoEncoderConfigurationEx';
80
+ }
81
+ setupRemoteVideoEx(canvas, connection) {
82
+ const apiType = this.getApiTypeFromSetupRemoteVideoEx(canvas, connection);
83
+ const jsonParams = {
84
+ canvas: canvas,
85
+ connection: connection,
86
+ toJSON: () => {
87
+ return {
88
+ canvas: canvas,
89
+ connection: connection,
90
+ };
91
+ },
92
+ };
93
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
94
+ return jsonResults.result;
95
+ }
96
+ getApiTypeFromSetupRemoteVideoEx(canvas, connection) {
97
+ return 'RtcEngineEx_setupRemoteVideoEx';
98
+ }
99
+ muteRemoteAudioStreamEx(uid, mute, connection) {
100
+ const apiType = this.getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection);
101
+ const jsonParams = {
102
+ uid: uid,
103
+ mute: mute,
104
+ connection: connection,
105
+ toJSON: () => {
106
+ return {
107
+ uid: uid,
108
+ mute: mute,
109
+ connection: connection,
110
+ };
111
+ },
112
+ };
113
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
114
+ return jsonResults.result;
115
+ }
116
+ getApiTypeFromMuteRemoteAudioStreamEx(uid, mute, connection) {
117
+ return 'RtcEngineEx_muteRemoteAudioStreamEx';
118
+ }
119
+ muteRemoteVideoStreamEx(uid, mute, connection) {
120
+ const apiType = this.getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection);
121
+ const jsonParams = {
122
+ uid: uid,
123
+ mute: mute,
124
+ connection: connection,
125
+ toJSON: () => {
126
+ return {
127
+ uid: uid,
128
+ mute: mute,
129
+ connection: connection,
130
+ };
131
+ },
132
+ };
133
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
134
+ return jsonResults.result;
135
+ }
136
+ getApiTypeFromMuteRemoteVideoStreamEx(uid, mute, connection) {
137
+ return 'RtcEngineEx_muteRemoteVideoStreamEx';
138
+ }
139
+ setRemoteVideoStreamTypeEx(uid, streamType, connection) {
140
+ const apiType = this.getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection);
141
+ const jsonParams = {
142
+ uid: uid,
143
+ streamType: streamType,
144
+ connection: connection,
145
+ toJSON: () => {
146
+ return {
147
+ uid: uid,
148
+ streamType: streamType,
149
+ connection: connection,
150
+ };
151
+ },
152
+ };
153
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
154
+ return jsonResults.result;
155
+ }
156
+ getApiTypeFromSetRemoteVideoStreamTypeEx(uid, streamType, connection) {
157
+ return 'RtcEngineEx_setRemoteVideoStreamTypeEx';
158
+ }
159
+ muteLocalAudioStreamEx(mute, connection) {
160
+ const apiType = this.getApiTypeFromMuteLocalAudioStreamEx(mute, connection);
161
+ const jsonParams = {
162
+ mute: mute,
163
+ connection: connection,
164
+ toJSON: () => {
165
+ return {
166
+ mute: mute,
167
+ connection: connection,
168
+ };
169
+ },
170
+ };
171
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
172
+ return jsonResults.result;
173
+ }
174
+ getApiTypeFromMuteLocalAudioStreamEx(mute, connection) {
175
+ return 'RtcEngineEx_muteLocalAudioStreamEx';
176
+ }
177
+ muteLocalVideoStreamEx(mute, connection) {
178
+ const apiType = this.getApiTypeFromMuteLocalVideoStreamEx(mute, connection);
179
+ const jsonParams = {
180
+ mute: mute,
181
+ connection: connection,
182
+ toJSON: () => {
183
+ return {
184
+ mute: mute,
185
+ connection: connection,
186
+ };
187
+ },
188
+ };
189
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
190
+ return jsonResults.result;
191
+ }
192
+ getApiTypeFromMuteLocalVideoStreamEx(mute, connection) {
193
+ return 'RtcEngineEx_muteLocalVideoStreamEx';
194
+ }
195
+ muteAllRemoteAudioStreamsEx(mute, connection) {
196
+ const apiType = this.getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection);
197
+ const jsonParams = {
198
+ mute: mute,
199
+ connection: connection,
200
+ toJSON: () => {
201
+ return {
202
+ mute: mute,
203
+ connection: connection,
204
+ };
205
+ },
206
+ };
207
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
208
+ return jsonResults.result;
209
+ }
210
+ getApiTypeFromMuteAllRemoteAudioStreamsEx(mute, connection) {
211
+ return 'RtcEngineEx_muteAllRemoteAudioStreamsEx';
212
+ }
213
+ muteAllRemoteVideoStreamsEx(mute, connection) {
214
+ const apiType = this.getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection);
215
+ const jsonParams = {
216
+ mute: mute,
217
+ connection: connection,
218
+ toJSON: () => {
219
+ return {
220
+ mute: mute,
221
+ connection: connection,
222
+ };
223
+ },
224
+ };
225
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
226
+ return jsonResults.result;
227
+ }
228
+ getApiTypeFromMuteAllRemoteVideoStreamsEx(mute, connection) {
229
+ return 'RtcEngineEx_muteAllRemoteVideoStreamsEx';
230
+ }
231
+ setSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
232
+ const apiType = this.getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection);
233
+ const jsonParams = {
234
+ uidList: uidList,
235
+ uidNumber: uidNumber,
236
+ connection: connection,
237
+ toJSON: () => {
238
+ return {
239
+ uidList: uidList,
240
+ uidNumber: uidNumber,
241
+ connection: connection,
242
+ };
243
+ },
244
+ };
245
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
246
+ return jsonResults.result;
247
+ }
248
+ getApiTypeFromSetSubscribeAudioBlocklistEx(uidList, uidNumber, connection) {
249
+ return 'RtcEngineEx_setSubscribeAudioBlocklistEx';
250
+ }
251
+ setSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
252
+ const apiType = this.getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection);
253
+ const jsonParams = {
254
+ uidList: uidList,
255
+ uidNumber: uidNumber,
256
+ connection: connection,
257
+ toJSON: () => {
258
+ return {
259
+ uidList: uidList,
260
+ uidNumber: uidNumber,
261
+ connection: connection,
262
+ };
263
+ },
264
+ };
265
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
266
+ return jsonResults.result;
267
+ }
268
+ getApiTypeFromSetSubscribeAudioAllowlistEx(uidList, uidNumber, connection) {
269
+ return 'RtcEngineEx_setSubscribeAudioAllowlistEx';
270
+ }
271
+ setSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
272
+ const apiType = this.getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection);
273
+ const jsonParams = {
274
+ uidList: uidList,
275
+ uidNumber: uidNumber,
276
+ connection: connection,
277
+ toJSON: () => {
278
+ return {
279
+ uidList: uidList,
280
+ uidNumber: uidNumber,
281
+ connection: connection,
282
+ };
283
+ },
284
+ };
285
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
286
+ return jsonResults.result;
287
+ }
288
+ getApiTypeFromSetSubscribeVideoBlocklistEx(uidList, uidNumber, connection) {
289
+ return 'RtcEngineEx_setSubscribeVideoBlocklistEx';
290
+ }
291
+ setSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
292
+ const apiType = this.getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection);
293
+ const jsonParams = {
294
+ uidList: uidList,
295
+ uidNumber: uidNumber,
296
+ connection: connection,
297
+ toJSON: () => {
298
+ return {
299
+ uidList: uidList,
300
+ uidNumber: uidNumber,
301
+ connection: connection,
302
+ };
303
+ },
304
+ };
305
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
306
+ return jsonResults.result;
307
+ }
308
+ getApiTypeFromSetSubscribeVideoAllowlistEx(uidList, uidNumber, connection) {
309
+ return 'RtcEngineEx_setSubscribeVideoAllowlistEx';
310
+ }
311
+ setRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
312
+ const apiType = this.getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection);
313
+ const jsonParams = {
314
+ uid: uid,
315
+ options: options,
316
+ connection: connection,
317
+ toJSON: () => {
318
+ return {
319
+ uid: uid,
320
+ options: options,
321
+ connection: connection,
322
+ };
323
+ },
324
+ };
325
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
326
+ return jsonResults.result;
327
+ }
328
+ getApiTypeFromSetRemoteVideoSubscriptionOptionsEx(uid, options, connection) {
329
+ return 'RtcEngineEx_setRemoteVideoSubscriptionOptionsEx';
330
+ }
331
+ setRemoteVoicePositionEx(uid, pan, gain, connection) {
332
+ const apiType = this.getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection);
333
+ const jsonParams = {
334
+ uid: uid,
335
+ pan: pan,
336
+ gain: gain,
337
+ connection: connection,
338
+ toJSON: () => {
339
+ return {
340
+ uid: uid,
341
+ pan: pan,
342
+ gain: gain,
343
+ connection: connection,
344
+ };
345
+ },
346
+ };
347
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
348
+ return jsonResults.result;
349
+ }
350
+ getApiTypeFromSetRemoteVoicePositionEx(uid, pan, gain, connection) {
351
+ return 'RtcEngineEx_setRemoteVoicePositionEx';
352
+ }
353
+ setRemoteUserSpatialAudioParamsEx(uid, params, connection) {
354
+ const apiType = this.getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection);
355
+ const jsonParams = {
356
+ uid: uid,
357
+ params: params,
358
+ connection: connection,
359
+ toJSON: () => {
360
+ return {
361
+ uid: uid,
362
+ params: params,
363
+ connection: connection,
364
+ };
365
+ },
366
+ };
367
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
368
+ return jsonResults.result;
369
+ }
370
+ getApiTypeFromSetRemoteUserSpatialAudioParamsEx(uid, params, connection) {
371
+ return 'RtcEngineEx_setRemoteUserSpatialAudioParamsEx';
372
+ }
373
+ setRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
374
+ const apiType = this.getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection);
375
+ const jsonParams = {
376
+ uid: uid,
377
+ renderMode: renderMode,
378
+ mirrorMode: mirrorMode,
379
+ connection: connection,
380
+ toJSON: () => {
381
+ return {
382
+ uid: uid,
383
+ renderMode: renderMode,
384
+ mirrorMode: mirrorMode,
385
+ connection: connection,
386
+ };
387
+ },
388
+ };
389
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
390
+ return jsonResults.result;
391
+ }
392
+ getApiTypeFromSetRemoteRenderModeEx(uid, renderMode, mirrorMode, connection) {
393
+ return 'RtcEngineEx_setRemoteRenderModeEx';
394
+ }
395
+ enableLoopbackRecordingEx(connection, enabled, deviceName) {
396
+ const apiType = this.getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName);
397
+ const jsonParams = {
398
+ connection: connection,
399
+ enabled: enabled,
400
+ deviceName: deviceName,
401
+ toJSON: () => {
402
+ return {
403
+ connection: connection,
404
+ enabled: enabled,
405
+ deviceName: deviceName,
406
+ };
407
+ },
408
+ };
409
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
410
+ return jsonResults.result;
411
+ }
412
+ getApiTypeFromEnableLoopbackRecordingEx(connection, enabled, deviceName) {
413
+ return 'RtcEngineEx_enableLoopbackRecordingEx';
414
+ }
415
+ adjustRecordingSignalVolumeEx(volume, connection) {
416
+ const apiType = this.getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection);
417
+ const jsonParams = {
418
+ volume: volume,
419
+ connection: connection,
420
+ toJSON: () => {
421
+ return {
422
+ volume: volume,
423
+ connection: connection,
424
+ };
425
+ },
426
+ };
427
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
428
+ return jsonResults.result;
429
+ }
430
+ getApiTypeFromAdjustRecordingSignalVolumeEx(volume, connection) {
431
+ return 'RtcEngineEx_adjustRecordingSignalVolumeEx';
432
+ }
433
+ muteRecordingSignalEx(mute, connection) {
434
+ const apiType = this.getApiTypeFromMuteRecordingSignalEx(mute, connection);
435
+ const jsonParams = {
436
+ mute: mute,
437
+ connection: connection,
438
+ toJSON: () => {
439
+ return {
440
+ mute: mute,
441
+ connection: connection,
442
+ };
443
+ },
444
+ };
445
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
446
+ return jsonResults.result;
447
+ }
448
+ getApiTypeFromMuteRecordingSignalEx(mute, connection) {
449
+ return 'RtcEngineEx_muteRecordingSignalEx';
450
+ }
451
+ adjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
452
+ const apiType = this.getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection);
453
+ const jsonParams = {
454
+ uid: uid,
455
+ volume: volume,
456
+ connection: connection,
457
+ toJSON: () => {
458
+ return {
459
+ uid: uid,
460
+ volume: volume,
461
+ connection: connection,
462
+ };
463
+ },
464
+ };
465
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
466
+ return jsonResults.result;
467
+ }
468
+ getApiTypeFromAdjustUserPlaybackSignalVolumeEx(uid, volume, connection) {
469
+ return 'RtcEngineEx_adjustUserPlaybackSignalVolumeEx';
470
+ }
471
+ getConnectionStateEx(connection) {
472
+ const apiType = this.getApiTypeFromGetConnectionStateEx(connection);
473
+ const jsonParams = {
474
+ connection: connection,
475
+ toJSON: () => {
476
+ return {
477
+ connection: connection,
478
+ };
479
+ },
480
+ };
481
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
482
+ return jsonResults.result;
483
+ }
484
+ getApiTypeFromGetConnectionStateEx(connection) {
485
+ return 'RtcEngineEx_getConnectionStateEx';
486
+ }
487
+ enableEncryptionEx(connection, enabled, config) {
488
+ const apiType = this.getApiTypeFromEnableEncryptionEx(connection, enabled, config);
489
+ const jsonParams = {
490
+ connection: connection,
491
+ enabled: enabled,
492
+ config: config,
493
+ toJSON: () => {
494
+ return {
495
+ connection: connection,
496
+ enabled: enabled,
497
+ config: config,
498
+ };
499
+ },
500
+ };
501
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
502
+ return jsonResults.result;
503
+ }
504
+ getApiTypeFromEnableEncryptionEx(connection, enabled, config) {
505
+ return 'RtcEngineEx_enableEncryptionEx';
506
+ }
507
+ createDataStreamEx(config, connection) {
508
+ const apiType = this.getApiTypeFromCreateDataStreamEx(config, connection);
509
+ const jsonParams = {
510
+ config: config,
511
+ connection: connection,
512
+ toJSON: () => {
513
+ return {
514
+ config: config,
515
+ connection: connection,
516
+ };
517
+ },
518
+ };
519
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
520
+ const streamId = jsonResults.streamId;
521
+ return streamId;
522
+ }
523
+ getApiTypeFromCreateDataStreamEx(config, connection) {
524
+ return 'RtcEngineEx_createDataStreamEx';
525
+ }
526
+ sendStreamMessageEx(streamId, data, length, connection) {
527
+ const apiType = this.getApiTypeFromSendStreamMessageEx(streamId, data, length, connection);
528
+ const jsonParams = {
529
+ streamId: streamId,
530
+ data: data,
531
+ length: length,
532
+ connection: connection,
533
+ toJSON: () => {
534
+ return {
535
+ streamId: streamId,
536
+ length: length,
537
+ connection: connection,
538
+ };
539
+ },
540
+ };
541
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
542
+ return jsonResults.result;
543
+ }
544
+ getApiTypeFromSendStreamMessageEx(streamId, data, length, connection) {
545
+ return 'RtcEngineEx_sendStreamMessageEx';
546
+ }
547
+ addVideoWatermarkEx(watermarkUrl, options, connection) {
548
+ const apiType = this.getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection);
549
+ const jsonParams = {
550
+ watermarkUrl: watermarkUrl,
551
+ options: options,
552
+ connection: connection,
553
+ toJSON: () => {
554
+ return {
555
+ watermarkUrl: watermarkUrl,
556
+ options: options,
557
+ connection: connection,
558
+ };
559
+ },
560
+ };
561
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
562
+ return jsonResults.result;
563
+ }
564
+ getApiTypeFromAddVideoWatermarkEx(watermarkUrl, options, connection) {
565
+ return 'RtcEngineEx_addVideoWatermarkEx';
566
+ }
567
+ clearVideoWatermarkEx(connection) {
568
+ const apiType = this.getApiTypeFromClearVideoWatermarkEx(connection);
569
+ const jsonParams = {
570
+ connection: connection,
571
+ toJSON: () => {
572
+ return {
573
+ connection: connection,
574
+ };
575
+ },
576
+ };
577
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
578
+ return jsonResults.result;
579
+ }
580
+ getApiTypeFromClearVideoWatermarkEx(connection) {
581
+ return 'RtcEngineEx_clearVideoWatermarkEx';
582
+ }
583
+ sendCustomReportMessageEx(id, category, event, label, value, connection) {
584
+ const apiType = this.getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection);
585
+ const jsonParams = {
586
+ id: id,
587
+ category: category,
588
+ event: event,
589
+ label: label,
590
+ value: value,
591
+ connection: connection,
592
+ toJSON: () => {
593
+ return {
594
+ id: id,
595
+ category: category,
596
+ event: event,
597
+ label: label,
598
+ value: value,
599
+ connection: connection,
600
+ };
601
+ },
602
+ };
603
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
604
+ return jsonResults.result;
605
+ }
606
+ getApiTypeFromSendCustomReportMessageEx(id, category, event, label, value, connection) {
607
+ return 'RtcEngineEx_sendCustomReportMessageEx';
608
+ }
609
+ enableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
610
+ const apiType = this.getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection);
611
+ const jsonParams = {
612
+ interval: interval,
613
+ smooth: smooth,
614
+ reportVad: reportVad,
615
+ connection: connection,
616
+ toJSON: () => {
617
+ return {
618
+ interval: interval,
619
+ smooth: smooth,
620
+ reportVad: reportVad,
621
+ connection: connection,
622
+ };
623
+ },
624
+ };
625
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
626
+ return jsonResults.result;
627
+ }
628
+ getApiTypeFromEnableAudioVolumeIndicationEx(interval, smooth, reportVad, connection) {
629
+ return 'RtcEngineEx_enableAudioVolumeIndicationEx';
630
+ }
631
+ startRtmpStreamWithoutTranscodingEx(url, connection) {
632
+ const apiType = this.getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection);
633
+ const jsonParams = {
634
+ url: url,
635
+ connection: connection,
636
+ toJSON: () => {
637
+ return {
638
+ url: url,
639
+ connection: connection,
640
+ };
641
+ },
642
+ };
643
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
644
+ return jsonResults.result;
645
+ }
646
+ getApiTypeFromStartRtmpStreamWithoutTranscodingEx(url, connection) {
647
+ return 'RtcEngineEx_startRtmpStreamWithoutTranscodingEx';
648
+ }
649
+ startRtmpStreamWithTranscodingEx(url, transcoding, connection) {
650
+ const apiType = this.getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection);
651
+ const jsonParams = {
652
+ url: url,
653
+ transcoding: transcoding,
654
+ connection: connection,
655
+ toJSON: () => {
656
+ return {
657
+ url: url,
658
+ transcoding: transcoding,
659
+ connection: connection,
660
+ };
661
+ },
662
+ };
663
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
664
+ return jsonResults.result;
665
+ }
666
+ getApiTypeFromStartRtmpStreamWithTranscodingEx(url, transcoding, connection) {
667
+ return 'RtcEngineEx_startRtmpStreamWithTranscodingEx';
668
+ }
669
+ updateRtmpTranscodingEx(transcoding, connection) {
670
+ const apiType = this.getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection);
671
+ const jsonParams = {
672
+ transcoding: transcoding,
673
+ connection: connection,
674
+ toJSON: () => {
675
+ return {
676
+ transcoding: transcoding,
677
+ connection: connection,
678
+ };
679
+ },
680
+ };
681
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
682
+ return jsonResults.result;
683
+ }
684
+ getApiTypeFromUpdateRtmpTranscodingEx(transcoding, connection) {
685
+ return 'RtcEngineEx_updateRtmpTranscodingEx';
686
+ }
687
+ stopRtmpStreamEx(url, connection) {
688
+ const apiType = this.getApiTypeFromStopRtmpStreamEx(url, connection);
689
+ const jsonParams = {
690
+ url: url,
691
+ connection: connection,
692
+ toJSON: () => {
693
+ return {
694
+ url: url,
695
+ connection: connection,
696
+ };
697
+ },
698
+ };
699
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
700
+ return jsonResults.result;
701
+ }
702
+ getApiTypeFromStopRtmpStreamEx(url, connection) {
703
+ return 'RtcEngineEx_stopRtmpStreamEx';
704
+ }
705
+ startOrUpdateChannelMediaRelayEx(configuration, connection) {
706
+ const apiType = this.getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection);
707
+ const jsonParams = {
708
+ configuration: configuration,
709
+ connection: connection,
710
+ toJSON: () => {
711
+ return {
712
+ configuration: configuration,
713
+ connection: connection,
714
+ };
715
+ },
716
+ };
717
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
718
+ return jsonResults.result;
719
+ }
720
+ getApiTypeFromStartOrUpdateChannelMediaRelayEx(configuration, connection) {
721
+ return 'RtcEngineEx_startOrUpdateChannelMediaRelayEx';
722
+ }
723
+ startChannelMediaRelayEx(configuration, connection) {
724
+ const apiType = this.getApiTypeFromStartChannelMediaRelayEx(configuration, connection);
725
+ const jsonParams = {
726
+ configuration: configuration,
727
+ connection: connection,
728
+ toJSON: () => {
729
+ return {
730
+ configuration: configuration,
731
+ connection: connection,
732
+ };
733
+ },
734
+ };
735
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
736
+ return jsonResults.result;
737
+ }
738
+ getApiTypeFromStartChannelMediaRelayEx(configuration, connection) {
739
+ return 'RtcEngineEx_startChannelMediaRelayEx';
740
+ }
741
+ updateChannelMediaRelayEx(configuration, connection) {
742
+ const apiType = this.getApiTypeFromUpdateChannelMediaRelayEx(configuration, connection);
743
+ const jsonParams = {
744
+ configuration: configuration,
745
+ connection: connection,
746
+ toJSON: () => {
747
+ return {
748
+ configuration: configuration,
749
+ connection: connection,
750
+ };
751
+ },
752
+ };
753
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
754
+ return jsonResults.result;
755
+ }
756
+ getApiTypeFromUpdateChannelMediaRelayEx(configuration, connection) {
757
+ return 'RtcEngineEx_updateChannelMediaRelayEx';
758
+ }
759
+ stopChannelMediaRelayEx(connection) {
760
+ const apiType = this.getApiTypeFromStopChannelMediaRelayEx(connection);
761
+ const jsonParams = {
762
+ connection: connection,
763
+ toJSON: () => {
764
+ return {
765
+ connection: connection,
766
+ };
767
+ },
768
+ };
769
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
770
+ return jsonResults.result;
771
+ }
772
+ getApiTypeFromStopChannelMediaRelayEx(connection) {
773
+ return 'RtcEngineEx_stopChannelMediaRelayEx';
774
+ }
775
+ pauseAllChannelMediaRelayEx(connection) {
776
+ const apiType = this.getApiTypeFromPauseAllChannelMediaRelayEx(connection);
777
+ const jsonParams = {
778
+ connection: connection,
779
+ toJSON: () => {
780
+ return {
781
+ connection: connection,
782
+ };
783
+ },
784
+ };
785
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
786
+ return jsonResults.result;
787
+ }
788
+ getApiTypeFromPauseAllChannelMediaRelayEx(connection) {
789
+ return 'RtcEngineEx_pauseAllChannelMediaRelayEx';
790
+ }
791
+ resumeAllChannelMediaRelayEx(connection) {
792
+ const apiType = this.getApiTypeFromResumeAllChannelMediaRelayEx(connection);
793
+ const jsonParams = {
794
+ connection: connection,
795
+ toJSON: () => {
796
+ return {
797
+ connection: connection,
798
+ };
799
+ },
800
+ };
801
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
802
+ return jsonResults.result;
803
+ }
804
+ getApiTypeFromResumeAllChannelMediaRelayEx(connection) {
805
+ return 'RtcEngineEx_resumeAllChannelMediaRelayEx';
806
+ }
807
+ getUserInfoByUserAccountEx(userAccount, connection) {
808
+ const apiType = this.getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection);
809
+ const jsonParams = {
810
+ userAccount: userAccount,
811
+ connection: connection,
812
+ toJSON: () => {
813
+ return {
814
+ userAccount: userAccount,
815
+ connection: connection,
816
+ };
817
+ },
818
+ };
819
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
820
+ const userInfo = jsonResults.userInfo;
821
+ return userInfo;
822
+ }
823
+ getApiTypeFromGetUserInfoByUserAccountEx(userAccount, connection) {
824
+ return 'RtcEngineEx_getUserInfoByUserAccountEx';
825
+ }
826
+ getUserInfoByUidEx(uid, connection) {
827
+ const apiType = this.getApiTypeFromGetUserInfoByUidEx(uid, connection);
828
+ const jsonParams = {
829
+ uid: uid,
830
+ connection: connection,
831
+ toJSON: () => {
832
+ return {
833
+ uid: uid,
834
+ connection: connection,
835
+ };
836
+ },
837
+ };
838
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
839
+ const userInfo = jsonResults.userInfo;
840
+ return userInfo;
841
+ }
842
+ getApiTypeFromGetUserInfoByUidEx(uid, connection) {
843
+ return 'RtcEngineEx_getUserInfoByUidEx';
844
+ }
845
+ enableDualStreamModeEx(enabled, streamConfig, connection) {
846
+ const apiType = this.getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection);
847
+ const jsonParams = {
848
+ enabled: enabled,
849
+ streamConfig: streamConfig,
850
+ connection: connection,
851
+ toJSON: () => {
852
+ return {
853
+ enabled: enabled,
854
+ streamConfig: streamConfig,
855
+ connection: connection,
856
+ };
857
+ },
858
+ };
859
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
860
+ return jsonResults.result;
861
+ }
862
+ getApiTypeFromEnableDualStreamModeEx(enabled, streamConfig, connection) {
863
+ return 'RtcEngineEx_enableDualStreamModeEx';
864
+ }
865
+ setDualStreamModeEx(mode, streamConfig, connection) {
866
+ const apiType = this.getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection);
867
+ const jsonParams = {
868
+ mode: mode,
869
+ streamConfig: streamConfig,
870
+ connection: connection,
871
+ toJSON: () => {
872
+ return {
873
+ mode: mode,
874
+ streamConfig: streamConfig,
875
+ connection: connection,
876
+ };
877
+ },
878
+ };
879
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
880
+ return jsonResults.result;
881
+ }
882
+ getApiTypeFromSetDualStreamModeEx(mode, streamConfig, connection) {
883
+ return 'RtcEngineEx_setDualStreamModeEx';
884
+ }
885
+ setHighPriorityUserListEx(uidList, uidNum, option, connection) {
886
+ const apiType = this.getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection);
887
+ const jsonParams = {
888
+ uidList: uidList,
889
+ uidNum: uidNum,
890
+ option: option,
891
+ connection: connection,
892
+ toJSON: () => {
893
+ return {
894
+ uidList: uidList,
895
+ uidNum: uidNum,
896
+ option: option,
897
+ connection: connection,
898
+ };
899
+ },
900
+ };
901
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
902
+ return jsonResults.result;
903
+ }
904
+ getApiTypeFromSetHighPriorityUserListEx(uidList, uidNum, option, connection) {
905
+ return 'RtcEngineEx_setHighPriorityUserListEx';
906
+ }
907
+ takeSnapshotEx(connection, uid, filePath) {
908
+ const apiType = this.getApiTypeFromTakeSnapshotEx(connection, uid, filePath);
909
+ const jsonParams = {
910
+ connection: connection,
911
+ uid: uid,
912
+ filePath: filePath,
913
+ toJSON: () => {
914
+ return {
915
+ connection: connection,
916
+ uid: uid,
917
+ filePath: filePath,
918
+ };
919
+ },
920
+ };
921
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
922
+ return jsonResults.result;
923
+ }
924
+ getApiTypeFromTakeSnapshotEx(connection, uid, filePath) {
925
+ return 'RtcEngineEx_takeSnapshotEx';
926
+ }
927
+ startMediaRenderingTracingEx(connection) {
928
+ const apiType = this.getApiTypeFromStartMediaRenderingTracingEx(connection);
929
+ const jsonParams = {
930
+ connection: connection,
931
+ toJSON: () => {
932
+ return {
933
+ connection: connection,
934
+ };
935
+ },
936
+ };
937
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
938
+ return jsonResults.result;
939
+ }
940
+ getApiTypeFromStartMediaRenderingTracingEx(connection) {
941
+ return 'RtcEngineEx_startMediaRenderingTracingEx';
942
+ }
943
+ }
944
+ exports.IRtcEngineExImpl = IRtcEngineExImpl;
945
+ const IrisApiEngine_1 = require("../internal/IrisApiEngine");