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,467 @@
1
+ import './extension/AgoraMediaPlayerTypesExtension';
2
+
3
+ /**
4
+ * 播放器的状态。
5
+ */
6
+ export enum MediaPlayerState {
7
+ /**
8
+ * 0: 默认状态。播放器会在你打开媒体文件之前和结束播放之后返回该状态码。
9
+ */
10
+ PlayerStateIdle = 0,
11
+ /**
12
+ * 1: 正在打开媒体文件。
13
+ */
14
+ PlayerStateOpening = 1,
15
+ /**
16
+ * 2: 成功打开媒体文件。
17
+ */
18
+ PlayerStateOpenCompleted = 2,
19
+ /**
20
+ * 3: 正在播放。
21
+ */
22
+ PlayerStatePlaying = 3,
23
+ /**
24
+ * 4: 暂停播放。
25
+ */
26
+ PlayerStatePaused = 4,
27
+ /**
28
+ * 5: 播放完毕。
29
+ */
30
+ PlayerStatePlaybackCompleted = 5,
31
+ /**
32
+ * 6: 循环播放已结束。
33
+ */
34
+ PlayerStatePlaybackAllLoopsCompleted = 6,
35
+ /**
36
+ * 7: 播放已停止。
37
+ */
38
+ PlayerStateStopped = 7,
39
+ /**
40
+ * @ignore
41
+ */
42
+ PlayerStatePausingInternal = 50,
43
+ /**
44
+ * @ignore
45
+ */
46
+ PlayerStateStoppingInternal = 51,
47
+ /**
48
+ * @ignore
49
+ */
50
+ PlayerStateSeekingInternal = 52,
51
+ /**
52
+ * @ignore
53
+ */
54
+ PlayerStateGettingInternal = 53,
55
+ /**
56
+ * @ignore
57
+ */
58
+ PlayerStateNoneInternal = 54,
59
+ /**
60
+ * @ignore
61
+ */
62
+ PlayerStateDoNothingInternal = 55,
63
+ /**
64
+ * @ignore
65
+ */
66
+ PlayerStateSetTrackInternal = 56,
67
+ /**
68
+ * 100: 播放失败。
69
+ */
70
+ PlayerStateFailed = 100,
71
+ }
72
+
73
+ /**
74
+ * 播放器状态改变的原因。
75
+ */
76
+ export enum MediaPlayerReason {
77
+ /**
78
+ * 0: 没有错误。
79
+ */
80
+ PlayerReasonNone = 0,
81
+ /**
82
+ * -1: 不正确的参数。
83
+ */
84
+ PlayerReasonInvalidArguments = -1,
85
+ /**
86
+ * -2: 内部错误。
87
+ */
88
+ PlayerReasonInternal = -2,
89
+ /**
90
+ * -3: 没有 resource。
91
+ */
92
+ PlayerReasonNoResource = -3,
93
+ /**
94
+ * -4: 无效的 resource。
95
+ */
96
+ PlayerReasonInvalidMediaSource = -4,
97
+ /**
98
+ * -5: 未知的媒体流类型。
99
+ */
100
+ PlayerReasonUnknownStreamType = -5,
101
+ /**
102
+ * -6: 对象没有初始化。
103
+ */
104
+ PlayerReasonObjNotInitialized = -6,
105
+ /**
106
+ * -7: 解码器不支持该 codec。
107
+ */
108
+ PlayerReasonCodecNotSupported = -7,
109
+ /**
110
+ * -8: 无效的 renderer。
111
+ */
112
+ PlayerReasonVideoRenderFailed = -8,
113
+ /**
114
+ * -9: 播放器内部状态错误。
115
+ */
116
+ PlayerReasonInvalidState = -9,
117
+ /**
118
+ * -10: 未找到该 URL。
119
+ */
120
+ PlayerReasonUrlNotFound = -10,
121
+ /**
122
+ * -11: 播放器与声网服务器的连接无效。
123
+ */
124
+ PlayerReasonInvalidConnectionState = -11,
125
+ /**
126
+ * -12: 播放缓冲区数据不足。
127
+ */
128
+ PlayerReasonSrcBufferUnderflow = -12,
129
+ /**
130
+ * -13: 播放被异常打断而结束。
131
+ */
132
+ PlayerReasonInterrupted = -13,
133
+ /**
134
+ * -14: SDK 不支持的接口调用。
135
+ */
136
+ PlayerReasonNotSupported = -14,
137
+ /**
138
+ * -15: 媒体资源网络路径的鉴权信息已过期。
139
+ */
140
+ PlayerReasonTokenExpired = -15,
141
+ /**
142
+ * @ignore
143
+ */
144
+ PlayerReasonIpExpired = -16,
145
+ /**
146
+ * -17:未知错误。
147
+ */
148
+ PlayerReasonUnknown = -17,
149
+ }
150
+
151
+ /**
152
+ * 媒体流的类型。
153
+ */
154
+ export enum MediaStreamType {
155
+ /**
156
+ * 0: 未知类型。
157
+ */
158
+ StreamTypeUnknown = 0,
159
+ /**
160
+ * 1: 视频流。
161
+ */
162
+ StreamTypeVideo = 1,
163
+ /**
164
+ * 2: 音频流。
165
+ */
166
+ StreamTypeAudio = 2,
167
+ /**
168
+ * 3: 字幕流。
169
+ */
170
+ StreamTypeSubtitle = 3,
171
+ }
172
+
173
+ /**
174
+ * 播放器事件。
175
+ */
176
+ export enum MediaPlayerEvent {
177
+ /**
178
+ * 0: 开始定位。
179
+ */
180
+ PlayerEventSeekBegin = 0,
181
+ /**
182
+ * 1: 完成定位。
183
+ */
184
+ PlayerEventSeekComplete = 1,
185
+ /**
186
+ * 2: 定位出错。
187
+ */
188
+ PlayerEventSeekError = 2,
189
+ /**
190
+ * 5: 当前音轨发生改变。
191
+ */
192
+ PlayerEventAudioTrackChanged = 5,
193
+ /**
194
+ * 6: 当前缓冲的数据不足以支持播放。
195
+ */
196
+ PlayerEventBufferLow = 6,
197
+ /**
198
+ * 7: 当前缓冲的数据刚好能支持播放。
199
+ */
200
+ PlayerEventBufferRecover = 7,
201
+ /**
202
+ * 8: 音频或视频出现卡顿。
203
+ */
204
+ PlayerEventFreezeStart = 8,
205
+ /**
206
+ * 9: 音频和视频均停止卡顿。
207
+ */
208
+ PlayerEventFreezeStop = 9,
209
+ /**
210
+ * 10: 开始切换媒体资源。
211
+ */
212
+ PlayerEventSwitchBegin = 10,
213
+ /**
214
+ * 11: 媒体资源切换完成。
215
+ */
216
+ PlayerEventSwitchComplete = 11,
217
+ /**
218
+ * 12: 媒体资源切换出错。
219
+ */
220
+ PlayerEventSwitchError = 12,
221
+ /**
222
+ * 13: 视频首帧出图。
223
+ */
224
+ PlayerEventFirstDisplayed = 13,
225
+ /**
226
+ * 14:达到可缓存文件的数量上限。
227
+ */
228
+ PlayerEventReachCacheFileMaxCount = 14,
229
+ /**
230
+ * 15:达到可缓存文件的大小上限。
231
+ */
232
+ PlayerEventReachCacheFileMaxSize = 15,
233
+ /**
234
+ * @ignore
235
+ */
236
+ PlayerEventTryOpenStart = 16,
237
+ /**
238
+ * @ignore
239
+ */
240
+ PlayerEventTryOpenSucceed = 17,
241
+ /**
242
+ * @ignore
243
+ */
244
+ PlayerEventTryOpenFailed = 18,
245
+ /**
246
+ * @ignore
247
+ */
248
+ PlayerEventHttpRedirect = 19,
249
+ }
250
+
251
+ /**
252
+ * 预加载媒体资源时发生的事件。
253
+ */
254
+ export enum PlayerPreloadEvent {
255
+ /**
256
+ * 0: 开始预加载媒体资源。
257
+ */
258
+ PlayerPreloadEventBegin = 0,
259
+ /**
260
+ * 1: 预加载媒体资源完成。
261
+ */
262
+ PlayerPreloadEventComplete = 1,
263
+ /**
264
+ * 2: 预加载媒体资源出错。
265
+ */
266
+ PlayerPreloadEventError = 2,
267
+ }
268
+
269
+ /**
270
+ * 播放器媒体流的所有信息。
271
+ */
272
+ export class PlayerStreamInfo {
273
+ /**
274
+ * 媒体流的索引值。
275
+ */
276
+ streamIndex?: number;
277
+ /**
278
+ * 此条媒体流的类型。详见 MediaStreamType 。
279
+ */
280
+ streamType?: MediaStreamType;
281
+ /**
282
+ * 此条媒体流的编码规格。
283
+ */
284
+ codecName?: string;
285
+ /**
286
+ * 此条媒体流的语言。
287
+ */
288
+ language?: string;
289
+ /**
290
+ * 该参数仅对视频流生效,表示视频帧率 (fps)。
291
+ */
292
+ videoFrameRate?: number;
293
+ /**
294
+ * 该参数仅对视频流生效,表示视频码率 (bps)。
295
+ */
296
+ videoBitRate?: number;
297
+ /**
298
+ * 该参数仅对视频流生效,表示视频宽度 (px)。
299
+ */
300
+ videoWidth?: number;
301
+ /**
302
+ * 该参数仅对视频流生效,表示视频高度 (px)。
303
+ */
304
+ videoHeight?: number;
305
+ /**
306
+ * 该参数仅对视频流生效,表示旋转角度。
307
+ */
308
+ videoRotation?: number;
309
+ /**
310
+ * 该参数仅对音频流生效,表示音频采样率 (Hz)。
311
+ */
312
+ audioSampleRate?: number;
313
+ /**
314
+ * 该参数仅对音频流生效,表示声道数。
315
+ */
316
+ audioChannels?: number;
317
+ /**
318
+ * 该参数仅对音频流生效,表示每个音频采样点的位数 (bit)。
319
+ */
320
+ audioBitsPerSample?: number;
321
+ /**
322
+ * 媒体流的时长(毫秒)。
323
+ */
324
+ duration?: number;
325
+ }
326
+
327
+ /**
328
+ * 媒体资源播放时的视频码率相关信息。
329
+ */
330
+ export class SrcInfo {
331
+ /**
332
+ * 媒体资源播放时的视频码率(Kbps)。
333
+ */
334
+ bitrateInKbps?: number;
335
+ /**
336
+ * 媒体资源的名字。
337
+ */
338
+ name?: string;
339
+ }
340
+
341
+ /**
342
+ * 媒体附属信息数据类型。
343
+ */
344
+ export enum MediaPlayerMetadataType {
345
+ /**
346
+ * 0: 未知类型。
347
+ */
348
+ PlayerMetadataTypeUnknown = 0,
349
+ /**
350
+ * 1: SEI (补充增强信息)类型。
351
+ */
352
+ PlayerMetadataTypeSei = 1,
353
+ }
354
+
355
+ /**
356
+ * 缓存文件的统计数据。
357
+ */
358
+ export class CacheStatistics {
359
+ /**
360
+ * 本次播放的媒体文件的大小,单位为字节。
361
+ */
362
+ fileSize?: number;
363
+ /**
364
+ * 本次播放的媒体文件已缓存的数据大小,单位为字节。
365
+ */
366
+ cacheSize?: number;
367
+ /**
368
+ * 本次播放已下载的媒体文件大小,单位为字节。
369
+ */
370
+ downloadSize?: number;
371
+ }
372
+
373
+ /**
374
+ * 当前播放的媒体资源的相关信息。
375
+ */
376
+ export class PlayerPlaybackStats {
377
+ /**
378
+ * 视频帧率,单位为 fps。
379
+ */
380
+ videoFps?: number;
381
+ /**
382
+ * 视频码率,单位为 kbps。
383
+ */
384
+ videoBitrateInKbps?: number;
385
+ /**
386
+ * 音频码率,单位为 kbps。
387
+ */
388
+ audioBitrateInKbps?: number;
389
+ /**
390
+ * 媒体流的总码率,单位为 kbps。
391
+ */
392
+ totalBitrateInKbps?: number;
393
+ }
394
+
395
+ /**
396
+ * 媒体播放器相关信息。
397
+ */
398
+ export class PlayerUpdatedInfo {
399
+ /**
400
+ * @ignore
401
+ */
402
+ internalPlayerUuid?: string;
403
+ /**
404
+ * 设备 ID,标识一个设备。
405
+ */
406
+ deviceId?: string;
407
+ /**
408
+ * 视频高度 (pixel)。
409
+ */
410
+ videoHeight?: number;
411
+ /**
412
+ * 视频宽度 (pixel)。
413
+ */
414
+ videoWidth?: number;
415
+ /**
416
+ * 音频采样率 (Hz)。
417
+ */
418
+ audioSampleRate?: number;
419
+ /**
420
+ * 声道数。
421
+ */
422
+ audioChannels?: number;
423
+ /**
424
+ * 每个音频采样点的位数 (bit)。
425
+ */
426
+ audioBitsPerSample?: number;
427
+ }
428
+
429
+ /**
430
+ * 需播放的媒体文件的相关信息及播放设置。
431
+ */
432
+ export class MediaSource {
433
+ /**
434
+ * 需要播放的媒体资源的 URL。
435
+ */
436
+ url?: string;
437
+ /**
438
+ * 媒体文件的 URI(Uniform Resource Identifier),可用于标识媒体文件。
439
+ */
440
+ uri?: string;
441
+ /**
442
+ * 设置起始播放位置 (毫秒),默认值为 0。
443
+ */
444
+ startPos?: number;
445
+ /**
446
+ * 如果你设置关闭自动播放,打开媒体文件后,请调用 play 方法来播放媒体文件。 打开媒体文件后,是否开启自动播放: true :(默认)开启自动播放。 false :关闭自动播放。
447
+ */
448
+ autoPlay?: boolean;
449
+ /**
450
+ * SDK 目前仅支持缓存点播流,但不支持缓存通过 HLS 协议传输的点播流。
451
+ * 缓存前,请向 uri 传值,否则播放器会以媒体文件的 url 作为缓存索引。
452
+ * 开启实时缓存后,播放器会预先缓存当前正在播放的媒体文件的部分数据到本地,当你下次播放该文件时播放器会直接从缓存中加载数据,可节省网络流量。当前缓存的媒体文件的相关统计数据会在媒体文件开始播放后每秒更新一次,详见 CacheStatistics 。 此次播放是否开启实时缓存功能: true :开启实时缓存。 false :(默认)关闭实时缓存。
453
+ */
454
+ enableCache?: boolean;
455
+ /**
456
+ * 此次播放是否允许选择不同音轨: true :允许选择不同音轨。 false :(默认)不允许选择不同音轨。 如果你在本地播放和发布音频至远端时,需要设置不同的音轨,你需要将该参数设为 true ,然后再调用 selectMultiAudioTrack 方法来设置音轨。
457
+ */
458
+ enableMultiAudioTrack?: boolean;
459
+ /**
460
+ * 如果你需要打开的媒体资源为声网融合 CDN 分发的直播流或点播流,请向 url 传入直播或点播流的 URL 并将 isAgoraSource 设置为 true ,否则无需设置 isAgoraSource 。 打开的媒体资源是否为通过声网融合 CDN 分发的直播或点播流: true :打开的媒体资源是声网融合 CDN 分发的直播或点播流。 false :(默认)打开的媒体资源不是声网融合 CDN 分发的直播或点播流。
461
+ */
462
+ isAgoraSource?: boolean;
463
+ /**
464
+ * 仅当打开的媒体资源为直播流时,将 isLiveSource 设置为 true 后才可加快媒体资源的打开速度。 打开的媒体资源是否为直播流: true :直播流。 false :(默认)非直播流。 如果你打开的媒体资源为直播流,建议你将该参数设置为 true ,可加快打开直播流的速度。
465
+ */
466
+ isLiveSource?: boolean;
467
+ }
@@ -0,0 +1,72 @@
1
+ import type { ViewProps } from 'react-native';
2
+
3
+ import { VideoCanvas } from './AgoraBase';
4
+ import { RtcConnection } from './IAgoraRtcEngineEx';
5
+ import IAgoraRtcRenderView from './internal/IAgoraRtcRenderView';
6
+ import AgoraRtcSurfaceViewNativeComponent from './specs/AgoraRtcSurfaceViewNativeComponent';
7
+ import AgoraRtcTextureViewNativeComponent from './specs/AgoraRtcTextureViewNativeComponent';
8
+
9
+ /**
10
+ * RtcSurfaceView 和 RtcTextureView 的通用属性。
11
+ */
12
+ export interface RtcRendererViewProps extends ViewProps {
13
+ /**
14
+ * 本地视频显示属性。详见 VideoCanvas 。
15
+ */
16
+ canvas: VideoCanvas;
17
+
18
+ /**
19
+ * Connection 信息。详见 RtcConnection 。
20
+ */
21
+ connection?: RtcConnection;
22
+ }
23
+
24
+ /**
25
+ * RtcSurfaceView 的属性。
26
+ */
27
+ export interface RtcSurfaceViewProps extends RtcRendererViewProps {
28
+ /**
29
+ * 是否将 RtcSurfaceView 视图的表层置于窗口上层: true : 置于窗口上层。 false : 不置于窗口上层。
30
+ */
31
+ zOrderOnTop?: boolean;
32
+
33
+ /**
34
+ * 是否将 RtcSurfaceView 视图的表层置于窗口中另一个 RtcSurfaceView 的上层(但依然位于窗口的下层): true : 置于窗口中另一个 RtcSurfaceView 的上层。 false : 不置于窗口上层。
35
+ */
36
+ zOrderMediaOverlay?: boolean;
37
+ }
38
+
39
+ /**
40
+ * RtcSurfaceView 类。
41
+ *
42
+ * 该类用于渲染:
43
+ * Android: 对应 Android 系统原生的 SurfaceView。
44
+ * iOS: 对应 iOS 系统原生的 UIView。 为保证渲染出图,调用该组件前,根据当前是否加入频道进行对应操作:
45
+ * 不加入频道时:先调用 startPreview ,然后调用 enableVideo 。
46
+ * 加入频道时:先开启采集,然后调用 enableVideo 。 相关参考: RtcSurfaceViewProps RtcRendererViewProps
47
+ */
48
+ export class RtcSurfaceView extends IAgoraRtcRenderView<RtcSurfaceViewProps> {
49
+ /**
50
+ * @ignore
51
+ */
52
+ get view() {
53
+ return AgoraRtcSurfaceViewNativeComponent;
54
+ }
55
+ }
56
+
57
+ /**
58
+ * RtcTextureView 类。
59
+ *
60
+ * 该类用于渲染。对应 Android 系统原生的 TextureView。
61
+ * 为保证渲染出图,调用该组件前,根据当前是否加入频道进行对应操作:
62
+ * 不加入频道时:先调用 startPreview ,然后调用 enableVideo 。
63
+ * 加入频道时:先开启采集,然后调用 enableVideo 。 相关参考: RtcRendererViewProps RtcTextureView 类仅适用于 Android 平台,不适用于 iOS 平台。
64
+ */
65
+ export class RtcTextureView extends IAgoraRtcRenderView<RtcRendererViewProps> {
66
+ /**
67
+ * @ignore
68
+ */
69
+ get view() {
70
+ return AgoraRtcTextureViewNativeComponent;
71
+ }
72
+ }
@@ -0,0 +1,73 @@
1
+ import './extension/IAgoraH265TranscoderExtension';
2
+
3
+ /* enum_H265TranscodeResult */
4
+ export enum H265TranscodeResult {
5
+ /* enum_H265TranscodeResult_H265TranscodeResultUnknown */
6
+ H265TranscodeResultUnknown = -1,
7
+ /* enum_H265TranscodeResult_H265TranscodeResultSuccess */
8
+ H265TranscodeResultSuccess = 0,
9
+ /* enum_H265TranscodeResult_H265TranscodeResultRequestInvalid */
10
+ H265TranscodeResultRequestInvalid = 1,
11
+ /* enum_H265TranscodeResult_H265TranscodeResultUnauthorized */
12
+ H265TranscodeResultUnauthorized = 2,
13
+ /* enum_H265TranscodeResult_H265TranscodeResultTokenExpired */
14
+ H265TranscodeResultTokenExpired = 3,
15
+ /* enum_H265TranscodeResult_H265TranscodeResultForbidden */
16
+ H265TranscodeResultForbidden = 4,
17
+ /* enum_H265TranscodeResult_H265TranscodeResultNotFound */
18
+ H265TranscodeResultNotFound = 5,
19
+ /* enum_H265TranscodeResult_H265TranscodeResultConflicted */
20
+ H265TranscodeResultConflicted = 6,
21
+ /* enum_H265TranscodeResult_H265TranscodeResultNotSupported */
22
+ H265TranscodeResultNotSupported = 7,
23
+ /* enum_H265TranscodeResult_H265TranscodeResultTooOften */
24
+ H265TranscodeResultTooOften = 8,
25
+ /* enum_H265TranscodeResult_H265TranscodeResultServerInternalError */
26
+ H265TranscodeResultServerInternalError = 9,
27
+ /* enum_H265TranscodeResult_H265TranscodeResultServiceUnavailable */
28
+ H265TranscodeResultServiceUnavailable = 10,
29
+ }
30
+
31
+ /* class_IH265TranscoderObserver */
32
+ export interface IH265TranscoderObserver {
33
+ /* callback_IH265TranscoderObserver_onEnableTranscode */
34
+
35
+ onEnableTranscode?(result: H265TranscodeResult): void;
36
+ /* callback_IH265TranscoderObserver_onQueryChannel */
37
+
38
+ onQueryChannel?(
39
+ result: H265TranscodeResult,
40
+ originChannel: string,
41
+ transcodeChannel: string
42
+ ): void;
43
+ /* callback_IH265TranscoderObserver_onTriggerTranscode */
44
+
45
+ onTriggerTranscode?(result: H265TranscodeResult): void;
46
+ }
47
+
48
+ /* class_IH265Transcoder */
49
+ export abstract class IH265Transcoder {
50
+ /* api_IH265Transcoder_enableTranscode */
51
+
52
+ abstract enableTranscode(token: string, channel: string, uid: number): number;
53
+ /* api_IH265Transcoder_queryChannel */
54
+
55
+ abstract queryChannel(token: string, channel: string, uid: number): number;
56
+ /* api_IH265Transcoder_triggerTranscode */
57
+
58
+ abstract triggerTranscode(
59
+ token: string,
60
+ channel: string,
61
+ uid: number
62
+ ): number;
63
+ /* api_IH265Transcoder_registerTranscoderObserver */
64
+
65
+ abstract registerTranscoderObserver(
66
+ observer: IH265TranscoderObserver
67
+ ): number;
68
+ /* api_IH265Transcoder_unregisterTranscoderObserver */
69
+
70
+ abstract unregisterTranscoderObserver(
71
+ observer: IH265TranscoderObserver
72
+ ): number;
73
+ }
@@ -0,0 +1,91 @@
1
+ import './extension/IAgoraLogExtension';
2
+
3
+ /**
4
+ * 日志输出等级。
5
+ */
6
+ export enum LogLevel {
7
+ /**
8
+ * 0: 不输出任何日志。
9
+ */
10
+ LogLevelNone = 0x0000,
11
+ /**
12
+ * 0x0001:(默认)输出 FATAL 、 ERROR 、 WARN 、 INFO 级别的日志。建议你将日志级别设为该等级。
13
+ */
14
+ LogLevelInfo = 0x0001,
15
+ /**
16
+ * 0x0002: 仅输出 FATAL 、 ERROR 、 WARN 级别的日志。
17
+ */
18
+ LogLevelWarn = 0x0002,
19
+ /**
20
+ * 0x0004: 仅输出 FATAL 、 ERROR 级别的日志。
21
+ */
22
+ LogLevelError = 0x0004,
23
+ /**
24
+ * 0x0008: 仅输出 FATAL 级别的日志。
25
+ */
26
+ LogLevelFatal = 0x0008,
27
+ /**
28
+ * @ignore
29
+ */
30
+ LogLevelApiCall = 0x0010,
31
+ /**
32
+ * @ignore
33
+ */
34
+ LogLevelDebug = 0x0020,
35
+ }
36
+
37
+ /**
38
+ * 日志过滤等级。
39
+ */
40
+ export enum LogFilterType {
41
+ /**
42
+ * 0: 不输出日志信息。
43
+ */
44
+ LogFilterOff = 0,
45
+ /**
46
+ * 0x080f: 输出所有 API 日志信息。如果你想获取最完整的日志,可以将日志级别设为该等级。
47
+ */
48
+ LogFilterDebug = 0x080f,
49
+ /**
50
+ * 0x000f: 输出 LogFilterCritical 、 LogFilterError 、 LogFilterWarn 和 LogFilterInfo 级别的日志信息。建议你将日志级别设为该等级。
51
+ */
52
+ LogFilterInfo = 0x000f,
53
+ /**
54
+ * 0x000e: 输出 LogFilterCritical 、 LogFilterError 和 LogFilterWarn 级别的日志信息。
55
+ */
56
+ LogFilterWarn = 0x000e,
57
+ /**
58
+ * 0x000c: 输出 LogFilterCritical 和 LogFilterError 级别的日志信息。
59
+ */
60
+ LogFilterError = 0x000c,
61
+ /**
62
+ * 0x0008: 输出 LogFilterCritical 级别的日志信息。
63
+ */
64
+ LogFilterCritical = 0x0008,
65
+ /**
66
+ * @ignore
67
+ */
68
+ LogFilterMask = 0x80f,
69
+ }
70
+
71
+ /**
72
+ * SDK 日志文件的配置。
73
+ */
74
+ export class LogConfig {
75
+ /**
76
+ * 日志文件的完整路径。声网建议你使用默认的日志路径。如果你需要修改默认的日志路径,请确保你指定的路径存在且可写。
77
+ * 默认路径为:
78
+ * Android:/storage/emulated/0/Android/data/<packagename>/files/agorasdk.log。
79
+ * iOS:App Sandbox/Library/caches/agorasdk.log。
80
+ */
81
+ filePath?: string;
82
+ /**
83
+ * 单个 agorasdk.log 日志文件的大小,单位为 KB,取值范围为 [128,20480],默认值为 2,048 KB。如果你将 fileSizeInKByte 设为小于 128 KB,SDK 会自动调整到 128 KB;如果你将 fileSizeInKByte 设为大于 20,480 KB,SDK 会自动调整到 20,480 KB。
84
+ */
85
+ fileSizeInKB?: number;
86
+ /**
87
+ * SDK 的日志输出等级,详见 LogLevel 。
88
+ * 例如,如果你选择 WARN 级别,就可以看到在 FATAL、ERROR 和 WARN 级别上的所有日志信息。
89
+ */
90
+ level?: LogLevel;
91
+ }