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,258 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RtcEngineExInternal = void 0;
7
+ var _tsInterfaceChecker = require("ts-interface-checker");
8
+ var _Utils = require("../Utils");
9
+ var _IAgoraRtcEngineExImpl = require("../impl/IAgoraRtcEngineExImpl");
10
+ var _AgoraBaseTi = _interopRequireDefault(require("../ti/AgoraBase-ti"));
11
+ var _AgoraMediaBaseTi = _interopRequireDefault(require("../ti/AgoraMediaBase-ti"));
12
+ var _IAgoraRtcEngineTi = _interopRequireDefault(require("../ti/IAgoraRtcEngine-ti"));
13
+ var _AgoraH265TranscoderInternal = require("./AgoraH265TranscoderInternal");
14
+ var _AgoraPipInternal = require("./AgoraPipInternal");
15
+ var _LocalSpatialAudioEngineInternal = require("./LocalSpatialAudioEngineInternal");
16
+ var _MediaEngineInternal = require("./MediaEngineInternal");
17
+ var _MediaPlayerInternal = require("./MediaPlayerInternal");
18
+ var _MediaRecorderInternal = require("./MediaRecorderInternal");
19
+ var _MusicContentCenterInternal = require("./MusicContentCenterInternal");
20
+ var _call = require("./call");
21
+ var _event = require("./event");
22
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
+ const checkers = (0, _tsInterfaceChecker.createCheckers)(_AgoraBaseTi.default, _AgoraMediaBaseTi.default, _IAgoraRtcEngineTi.default);
24
+ class RtcEngineExInternal extends _IAgoraRtcEngineExImpl.IRtcEngineExImpl {
25
+ static _event_handlers = [];
26
+ static _direct_cdn_streaming_event_handler = [];
27
+ static _metadata_observer = [];
28
+ static _audio_encoded_frame_observers = [];
29
+ static _audio_spectrum_observers = [];
30
+ _media_engine = new _MediaEngineInternal.MediaEngineInternal();
31
+ _music_content_center = new _MusicContentCenterInternal.MusicContentCenterInternal();
32
+ _local_spatial_audio_engine = new _LocalSpatialAudioEngineInternal.LocalSpatialAudioEngineInternal();
33
+ _h265_transcoder = new _AgoraH265TranscoderInternal.H265TranscoderInternal();
34
+ _agora_pip = new _AgoraPipInternal.AgoraPipInternal();
35
+ initialize(context) {
36
+ const ret = super.initialize(context);
37
+ _call.callIrisApi.call(this, 'RtcEngine_setAppType', {
38
+ appType: 8
39
+ });
40
+ return ret;
41
+ }
42
+ release(sync = false) {
43
+ this._agora_pip.release();
44
+ this._media_engine.release();
45
+ this._local_spatial_audio_engine.release();
46
+ RtcEngineExInternal._event_handlers.map(it => {
47
+ super.unregisterEventHandler(it);
48
+ });
49
+ RtcEngineExInternal._event_handlers = [];
50
+ RtcEngineExInternal._direct_cdn_streaming_event_handler = [];
51
+ RtcEngineExInternal._metadata_observer = [];
52
+ RtcEngineExInternal._audio_encoded_frame_observers = [];
53
+ RtcEngineExInternal._audio_spectrum_observers = [];
54
+ _MediaPlayerInternal.MediaPlayerInternal._source_observers.clear();
55
+ _MediaPlayerInternal.MediaPlayerInternal._audio_frame_observers.clear();
56
+ _MediaPlayerInternal.MediaPlayerInternal._video_frame_observers.clear();
57
+ _MediaPlayerInternal.MediaPlayerInternal._audio_spectrum_observers.clear();
58
+ _MediaRecorderInternal.MediaRecorderInternal._observers.clear();
59
+ this._h265_transcoder.release();
60
+ this.removeAllListeners();
61
+ super.release(sync);
62
+ }
63
+ _addListenerPreCheck(eventType) {
64
+ var _checkers$IRtcEngineE, _checkers$IDirectCdnS, _checkers$IMetadataOb, _checkers$IAudioEncod, _checkers$IAudioSpect;
65
+ if ((_checkers$IRtcEngineE = checkers.IRtcEngineEventHandler) !== null && _checkers$IRtcEngineE !== void 0 && _checkers$IRtcEngineE.strictTest({
66
+ [eventType]: undefined
67
+ })) {
68
+ if (RtcEngineExInternal._event_handlers.length === 0) {
69
+ this.registerEventHandler({});
70
+ }
71
+ }
72
+ if ((_checkers$IDirectCdnS = checkers.IDirectCdnStreamingEventHandler) !== null && _checkers$IDirectCdnS !== void 0 && _checkers$IDirectCdnS.strictTest({
73
+ [eventType]: undefined
74
+ })) {
75
+ if (RtcEngineExInternal._direct_cdn_streaming_event_handler.length === 0) {
76
+ console.error('Please call `startDirectCdnStreaming` before you want to receive event by `addListener`');
77
+ return false;
78
+ }
79
+ }
80
+ if ((_checkers$IMetadataOb = checkers.IMetadataObserver) !== null && _checkers$IMetadataOb !== void 0 && _checkers$IMetadataOb.strictTest({
81
+ [eventType]: undefined
82
+ })) {
83
+ if (RtcEngineExInternal._metadata_observer.length === 0) {
84
+ console.error('Please call `registerMediaMetadataObserver` before you want to receive event by `addListener`');
85
+ return false;
86
+ }
87
+ }
88
+ if ((_checkers$IAudioEncod = checkers.IAudioEncodedFrameObserver) !== null && _checkers$IAudioEncod !== void 0 && _checkers$IAudioEncod.strictTest({
89
+ [eventType]: undefined
90
+ })) {
91
+ if (RtcEngineExInternal._audio_encoded_frame_observers.length === 0) {
92
+ console.error('Please call `registerAudioEncodedFrameObserver` before you want to receive event by `addListener`');
93
+ return false;
94
+ }
95
+ }
96
+ if ((_checkers$IAudioSpect = checkers.IAudioSpectrumObserver) !== null && _checkers$IAudioSpect !== void 0 && _checkers$IAudioSpect.strictTest({
97
+ [eventType]: undefined
98
+ })) {
99
+ if (RtcEngineExInternal._audio_spectrum_observers.length === 0) {
100
+ this.registerAudioSpectrumObserver({});
101
+ }
102
+ }
103
+ return true;
104
+ }
105
+ addListener(eventType, listener) {
106
+ this._addListenerPreCheck(eventType);
107
+ const callback = (eventProcessor, data) => {
108
+ if (eventProcessor.type(data) !== _event.EVENT_TYPE.IRtcEngine) {
109
+ return;
110
+ }
111
+ eventProcessor.func.map(it => {
112
+ it({
113
+ [eventType]: listener
114
+ }, eventType, data);
115
+ });
116
+ };
117
+ // @ts-ignore
118
+ listener.agoraCallback = callback;
119
+ _event.DeviceEventEmitter.addListener(eventType, callback);
120
+ }
121
+ removeListener(eventType, listener) {
122
+ _event.DeviceEventEmitter.removeListener(eventType,
123
+ // @ts-ignore
124
+ (listener === null || listener === void 0 ? void 0 : listener.agoraCallback) ?? listener);
125
+ }
126
+ removeAllListeners(eventType) {
127
+ _event.DeviceEventEmitter.removeAllListeners(eventType);
128
+ }
129
+ getVersion() {
130
+ const apiType = 'RtcEngine_getVersion_915cb25';
131
+ const jsonParams = {};
132
+ const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
133
+ return {
134
+ build: jsonResults.build,
135
+ version: jsonResults.result
136
+ };
137
+ }
138
+ registerEventHandler(eventHandler) {
139
+ // only call iris when no event handler registered
140
+ let callIris = RtcEngineExInternal._event_handlers.length === 0;
141
+ if (!RtcEngineExInternal._event_handlers.find(value => value === eventHandler)) {
142
+ RtcEngineExInternal._event_handlers.push(eventHandler);
143
+ }
144
+ return callIris ? super.registerEventHandler(eventHandler) : true;
145
+ }
146
+ unregisterEventHandler(eventHandler) {
147
+ RtcEngineExInternal._event_handlers = RtcEngineExInternal._event_handlers.filter(value => value !== eventHandler);
148
+ // only call iris when no event handler registered
149
+ let callIris = RtcEngineExInternal._event_handlers.length === 0;
150
+ return callIris ? super.unregisterEventHandler(eventHandler) : true;
151
+ }
152
+ createMediaPlayer() {
153
+ // @ts-ignore
154
+ const mediaPlayerId = super.createMediaPlayer();
155
+ return new _MediaPlayerInternal.MediaPlayerInternal(mediaPlayerId);
156
+ }
157
+ destroyMediaPlayer(mediaPlayer) {
158
+ var _mediaPlayer$release;
159
+ const ret = super.destroyMediaPlayer(mediaPlayer);
160
+ (_mediaPlayer$release = mediaPlayer.release) === null || _mediaPlayer$release === void 0 || _mediaPlayer$release.call(mediaPlayer);
161
+ return ret;
162
+ }
163
+ createMediaRecorder(info) {
164
+ // @ts-ignore
165
+ const nativeHandle = super.createMediaRecorder(info);
166
+ return new _MediaRecorderInternal.MediaRecorderInternal(nativeHandle);
167
+ }
168
+ destroyMediaRecorder(mediaRecorder) {
169
+ var _mediaRecorder$releas;
170
+ const ret = super.destroyMediaRecorder(mediaRecorder);
171
+ (_mediaRecorder$releas = mediaRecorder.release) === null || _mediaRecorder$releas === void 0 || _mediaRecorder$releas.call(mediaRecorder);
172
+ return ret;
173
+ }
174
+ startDirectCdnStreaming(eventHandler, publishUrl, options) {
175
+ if (!RtcEngineExInternal._direct_cdn_streaming_event_handler.find(value => value === eventHandler)) {
176
+ RtcEngineExInternal._direct_cdn_streaming_event_handler.push(eventHandler);
177
+ }
178
+ return super.startDirectCdnStreaming(eventHandler, publishUrl, options);
179
+ }
180
+ registerMediaMetadataObserver(observer, type) {
181
+ if (!RtcEngineExInternal._metadata_observer.find(value => value === observer)) {
182
+ RtcEngineExInternal._metadata_observer.push(observer);
183
+ }
184
+ return super.registerMediaMetadataObserver(observer, type);
185
+ }
186
+ unregisterMediaMetadataObserver(observer, type) {
187
+ RtcEngineExInternal._metadata_observer = RtcEngineExInternal._metadata_observer.filter(value => value !== observer);
188
+ return super.unregisterMediaMetadataObserver(observer, type);
189
+ }
190
+ getApiTypeFromJoinChannel(token, channelId, uid, options) {
191
+ return options === undefined ? 'RtcEngine_joinChannel_f097389' : 'RtcEngine_joinChannel_cdbb747';
192
+ }
193
+ getApiTypeFromLeaveChannel(options) {
194
+ return options === undefined ? 'RtcEngine_leaveChannel' : 'RtcEngine_leaveChannel_2c0e3aa';
195
+ }
196
+ getApiTypeFromLeaveChannelEx(connection, options) {
197
+ return options === undefined ? 'RtcEngineEx_leaveChannelEx_c81e1a4' : 'RtcEngineEx_leaveChannelEx_b03ee9a';
198
+ }
199
+ getApiTypeFromSetClientRole(role, options) {
200
+ return options === undefined ? 'RtcEngine_setClientRole_3426fa6' : 'RtcEngine_setClientRole_b46cc48';
201
+ }
202
+ getApiTypeFromEnableDualStreamMode(enabled, streamConfig) {
203
+ return streamConfig === undefined ? 'RtcEngine_enableDualStreamMode_5039d15' : 'RtcEngine_enableDualStreamMode_9822d8a';
204
+ }
205
+ getApiTypeFromSetDualStreamMode(mode, streamConfig) {
206
+ return streamConfig === undefined ? 'RtcEngine_setDualStreamMode_3a7f662' : 'RtcEngine_setDualStreamMode_b3a4f6c';
207
+ }
208
+ getApiTypeFromJoinChannelWithUserAccount(token, channelId, userAccount, options) {
209
+ return options === undefined ? 'RtcEngine_joinChannelWithUserAccount_0e4f59e' : 'RtcEngine_joinChannelWithUserAccount_4685af9';
210
+ }
211
+ getAudioDeviceManager() {
212
+ throw 'Not support';
213
+ }
214
+ getVideoDeviceManager() {
215
+ throw 'Not support';
216
+ }
217
+ getMediaEngine() {
218
+ return this._media_engine;
219
+ }
220
+ getMusicContentCenter() {
221
+ return this._music_content_center;
222
+ }
223
+ getLocalSpatialAudioEngine() {
224
+ return this._local_spatial_audio_engine;
225
+ }
226
+ getH265Transcoder() {
227
+ return this._h265_transcoder;
228
+ }
229
+ getNativeHandle() {
230
+ let result = super.getNativeHandle();
231
+ return (0, _Utils.parseIntPtr2Number)(result);
232
+ }
233
+ registerAudioEncodedFrameObserver(config, observer) {
234
+ if (!RtcEngineExInternal._audio_encoded_frame_observers.find(value => value === observer)) {
235
+ RtcEngineExInternal._audio_encoded_frame_observers.push(observer);
236
+ }
237
+ return super.registerAudioEncodedFrameObserver(config, observer);
238
+ }
239
+ unregisterAudioEncodedFrameObserver(observer) {
240
+ RtcEngineExInternal._audio_encoded_frame_observers = RtcEngineExInternal._audio_encoded_frame_observers.filter(value => value !== observer);
241
+ return super.unregisterAudioEncodedFrameObserver(observer);
242
+ }
243
+ registerAudioSpectrumObserver(observer) {
244
+ if (!RtcEngineExInternal._audio_spectrum_observers.find(value => value === observer)) {
245
+ RtcEngineExInternal._audio_spectrum_observers.push(observer);
246
+ }
247
+ return super.registerAudioSpectrumObserver(observer);
248
+ }
249
+ unregisterAudioSpectrumObserver(observer) {
250
+ RtcEngineExInternal._audio_spectrum_observers = RtcEngineExInternal._audio_spectrum_observers.filter(value => value !== observer);
251
+ return super.unregisterAudioSpectrumObserver(observer);
252
+ }
253
+ getAgoraPip() {
254
+ return this._agora_pip;
255
+ }
256
+ }
257
+ exports.RtcEngineExInternal = RtcEngineExInternal;
258
+ //# sourceMappingURL=RtcEngineExInternal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_tsInterfaceChecker","require","_Utils","_IAgoraRtcEngineExImpl","_AgoraBaseTi","_interopRequireDefault","_AgoraMediaBaseTi","_IAgoraRtcEngineTi","_AgoraH265TranscoderInternal","_AgoraPipInternal","_LocalSpatialAudioEngineInternal","_MediaEngineInternal","_MediaPlayerInternal","_MediaRecorderInternal","_MusicContentCenterInternal","_call","_event","e","__esModule","default","checkers","createCheckers","AgoraBaseTI","AgoraMediaBaseTI","IAgoraRtcEngineTI","RtcEngineExInternal","IRtcEngineExImpl","_event_handlers","_direct_cdn_streaming_event_handler","_metadata_observer","_audio_encoded_frame_observers","_audio_spectrum_observers","_media_engine","MediaEngineInternal","_music_content_center","MusicContentCenterInternal","_local_spatial_audio_engine","LocalSpatialAudioEngineInternal","_h265_transcoder","H265TranscoderInternal","_agora_pip","AgoraPipInternal","initialize","context","ret","callIrisApi","call","appType","release","sync","map","it","unregisterEventHandler","MediaPlayerInternal","_source_observers","clear","_audio_frame_observers","_video_frame_observers","MediaRecorderInternal","_observers","removeAllListeners","_addListenerPreCheck","eventType","_checkers$IRtcEngineE","_checkers$IDirectCdnS","_checkers$IMetadataOb","_checkers$IAudioEncod","_checkers$IAudioSpect","IRtcEngineEventHandler","strictTest","undefined","length","registerEventHandler","IDirectCdnStreamingEventHandler","console","error","IMetadataObserver","IAudioEncodedFrameObserver","IAudioSpectrumObserver","registerAudioSpectrumObserver","addListener","listener","callback","eventProcessor","data","type","EVENT_TYPE","IRtcEngine","func","agoraCallback","DeviceEventEmitter","removeListener","getVersion","apiType","jsonParams","jsonResults","build","version","result","eventHandler","callIris","find","value","push","filter","createMediaPlayer","mediaPlayerId","destroyMediaPlayer","mediaPlayer","_mediaPlayer$release","createMediaRecorder","info","nativeHandle","destroyMediaRecorder","mediaRecorder","_mediaRecorder$releas","startDirectCdnStreaming","publishUrl","options","registerMediaMetadataObserver","observer","unregisterMediaMetadataObserver","getApiTypeFromJoinChannel","token","channelId","uid","getApiTypeFromLeaveChannel","getApiTypeFromLeaveChannelEx","connection","getApiTypeFromSetClientRole","role","getApiTypeFromEnableDualStreamMode","enabled","streamConfig","getApiTypeFromSetDualStreamMode","mode","getApiTypeFromJoinChannelWithUserAccount","userAccount","getAudioDeviceManager","getVideoDeviceManager","getMediaEngine","getMusicContentCenter","getLocalSpatialAudioEngine","getH265Transcoder","getNativeHandle","parseIntPtr2Number","registerAudioEncodedFrameObserver","config","unregisterAudioEncodedFrameObserver","unregisterAudioSpectrumObserver","getAgoraPip","exports"],"sourceRoot":"../../../src","sources":["internal/RtcEngineExInternal.ts"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAiCA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,kBAAA,GAAAF,sBAAA,CAAAJ,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,gCAAA,GAAAT,OAAA;AACA,IAAAU,oBAAA,GAAAV,OAAA;AACA,IAAAW,oBAAA,GAAAX,OAAA;AACA,IAAAY,sBAAA,GAAAZ,OAAA;AACA,IAAAa,2BAAA,GAAAb,OAAA;AACA,IAAAc,KAAA,GAAAd,OAAA;AACA,IAAAe,MAAA,GAAAf,OAAA;AAAyE,SAAAI,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzE,MAAMG,QAAQ,GAAG,IAAAC,kCAAc,EAC7BC,oBAAW,EACXC,yBAAgB,EAChBC,0BACF,CAAC;AAEM,MAAMC,mBAAmB,SAASC,uCAAgB,CAAC;EACxD,OAAOC,eAAe,GAA6B,EAAE;EACrD,OAAOC,mCAAmC,GACxC,EAAE;EACJ,OAAOC,kBAAkB,GAAwB,EAAE;EACnD,OAAOC,8BAA8B,GAAiC,EAAE;EACxE,OAAOC,yBAAyB,GAA6B,EAAE;EACvDC,aAAa,GAAiB,IAA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IAAI,CAACiB,QAAQ,CAAC;IAC9D;IACA,OAAO,KAAK,CAACzC,6BAA6B,CAACyC,QAAQ,CAAC;EACtD;EAES6B,+BAA+BA,CACtC7B,QAAgC,EACxB;IACR/F,mBAAmB,CAACM,yBAAyB,GAC3CN,mBAAmB,CAACM,yBAAyB,CAACyE,MAAM,CACjDF,KAAK,IAAKA,KAAK,KAAKkB,QACvB,CAAC;IACH,OAAO,KAAK,CAAC6B,+BAA+B,CAAC7B,QAAQ,CAAC;EACxD;EAEA8B,WAAWA,CAAA,EAAa;IACtB,OAAO,IAAI,CAAC9G,UAAU;EACxB;AACF;AAAC+G,OAAA,CAAA9H,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.callIrisApi = callIrisApi;
7
+ var _buffer = require("buffer");
8
+ var _base64Js = _interopRequireDefault(require("base64-js"));
9
+ var _jsonBigint = _interopRequireDefault(require("json-bigint"));
10
+ var _Utils = require("../Utils");
11
+ var _specs = _interopRequireDefault(require("../specs"));
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const JSON = (0, _jsonBigint.default)({
14
+ storeAsString: true
15
+ });
16
+ /**
17
+ * @internal
18
+ */
19
+ function callIrisApi(funcName, params) {
20
+ try {
21
+ const buffers = [];
22
+ if (funcName.startsWith('MediaEngine_')) {
23
+ switch (funcName) {
24
+ case 'MediaEngine_pushAudioFrame_c71f4ab':
25
+ // frame.buffer
26
+ buffers.push(_base64Js.default.fromByteArray(params.frame.buffer ?? _buffer.Buffer.from('')));
27
+ break;
28
+ case 'MediaEngine_pushVideoFrame_4e544e2':
29
+ // frame.buffer
30
+ buffers.push(_base64Js.default.fromByteArray(params.frame.buffer ?? _buffer.Buffer.from('')));
31
+ // frame.eglContext
32
+ buffers.push(_base64Js.default.fromByteArray(_buffer.Buffer.from('')));
33
+ // frame.metadata_buffer
34
+ buffers.push(_base64Js.default.fromByteArray(_buffer.Buffer.from('')));
35
+ // frame.alphaBuffer
36
+ buffers.push(_base64Js.default.fromByteArray(params.frame.alphaBuffer ?? _buffer.Buffer.from('')));
37
+ // frame.d3d11_texture_2d
38
+ buffers.push(_base64Js.default.fromByteArray(_buffer.Buffer.from('')));
39
+ break;
40
+ case 'MediaEngine_pushEncodedVideoImage_e71452b':
41
+ // imageBuffer
42
+ buffers.push(_base64Js.default.fromByteArray(params.imageBuffer ?? _buffer.Buffer.from('')));
43
+ break;
44
+ }
45
+ } else if (funcName.startsWith('MediaPlayer_') || funcName.startsWith('MusicPlayer_')) {
46
+ var _params$toJSON;
47
+ // @ts-ignore
48
+ params.mediaPlayerId = this.getMediaPlayerId();
49
+ const json = (_params$toJSON = params.toJSON) === null || _params$toJSON === void 0 ? void 0 : _params$toJSON.call();
50
+ params.toJSON = function () {
51
+ return {
52
+ ...json,
53
+ playerId: params.mediaPlayerId
54
+ };
55
+ };
56
+ } else if (funcName.startsWith('MediaRecorder_')) {
57
+ var _params$toJSON2;
58
+ // @ts-ignore
59
+ params.nativeHandle = this.nativeHandle;
60
+ const json = (_params$toJSON2 = params.toJSON) === null || _params$toJSON2 === void 0 ? void 0 : _params$toJSON2.call();
61
+ params.toJSON = function () {
62
+ return {
63
+ ...json,
64
+ nativeHandle: params.nativeHandle
65
+ };
66
+ };
67
+ } else if (funcName.startsWith('RtcEngine_')) {
68
+ switch (funcName) {
69
+ case 'RtcEngine_initialize_0320339':
70
+ _specs.default.newIrisApiEngine();
71
+ break;
72
+ case 'RtcEngine_release':
73
+ _specs.default.callApi({
74
+ funcName,
75
+ params: JSON.stringify(params),
76
+ buffers
77
+ });
78
+ _specs.default.destroyIrisApiEngine();
79
+ return;
80
+ case 'RtcEngine_sendMetaData':
81
+ // metadata.buffer
82
+ buffers.push(_base64Js.default.fromByteArray(params.metadata.buffer ?? _buffer.Buffer.from('')));
83
+ break;
84
+ case 'RtcEngine_sendStreamMessage_8715a45':
85
+ case 'RtcEngineEx_sendStreamMessageEx_0c34857':
86
+ // data
87
+ buffers.push(_base64Js.default.fromByteArray(params.data ?? _buffer.Buffer.from('')));
88
+ break;
89
+ case 'RtcEngine_destroyMediaPlayer_328a49b':
90
+ params.mediaPlayerId = params.media_player.getMediaPlayerId();
91
+ params.toJSON = function () {
92
+ return {
93
+ playerId: params.mediaPlayerId
94
+ };
95
+ };
96
+ break;
97
+ case 'RtcEngine_destroyMediaRecorder_95cdef5':
98
+ // @ts-ignore
99
+ params.nativeHandle = params.mediaRecorder.nativeHandle;
100
+ params.toJSON = function () {
101
+ return {
102
+ nativeHandle: params.nativeHandle
103
+ };
104
+ };
105
+ break;
106
+ }
107
+ }
108
+ let ret = _specs.default.callApi({
109
+ funcName,
110
+ params: JSON.stringify(params),
111
+ buffers
112
+ });
113
+ if (ret !== undefined && ret !== null && ret !== '' && ret !== 'null') {
114
+ const retObj = JSON.parse(ret);
115
+ if ((0, _Utils.isDebuggable)()) {
116
+ if (typeof retObj.result === 'number' && retObj.result < 0) {
117
+ console.error('callApi', funcName, JSON.stringify(params), ret);
118
+ } else {
119
+ console.log('callApi', funcName, JSON.stringify(params), ret);
120
+ }
121
+ }
122
+ return retObj;
123
+ }
124
+ } catch (e) {
125
+ if ((0, _Utils.isDebuggable)()) {
126
+ console.error('callApi', funcName, JSON.stringify(params), e);
127
+ } else {
128
+ console.warn('callApi', funcName, JSON.stringify(params), e);
129
+ }
130
+ }
131
+ return {};
132
+ }
133
+ //# sourceMappingURL=call.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_buffer","require","_base64Js","_interopRequireDefault","_jsonBigint","_Utils","_specs","e","__esModule","default","JSON","JSONBigInt","storeAsString","callIrisApi","funcName","params","buffers","startsWith","push","base64","fromByteArray","frame","buffer","Buffer","from","alphaBuffer","imageBuffer","_params$toJSON","mediaPlayerId","getMediaPlayerId","json","toJSON","call","playerId","_params$toJSON2","nativeHandle","AgoraRtcNg","newIrisApiEngine","callApi","stringify","destroyIrisApiEngine","metadata","data","media_player","mediaRecorder","ret","undefined","retObj","parse","isDebuggable","result","console","error","log","warn"],"sourceRoot":"../../../src","sources":["internal/call.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAAkC,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAHlC,MAAMG,IAAI,GAAG,IAAAC,mBAAU,EAAC;EAAEC,aAAa,EAAE;AAAK,CAAC,CAAC;AAOhD;AACA;AACA;AACO,SAASC,WAAWA,CAACC,QAAgB,EAAEC,MAAW,EAAO;EAC9D,IAAI;IACF,MAAMC,OAAiB,GAAG,EAAE;IAE5B,IAAIF,QAAQ,CAACG,UAAU,CAAC,cAAc,CAAC,EAAE;MACvC,QAAQH,QAAQ;QACd,KAAK,oCAAoC;UACvC;UACAE,OAAO,CAACE,IAAI,CACVC,iBAAM,CAACC,aAAa,CAACL,MAAM,CAACM,KAAK,CAACC,MAAM,IAAIC,cAAM,CAACC,IAAI,CAAC,EAAE,CAAC,CAC7D,CAAC;UACD;QACF,KAAK,oCAAoC;UACvC;UACAR,OAAO,CAACE,IAAI,CACVC,iBAAM,CAACC,aAAa,CAACL,MAAM,CAACM,KAAK,CAACC,MAAM,IAAIC,cAAM,CAACC,IAAI,CAAC,EAAE,CAAC,CAC7D,CAAC;UACD;UACAR,OAAO,CAACE,IAAI,CACVC,iBAAM,CAACC,aAAa,CAACG,cAAM,CAACC,IAAI,CAAC,EAAE,CAA0B,CAC/D,CAAC;UACD;UACAR,OAAO,CAACE,IAAI,CACVC,iBAAM,CAACC,aAAa,CAACG,cAAM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+ });
6
+ exports.EVENT_TYPE = exports.DeviceEventEmitter = void 0;
7
+ exports.emitEvent = emitEvent;
8
+ var _eventemitter = _interopRequireDefault(require("eventemitter3"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ // @ts-ignore
11
+ const DeviceEventEmitter = exports.DeviceEventEmitter = new _eventemitter.default();
12
+
13
+ /**
14
+ * @internal
15
+ */
16
+ let EVENT_TYPE = exports.EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
17
+ EVENT_TYPE[EVENT_TYPE["IMediaEngine"] = 0] = "IMediaEngine";
18
+ EVENT_TYPE[EVENT_TYPE["IMediaPlayer"] = 1] = "IMediaPlayer";
19
+ EVENT_TYPE[EVENT_TYPE["IMediaRecorder"] = 2] = "IMediaRecorder";
20
+ EVENT_TYPE[EVENT_TYPE["IRtcEngine"] = 3] = "IRtcEngine";
21
+ EVENT_TYPE[EVENT_TYPE["IMusicContentCenter"] = 4] = "IMusicContentCenter";
22
+ EVENT_TYPE[EVENT_TYPE["IAgoraH265Transcoder"] = 5] = "IAgoraH265Transcoder";
23
+ EVENT_TYPE[EVENT_TYPE["IAgoraPip"] = 6] = "IAgoraPip";
24
+ return EVENT_TYPE;
25
+ }({});
26
+ /**
27
+ * @internal
28
+ */
29
+ function emitEvent(eventType, eventProcessor, data) {
30
+ DeviceEventEmitter.emit(eventType, eventProcessor, data);
31
+ }
32
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_eventemitter","_interopRequireDefault","require","e","__esModule","default","DeviceEventEmitter","exports","EventEmitter","EVENT_TYPE","emitEvent","eventType","eventProcessor","data","emit"],"sourceRoot":"../../../src","sources":["internal/event.ts"],"mappings":";;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA6BzC;AACO,MAAMG,kBAAgC,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAIE,qBAAY,CAAC,CAAC;;AAElE;AACA;AACA;AAFA,IAWYC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AA+CtB;AACA;AACA;AACO,SAASC,SAASA,CACvBC,SAAoB,EACpBC,cAAiC,EACjCC,IAAS,EACH;EACNP,kBAAkB,CAACQ,IAAI,CAACH,SAAS,EAAYC,cAAc,EAAEC,IAAI,CAAC;AACpE","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ var _default = exports.default = (0, _codegenNativeComponent.default)('AgoraRtcSurfaceView');
10
+ //# sourceMappingURL=AgoraRtcSurfaceViewNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/AgoraRtcSurfaceViewNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAY9E,IAAAG,+BAAsB,EACnC,qBACF,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ var _default = exports.default = (0, _codegenNativeComponent.default)('AgoraRtcTextureView');
10
+ //# sourceMappingURL=AgoraRtcTextureViewNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/AgoraRtcTextureViewNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAU9E,IAAAG,+BAAsB,EACnC,qBACF,CAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('AgoraRtcNg');
9
+ //# sourceMappingURL=NativeAgoraRtcNg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeAgoraRtcNg.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAuCpCC,gCAAmB,CAACC,YAAY,CAAO,YAAY,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ const LINKING_ERROR = `The package 'react-native-agora' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
9
+ ios: "- You have run 'pod install'\n",
10
+ default: ''
11
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
12
+
13
+ // @ts-expect-error
14
+ const isTurboModuleEnabled = global.__turboModuleProxy != null;
15
+ const AgoraModule = isTurboModuleEnabled ? require('./NativeAgoraRtcNg').default : _reactNative.NativeModules.AgoraRtcNg;
16
+ const AgoraRtcNg = AgoraModule ? AgoraModule : new Proxy({}, {
17
+ get() {
18
+ throw new Error(LINKING_ERROR);
19
+ }
20
+ });
21
+ var _default = exports.default = AgoraRtcNg;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","AgoraModule","NativeModules","AgoraRtcNg","Proxy","get","Error","_default","exports"],"sourceRoot":"../../../src","sources":["specs/index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,6EAA6E,GAC7EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,WAAW,GAAGH,oBAAoB,GACpCN,OAAO,CAAC,oBAAoB,CAAC,CAACK,OAAO,GACrCK,0BAAa,CAACC,UAAU;AAE5B,MAAMA,UAAU,GAAGF,WAAW,GAC1BA,WAAW,GACX,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACb,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAX,OAAA,GACSM,UAAU","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.IAudioEncodedFrameObserver = void 0;
7
+ var t = _interopRequireWildcard(require("ts-interface-checker"));
8
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
9
+ /**
10
+ * This module was automatically generated by `ts-interface-builder`
11
+ */
12
+
13
+ // tslint:disable:object-literal-key-quotes
14
+
15
+ const IAudioEncodedFrameObserver = exports.IAudioEncodedFrameObserver = t.iface([], {
16
+ "onRecordAudioEncodedFrame": t.opt(t.func("void", t.param("frameBuffer", "Uint8Array"), t.param("length", "number"), t.param("audioEncodedFrameInfo", "EncodedAudioFrameInfo"))),
17
+ "onPlaybackAudioEncodedFrame": t.opt(t.func("void", t.param("frameBuffer", "Uint8Array"), t.param("length", "number"), t.param("audioEncodedFrameInfo", "EncodedAudioFrameInfo"))),
18
+ "onMixedAudioEncodedFrame": t.opt(t.func("void", t.param("frameBuffer", "Uint8Array"), t.param("length", "number"), t.param("audioEncodedFrameInfo", "EncodedAudioFrameInfo")))
19
+ });
20
+ const exportedTypeSuite = {
21
+ IAudioEncodedFrameObserver
22
+ };
23
+ var _default = exports.default = exportedTypeSuite;
24
+ //# sourceMappingURL=AgoraBase-ti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["t","_interopRequireWildcard","require","e","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","IAudioEncodedFrameObserver","exports","iface","opt","func","param","exportedTypeSuite","_default"],"sourceRoot":"../../../src","sources":["ti/AgoraBase-ti.ts"],"mappings":";;;;;;AAGA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA0C,SAAAD,wBAAAE,CAAA,EAAAH,CAAA,6BAAAI,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAE,CAAA,EAAAH,CAAA,SAAAA,CAAA,IAAAG,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,MAAAK,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAT,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAO,CAAA,MAAAF,CAAA,GAAAR,CAAA,GAAAM,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAV,CAAA,UAAAK,CAAA,CAAAM,GAAA,CAAAX,CAAA,GAAAK,CAAA,CAAAO,GAAA,CAAAZ,CAAA,EAAAO,CAAA,gBAAAV,CAAA,IAAAG,CAAA,gBAAAH,CAAA,OAAAgB,cAAA,CAAAC,IAAA,CAAAd,CAAA,EAAAH,CAAA,OAAAS,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAjB,CAAA,EAAAH,CAAA,OAAAS,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAV,CAAA,EAAAS,CAAA,IAAAC,CAAA,CAAAV,C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
6
+ exports.default = exports.IVideoFrameObserver = exports.IVideoEncodedFrameObserver = exports.IMediaRecorderObserver = exports.IFaceInfoObserver = exports.IAudioSpectrumObserver = exports.IAudioPcmFrameSink = exports.IAudioFrameObserverBase = exports.IAudioFrameObserver = void 0;
7
+ var t = _interopRequireWildcard(require("ts-interface-checker"));
8
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
9
+ /**
10
+ * This module was automatically generated by `ts-interface-builder`
11
+ */
12
+
13
+ // tslint:disable:object-literal-key-quotes
14
+
15
+ const IAudioPcmFrameSink = exports.IAudioPcmFrameSink = t.iface([], {
16
+ "onFrame": t.opt(t.func("void", t.param("frame", "AudioPcmFrame")))
17
+ });
18
+ const IAudioFrameObserverBase = exports.IAudioFrameObserverBase = t.iface([], {
19
+ "onRecordAudioFrame": t.opt(t.func("void", t.param("channelId", "string"), t.param("audioFrame", "AudioFrame"))),
20
+ "onPlaybackAudioFrame": t.opt(t.func("void", t.param("channelId", "string"), t.param("audioFrame", "AudioFrame"))),
21
+ "onMixedAudioFrame": t.opt(t.func("void", t.param("channelId", "string"), t.param("audioFrame", "AudioFrame"))),
22
+ "onEarMonitoringAudioFrame": t.opt(t.func("void", t.param("audioFrame", "AudioFrame")))
23
+ });
24
+ const IAudioFrameObserver = exports.IAudioFrameObserver = t.iface(["IAudioFrameObserverBase"], {
25
+ "onPlaybackAudioFrameBeforeMixing": t.opt(t.func("void", t.param("channelId", "string"), t.param("uid", "number"), t.param("audioFrame", "AudioFrame")))
26
+ });
27
+ const IAudioSpectrumObserver = exports.IAudioSpectrumObserver = t.iface([], {
28
+ "onLocalAudioSpectrum": t.opt(t.func("void", t.param("data", "AudioSpectrumData"))),
29
+ "onRemoteAudioSpectrum": t.opt(t.func("void", t.param("spectrums", t.array("UserAudioSpectrumInfo")), t.param("spectrumNumber", "number")))
30
+ });
31
+ const IVideoEncodedFrameObserver = exports.IVideoEncodedFrameObserver = t.iface([], {
32
+ "onEncodedVideoFrameReceived": t.opt(t.func("void", t.param("channelId", "string"), t.param("uid", "number"), t.param("imageBuffer", "Uint8Array"), t.param("length", "number"), t.param("videoEncodedFrameInfo", "EncodedVideoFrameInfo")))
33
+ });
34
+ const IVideoFrameObserver = exports.IVideoFrameObserver = t.iface([], {
35
+ "onCaptureVideoFrame": t.opt(t.func("void", t.param("sourceType", "VideoSourceType"), t.param("videoFrame", "VideoFrame"))),
36
+ "onPreEncodeVideoFrame": t.opt(t.func("void", t.param("sourceType", "VideoSourceType"), t.param("videoFrame", "VideoFrame"))),
37
+ "onMediaPlayerVideoFrame": t.opt(t.func("void", t.param("videoFrame", "VideoFrame"), t.param("mediaPlayerId", "number"))),
38
+ "onRenderVideoFrame": t.opt(t.func("void", t.param("channelId", "string"), t.param("remoteUid", "number"), t.param("videoFrame", "VideoFrame"))),
39
+ "onTranscodedVideoFrame": t.opt(t.func("void", t.param("videoFrame", "VideoFrame")))
40
+ });
41
+ const IFaceInfoObserver = exports.IFaceInfoObserver = t.iface([], {
42
+ "onFaceInfo": t.opt(t.func("void", t.param("outFaceInfo", "string")))
43
+ });
44
+ const IMediaRecorderObserver = exports.IMediaRecorderObserver = t.iface([], {
45
+ "onRecorderStateChanged": t.opt(t.func("void", t.param("channelId", "string"), t.param("uid", "number"), t.param("state", "RecorderState"), t.param("reason", "RecorderReasonCode"))),
46
+ "onRecorderInfoUpdated": t.opt(t.func("void", t.param("channelId", "string"), t.param("uid", "number"), t.param("info", "RecorderInfo")))
47
+ });
48
+ const exportedTypeSuite = {
49
+ IAudioPcmFrameSink,
50
+ IAudioFrameObserverBase,
51
+ IAudioFrameObserver,
52
+ IAudioSpectrumObserver,
53
+ IVideoEncodedFrameObserver,
54
+ IVideoFrameObserver,
55
+ IFaceInfoObserver,
56
+ IMediaRecorderObserver
57
+ };
58
+ var _default = exports.default = exportedTypeSuite;
59
+ //# sourceMappingURL=AgoraMediaBase-ti.js.map