react-native-shengwang 4.6.2-rc.2

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