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,957 @@
1
+ import { RawAudioFrameOpModeType } from '../AgoraMediaBase';
2
+ import { callIrisApi } from '../internal/call';
3
+
4
+ // @ts-ignore
5
+ export class IMediaPlayerImpl {
6
+ getMediaPlayerId() {
7
+ const apiType = this.getApiTypeFromGetMediaPlayerId();
8
+ const jsonParams = {};
9
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
10
+ return jsonResults.result;
11
+ }
12
+ getApiTypeFromGetMediaPlayerId() {
13
+ return 'MediaPlayer_getMediaPlayerId';
14
+ }
15
+ open(url, startPos) {
16
+ const apiType = this.getApiTypeFromOpen(url, startPos);
17
+ const jsonParams = {
18
+ url: url,
19
+ startPos: startPos,
20
+ toJSON: () => {
21
+ return {
22
+ url: url,
23
+ startPos: startPos
24
+ };
25
+ }
26
+ };
27
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
28
+ return jsonResults.result;
29
+ }
30
+ getApiTypeFromOpen(url, startPos) {
31
+ return 'MediaPlayer_open_e43f201';
32
+ }
33
+ openWithMediaSource(source) {
34
+ const apiType = this.getApiTypeFromOpenWithMediaSource(source);
35
+ const jsonParams = {
36
+ source: source,
37
+ toJSON: () => {
38
+ return {
39
+ source: source
40
+ };
41
+ }
42
+ };
43
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
44
+ return jsonResults.result;
45
+ }
46
+ getApiTypeFromOpenWithMediaSource(source) {
47
+ return 'MediaPlayer_openWithMediaSource_3c11499';
48
+ }
49
+ play() {
50
+ const apiType = this.getApiTypeFromPlay();
51
+ const jsonParams = {};
52
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
53
+ return jsonResults.result;
54
+ }
55
+ getApiTypeFromPlay() {
56
+ return 'MediaPlayer_play';
57
+ }
58
+ pause() {
59
+ const apiType = this.getApiTypeFromPause();
60
+ const jsonParams = {};
61
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
62
+ return jsonResults.result;
63
+ }
64
+ getApiTypeFromPause() {
65
+ return 'MediaPlayer_pause';
66
+ }
67
+ stop() {
68
+ const apiType = this.getApiTypeFromStop();
69
+ const jsonParams = {};
70
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
71
+ return jsonResults.result;
72
+ }
73
+ getApiTypeFromStop() {
74
+ return 'MediaPlayer_stop';
75
+ }
76
+ resume() {
77
+ const apiType = this.getApiTypeFromResume();
78
+ const jsonParams = {};
79
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
80
+ return jsonResults.result;
81
+ }
82
+ getApiTypeFromResume() {
83
+ return 'MediaPlayer_resume';
84
+ }
85
+ seek(newPos) {
86
+ const apiType = this.getApiTypeFromSeek(newPos);
87
+ const jsonParams = {
88
+ newPos: newPos,
89
+ toJSON: () => {
90
+ return {
91
+ newPos: newPos
92
+ };
93
+ }
94
+ };
95
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
96
+ return jsonResults.result;
97
+ }
98
+ getApiTypeFromSeek(newPos) {
99
+ return 'MediaPlayer_seek_f631116';
100
+ }
101
+ setAudioPitch(pitch) {
102
+ const apiType = this.getApiTypeFromSetAudioPitch(pitch);
103
+ const jsonParams = {
104
+ pitch: pitch,
105
+ toJSON: () => {
106
+ return {
107
+ pitch: pitch
108
+ };
109
+ }
110
+ };
111
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
112
+ return jsonResults.result;
113
+ }
114
+ getApiTypeFromSetAudioPitch(pitch) {
115
+ return 'MediaPlayer_setAudioPitch_46f8ab7';
116
+ }
117
+ getDuration() {
118
+ const apiType = this.getApiTypeFromGetDuration();
119
+ const jsonParams = {};
120
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
121
+ const duration = jsonResults.duration;
122
+ return duration;
123
+ }
124
+ getApiTypeFromGetDuration() {
125
+ return 'MediaPlayer_getDuration_b12f121';
126
+ }
127
+ getPlayPosition() {
128
+ const apiType = this.getApiTypeFromGetPlayPosition();
129
+ const jsonParams = {};
130
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
131
+ const pos = jsonResults.pos;
132
+ return pos;
133
+ }
134
+ getApiTypeFromGetPlayPosition() {
135
+ return 'MediaPlayer_getPlayPosition_b12f121';
136
+ }
137
+ getStreamCount() {
138
+ const apiType = this.getApiTypeFromGetStreamCount();
139
+ const jsonParams = {};
140
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
141
+ const count = jsonResults.count;
142
+ return count;
143
+ }
144
+ getApiTypeFromGetStreamCount() {
145
+ return 'MediaPlayer_getStreamCount_b12f121';
146
+ }
147
+ getStreamInfo(index) {
148
+ const apiType = this.getApiTypeFromGetStreamInfo(index);
149
+ const jsonParams = {
150
+ index: index,
151
+ toJSON: () => {
152
+ return {
153
+ index: index
154
+ };
155
+ }
156
+ };
157
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
158
+ const info = jsonResults.info;
159
+ return info;
160
+ }
161
+ getApiTypeFromGetStreamInfo(index) {
162
+ return 'MediaPlayer_getStreamInfo_0fa63fa';
163
+ }
164
+ setLoopCount(loopCount) {
165
+ const apiType = this.getApiTypeFromSetLoopCount(loopCount);
166
+ const jsonParams = {
167
+ loopCount: loopCount,
168
+ toJSON: () => {
169
+ return {
170
+ loopCount: loopCount
171
+ };
172
+ }
173
+ };
174
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
175
+ return jsonResults.result;
176
+ }
177
+ getApiTypeFromSetLoopCount(loopCount) {
178
+ return 'MediaPlayer_setLoopCount_46f8ab7';
179
+ }
180
+ setPlaybackSpeed(speed) {
181
+ const apiType = this.getApiTypeFromSetPlaybackSpeed(speed);
182
+ const jsonParams = {
183
+ speed: speed,
184
+ toJSON: () => {
185
+ return {
186
+ speed: speed
187
+ };
188
+ }
189
+ };
190
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
191
+ return jsonResults.result;
192
+ }
193
+ getApiTypeFromSetPlaybackSpeed(speed) {
194
+ return 'MediaPlayer_setPlaybackSpeed_46f8ab7';
195
+ }
196
+ selectAudioTrack(index) {
197
+ const apiType = this.getApiTypeFromSelectAudioTrack(index);
198
+ const jsonParams = {
199
+ index: index,
200
+ toJSON: () => {
201
+ return {
202
+ index: index
203
+ };
204
+ }
205
+ };
206
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
207
+ return jsonResults.result;
208
+ }
209
+ getApiTypeFromSelectAudioTrack(index) {
210
+ return 'MediaPlayer_selectAudioTrack_46f8ab7';
211
+ }
212
+ selectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
213
+ const apiType = this.getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex);
214
+ const jsonParams = {
215
+ playoutTrackIndex: playoutTrackIndex,
216
+ publishTrackIndex: publishTrackIndex,
217
+ toJSON: () => {
218
+ return {
219
+ playoutTrackIndex: playoutTrackIndex,
220
+ publishTrackIndex: publishTrackIndex
221
+ };
222
+ }
223
+ };
224
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
225
+ return jsonResults.result;
226
+ }
227
+ getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
228
+ return 'MediaPlayer_selectMultiAudioTrack_4e92b3c';
229
+ }
230
+ takeScreenshot(filename) {
231
+ const apiType = this.getApiTypeFromTakeScreenshot(filename);
232
+ const jsonParams = {
233
+ filename: filename,
234
+ toJSON: () => {
235
+ return {
236
+ filename: filename
237
+ };
238
+ }
239
+ };
240
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
241
+ return jsonResults.result;
242
+ }
243
+ getApiTypeFromTakeScreenshot(filename) {
244
+ return 'MediaPlayer_takeScreenshot_3a2037f';
245
+ }
246
+ selectInternalSubtitle(index) {
247
+ const apiType = this.getApiTypeFromSelectInternalSubtitle(index);
248
+ const jsonParams = {
249
+ index: index,
250
+ toJSON: () => {
251
+ return {
252
+ index: index
253
+ };
254
+ }
255
+ };
256
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
257
+ return jsonResults.result;
258
+ }
259
+ getApiTypeFromSelectInternalSubtitle(index) {
260
+ return 'MediaPlayer_selectInternalSubtitle_46f8ab7';
261
+ }
262
+ setExternalSubtitle(url) {
263
+ const apiType = this.getApiTypeFromSetExternalSubtitle(url);
264
+ const jsonParams = {
265
+ url: url,
266
+ toJSON: () => {
267
+ return {
268
+ url: url
269
+ };
270
+ }
271
+ };
272
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
273
+ return jsonResults.result;
274
+ }
275
+ getApiTypeFromSetExternalSubtitle(url) {
276
+ return 'MediaPlayer_setExternalSubtitle_3a2037f';
277
+ }
278
+ getState() {
279
+ const apiType = this.getApiTypeFromGetState();
280
+ const jsonParams = {};
281
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
282
+ return jsonResults.result;
283
+ }
284
+ getApiTypeFromGetState() {
285
+ return 'MediaPlayer_getState';
286
+ }
287
+ mute(muted) {
288
+ const apiType = this.getApiTypeFromMute(muted);
289
+ const jsonParams = {
290
+ muted: muted,
291
+ toJSON: () => {
292
+ return {
293
+ muted: muted
294
+ };
295
+ }
296
+ };
297
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
298
+ return jsonResults.result;
299
+ }
300
+ getApiTypeFromMute(muted) {
301
+ return 'MediaPlayer_mute_5039d15';
302
+ }
303
+ getMute() {
304
+ const apiType = this.getApiTypeFromGetMute();
305
+ const jsonParams = {};
306
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
307
+ const muted = jsonResults.muted;
308
+ return muted;
309
+ }
310
+ getApiTypeFromGetMute() {
311
+ return 'MediaPlayer_getMute_c93e9d4';
312
+ }
313
+ adjustPlayoutVolume(volume) {
314
+ const apiType = this.getApiTypeFromAdjustPlayoutVolume(volume);
315
+ const jsonParams = {
316
+ volume: volume,
317
+ toJSON: () => {
318
+ return {
319
+ volume: volume
320
+ };
321
+ }
322
+ };
323
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
324
+ return jsonResults.result;
325
+ }
326
+ getApiTypeFromAdjustPlayoutVolume(volume) {
327
+ return 'MediaPlayer_adjustPlayoutVolume_46f8ab7';
328
+ }
329
+ getPlayoutVolume() {
330
+ const apiType = this.getApiTypeFromGetPlayoutVolume();
331
+ const jsonParams = {};
332
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
333
+ const volume = jsonResults.volume;
334
+ return volume;
335
+ }
336
+ getApiTypeFromGetPlayoutVolume() {
337
+ return 'MediaPlayer_getPlayoutVolume_9cfaa7e';
338
+ }
339
+ adjustPublishSignalVolume(volume) {
340
+ const apiType = this.getApiTypeFromAdjustPublishSignalVolume(volume);
341
+ const jsonParams = {
342
+ volume: volume,
343
+ toJSON: () => {
344
+ return {
345
+ volume: volume
346
+ };
347
+ }
348
+ };
349
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
350
+ return jsonResults.result;
351
+ }
352
+ getApiTypeFromAdjustPublishSignalVolume(volume) {
353
+ return 'MediaPlayer_adjustPublishSignalVolume_46f8ab7';
354
+ }
355
+ getPublishSignalVolume() {
356
+ const apiType = this.getApiTypeFromGetPublishSignalVolume();
357
+ const jsonParams = {};
358
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
359
+ const volume = jsonResults.volume;
360
+ return volume;
361
+ }
362
+ getApiTypeFromGetPublishSignalVolume() {
363
+ return 'MediaPlayer_getPublishSignalVolume_9cfaa7e';
364
+ }
365
+ setView(view) {
366
+ const apiType = this.getApiTypeFromSetView(view);
367
+ const jsonParams = {
368
+ view: view,
369
+ toJSON: () => {
370
+ return {
371
+ view: view
372
+ };
373
+ }
374
+ };
375
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
376
+ return jsonResults.result;
377
+ }
378
+ getApiTypeFromSetView(view) {
379
+ return 'MediaPlayer_setView_cb1a81f';
380
+ }
381
+ setRenderMode(renderMode) {
382
+ const apiType = this.getApiTypeFromSetRenderMode(renderMode);
383
+ const jsonParams = {
384
+ renderMode: renderMode,
385
+ toJSON: () => {
386
+ return {
387
+ renderMode: renderMode
388
+ };
389
+ }
390
+ };
391
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
392
+ return jsonResults.result;
393
+ }
394
+ getApiTypeFromSetRenderMode(renderMode) {
395
+ return 'MediaPlayer_setRenderMode_bedb5ae';
396
+ }
397
+ registerPlayerSourceObserver(observer) {
398
+ const apiType = this.getApiTypeFromRegisterPlayerSourceObserver(observer);
399
+ const jsonParams = {
400
+ observer: observer,
401
+ toJSON: () => {
402
+ return {};
403
+ }
404
+ };
405
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
406
+ return jsonResults.result;
407
+ }
408
+ getApiTypeFromRegisterPlayerSourceObserver(observer) {
409
+ return 'MediaPlayer_registerPlayerSourceObserver_15621d7';
410
+ }
411
+ unregisterPlayerSourceObserver(observer) {
412
+ const apiType = this.getApiTypeFromUnregisterPlayerSourceObserver(observer);
413
+ const jsonParams = {
414
+ observer: observer,
415
+ toJSON: () => {
416
+ return {};
417
+ }
418
+ };
419
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
420
+ return jsonResults.result;
421
+ }
422
+ getApiTypeFromUnregisterPlayerSourceObserver(observer) {
423
+ return 'MediaPlayer_unregisterPlayerSourceObserver_15621d7';
424
+ }
425
+ registerAudioFrameObserver(observer, mode = RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
426
+ const apiType = this.getApiTypeFromRegisterAudioFrameObserver(observer, mode);
427
+ const jsonParams = {
428
+ observer: observer,
429
+ mode: mode,
430
+ toJSON: () => {
431
+ return {
432
+ mode: mode
433
+ };
434
+ }
435
+ };
436
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
437
+ return jsonResults.result;
438
+ }
439
+ getApiTypeFromRegisterAudioFrameObserver(observer, mode = RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
440
+ return 'MediaPlayer_registerAudioFrameObserver_a5b510b';
441
+ }
442
+ unregisterAudioFrameObserver(observer) {
443
+ const apiType = this.getApiTypeFromUnregisterAudioFrameObserver(observer);
444
+ const jsonParams = {
445
+ observer: observer,
446
+ toJSON: () => {
447
+ return {};
448
+ }
449
+ };
450
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
451
+ return jsonResults.result;
452
+ }
453
+ getApiTypeFromUnregisterAudioFrameObserver(observer) {
454
+ return 'MediaPlayer_unregisterAudioFrameObserver_89ab9b5';
455
+ }
456
+ registerVideoFrameObserver(observer) {
457
+ const apiType = this.getApiTypeFromRegisterVideoFrameObserver(observer);
458
+ const jsonParams = {
459
+ observer: observer,
460
+ toJSON: () => {
461
+ return {};
462
+ }
463
+ };
464
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
465
+ return jsonResults.result;
466
+ }
467
+ getApiTypeFromRegisterVideoFrameObserver(observer) {
468
+ return 'MediaPlayer_registerVideoFrameObserver_833bd8d';
469
+ }
470
+ unregisterVideoFrameObserver(observer) {
471
+ const apiType = this.getApiTypeFromUnregisterVideoFrameObserver(observer);
472
+ const jsonParams = {
473
+ observer: observer,
474
+ toJSON: () => {
475
+ return {};
476
+ }
477
+ };
478
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
479
+ return jsonResults.result;
480
+ }
481
+ getApiTypeFromUnregisterVideoFrameObserver(observer) {
482
+ return 'MediaPlayer_unregisterVideoFrameObserver_5165d4c';
483
+ }
484
+ registerMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
485
+ const apiType = this.getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS);
486
+ const jsonParams = {
487
+ observer: observer,
488
+ intervalInMS: intervalInMS,
489
+ toJSON: () => {
490
+ return {
491
+ intervalInMS: intervalInMS
492
+ };
493
+ }
494
+ };
495
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
496
+ return jsonResults.result;
497
+ }
498
+ getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
499
+ return 'MediaPlayer_registerMediaPlayerAudioSpectrumObserver_226bb48';
500
+ }
501
+ unregisterMediaPlayerAudioSpectrumObserver(observer) {
502
+ const apiType = this.getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer);
503
+ const jsonParams = {
504
+ observer: observer,
505
+ toJSON: () => {
506
+ return {};
507
+ }
508
+ };
509
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
510
+ return jsonResults.result;
511
+ }
512
+ getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer) {
513
+ return 'MediaPlayer_unregisterMediaPlayerAudioSpectrumObserver_09064ce';
514
+ }
515
+ setAudioDualMonoMode(mode) {
516
+ const apiType = this.getApiTypeFromSetAudioDualMonoMode(mode);
517
+ const jsonParams = {
518
+ mode: mode,
519
+ toJSON: () => {
520
+ return {
521
+ mode: mode
522
+ };
523
+ }
524
+ };
525
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
526
+ return jsonResults.result;
527
+ }
528
+ getApiTypeFromSetAudioDualMonoMode(mode) {
529
+ return 'MediaPlayer_setAudioDualMonoMode_30c9672';
530
+ }
531
+ getPlayerSdkVersion() {
532
+ const apiType = this.getApiTypeFromGetPlayerSdkVersion();
533
+ const jsonParams = {};
534
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
535
+ return jsonResults.result;
536
+ }
537
+ getApiTypeFromGetPlayerSdkVersion() {
538
+ return 'MediaPlayer_getPlayerSdkVersion';
539
+ }
540
+ getPlaySrc() {
541
+ const apiType = this.getApiTypeFromGetPlaySrc();
542
+ const jsonParams = {};
543
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
544
+ return jsonResults.result;
545
+ }
546
+ getApiTypeFromGetPlaySrc() {
547
+ return 'MediaPlayer_getPlaySrc';
548
+ }
549
+ openWithAgoraCDNSrc(src, startPos) {
550
+ const apiType = this.getApiTypeFromOpenWithAgoraCDNSrc(src, startPos);
551
+ const jsonParams = {
552
+ src: src,
553
+ startPos: startPos,
554
+ toJSON: () => {
555
+ return {
556
+ src: src,
557
+ startPos: startPos
558
+ };
559
+ }
560
+ };
561
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
562
+ return jsonResults.result;
563
+ }
564
+ getApiTypeFromOpenWithAgoraCDNSrc(src, startPos) {
565
+ return 'MediaPlayer_openWithAgoraCDNSrc_e43f201';
566
+ }
567
+ getAgoraCDNLineCount() {
568
+ const apiType = this.getApiTypeFromGetAgoraCDNLineCount();
569
+ const jsonParams = {};
570
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
571
+ return jsonResults.result;
572
+ }
573
+ getApiTypeFromGetAgoraCDNLineCount() {
574
+ return 'MediaPlayer_getAgoraCDNLineCount';
575
+ }
576
+ switchAgoraCDNLineByIndex(index) {
577
+ const apiType = this.getApiTypeFromSwitchAgoraCDNLineByIndex(index);
578
+ const jsonParams = {
579
+ index: index,
580
+ toJSON: () => {
581
+ return {
582
+ index: index
583
+ };
584
+ }
585
+ };
586
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
587
+ return jsonResults.result;
588
+ }
589
+ getApiTypeFromSwitchAgoraCDNLineByIndex(index) {
590
+ return 'MediaPlayer_switchAgoraCDNLineByIndex_46f8ab7';
591
+ }
592
+ getCurrentAgoraCDNIndex() {
593
+ const apiType = this.getApiTypeFromGetCurrentAgoraCDNIndex();
594
+ const jsonParams = {};
595
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
596
+ return jsonResults.result;
597
+ }
598
+ getApiTypeFromGetCurrentAgoraCDNIndex() {
599
+ return 'MediaPlayer_getCurrentAgoraCDNIndex';
600
+ }
601
+ enableAutoSwitchAgoraCDN(enable) {
602
+ const apiType = this.getApiTypeFromEnableAutoSwitchAgoraCDN(enable);
603
+ const jsonParams = {
604
+ enable: enable,
605
+ toJSON: () => {
606
+ return {
607
+ enable: enable
608
+ };
609
+ }
610
+ };
611
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
612
+ return jsonResults.result;
613
+ }
614
+ getApiTypeFromEnableAutoSwitchAgoraCDN(enable) {
615
+ return 'MediaPlayer_enableAutoSwitchAgoraCDN_5039d15';
616
+ }
617
+ renewAgoraCDNSrcToken(token, ts) {
618
+ const apiType = this.getApiTypeFromRenewAgoraCDNSrcToken(token, ts);
619
+ const jsonParams = {
620
+ token: token,
621
+ ts: ts,
622
+ toJSON: () => {
623
+ return {
624
+ token: token,
625
+ ts: ts
626
+ };
627
+ }
628
+ };
629
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
630
+ return jsonResults.result;
631
+ }
632
+ getApiTypeFromRenewAgoraCDNSrcToken(token, ts) {
633
+ return 'MediaPlayer_renewAgoraCDNSrcToken_e43f201';
634
+ }
635
+ switchAgoraCDNSrc(src, syncPts = false) {
636
+ const apiType = this.getApiTypeFromSwitchAgoraCDNSrc(src, syncPts);
637
+ const jsonParams = {
638
+ src: src,
639
+ syncPts: syncPts,
640
+ toJSON: () => {
641
+ return {
642
+ src: src,
643
+ syncPts: syncPts
644
+ };
645
+ }
646
+ };
647
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
648
+ return jsonResults.result;
649
+ }
650
+ getApiTypeFromSwitchAgoraCDNSrc(src, syncPts = false) {
651
+ return 'MediaPlayer_switchAgoraCDNSrc_7a174df';
652
+ }
653
+ switchSrc(src, syncPts = true) {
654
+ const apiType = this.getApiTypeFromSwitchSrc(src, syncPts);
655
+ const jsonParams = {
656
+ src: src,
657
+ syncPts: syncPts,
658
+ toJSON: () => {
659
+ return {
660
+ src: src,
661
+ syncPts: syncPts
662
+ };
663
+ }
664
+ };
665
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
666
+ return jsonResults.result;
667
+ }
668
+ getApiTypeFromSwitchSrc(src, syncPts = true) {
669
+ return 'MediaPlayer_switchSrc_7a174df';
670
+ }
671
+ preloadSrc(src, startPos) {
672
+ const apiType = this.getApiTypeFromPreloadSrc(src, startPos);
673
+ const jsonParams = {
674
+ src: src,
675
+ startPos: startPos,
676
+ toJSON: () => {
677
+ return {
678
+ src: src,
679
+ startPos: startPos
680
+ };
681
+ }
682
+ };
683
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
684
+ return jsonResults.result;
685
+ }
686
+ getApiTypeFromPreloadSrc(src, startPos) {
687
+ return 'MediaPlayer_preloadSrc_e43f201';
688
+ }
689
+ playPreloadedSrc(src) {
690
+ const apiType = this.getApiTypeFromPlayPreloadedSrc(src);
691
+ const jsonParams = {
692
+ src: src,
693
+ toJSON: () => {
694
+ return {
695
+ src: src
696
+ };
697
+ }
698
+ };
699
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
700
+ return jsonResults.result;
701
+ }
702
+ getApiTypeFromPlayPreloadedSrc(src) {
703
+ return 'MediaPlayer_playPreloadedSrc_3a2037f';
704
+ }
705
+ unloadSrc(src) {
706
+ const apiType = this.getApiTypeFromUnloadSrc(src);
707
+ const jsonParams = {
708
+ src: src,
709
+ toJSON: () => {
710
+ return {
711
+ src: src
712
+ };
713
+ }
714
+ };
715
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
716
+ return jsonResults.result;
717
+ }
718
+ getApiTypeFromUnloadSrc(src) {
719
+ return 'MediaPlayer_unloadSrc_3a2037f';
720
+ }
721
+ setSpatialAudioParams(params) {
722
+ const apiType = this.getApiTypeFromSetSpatialAudioParams(params);
723
+ const jsonParams = {
724
+ params: params,
725
+ toJSON: () => {
726
+ return {
727
+ params: params
728
+ };
729
+ }
730
+ };
731
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
732
+ return jsonResults.result;
733
+ }
734
+ getApiTypeFromSetSpatialAudioParams(params) {
735
+ return 'MediaPlayer_setSpatialAudioParams_5035667';
736
+ }
737
+ setSoundPositionParams(pan, gain) {
738
+ const apiType = this.getApiTypeFromSetSoundPositionParams(pan, gain);
739
+ const jsonParams = {
740
+ pan: pan,
741
+ gain: gain,
742
+ toJSON: () => {
743
+ return {
744
+ pan: pan,
745
+ gain: gain
746
+ };
747
+ }
748
+ };
749
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
750
+ return jsonResults.result;
751
+ }
752
+ getApiTypeFromSetSoundPositionParams(pan, gain) {
753
+ return 'MediaPlayer_setSoundPositionParams_f282d50';
754
+ }
755
+ getAudioBufferDelay() {
756
+ const apiType = this.getApiTypeFromGetAudioBufferDelay();
757
+ const jsonParams = {};
758
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
759
+ const delayMs = jsonResults.delayMs;
760
+ return delayMs;
761
+ }
762
+ getApiTypeFromGetAudioBufferDelay() {
763
+ return 'MediaPlayer_getAudioBufferDelay_c30e349';
764
+ }
765
+ setPlayerOptionInInt(key, value) {
766
+ const apiType = this.getApiTypeFromSetPlayerOptionInInt(key, value);
767
+ const jsonParams = {
768
+ key: key,
769
+ value: value,
770
+ toJSON: () => {
771
+ return {
772
+ key: key,
773
+ value: value
774
+ };
775
+ }
776
+ };
777
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
778
+ return jsonResults.result;
779
+ }
780
+ getApiTypeFromSetPlayerOptionInInt(key, value) {
781
+ return 'MediaPlayer_setPlayerOption_4d05d29';
782
+ }
783
+ setPlayerOptionInString(key, value) {
784
+ const apiType = this.getApiTypeFromSetPlayerOptionInString(key, value);
785
+ const jsonParams = {
786
+ key: key,
787
+ value: value,
788
+ toJSON: () => {
789
+ return {
790
+ key: key,
791
+ value: value
792
+ };
793
+ }
794
+ };
795
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
796
+ return jsonResults.result;
797
+ }
798
+ getApiTypeFromSetPlayerOptionInString(key, value) {
799
+ return 'MediaPlayer_setPlayerOption_ccad422';
800
+ }
801
+ }
802
+
803
+ // @ts-ignore
804
+ export class IMediaPlayerCacheManagerImpl {
805
+ removeAllCaches() {
806
+ const apiType = this.getApiTypeFromRemoveAllCaches();
807
+ const jsonParams = {};
808
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
809
+ return jsonResults.result;
810
+ }
811
+ getApiTypeFromRemoveAllCaches() {
812
+ return 'MediaPlayerCacheManager_removeAllCaches';
813
+ }
814
+ removeOldCache() {
815
+ const apiType = this.getApiTypeFromRemoveOldCache();
816
+ const jsonParams = {};
817
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
818
+ return jsonResults.result;
819
+ }
820
+ getApiTypeFromRemoveOldCache() {
821
+ return 'MediaPlayerCacheManager_removeOldCache';
822
+ }
823
+ removeCacheByUri(uri) {
824
+ const apiType = this.getApiTypeFromRemoveCacheByUri(uri);
825
+ const jsonParams = {
826
+ uri: uri,
827
+ toJSON: () => {
828
+ return {
829
+ uri: uri
830
+ };
831
+ }
832
+ };
833
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
834
+ return jsonResults.result;
835
+ }
836
+ getApiTypeFromRemoveCacheByUri(uri) {
837
+ return 'MediaPlayerCacheManager_removeCacheByUri_3a2037f';
838
+ }
839
+ setCacheDir(path) {
840
+ const apiType = this.getApiTypeFromSetCacheDir(path);
841
+ const jsonParams = {
842
+ path: path,
843
+ toJSON: () => {
844
+ return {
845
+ path: path
846
+ };
847
+ }
848
+ };
849
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
850
+ return jsonResults.result;
851
+ }
852
+ getApiTypeFromSetCacheDir(path) {
853
+ return 'MediaPlayerCacheManager_setCacheDir_3a2037f';
854
+ }
855
+ setMaxCacheFileCount(count) {
856
+ const apiType = this.getApiTypeFromSetMaxCacheFileCount(count);
857
+ const jsonParams = {
858
+ count: count,
859
+ toJSON: () => {
860
+ return {
861
+ count: count
862
+ };
863
+ }
864
+ };
865
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
866
+ return jsonResults.result;
867
+ }
868
+ getApiTypeFromSetMaxCacheFileCount(count) {
869
+ return 'MediaPlayerCacheManager_setMaxCacheFileCount_46f8ab7';
870
+ }
871
+ setMaxCacheFileSize(cacheSize) {
872
+ const apiType = this.getApiTypeFromSetMaxCacheFileSize(cacheSize);
873
+ const jsonParams = {
874
+ cacheSize: cacheSize,
875
+ toJSON: () => {
876
+ return {
877
+ cacheSize: cacheSize
878
+ };
879
+ }
880
+ };
881
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
882
+ return jsonResults.result;
883
+ }
884
+ getApiTypeFromSetMaxCacheFileSize(cacheSize) {
885
+ return 'MediaPlayerCacheManager_setMaxCacheFileSize_f631116';
886
+ }
887
+ enableAutoRemoveCache(enable) {
888
+ const apiType = this.getApiTypeFromEnableAutoRemoveCache(enable);
889
+ const jsonParams = {
890
+ enable: enable,
891
+ toJSON: () => {
892
+ return {
893
+ enable: enable
894
+ };
895
+ }
896
+ };
897
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
898
+ return jsonResults.result;
899
+ }
900
+ getApiTypeFromEnableAutoRemoveCache(enable) {
901
+ return 'MediaPlayerCacheManager_enableAutoRemoveCache_5039d15';
902
+ }
903
+ getCacheDir(length) {
904
+ const apiType = this.getApiTypeFromGetCacheDir(length);
905
+ const jsonParams = {
906
+ length: length,
907
+ toJSON: () => {
908
+ return {
909
+ length: length
910
+ };
911
+ }
912
+ };
913
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
914
+ const path = jsonResults.path;
915
+ return path;
916
+ }
917
+ getApiTypeFromGetCacheDir(length) {
918
+ return 'MediaPlayerCacheManager_getCacheDir_c9551e8';
919
+ }
920
+ getMaxCacheFileCount() {
921
+ const apiType = this.getApiTypeFromGetMaxCacheFileCount();
922
+ const jsonParams = {};
923
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
924
+ return jsonResults.result;
925
+ }
926
+ getApiTypeFromGetMaxCacheFileCount() {
927
+ return 'MediaPlayerCacheManager_getMaxCacheFileCount';
928
+ }
929
+ getMaxCacheFileSize() {
930
+ const apiType = this.getApiTypeFromGetMaxCacheFileSize();
931
+ const jsonParams = {};
932
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
933
+ return jsonResults.result;
934
+ }
935
+ getApiTypeFromGetMaxCacheFileSize() {
936
+ return 'MediaPlayerCacheManager_getMaxCacheFileSize';
937
+ }
938
+ getCacheFileCount() {
939
+ const apiType = this.getApiTypeFromGetCacheFileCount();
940
+ const jsonParams = {};
941
+ const jsonResults = callIrisApi.call(this, apiType, jsonParams);
942
+ return jsonResults.result;
943
+ }
944
+ getApiTypeFromGetCacheFileCount() {
945
+ return 'MediaPlayerCacheManager_getCacheFileCount';
946
+ }
947
+ }
948
+ export function processIMediaPlayerVideoFrameObserver(handler, event, jsonParams) {
949
+ switch (event) {
950
+ case 'onFrame':
951
+ if (handler.onFrame !== undefined) {
952
+ handler.onFrame(jsonParams.frame);
953
+ }
954
+ break;
955
+ }
956
+ }
957
+ //# sourceMappingURL=IAgoraMediaPlayerImpl.js.map