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