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,678 @@
1
+ import './extension/IAgoraMusicContentCenterExtension';
2
+ import { IMediaPlayer } from './IAgoraMediaPlayer';
3
+
4
+ /**
5
+ * 音乐资源的播放模式。
6
+ */
7
+ export enum MusicPlayMode {
8
+ /**
9
+ * 0:原唱。
10
+ */
11
+ KMusicPlayModeOriginal = 0,
12
+ /**
13
+ * 1:伴唱。
14
+ */
15
+ KMusicPlayModeAccompany = 1,
16
+ /**
17
+ * 2:导唱。
18
+ */
19
+ KMusicPlayModeLeadSing = 2,
20
+ }
21
+
22
+ /**
23
+ * 音乐资源的加载状态。
24
+ */
25
+ export enum PreloadState {
26
+ /**
27
+ * 0:音乐资源加载完成。
28
+ */
29
+ KPreloadStateCompleted = 0,
30
+ /**
31
+ * 1:音乐资源加载失败。
32
+ */
33
+ KPreloadStateFailed = 1,
34
+ /**
35
+ * 2:音乐资源正在加载中。
36
+ */
37
+ KPreloadStatePreloading = 2,
38
+ /**
39
+ * 3:缓存的音乐资源已被移除。
40
+ */
41
+ KPreloadStateRemoved = 3,
42
+ }
43
+
44
+ /**
45
+ * 音乐内容中心的请求状态码。
46
+ */
47
+ export enum MusicContentCenterStateReason {
48
+ /**
49
+ * 0:请求成功。
50
+ */
51
+ KMusicContentCenterReasonOk = 0,
52
+ /**
53
+ * 1:一般错误,无明确归因。
54
+ */
55
+ KMusicContentCenterReasonError = 1,
56
+ /**
57
+ * 2:网关异常。可能的原因有:
58
+ * 当前使用的 Token 已过期。请重新生成 Token。
59
+ * 传入的 Token 无效。请确保你使用的是 RTM Token。
60
+ * 网络错误。请检查你的网络。
61
+ */
62
+ KMusicContentCenterReasonGateway = 2,
63
+ /**
64
+ * 3:权限错误或音乐资源不存在。请确保你的项目已开通声网音乐内容中心权限,请[联系技术支持](https://ticket.shengwang.cn/)。
65
+ */
66
+ KMusicContentCenterReasonPermissionAndResource = 3,
67
+ /**
68
+ * 4:内部数据解析错误。请[联系技术支持](https://ticket.shengwang.cn/)。
69
+ */
70
+ KMusicContentCenterReasonInternalDataParse = 4,
71
+ /**
72
+ * 5:音乐资源加载时出错。请[联系技术支持](https://ticket.shengwang.cn/)。
73
+ */
74
+ KMusicContentCenterReasonMusicLoading = 5,
75
+ /**
76
+ * 6:音乐资源解密时出错。请[联系技术支持](https://ticket.shengwang.cn/)。
77
+ */
78
+ KMusicContentCenterReasonMusicDecryption = 6,
79
+ /**
80
+ * 7:HTTP 内部出现错误。请稍后重试。
81
+ */
82
+ KMusicContentCenterReasonHttpInternalError = 7,
83
+ }
84
+
85
+ /**
86
+ * 音乐榜单的详细信息。
87
+ */
88
+ export class MusicChartInfo {
89
+ /**
90
+ * 榜单名。
91
+ */
92
+ chartName?: string;
93
+ /**
94
+ * 音乐榜单的 ID。
95
+ */
96
+ id?: number;
97
+ }
98
+
99
+ /**
100
+ * 音乐资源的缓存状态。
101
+ */
102
+ export enum MusicCacheStatusType {
103
+ /**
104
+ * 0: 音乐资源已缓存。
105
+ */
106
+ MusicCacheStatusTypeCached = 0,
107
+ /**
108
+ * 1: 音乐资源正在缓存。
109
+ */
110
+ MusicCacheStatusTypeCaching = 1,
111
+ }
112
+
113
+ /**
114
+ * 缓存的音乐资源的相关信息。
115
+ */
116
+ export class MusicCacheInfo {
117
+ /**
118
+ * 音乐资源的编号,用于标识音乐资源。
119
+ */
120
+ songCode?: number;
121
+ /**
122
+ * 音乐资源的缓存状态,详见 MusicCacheStatusType 。
123
+ */
124
+ status?: MusicCacheStatusType;
125
+ }
126
+
127
+ /**
128
+ * 音乐榜单的详细信息。
129
+ */
130
+ export abstract class MusicChartCollection {
131
+ /**
132
+ * 获取本次请求的音乐榜单数量。
133
+ *
134
+ * @returns
135
+ * 本次请求的音乐榜单数量。
136
+ */
137
+ abstract getCount(): number;
138
+
139
+ /**
140
+ * 获取音乐榜单的详细信息。
141
+ *
142
+ * @param index MusicChartInfo 数组的索引。
143
+ *
144
+ * @returns
145
+ * MusicChartInfo ,包含音乐榜单的详细信息。
146
+ */
147
+ abstract get(index: number): MusicChartInfo;
148
+ }
149
+
150
+ /**
151
+ * @ignore
152
+ */
153
+ export class MvProperty {
154
+ /**
155
+ * @ignore
156
+ */
157
+ resolution?: string;
158
+ /**
159
+ * @ignore
160
+ */
161
+ bandwidth?: string;
162
+ }
163
+
164
+ /**
165
+ * 音乐高潮片段设置。
166
+ */
167
+ export class ClimaxSegment {
168
+ /**
169
+ * 音乐高潮片段的开始时间点,单位毫秒。
170
+ */
171
+ startTimeMs?: number;
172
+ /**
173
+ * 音乐高潮片段的结束时间点,单位毫秒。
174
+ */
175
+ endTimeMs?: number;
176
+ }
177
+
178
+ /**
179
+ * 音乐资源的详细信息。
180
+ */
181
+ export class Music {
182
+ /**
183
+ * 音乐资源的编号,用于标识一个音乐资源。
184
+ */
185
+ songCode?: number;
186
+ /**
187
+ * 音乐资源名称。
188
+ */
189
+ name?: string;
190
+ /**
191
+ * 歌手名。
192
+ */
193
+ singer?: string;
194
+ /**
195
+ * 音乐资源海报的下载地址。
196
+ */
197
+ poster?: string;
198
+ /**
199
+ * 音乐资源发布的时间。
200
+ */
201
+ releaseTime?: string;
202
+ /**
203
+ * 音乐资源总时长 (秒)。
204
+ */
205
+ durationS?: number;
206
+ /**
207
+ * 音乐资源类型:
208
+ * 1:左声道伴奏,右声道原唱的单音轨音源。
209
+ * 2:只有伴唱的单音轨音源。
210
+ * 3:只有原唱的单音轨音源。
211
+ * 4:多音轨音源。
212
+ */
213
+ type?: number;
214
+ /**
215
+ * 歌曲是否支持演唱评分功能:
216
+ * 1:歌曲支持演唱评分功能。
217
+ * 2:歌曲不支持演唱评分功能。
218
+ */
219
+ pitchType?: number;
220
+ /**
221
+ * 歌曲的歌词数量。
222
+ */
223
+ lyricCount?: number;
224
+ /**
225
+ * 支持的歌词类型:
226
+ * 0:xml 格式。
227
+ * 1:lrc 格式。
228
+ */
229
+ lyricList?: number[];
230
+ /**
231
+ * 高潮片段的数量。
232
+ */
233
+ climaxSegmentCount?: number;
234
+ /**
235
+ * 音乐高潮片段列表,详见 ClimaxSegment 。
236
+ */
237
+ climaxSegmentList?: ClimaxSegment[];
238
+ /**
239
+ * @ignore
240
+ */
241
+ mvPropertyCount?: number;
242
+ /**
243
+ * @ignore
244
+ */
245
+ mvPropertyList?: MvProperty[];
246
+ }
247
+
248
+ /**
249
+ * 音乐资源列表的详细信息。
250
+ */
251
+ export abstract class MusicCollection {
252
+ /**
253
+ * 获取本次请求的音乐数量。
254
+ *
255
+ * @returns
256
+ * 本次请求的音乐数量。
257
+ */
258
+ abstract getCount(): number;
259
+
260
+ /**
261
+ * 获取列表内音乐资源的总数量。
262
+ *
263
+ * @returns
264
+ * 列表内音乐资源的总数量。
265
+ */
266
+ abstract getTotal(): number;
267
+
268
+ /**
269
+ * 获取音乐资源列表当前页的页码。
270
+ *
271
+ * @returns
272
+ * 当前页的页码。
273
+ */
274
+ abstract getPage(): number;
275
+
276
+ /**
277
+ * 获取 SDK 实际返回的音乐资源数量。
278
+ *
279
+ * @returns
280
+ * SDK 实际返回的音乐资源数量。
281
+ */
282
+ abstract getPageSize(): number;
283
+
284
+ /**
285
+ * 获取当前页面列表中音乐资源的详细信息。
286
+ *
287
+ * @param index Music 数组的索引。
288
+ *
289
+ * @returns
290
+ * 一个 Music 实例。
291
+ */
292
+ abstract getMusic(index: number): Music;
293
+ }
294
+
295
+ /**
296
+ * IMusicContentCenterEventHandler 接口类,用于 SDK 向客户端发送音乐内容中心事件通知。
297
+ */
298
+ export interface IMusicContentCenterEventHandler {
299
+ /**
300
+ * 获取音乐榜单回调。
301
+ *
302
+ * 当你调用 getMusicCharts 方法获取全部音乐榜单之后,SDK 会触发该回调。
303
+ *
304
+ * @param requestId 请求 ID。本次请求的唯一标识。
305
+ * @param result 当前可播放的音乐榜单列表。详见 MusicChartInfo 。
306
+ * @param reason 音乐内容中心的请求状态码,详见 MusicContentCenterStateReason 。
307
+ */
308
+ onMusicChartsResult?(
309
+ requestId: string,
310
+ result: MusicChartInfo[],
311
+ reason: MusicContentCenterStateReason
312
+ ): void;
313
+
314
+ /**
315
+ * 获取音乐资源列表回调。
316
+ *
317
+ * 当你调用 getMusicCollectionByMusicChartId 方法来获取指定榜单的音乐资源列表或调用 searchMusic 来搜索音乐资源时,SDK 会触发此回调报告榜单中音乐资源列表的详细信息。
318
+ *
319
+ * @param requestId 请求 ID。本次请求的唯一标识。
320
+ * @param result 音乐资源列表的详细信息。详见 MusicCollection 。
321
+ * @param reason 音乐内容中心的请求状态码,详见 MusicContentCenterStateReason 。
322
+ */
323
+ onMusicCollectionResult?(
324
+ requestId: string,
325
+ result: MusicCollection,
326
+ reason: MusicContentCenterStateReason
327
+ ): void;
328
+
329
+ /**
330
+ * 歌词下载地址回调。
331
+ *
332
+ * 当你调用 getLyric 获取指定歌曲的歌词下载地址后,SDK 会触发该回调。
333
+ *
334
+ * @param requestId 请求 ID。本次请求的唯一标识。
335
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
336
+ * @param lyricUrl 歌词的下载地址。
337
+ * @param reason 音乐内容中心的请求状态码,详见 MusicContentCenterStateReason 。
338
+ */
339
+ onLyricResult?(
340
+ requestId: string,
341
+ songCode: number,
342
+ lyricUrl: string,
343
+ reason: MusicContentCenterStateReason
344
+ ): void;
345
+
346
+ /**
347
+ * 音乐资源的详细信息回调。
348
+ *
349
+ * 当你调用 getSongSimpleInfo 获取某一音乐资源的详细信息后,SDK 会触发该回调。
350
+ *
351
+ * @param requestId 请求 ID。本次请求的唯一标识。
352
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
353
+ * @param simpleInfo 音乐资源的相关信息,包含下列内容:
354
+ * 副歌片段的开始和结束的时间(ms)
355
+ * 副歌片段的歌词下载地址
356
+ * 副歌片段时长(ms)
357
+ * 歌曲名称
358
+ * 歌手名
359
+ * @param reason 音乐内容中心的请求状态码,详见 MusicContentCenterStateReason 。
360
+ */
361
+ onSongSimpleInfoResult?(
362
+ requestId: string,
363
+ songCode: number,
364
+ simpleInfo: string,
365
+ reason: MusicContentCenterStateReason
366
+ ): void;
367
+
368
+ /**
369
+ * 报告预加载音乐资源的事件。
370
+ *
371
+ * 当你调用 Preload 方法预加载音乐资源后,SDK 会触发该回调。
372
+ *
373
+ * @param requestId 请求 ID。本次请求的唯一标识。
374
+ * @param songCode 音乐资源的编号,用于标识一个音乐资源。
375
+ * @param percent 音乐资源当前的加载进度,取值范围为 [0,100]。
376
+ * @param lyricUrl 歌词下载地址。
377
+ * @param state 当前音乐资源的加载状态。详见 PreloadState 。
378
+ * @param reason 音乐内容中心的请求状态码,详见 MusicContentCenterStateReason 。
379
+ */
380
+ onPreLoadEvent?(
381
+ requestId: string,
382
+ songCode: number,
383
+ percent: number,
384
+ lyricUrl: string,
385
+ state: PreloadState,
386
+ reason: MusicContentCenterStateReason
387
+ ): void;
388
+ }
389
+
390
+ /**
391
+ * 音乐内容中心的设置。
392
+ */
393
+ export class MusicContentCenterConfiguration {
394
+ /**
395
+ * 已启用内容中心的项目的 App ID。
396
+ */
397
+ appId?: string;
398
+ /**
399
+ * 使用音乐内容中心时,用于鉴权的 RTM Token。
400
+ * 声网推荐你使用 AccessToken2 进行鉴权,详见[部署 Token 服务器](https://doc.shengwang.cn/doc/rtm2/android/user-guide/token/token-generation)。生成 Token 时,请向 uid 传入 String 型的 mccUid 。
401
+ * 当你的 Token 即将过期时,你可以调用 renewToken 来传入新的 Token。
402
+ */
403
+ token?: string;
404
+ /**
405
+ * 使用音乐内容中心的用户 ID,该 ID 可以和你加入 RTC 频道时使用的 uid 一致,但不能为 0。
406
+ */
407
+ mccUid?: number;
408
+ /**
409
+ * 可缓存的音乐资源数量,最多不能超过 50。
410
+ */
411
+ maxCacheSize?: number;
412
+ /**
413
+ * @ignore
414
+ */
415
+ mccDomain?: string;
416
+ }
417
+
418
+ /**
419
+ * 继承自 IMediaPlayer 类,提供音乐播放器的相关方法。
420
+ */
421
+ export abstract class IMusicPlayer extends IMediaPlayer {
422
+ /**
423
+ * 设置音乐资源的播放模式。
424
+ *
425
+ * 你可以调用该方法来设置启用原唱、伴奏或导唱。如不调用该方法进行设置,则默认播放伴奏;如果音乐资源没有伴奏,则播放原唱。 你可以通过 onMusicCollectionResult 回调获取音乐资源的详细信息,并可通过其中的 result 参数得知需播放的版权音乐所支持的播放类型。
426
+ *
427
+ * @param mode 播放模式,详见 MusicPlayMode 。
428
+ *
429
+ * @returns
430
+ * 0: 方法调用成功。
431
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
432
+ * -2: 参数设置错误,请重新设置参数。
433
+ */
434
+ abstract setPlayMode(mode: MusicPlayMode): number;
435
+
436
+ /**
437
+ * 通过音乐资源编号打开音乐资源。
438
+ *
439
+ * 在调用此方法之前,请确保需要播放的音乐资源已加载完成。你可以调用 isPreloaded 方法来检测音乐资源是否已被预加载,或通过 onPreLoadEvent 回调得知。
440
+ * 调用该方法后会触发 onPlayerSourceStateChanged 回调。在收到报告播放状态为 PlayerStateOpenCompleted 后,你可以调用 play 方法播放媒体文件。 如果你想要打开的音乐资源受数字版权保护,则需要调用此方法打开。对于不受数字版权保护的音乐资源,你可以选择通过调用此方法或 IMediaPlayer 类下的 open 方法来打开。
441
+ *
442
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
443
+ * @param startPos 设置起始播放位置(毫秒),默认值为 0。
444
+ *
445
+ * @returns
446
+ * 0: 方法调用成功。
447
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
448
+ */
449
+ abstract openWithSongCode(songCode: number, startPos?: number): number;
450
+ }
451
+
452
+ /**
453
+ * IMusicContentCenter 接口类提供音乐内容中心的相关方法。
454
+ */
455
+ export abstract class IMusicContentCenter {
456
+ /**
457
+ * 初始化 IMusicContentCenter 。
458
+ *
459
+ * 在调用 IMusicContentCenter 类下的其他方法前,你需要先调用该方法初始化 IMusicContentCenter 。
460
+ *
461
+ * @param configuration IMusicContentCenter 的设置,详见 MusicContentCenterConfiguration 。
462
+ *
463
+ * @returns
464
+ * 0: 方法调用成功。
465
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
466
+ */
467
+ abstract initialize(configuration: MusicContentCenterConfiguration): number;
468
+
469
+ /**
470
+ * 更新 Token。
471
+ *
472
+ * 当你用于鉴权的 Token 快要过期或已过期时,你可以调用该方法来传入新生成的 Token。
473
+ *
474
+ * @param token 新的 Token。
475
+ *
476
+ * @returns
477
+ * 0: 方法调用成功。
478
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
479
+ */
480
+ abstract renewToken(token: string): number;
481
+
482
+ /**
483
+ * 释放音乐内容中心所占用的所有资源。
484
+ *
485
+ * 该方法需要在 IRtcEngine 的 release 方法前调用。
486
+ */
487
+ abstract release(): void;
488
+
489
+ /**
490
+ * 注册音乐内容中心回调事件。
491
+ *
492
+ * @param eventHandler 待注册的回调事件,详见 IMusicContentCenterEventHandler 。
493
+ *
494
+ * @returns
495
+ * 0: 方法调用成功。
496
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
497
+ */
498
+ abstract registerEventHandler(
499
+ eventHandler: IMusicContentCenterEventHandler
500
+ ): number;
501
+
502
+ /**
503
+ * 取消注册音乐内容中心事件回调。
504
+ *
505
+ * @returns
506
+ * 0: 方法调用成功。
507
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
508
+ */
509
+ abstract unregisterEventHandler(): number;
510
+
511
+ /**
512
+ * 创建音乐播放器。
513
+ *
514
+ * 如果你需要播放音乐内容中心的音乐资源,你需要先调用该方法来创建一个音乐播放器。
515
+ *
516
+ * @returns
517
+ * 方法调用成功:返回 IMusicPlayer 对象。
518
+ * 方法调用失败:返回空指针。
519
+ */
520
+ abstract createMusicPlayer(): IMusicPlayer;
521
+
522
+ /**
523
+ * 销毁音乐播放器对象。
524
+ *
525
+ * 当你不再需要使用音乐播放器时,你可以调用该方法来销毁音乐播放器对象。销毁之后如果需要重新使用音乐播放器,需要调用 createMusicPlayer 重新创建一个音乐播放器对象。
526
+ *
527
+ * @param musicPlayer IMusicPlayer 对象。
528
+ *
529
+ * @returns
530
+ * 0: 方法调用成功。
531
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
532
+ */
533
+ abstract destroyMusicPlayer(musicPlayer: IMusicPlayer): number;
534
+
535
+ /**
536
+ * 获取全部音乐榜单。
537
+ *
538
+ * 当你调用该方法后,SDK 会触发 onMusicChartsResult 回调报告音乐榜单的详细信息。
539
+ *
540
+ * @returns
541
+ * 一个 requestId ,为本次请求的唯一标识。
542
+ */
543
+ abstract getMusicCharts(): string;
544
+
545
+ /**
546
+ * 通过音乐榜单的 ID 获取指定榜单的音乐资源列表。
547
+ *
548
+ * 成功调用该方法后,SDK 会触发 onMusicCollectionResult 回调报告榜单中音乐资源列表的详细信息。
549
+ *
550
+ * @param musicChartId 音乐榜单的 ID,可以通过 onMusicChartsResult 回调获取。你也可以通过 RESTful API 来[获取曲库所有歌曲列表](https://doc.shengwang.cn/doc/online-ktv/android/ktv-scenario/api/music-content-center#%E8%8E%B7%E5%8F%96%E6%9B%B2%E5%BA%93%E6%89%80%E6%9C%89%E6%AD%8C%E6%9B%B2%E5%88%97%E8%A1%A8)或[获取增量歌曲列表](https://doc.shengwang.cn/doc/online-ktv/android/ktv-scenario/api/music-content-center#%E8%8E%B7%E5%8F%96%E5%A2%9E%E9%87%8F%E6%AD%8C%E6%9B%B2%E5%88%97%E8%A1%A8)。
551
+ * @param page 当前页面编号,默认从 1 开始。
552
+ * @param pageSize 当前音乐资源列表的总页面数量,最大值为 50。
553
+ * @param jsonOption 扩展 JSON 字段,默认为 null。你可以通过该字段来筛选出你需要的音乐资源,目前支持筛选可打分的音乐资源及音乐资源的副歌片段: pitchType :音乐资源是否支持评分。 1 :可评分的音乐资源。 2 :不可评分的音乐资源。 needHighPart :是否需要合唱片段资源。 YES :需要合唱片段资源。 NO :不需要合唱片段资源。
554
+ *
555
+ * @returns
556
+ * 一个 requestId ,为本次请求的唯一标识。
557
+ */
558
+ abstract getMusicCollectionByMusicChartId(
559
+ musicChartId: number,
560
+ page: number,
561
+ pageSize: number,
562
+ jsonOption?: string
563
+ ): string;
564
+
565
+ /**
566
+ * 搜索音乐资源。
567
+ *
568
+ * 成功调用该方法后,SDK 会触发 onMusicCollectionResult 回调报告检索到的音乐资源列表。
569
+ *
570
+ * @param keyword 搜索关键词,支持歌曲名、歌手搜索。
571
+ * @param page 想要获取的音乐资源列表的目标页编号。
572
+ * @param pageSize 每页所展示的音乐资源的最大数量,最大值为 50。
573
+ * @param jsonOption 扩展 JSON 字段,默认为 null。你可以通过该字段来筛选出你需要的音乐资源,目前支持筛选可打分的音乐资源及音乐资源的副歌片段: pitchType :音乐资源是否支持评分。 1 :可评分的音乐资源。 2 :不可评分的音乐资源。 needHighPart :是否需要合唱片段资源。 YES :需要合唱片段资源。 NO :不需要合唱片段资源。
574
+ * @param requestId 请求 ID。本次请求的唯一标识。
575
+ *
576
+ * @returns
577
+ * 0: 方法调用成功。
578
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
579
+ */
580
+ abstract searchMusic(
581
+ keyWord: string,
582
+ page: number,
583
+ pageSize: number,
584
+ jsonOption?: string
585
+ ): string;
586
+
587
+ /**
588
+ * 预加载音乐资源。
589
+ *
590
+ * 你可以调用该方法预先加载需要播放的音乐资源。成功调用该方法后,SDK 会触发 onPreLoadEvent 回调报告预加载音乐资源的事件。
591
+ * 在调用该方法来预加载音乐资源之前,你需要调用 getMusicCollectionByMusicChartId 或 searchMusic 方法来获取你需要播放的音乐资源,并通过由此触发的 onMusicCollectionResult 回调获取音乐资源的编号( songCode )。 如需销毁 IRtcEngine 对象,请在收到 onPreLoadEvent 回调后,再调用 release 方法。
592
+ *
593
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
594
+ *
595
+ * @returns
596
+ * 一个 requestId ,为本次请求的唯一标识。
597
+ */
598
+ abstract preload(songCode: number): string;
599
+
600
+ /**
601
+ * 删除已缓存的音乐资源。
602
+ *
603
+ * 你可以调用该方法删除某一已缓存的音乐资源,如需删除多个音乐资源,你可以多次调用该方法。
604
+ *
605
+ * @param songCode 待删除的音乐资源的编号。
606
+ *
607
+ * @returns
608
+ * 0: 方法调用成功,音乐资源已删除。
609
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
610
+ */
611
+ abstract removeCache(songCode: number): number;
612
+
613
+ /**
614
+ * 获取已缓存的音乐资源信息。
615
+ *
616
+ * 调用该方法前,你需要预先分配一定大小的内存空间用来存储缓存音乐资源的信息。如果你需要设置可缓存的音乐资源数量,可通过 initialize 的 configuration 来设置。
617
+ * 当你不再需要使用已缓存的音乐资源时,你需要及时释放内存以防止内存泄漏。
618
+ *
619
+ * @returns
620
+ * 方法调用成功时,返回一个包含以下属性的对象: cacheInfo :音乐缓存信息数组。 cacheInfoSize :音乐缓存信息数组的长度。
621
+ */
622
+ abstract getCaches(): { cacheInfo: MusicCacheInfo[]; cacheInfoSize: number };
623
+
624
+ /**
625
+ * 检测音乐资源是否已被预加载。
626
+ *
627
+ * 该方法为同步调用。如需预加载新的音乐资源,可调用 Preload 。
628
+ *
629
+ * @param songCode 音乐资源的编号,用于标识一个音乐资源。
630
+ *
631
+ * @returns
632
+ * 0: 方法调用成功,该音乐资源已被预加载。
633
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
634
+ */
635
+ abstract isPreloaded(songCode: number): boolean;
636
+
637
+ /**
638
+ * 获取音乐资源的歌词下载地址。
639
+ *
640
+ * 成功调用该方法后,SDK 会触发 onLyricResult 回调报告歌词的下载地址。
641
+ *
642
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
643
+ * @param lyricType 歌词类型:
644
+ * 0:xml 格式。
645
+ * 1:lrc 格式。
646
+ *
647
+ * @returns
648
+ * 一个 requestId ,为本次请求的唯一标识。
649
+ */
650
+ abstract getLyric(songCode: number, lyricType?: number): string;
651
+
652
+ /**
653
+ * 获取某一音乐资源的详细信息。
654
+ *
655
+ * 在调用该方法前,你需要先获取到对应的音乐资源的编号。你可以通过调用 getMusicCollectionByMusicChartId 或 searchMusic 方法来获取音乐资源,并通过由此触发的 onMusicCollectionResult 回调获取音乐资源的编号( songCode )。
656
+ * 当你调用该方法后,SDK 会触发 onSongSimpleInfoResult 回调报告音乐资源的详细信息。
657
+ *
658
+ * @param songCode 音乐资源的编号,用于标识音乐资源。
659
+ *
660
+ * @returns
661
+ * 一个 requestId ,为本次请求的唯一标识。
662
+ */
663
+ abstract getSongSimpleInfo(songCode: number): string;
664
+
665
+ /**
666
+ * 创建音乐资源的副歌片段编号。
667
+ *
668
+ * @param songCode 音乐资源编号,用于标识音乐资源。你可以通过调用 getMusicCollectionByMusicChartId 或 searchMusic 方法来获取音乐资源,并通过由此触发的 onMusicCollectionResult 回调获取音乐资源的编号( songCode )。
669
+ * @param jsonOption 声网会根据你在 sceneType 传入的应用场景进行收费。不同的应用场景对应不同的费率,你可以参考 [计费说明](https://doc.shengwang.cn/doc/online-ktv/android/online-ktv-sdk/overview/billing) 查看详细的计费。如果需要切换到不同场景,需要重新调用此方法并传入 sceneType 的值。 扩展 JSON 字段,默认为 null。目前支持传入下列值:
670
+ * sceneType:场景类型。1:直播场景,在线 K 歌房和背景音乐播放;2:直播场景,背景音乐播放;3:(默认)声动语聊场景,在线 K 歌房;4:声动语聊场景,背景音乐播放;5:VR 场景,在线 K 歌房和背景音乐播放。示例: {"sceneType":1} 。
671
+ * highPart:副歌片段的索引,从 onMusicCollectionResult 回调中获取,索引从 0 开始。示例: {"format": {"highpart": 0}} 。
672
+ *
673
+ * @returns
674
+ * 方法调用成功,返回创建的音乐资源内部编号。
675
+ * < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
676
+ */
677
+ abstract getInternalSongCode(songCode: number, jsonOption: string): number;
678
+ }