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,1057 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VideoSourceType = exports.VideoPixelFormat = exports.VideoModulePosition = exports.VideoFrameProcessMode = exports.VideoFrame = exports.VideoBufferType = exports.UserAudioSpectrumInfo = exports.TransferID = exports.SnapshotConfig = exports.RenderModeType = exports.RecorderState = exports.RecorderReasonCode = exports.RecorderInfo = exports.RawAudioFrameOpModeType = exports.RangeID = exports.PrimaryID = exports.PacketOptions = exports.MetaInfoKey = exports.MediaSourceType = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.MediaRecorderConfiguration = exports.MediaPlayerSourceType = exports.MatrixID = exports.IVideoFrameMetaInfo = exports.Hdr10MetadataInfo = exports.ExternalVideoSourceType = exports.ExternalVideoFrame = exports.ExtensionContext = exports.EglContextType = exports.ContentInspectType = exports.ContentInspectResult = exports.ContentInspectModule = exports.ContentInspectConfig = exports.ColorSpace = exports.CameraVideoSourceType = exports.BytesPerSample = exports.AudioSpectrumData = exports.AudioSourceType = exports.AudioRoute = exports.AudioPcmFrame = exports.AudioParams = exports.AudioParameters = exports.AudioFrameType = exports.AudioFramePosition = exports.AudioFrame = exports.AudioEncodedFrameInfo = exports.AudioDualMonoMode = exports.AlphaStitchMode = void 0;
7
+ require("./extension/AgoraMediaBaseExtension");
8
+ /**
9
+ * 插件上下文信息。
10
+ */
11
+ class ExtensionContext {}
12
+
13
+ /**
14
+ * 视频源的类型。
15
+ */
16
+ exports.ExtensionContext = ExtensionContext;
17
+ let VideoSourceType = exports.VideoSourceType = /*#__PURE__*/function (VideoSourceType) {
18
+ /**
19
+ * 0:(默认)视频源为第一个摄像头。
20
+ */
21
+ VideoSourceType[VideoSourceType["VideoSourceCameraPrimary"] = 0] = "VideoSourceCameraPrimary";
22
+ /**
23
+ * 0:(默认)视频源为第一个摄像头。
24
+ */
25
+ VideoSourceType[VideoSourceType["VideoSourceCamera"] = 0] = "VideoSourceCamera";
26
+ /**
27
+ * 1:视频源为第二个摄像头。
28
+ */
29
+ VideoSourceType[VideoSourceType["VideoSourceCameraSecondary"] = 1] = "VideoSourceCameraSecondary";
30
+ /**
31
+ * 2:视频源为第一个屏幕。
32
+ */
33
+ VideoSourceType[VideoSourceType["VideoSourceScreenPrimary"] = 2] = "VideoSourceScreenPrimary";
34
+ /**
35
+ * 2:视频源为第一个屏幕。
36
+ */
37
+ VideoSourceType[VideoSourceType["VideoSourceScreen"] = 2] = "VideoSourceScreen";
38
+ /**
39
+ * 3:视频源为第二个屏幕。
40
+ */
41
+ VideoSourceType[VideoSourceType["VideoSourceScreenSecondary"] = 3] = "VideoSourceScreenSecondary";
42
+ /**
43
+ * 4:自定义的视频源。
44
+ */
45
+ VideoSourceType[VideoSourceType["VideoSourceCustom"] = 4] = "VideoSourceCustom";
46
+ /**
47
+ * 5:视频源为媒体播放器。
48
+ */
49
+ VideoSourceType[VideoSourceType["VideoSourceMediaPlayer"] = 5] = "VideoSourceMediaPlayer";
50
+ /**
51
+ * 6:视频源为 PNG 图片。
52
+ */
53
+ VideoSourceType[VideoSourceType["VideoSourceRtcImagePng"] = 6] = "VideoSourceRtcImagePng";
54
+ /**
55
+ * 7:视频源为 JPEG 图片。
56
+ */
57
+ VideoSourceType[VideoSourceType["VideoSourceRtcImageJpeg"] = 7] = "VideoSourceRtcImageJpeg";
58
+ /**
59
+ * 8:视频源为 GIF 图片。
60
+ */
61
+ VideoSourceType[VideoSourceType["VideoSourceRtcImageGif"] = 8] = "VideoSourceRtcImageGif";
62
+ /**
63
+ * 9:视频源为网络获取的远端视频。
64
+ */
65
+ VideoSourceType[VideoSourceType["VideoSourceRemote"] = 9] = "VideoSourceRemote";
66
+ /**
67
+ * 10:转码后的视频源。
68
+ */
69
+ VideoSourceType[VideoSourceType["VideoSourceTranscoded"] = 10] = "VideoSourceTranscoded";
70
+ /**
71
+ * 11:(仅适用于 Android)视频源为第三个摄像头。
72
+ */
73
+ VideoSourceType[VideoSourceType["VideoSourceCameraThird"] = 11] = "VideoSourceCameraThird";
74
+ /**
75
+ * 12:(仅适用于 Android)视频源为第四个摄像头。
76
+ */
77
+ VideoSourceType[VideoSourceType["VideoSourceCameraFourth"] = 12] = "VideoSourceCameraFourth";
78
+ /**
79
+ * @ignore
80
+ */
81
+ VideoSourceType[VideoSourceType["VideoSourceScreenThird"] = 13] = "VideoSourceScreenThird";
82
+ /**
83
+ * @ignore
84
+ */
85
+ VideoSourceType[VideoSourceType["VideoSourceScreenFourth"] = 14] = "VideoSourceScreenFourth";
86
+ /**
87
+ * 15:视频源为语音驱动插件处理后的视频。
88
+ */
89
+ VideoSourceType[VideoSourceType["VideoSourceSpeechDriven"] = 15] = "VideoSourceSpeechDriven";
90
+ /**
91
+ * 100:未知的视频源。
92
+ */
93
+ VideoSourceType[VideoSourceType["VideoSourceUnknown"] = 100] = "VideoSourceUnknown";
94
+ return VideoSourceType;
95
+ }({});
96
+ /**
97
+ * 音频源类型。
98
+ */
99
+ let AudioSourceType = exports.AudioSourceType = /*#__PURE__*/function (AudioSourceType) {
100
+ /**
101
+ * 0:(默认)麦克风。
102
+ */
103
+ AudioSourceType[AudioSourceType["AudioSourceMicrophone"] = 0] = "AudioSourceMicrophone";
104
+ /**
105
+ * 1:自定义采集到的音频流。
106
+ */
107
+ AudioSourceType[AudioSourceType["AudioSourceCustom"] = 1] = "AudioSourceCustom";
108
+ /**
109
+ * 2:媒体播放器。
110
+ */
111
+ AudioSourceType[AudioSourceType["AudioSourceMediaPlayer"] = 2] = "AudioSourceMediaPlayer";
112
+ /**
113
+ * 3:在屏幕共享时采集的系统音频流。
114
+ */
115
+ AudioSourceType[AudioSourceType["AudioSourceLoopbackRecording"] = 3] = "AudioSourceLoopbackRecording";
116
+ /**
117
+ * @ignore
118
+ */
119
+ AudioSourceType[AudioSourceType["AudioSourceMixedStream"] = 4] = "AudioSourceMixedStream";
120
+ /**
121
+ * 5:指定远端用户的音频流。
122
+ */
123
+ AudioSourceType[AudioSourceType["AudioSourceRemoteUser"] = 5] = "AudioSourceRemoteUser";
124
+ /**
125
+ * 6:当前频道内所有音频流的合流。
126
+ */
127
+ AudioSourceType[AudioSourceType["AudioSourceRemoteChannel"] = 6] = "AudioSourceRemoteChannel";
128
+ /**
129
+ * 100:未知的音频源。
130
+ */
131
+ AudioSourceType[AudioSourceType["AudioSourceUnknown"] = 100] = "AudioSourceUnknown";
132
+ return AudioSourceType;
133
+ }({});
134
+ /**
135
+ * 音频路由的类型。
136
+ */
137
+ let AudioRoute = exports.AudioRoute = /*#__PURE__*/function (AudioRoute) {
138
+ /**
139
+ * -1: 使用默认的音频路由。
140
+ */
141
+ AudioRoute[AudioRoute["RouteDefault"] = -1] = "RouteDefault";
142
+ /**
143
+ * 0: 音频路由为带麦克风的耳机。
144
+ */
145
+ AudioRoute[AudioRoute["RouteHeadset"] = 0] = "RouteHeadset";
146
+ /**
147
+ * 1: 音频路由为听筒。
148
+ */
149
+ AudioRoute[AudioRoute["RouteEarpiece"] = 1] = "RouteEarpiece";
150
+ /**
151
+ * 2: 音频路由为不带麦克风的耳机。
152
+ */
153
+ AudioRoute[AudioRoute["RouteHeadsetnomic"] = 2] = "RouteHeadsetnomic";
154
+ /**
155
+ * 3: 音频路由为设备自带的扬声器。
156
+ */
157
+ AudioRoute[AudioRoute["RouteSpeakerphone"] = 3] = "RouteSpeakerphone";
158
+ /**
159
+ * 4: 音频路由为外接的扬声器。(仅适用于 iOS)
160
+ */
161
+ AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
162
+ /**
163
+ * 5: 音频路由为使用 HFP 协议的蓝牙设备。
164
+ */
165
+ AudioRoute[AudioRoute["RouteBluetoothDeviceHfp"] = 5] = "RouteBluetoothDeviceHfp";
166
+ /**
167
+ * @ignore
168
+ */
169
+ AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
170
+ /**
171
+ * @ignore
172
+ */
173
+ AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
174
+ /**
175
+ * @ignore
176
+ */
177
+ AudioRoute[AudioRoute["RouteDisplayport"] = 8] = "RouteDisplayport";
178
+ /**
179
+ * @ignore
180
+ */
181
+ AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
182
+ /**
183
+ * 10: 音频路由为使用 A2DP 协议的蓝牙设备。
184
+ */
185
+ AudioRoute[AudioRoute["RouteBluetoothDeviceA2dp"] = 10] = "RouteBluetoothDeviceA2dp";
186
+ return AudioRoute;
187
+ }({});
188
+ /**
189
+ * @ignore
190
+ */
191
+ let BytesPerSample = exports.BytesPerSample = /*#__PURE__*/function (BytesPerSample) {
192
+ /**
193
+ * @ignore
194
+ */
195
+ BytesPerSample[BytesPerSample["TwoBytesPerSample"] = 2] = "TwoBytesPerSample";
196
+ return BytesPerSample;
197
+ }({});
198
+ /**
199
+ * @ignore
200
+ */
201
+ class AudioParameters {}
202
+
203
+ /**
204
+ * 音频数据的使用模式。
205
+ */
206
+ exports.AudioParameters = AudioParameters;
207
+ let RawAudioFrameOpModeType = exports.RawAudioFrameOpModeType = /*#__PURE__*/function (RawAudioFrameOpModeType) {
208
+ /**
209
+ * 0: (默认) 只读模式,例如: 若用户通过 SDK 采集数据,自己进行旁路推流,则可以选择该模式。
210
+ */
211
+ RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadOnly"] = 0] = "RawAudioFrameOpModeReadOnly";
212
+ /**
213
+ * 2: 读写模式, 例如: 若用户自己有音效处理模块,且想要根据实际需要对数据进行前处理(例如变声),则可以选择该模式。
214
+ */
215
+ RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadWrite"] = 2] = "RawAudioFrameOpModeReadWrite";
216
+ return RawAudioFrameOpModeType;
217
+ }({});
218
+ /**
219
+ * 媒体源类型。
220
+ */
221
+ let MediaSourceType = exports.MediaSourceType = /*#__PURE__*/function (MediaSourceType) {
222
+ /**
223
+ * 0: 音频播放设备。
224
+ */
225
+ MediaSourceType[MediaSourceType["AudioPlayoutSource"] = 0] = "AudioPlayoutSource";
226
+ /**
227
+ * 1: 音频采集设备。
228
+ */
229
+ MediaSourceType[MediaSourceType["AudioRecordingSource"] = 1] = "AudioRecordingSource";
230
+ /**
231
+ * 2: 第一个摄像头
232
+ */
233
+ MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
234
+ /**
235
+ * 3: 第二个摄像头。
236
+ */
237
+ MediaSourceType[MediaSourceType["SecondaryCameraSource"] = 3] = "SecondaryCameraSource";
238
+ /**
239
+ * @ignore
240
+ */
241
+ MediaSourceType[MediaSourceType["PrimaryScreenSource"] = 4] = "PrimaryScreenSource";
242
+ /**
243
+ * @ignore
244
+ */
245
+ MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
246
+ /**
247
+ * 6: 自定义采集的视频源。
248
+ */
249
+ MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
250
+ /**
251
+ * @ignore
252
+ */
253
+ MediaSourceType[MediaSourceType["MediaPlayerSource"] = 7] = "MediaPlayerSource";
254
+ /**
255
+ * @ignore
256
+ */
257
+ MediaSourceType[MediaSourceType["RtcImagePngSource"] = 8] = "RtcImagePngSource";
258
+ /**
259
+ * @ignore
260
+ */
261
+ MediaSourceType[MediaSourceType["RtcImageJpegSource"] = 9] = "RtcImageJpegSource";
262
+ /**
263
+ * @ignore
264
+ */
265
+ MediaSourceType[MediaSourceType["RtcImageGifSource"] = 10] = "RtcImageGifSource";
266
+ /**
267
+ * @ignore
268
+ */
269
+ MediaSourceType[MediaSourceType["RemoteVideoSource"] = 11] = "RemoteVideoSource";
270
+ /**
271
+ * @ignore
272
+ */
273
+ MediaSourceType[MediaSourceType["TranscodedVideoSource"] = 12] = "TranscodedVideoSource";
274
+ /**
275
+ * 13: 视频源为语音驱动插件处理后的视频。
276
+ */
277
+ MediaSourceType[MediaSourceType["SpeechDrivenVideoSource"] = 13] = "SpeechDrivenVideoSource";
278
+ /**
279
+ * 100: 未知媒体源。
280
+ */
281
+ MediaSourceType[MediaSourceType["UnknownMediaSource"] = 100] = "UnknownMediaSource";
282
+ return MediaSourceType;
283
+ }({});
284
+ /**
285
+ * @ignore
286
+ */
287
+ class PacketOptions {}
288
+
289
+ /**
290
+ * @ignore
291
+ */
292
+ exports.PacketOptions = PacketOptions;
293
+ class AudioEncodedFrameInfo {}
294
+
295
+ /**
296
+ * 外部 PCM 格式音频帧的信息。
297
+ */
298
+ exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
299
+ class AudioPcmFrame {}
300
+
301
+ /**
302
+ * 声道模式。
303
+ */
304
+ exports.AudioPcmFrame = AudioPcmFrame;
305
+ let AudioDualMonoMode = exports.AudioDualMonoMode = /*#__PURE__*/function (AudioDualMonoMode) {
306
+ /**
307
+ * 0: 原始模式。
308
+ */
309
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoStereo"] = 0] = "AudioDualMonoStereo";
310
+ /**
311
+ * 1: 左声道模式。该模式用左声道的音频替换右声道的音频,即用户只能听到左声道的音频。
312
+ */
313
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoL"] = 1] = "AudioDualMonoL";
314
+ /**
315
+ * 2: 右声道模式。该模式用右声道的音频替换左声道的音频,即用户只能听到右声道的音频。
316
+ */
317
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoR"] = 2] = "AudioDualMonoR";
318
+ /**
319
+ * 3: 混合模式。该模式将左右声道的数据叠加,即用户能同时听到左声道和右声道的音频。
320
+ */
321
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoMix"] = 3] = "AudioDualMonoMix";
322
+ return AudioDualMonoMode;
323
+ }({});
324
+ /**
325
+ * 视频像素格式。
326
+ */
327
+ let VideoPixelFormat = exports.VideoPixelFormat = /*#__PURE__*/function (VideoPixelFormat) {
328
+ /**
329
+ * 0: 原始视频像素格式。
330
+ */
331
+ VideoPixelFormat[VideoPixelFormat["VideoPixelDefault"] = 0] = "VideoPixelDefault";
332
+ /**
333
+ * 1: I420 格式。
334
+ */
335
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI420"] = 1] = "VideoPixelI420";
336
+ /**
337
+ * @ignore
338
+ */
339
+ VideoPixelFormat[VideoPixelFormat["VideoPixelBgra"] = 2] = "VideoPixelBgra";
340
+ /**
341
+ * @ignore
342
+ */
343
+ VideoPixelFormat[VideoPixelFormat["VideoPixelNv21"] = 3] = "VideoPixelNv21";
344
+ /**
345
+ * 4: RGBA 格式。
346
+ */
347
+ VideoPixelFormat[VideoPixelFormat["VideoPixelRgba"] = 4] = "VideoPixelRgba";
348
+ /**
349
+ * @ignore
350
+ */
351
+ VideoPixelFormat[VideoPixelFormat["VideoPixelNv12"] = 8] = "VideoPixelNv12";
352
+ /**
353
+ * @ignore
354
+ */
355
+ VideoPixelFormat[VideoPixelFormat["VideoTexture2d"] = 10] = "VideoTexture2d";
356
+ /**
357
+ * @ignore
358
+ */
359
+ VideoPixelFormat[VideoPixelFormat["VideoTextureOes"] = 11] = "VideoTextureOes";
360
+ /**
361
+ * @ignore
362
+ */
363
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelNv12"] = 12] = "VideoCvpixelNv12";
364
+ /**
365
+ * @ignore
366
+ */
367
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelI420"] = 13] = "VideoCvpixelI420";
368
+ /**
369
+ * @ignore
370
+ */
371
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
372
+ /**
373
+ * @ignore
374
+ */
375
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelP010"] = 15] = "VideoCvpixelP010";
376
+ /**
377
+ * 16: I422 格式。
378
+ */
379
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI422"] = 16] = "VideoPixelI422";
380
+ /**
381
+ * @ignore
382
+ */
383
+ VideoPixelFormat[VideoPixelFormat["VideoTextureId3d11texture2d"] = 17] = "VideoTextureId3d11texture2d";
384
+ /**
385
+ * @ignore
386
+ */
387
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI010"] = 18] = "VideoPixelI010";
388
+ return VideoPixelFormat;
389
+ }({});
390
+ /**
391
+ * 视频显示模式。
392
+ */
393
+ let RenderModeType = exports.RenderModeType = /*#__PURE__*/function (RenderModeType) {
394
+ /**
395
+ * 1: 视频尺寸等比缩放。优先保证视窗被填满。因视频尺寸与显示视窗尺寸不一致而多出的视频将被截掉。
396
+ */
397
+ RenderModeType[RenderModeType["RenderModeHidden"] = 1] = "RenderModeHidden";
398
+ /**
399
+ * 2: 视频尺寸等比缩放。优先保证视频内容全部显示。因视频尺寸与显示视窗尺寸不一致造成的视窗未被填满的区域填充黑色。
400
+ */
401
+ RenderModeType[RenderModeType["RenderModeFit"] = 2] = "RenderModeFit";
402
+ /**
403
+ * @ignore
404
+ */
405
+ RenderModeType[RenderModeType["RenderModeAdaptive"] = 3] = "RenderModeAdaptive";
406
+ return RenderModeType;
407
+ }({});
408
+ /**
409
+ * @ignore
410
+ */
411
+ let CameraVideoSourceType = exports.CameraVideoSourceType = /*#__PURE__*/function (CameraVideoSourceType) {
412
+ /**
413
+ * @ignore
414
+ */
415
+ CameraVideoSourceType[CameraVideoSourceType["CameraSourceFront"] = 0] = "CameraSourceFront";
416
+ /**
417
+ * @ignore
418
+ */
419
+ CameraVideoSourceType[CameraVideoSourceType["CameraSourceBack"] = 1] = "CameraSourceBack";
420
+ /**
421
+ * @ignore
422
+ */
423
+ CameraVideoSourceType[CameraVideoSourceType["VideoSourceUnspecified"] = 2] = "VideoSourceUnspecified";
424
+ return CameraVideoSourceType;
425
+ }({});
426
+ /**
427
+ * @ignore
428
+ */
429
+ let MetaInfoKey = exports.MetaInfoKey = /*#__PURE__*/function (MetaInfoKey) {
430
+ /**
431
+ * @ignore
432
+ */
433
+ MetaInfoKey[MetaInfoKey["KeyFaceCapture"] = 0] = "KeyFaceCapture";
434
+ return MetaInfoKey;
435
+ }({});
436
+ /**
437
+ * @ignore
438
+ */
439
+ class IVideoFrameMetaInfo {}
440
+
441
+ /**
442
+ * @ignore
443
+ */
444
+ exports.IVideoFrameMetaInfo = IVideoFrameMetaInfo;
445
+ let PrimaryID = exports.PrimaryID = /*#__PURE__*/function (PrimaryID) {
446
+ /**
447
+ * @ignore
448
+ */
449
+ PrimaryID[PrimaryID["PrimaryidBt709"] = 1] = "PrimaryidBt709";
450
+ /**
451
+ * @ignore
452
+ */
453
+ PrimaryID[PrimaryID["PrimaryidUnspecified"] = 2] = "PrimaryidUnspecified";
454
+ /**
455
+ * @ignore
456
+ */
457
+ PrimaryID[PrimaryID["PrimaryidBt470m"] = 4] = "PrimaryidBt470m";
458
+ /**
459
+ * @ignore
460
+ */
461
+ PrimaryID[PrimaryID["PrimaryidBt470bg"] = 5] = "PrimaryidBt470bg";
462
+ /**
463
+ * @ignore
464
+ */
465
+ PrimaryID[PrimaryID["PrimaryidSmpte170m"] = 6] = "PrimaryidSmpte170m";
466
+ /**
467
+ * @ignore
468
+ */
469
+ PrimaryID[PrimaryID["PrimaryidSmpte240m"] = 7] = "PrimaryidSmpte240m";
470
+ /**
471
+ * @ignore
472
+ */
473
+ PrimaryID[PrimaryID["PrimaryidFilm"] = 8] = "PrimaryidFilm";
474
+ /**
475
+ * @ignore
476
+ */
477
+ PrimaryID[PrimaryID["PrimaryidBt2020"] = 9] = "PrimaryidBt2020";
478
+ /**
479
+ * @ignore
480
+ */
481
+ PrimaryID[PrimaryID["PrimaryidSmptest428"] = 10] = "PrimaryidSmptest428";
482
+ /**
483
+ * @ignore
484
+ */
485
+ PrimaryID[PrimaryID["PrimaryidSmptest431"] = 11] = "PrimaryidSmptest431";
486
+ /**
487
+ * @ignore
488
+ */
489
+ PrimaryID[PrimaryID["PrimaryidSmptest432"] = 12] = "PrimaryidSmptest432";
490
+ /**
491
+ * @ignore
492
+ */
493
+ PrimaryID[PrimaryID["PrimaryidJedecp22"] = 22] = "PrimaryidJedecp22";
494
+ return PrimaryID;
495
+ }({});
496
+ /**
497
+ * @ignore
498
+ */
499
+ let RangeID = exports.RangeID = /*#__PURE__*/function (RangeID) {
500
+ /**
501
+ * @ignore
502
+ */
503
+ RangeID[RangeID["RangeidInvalid"] = 0] = "RangeidInvalid";
504
+ /**
505
+ * @ignore
506
+ */
507
+ RangeID[RangeID["RangeidLimited"] = 1] = "RangeidLimited";
508
+ /**
509
+ * @ignore
510
+ */
511
+ RangeID[RangeID["RangeidFull"] = 2] = "RangeidFull";
512
+ /**
513
+ * @ignore
514
+ */
515
+ RangeID[RangeID["RangeidDerived"] = 3] = "RangeidDerived";
516
+ return RangeID;
517
+ }({});
518
+ /**
519
+ * @ignore
520
+ */
521
+ let MatrixID = exports.MatrixID = /*#__PURE__*/function (MatrixID) {
522
+ /**
523
+ * @ignore
524
+ */
525
+ MatrixID[MatrixID["MatrixidRgb"] = 0] = "MatrixidRgb";
526
+ /**
527
+ * @ignore
528
+ */
529
+ MatrixID[MatrixID["MatrixidBt709"] = 1] = "MatrixidBt709";
530
+ /**
531
+ * @ignore
532
+ */
533
+ MatrixID[MatrixID["MatrixidUnspecified"] = 2] = "MatrixidUnspecified";
534
+ /**
535
+ * @ignore
536
+ */
537
+ MatrixID[MatrixID["MatrixidFcc"] = 4] = "MatrixidFcc";
538
+ /**
539
+ * @ignore
540
+ */
541
+ MatrixID[MatrixID["MatrixidBt470bg"] = 5] = "MatrixidBt470bg";
542
+ /**
543
+ * @ignore
544
+ */
545
+ MatrixID[MatrixID["MatrixidSmpte170m"] = 6] = "MatrixidSmpte170m";
546
+ /**
547
+ * @ignore
548
+ */
549
+ MatrixID[MatrixID["MatrixidSmpte240m"] = 7] = "MatrixidSmpte240m";
550
+ /**
551
+ * @ignore
552
+ */
553
+ MatrixID[MatrixID["MatrixidYcocg"] = 8] = "MatrixidYcocg";
554
+ /**
555
+ * @ignore
556
+ */
557
+ MatrixID[MatrixID["MatrixidBt2020Ncl"] = 9] = "MatrixidBt2020Ncl";
558
+ /**
559
+ * @ignore
560
+ */
561
+ MatrixID[MatrixID["MatrixidBt2020Cl"] = 10] = "MatrixidBt2020Cl";
562
+ /**
563
+ * @ignore
564
+ */
565
+ MatrixID[MatrixID["MatrixidSmpte2085"] = 11] = "MatrixidSmpte2085";
566
+ /**
567
+ * @ignore
568
+ */
569
+ MatrixID[MatrixID["MatrixidCdncls"] = 12] = "MatrixidCdncls";
570
+ /**
571
+ * @ignore
572
+ */
573
+ MatrixID[MatrixID["MatrixidCdcls"] = 13] = "MatrixidCdcls";
574
+ /**
575
+ * @ignore
576
+ */
577
+ MatrixID[MatrixID["MatrixidBt2100Ictcp"] = 14] = "MatrixidBt2100Ictcp";
578
+ return MatrixID;
579
+ }({});
580
+ /**
581
+ * @ignore
582
+ */
583
+ let TransferID = exports.TransferID = /*#__PURE__*/function (TransferID) {
584
+ /**
585
+ * @ignore
586
+ */
587
+ TransferID[TransferID["TransferidBt709"] = 1] = "TransferidBt709";
588
+ /**
589
+ * @ignore
590
+ */
591
+ TransferID[TransferID["TransferidUnspecified"] = 2] = "TransferidUnspecified";
592
+ /**
593
+ * @ignore
594
+ */
595
+ TransferID[TransferID["TransferidGamma22"] = 4] = "TransferidGamma22";
596
+ /**
597
+ * @ignore
598
+ */
599
+ TransferID[TransferID["TransferidGamma28"] = 5] = "TransferidGamma28";
600
+ /**
601
+ * @ignore
602
+ */
603
+ TransferID[TransferID["TransferidSmpte170m"] = 6] = "TransferidSmpte170m";
604
+ /**
605
+ * @ignore
606
+ */
607
+ TransferID[TransferID["TransferidSmpte240m"] = 7] = "TransferidSmpte240m";
608
+ /**
609
+ * @ignore
610
+ */
611
+ TransferID[TransferID["TransferidLinear"] = 8] = "TransferidLinear";
612
+ /**
613
+ * @ignore
614
+ */
615
+ TransferID[TransferID["TransferidLog"] = 9] = "TransferidLog";
616
+ /**
617
+ * @ignore
618
+ */
619
+ TransferID[TransferID["TransferidLogSqrt"] = 10] = "TransferidLogSqrt";
620
+ /**
621
+ * @ignore
622
+ */
623
+ TransferID[TransferID["TransferidIec6196624"] = 11] = "TransferidIec6196624";
624
+ /**
625
+ * @ignore
626
+ */
627
+ TransferID[TransferID["TransferidBt1361Ecg"] = 12] = "TransferidBt1361Ecg";
628
+ /**
629
+ * @ignore
630
+ */
631
+ TransferID[TransferID["TransferidIec6196621"] = 13] = "TransferidIec6196621";
632
+ /**
633
+ * @ignore
634
+ */
635
+ TransferID[TransferID["TransferidBt202010"] = 14] = "TransferidBt202010";
636
+ /**
637
+ * @ignore
638
+ */
639
+ TransferID[TransferID["TransferidBt202012"] = 15] = "TransferidBt202012";
640
+ /**
641
+ * @ignore
642
+ */
643
+ TransferID[TransferID["TransferidSmptest2084"] = 16] = "TransferidSmptest2084";
644
+ /**
645
+ * @ignore
646
+ */
647
+ TransferID[TransferID["TransferidSmptest428"] = 17] = "TransferidSmptest428";
648
+ /**
649
+ * @ignore
650
+ */
651
+ TransferID[TransferID["TransferidAribStdB67"] = 18] = "TransferidAribStdB67";
652
+ return TransferID;
653
+ }({});
654
+ /**
655
+ * @ignore
656
+ */
657
+ class ColorSpace {}
658
+
659
+ /**
660
+ * @ignore
661
+ */
662
+ exports.ColorSpace = ColorSpace;
663
+ class Hdr10MetadataInfo {}
664
+
665
+ /**
666
+ * alphaBuffer 和视频帧的相对位置。
667
+ */
668
+ exports.Hdr10MetadataInfo = Hdr10MetadataInfo;
669
+ let AlphaStitchMode = exports.AlphaStitchMode = /*#__PURE__*/function (AlphaStitchMode) {
670
+ /**
671
+ * 0:(默认)仅视频帧,即 alphaBuffer 不和视频帧拼接。
672
+ */
673
+ AlphaStitchMode[AlphaStitchMode["NoAlphaStitch"] = 0] = "NoAlphaStitch";
674
+ /**
675
+ * 1: alphaBuffer 位于视频帧的上方。
676
+ */
677
+ AlphaStitchMode[AlphaStitchMode["AlphaStitchUp"] = 1] = "AlphaStitchUp";
678
+ /**
679
+ * 2: alphaBuffer 位于视频帧的下方。
680
+ */
681
+ AlphaStitchMode[AlphaStitchMode["AlphaStitchBelow"] = 2] = "AlphaStitchBelow";
682
+ /**
683
+ * 3: alphaBuffer 位于视频帧的左侧。
684
+ */
685
+ AlphaStitchMode[AlphaStitchMode["AlphaStitchLeft"] = 3] = "AlphaStitchLeft";
686
+ /**
687
+ * 4: alphaBuffer 位于视频帧的右侧。
688
+ */
689
+ AlphaStitchMode[AlphaStitchMode["AlphaStitchRight"] = 4] = "AlphaStitchRight";
690
+ return AlphaStitchMode;
691
+ }({});
692
+ /**
693
+ * @ignore
694
+ */
695
+ let EglContextType = exports.EglContextType = /*#__PURE__*/function (EglContextType) {
696
+ /**
697
+ * @ignore
698
+ */
699
+ EglContextType[EglContextType["EglContext10"] = 0] = "EglContext10";
700
+ /**
701
+ * @ignore
702
+ */
703
+ EglContextType[EglContextType["EglContext14"] = 1] = "EglContext14";
704
+ return EglContextType;
705
+ }({});
706
+ /**
707
+ * 视频 buffer 类型。
708
+ */
709
+ let VideoBufferType = exports.VideoBufferType = /*#__PURE__*/function (VideoBufferType) {
710
+ /**
711
+ * 1: 类型为原始数据。
712
+ */
713
+ VideoBufferType[VideoBufferType["VideoBufferRawData"] = 1] = "VideoBufferRawData";
714
+ /**
715
+ * 2: 类型为原始数据。
716
+ */
717
+ VideoBufferType[VideoBufferType["VideoBufferArray"] = 2] = "VideoBufferArray";
718
+ /**
719
+ * 3: 类型为 Texture 。
720
+ */
721
+ VideoBufferType[VideoBufferType["VideoBufferTexture"] = 3] = "VideoBufferTexture";
722
+ return VideoBufferType;
723
+ }({});
724
+ /**
725
+ * 外部视频帧。
726
+ */
727
+ class ExternalVideoFrame {}
728
+
729
+ /**
730
+ * 视频帧的属性设置。
731
+ *
732
+ * 缓冲区给出的是指向指针的指针,该接口不能修改缓冲区的指针,只能修改缓冲区的内容。
733
+ */
734
+ exports.ExternalVideoFrame = ExternalVideoFrame;
735
+ class VideoFrame {}
736
+
737
+ /**
738
+ * @ignore
739
+ */
740
+ exports.VideoFrame = VideoFrame;
741
+ let MediaPlayerSourceType = exports.MediaPlayerSourceType = /*#__PURE__*/function (MediaPlayerSourceType) {
742
+ /**
743
+ * @ignore
744
+ */
745
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceDefault"] = 0] = "MediaPlayerSourceDefault";
746
+ /**
747
+ * @ignore
748
+ */
749
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceFullFeatured"] = 1] = "MediaPlayerSourceFullFeatured";
750
+ /**
751
+ * @ignore
752
+ */
753
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceSimple"] = 2] = "MediaPlayerSourceSimple";
754
+ return MediaPlayerSourceType;
755
+ }({});
756
+ /**
757
+ * 视频观测位置。
758
+ */
759
+ let VideoModulePosition = exports.VideoModulePosition = /*#__PURE__*/function (VideoModulePosition) {
760
+ /**
761
+ * 1: 本地采集视频数据并且经过前处理之后的位置,对应 onCaptureVideoFrame 回调。此处观测到的视频具备视频前处理的效果,可通过开启美颜、虚拟背景或水印等方式验证。
762
+ */
763
+ VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
764
+ /**
765
+ * 2: 接收远端发送的视频在渲染前的位置,对应 onRenderVideoFrame 回调。
766
+ */
767
+ VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
768
+ /**
769
+ * 4: 本地视频编码前的位置,对应 onPreEncodeVideoFrame 回调。此处观测到的视频具备视频前处理和编码前处理的效果:
770
+ * 对于视频前处理效果,可通过开启美颜、虚拟背景或水印等方式验证。
771
+ * 对于编码前处理效果,可通过设置一个较低的帧率(例如 5 fps)验证。
772
+ */
773
+ VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
774
+ /**
775
+ * 8: 本地采集视频之后、前处理之前的位置。此处观测到的视频不具备前处理的效果,可通过开启美颜、虚拟背景或设置水印等方式验证。
776
+ */
777
+ VideoModulePosition[VideoModulePosition["PositionPostCapturerOrigin"] = 8] = "PositionPostCapturerOrigin";
778
+ return VideoModulePosition;
779
+ }({});
780
+ /**
781
+ * @ignore
782
+ */
783
+ let ContentInspectResult = exports.ContentInspectResult = /*#__PURE__*/function (ContentInspectResult) {
784
+ /**
785
+ * @ignore
786
+ */
787
+ ContentInspectResult[ContentInspectResult["ContentInspectNeutral"] = 1] = "ContentInspectNeutral";
788
+ /**
789
+ * @ignore
790
+ */
791
+ ContentInspectResult[ContentInspectResult["ContentInspectSexy"] = 2] = "ContentInspectSexy";
792
+ /**
793
+ * @ignore
794
+ */
795
+ ContentInspectResult[ContentInspectResult["ContentInspectPorn"] = 3] = "ContentInspectPorn";
796
+ return ContentInspectResult;
797
+ }({});
798
+ /**
799
+ * 视频内容审核模块的类型。
800
+ */
801
+ let ContentInspectType = exports.ContentInspectType = /*#__PURE__*/function (ContentInspectType) {
802
+ /**
803
+ * 0:(默认)该功能模块无实际功能。请不要将 type 设为该值。
804
+ */
805
+ ContentInspectType[ContentInspectType["ContentInspectInvalid"] = 0] = "ContentInspectInvalid";
806
+ /**
807
+ * @ignore
808
+ */
809
+ ContentInspectType[ContentInspectType["ContentInspectModeration"] = 1] = "ContentInspectModeration";
810
+ /**
811
+ * 2:使用声网自研插件截图上传。SDK 会对视频流进行截图并上传。
812
+ */
813
+ ContentInspectType[ContentInspectType["ContentInspectSupervision"] = 2] = "ContentInspectSupervision";
814
+ /**
815
+ * 3:使用云市场插件截图上传。SDK 会使用云市场视频审核插件对视频流进行截图并上传。
816
+ */
817
+ ContentInspectType[ContentInspectType["ContentInspectImageModeration"] = 3] = "ContentInspectImageModeration";
818
+ return ContentInspectType;
819
+ }({});
820
+ /**
821
+ * ContentInspectModule 结构体,用于配置本地截图上传的频率。
822
+ */
823
+ class ContentInspectModule {}
824
+
825
+ /**
826
+ * 本地截图上传配置。
827
+ */
828
+ exports.ContentInspectModule = ContentInspectModule;
829
+ class ContentInspectConfig {}
830
+
831
+ /**
832
+ * 视频截图设置。
833
+ */
834
+ exports.ContentInspectConfig = ContentInspectConfig;
835
+ class SnapshotConfig {}
836
+
837
+ /**
838
+ * 该类用于获取原始的 PCM 音频数据。
839
+ *
840
+ * 你可以继承这个类,实现 onFrame 回调来获得 PCM 音频数据。
841
+ */
842
+ exports.SnapshotConfig = SnapshotConfig;
843
+ /**
844
+ * 音频帧类型。
845
+ */
846
+ let AudioFrameType = exports.AudioFrameType = /*#__PURE__*/function (AudioFrameType) {
847
+ /**
848
+ * 0: PCM 16
849
+ */
850
+ AudioFrameType[AudioFrameType["FrameTypePcm16"] = 0] = "FrameTypePcm16";
851
+ return AudioFrameType;
852
+ }({});
853
+ /**
854
+ * 原始音频数据。
855
+ */
856
+ class AudioFrame {}
857
+
858
+ /**
859
+ * @ignore
860
+ */
861
+ exports.AudioFrame = AudioFrame;
862
+ let AudioFramePosition = exports.AudioFramePosition = /*#__PURE__*/function (AudioFramePosition) {
863
+ /**
864
+ * @ignore
865
+ */
866
+ AudioFramePosition[AudioFramePosition["AudioFramePositionNone"] = 0] = "AudioFramePositionNone";
867
+ /**
868
+ * @ignore
869
+ */
870
+ AudioFramePosition[AudioFramePosition["AudioFramePositionPlayback"] = 1] = "AudioFramePositionPlayback";
871
+ /**
872
+ * @ignore
873
+ */
874
+ AudioFramePosition[AudioFramePosition["AudioFramePositionRecord"] = 2] = "AudioFramePositionRecord";
875
+ /**
876
+ * @ignore
877
+ */
878
+ AudioFramePosition[AudioFramePosition["AudioFramePositionMixed"] = 4] = "AudioFramePositionMixed";
879
+ /**
880
+ * @ignore
881
+ */
882
+ AudioFramePosition[AudioFramePosition["AudioFramePositionBeforeMixing"] = 8] = "AudioFramePositionBeforeMixing";
883
+ /**
884
+ * @ignore
885
+ */
886
+ AudioFramePosition[AudioFramePosition["AudioFramePositionEarMonitoring"] = 16] = "AudioFramePositionEarMonitoring";
887
+ return AudioFramePosition;
888
+ }({});
889
+ /**
890
+ * 音频数据格式。
891
+ *
892
+ * SDK 会根据 AudioParams 设置以下回调中的音频数据格式: onRecordAudioFrame onPlaybackAudioFrame onMixedAudioFrame
893
+ * SDK 会通过 AudioParams 中的 samplesPerCall 、 sampleRate 和 channel 参数计算采样间隔,并根据该采样间隔触发 onRecordAudioFrame 、 onPlaybackAudioFrame 、 onMixedAudioFrame 和 onEarMonitoringAudioFrame 回调。
894
+ * 采样间隔 = samplesPerCall /(sampleRate × channel)。
895
+ * 请确保采样间隔不得小于 0.01 (s)。
896
+ */
897
+ class AudioParams {}
898
+
899
+ /**
900
+ * 音频观测器。
901
+ *
902
+ * 你可以调用 registerAudioFrameObserver 注册或取消注册 IAudioFrameObserverBase 音频观测器。
903
+ */
904
+
905
+ /**
906
+ * 音频观测器。
907
+ *
908
+ * 你可以调用 registerAudioFrameObserver 注册或取消注册 IAudioFrameObserver 音频观测器。
909
+ */
910
+ exports.AudioParams = AudioParams;
911
+ /**
912
+ * 音频频谱数据。
913
+ */
914
+ class AudioSpectrumData {}
915
+
916
+ /**
917
+ * 远端用户的音频频谱信息。
918
+ */
919
+ exports.AudioSpectrumData = AudioSpectrumData;
920
+ class UserAudioSpectrumInfo {}
921
+
922
+ /**
923
+ * 音频频谱观测器。
924
+ */
925
+
926
+ /**
927
+ * 用于接收编码后的视频图像的类。
928
+ */
929
+ exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
930
+ /**
931
+ * 视频帧处理模式。
932
+ */
933
+ let VideoFrameProcessMode = exports.VideoFrameProcessMode = /*#__PURE__*/function (VideoFrameProcessMode) {
934
+ /**
935
+ * 只读模式。
936
+ * 只读模式下,你不修改视频帧,视频观测器相当于渲染器。
937
+ */
938
+ VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadOnly"] = 0] = "ProcessModeReadOnly";
939
+ /**
940
+ * 读写模式。
941
+ * 读写模式下,你会修改视频帧,视频观测器相当于视频 filter。
942
+ */
943
+ VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadWrite"] = 1] = "ProcessModeReadWrite";
944
+ return VideoFrameProcessMode;
945
+ }({});
946
+ /**
947
+ * 视频观测器。
948
+ *
949
+ * 你可以调用 registerVideoFrameObserver 注册或取消注册 IVideoFrameObserver 视频观测器。
950
+ */
951
+ /**
952
+ * 外部视频帧编码类型。
953
+ */
954
+ let ExternalVideoSourceType = exports.ExternalVideoSourceType = /*#__PURE__*/function (ExternalVideoSourceType) {
955
+ /**
956
+ * 0:未编码视频帧。
957
+ */
958
+ ExternalVideoSourceType[ExternalVideoSourceType["VideoFrame"] = 0] = "VideoFrame";
959
+ /**
960
+ * 1:已编码视频帧。
961
+ */
962
+ ExternalVideoSourceType[ExternalVideoSourceType["EncodedVideoFrame"] = 1] = "EncodedVideoFrame";
963
+ return ExternalVideoSourceType;
964
+ }({});
965
+ /**
966
+ * 录制文件的格式。
967
+ */
968
+ let MediaRecorderContainerFormat = exports.MediaRecorderContainerFormat = /*#__PURE__*/function (MediaRecorderContainerFormat) {
969
+ /**
970
+ * 1:(默认)MP4。
971
+ */
972
+ MediaRecorderContainerFormat[MediaRecorderContainerFormat["FormatMp4"] = 1] = "FormatMp4";
973
+ return MediaRecorderContainerFormat;
974
+ }({});
975
+ /**
976
+ * 录制内容。
977
+ */
978
+ let MediaRecorderStreamType = exports.MediaRecorderStreamType = /*#__PURE__*/function (MediaRecorderStreamType) {
979
+ /**
980
+ * 1: 仅音频。
981
+ */
982
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeAudio"] = 1] = "StreamTypeAudio";
983
+ /**
984
+ * 2: 仅视频。
985
+ */
986
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeVideo"] = 2] = "StreamTypeVideo";
987
+ /**
988
+ * 3: (默认)音视频。
989
+ */
990
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeBoth"] = 3] = "StreamTypeBoth";
991
+ return MediaRecorderStreamType;
992
+ }({});
993
+ /**
994
+ * 当前的录制状态。
995
+ */
996
+ let RecorderState = exports.RecorderState = /*#__PURE__*/function (RecorderState) {
997
+ /**
998
+ * -1: 音视频流录制出错,错误原因详见 RecorderReasonCode 。
999
+ */
1000
+ RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
1001
+ /**
1002
+ * 2: 音视频流录制开始。
1003
+ */
1004
+ RecorderState[RecorderState["RecorderStateStart"] = 2] = "RecorderStateStart";
1005
+ /**
1006
+ * 3: 音视频流录制停止。
1007
+ */
1008
+ RecorderState[RecorderState["RecorderStateStop"] = 3] = "RecorderStateStop";
1009
+ return RecorderState;
1010
+ }({});
1011
+ /**
1012
+ * 录制状态出错的原因。
1013
+ */
1014
+ let RecorderReasonCode = exports.RecorderReasonCode = /*#__PURE__*/function (RecorderReasonCode) {
1015
+ /**
1016
+ * 0: 一切正常。
1017
+ */
1018
+ RecorderReasonCode[RecorderReasonCode["RecorderReasonNone"] = 0] = "RecorderReasonNone";
1019
+ /**
1020
+ * @ignore
1021
+ */
1022
+ RecorderReasonCode[RecorderReasonCode["RecorderReasonWriteFailed"] = 1] = "RecorderReasonWriteFailed";
1023
+ /**
1024
+ * @ignore
1025
+ */
1026
+ RecorderReasonCode[RecorderReasonCode["RecorderReasonNoStream"] = 2] = "RecorderReasonNoStream";
1027
+ /**
1028
+ * @ignore
1029
+ */
1030
+ RecorderReasonCode[RecorderReasonCode["RecorderReasonOverMaxDuration"] = 3] = "RecorderReasonOverMaxDuration";
1031
+ /**
1032
+ * @ignore
1033
+ */
1034
+ RecorderReasonCode[RecorderReasonCode["RecorderReasonConfigChanged"] = 4] = "RecorderReasonConfigChanged";
1035
+ return RecorderReasonCode;
1036
+ }({});
1037
+ /**
1038
+ * 音视频流录制配置。
1039
+ */
1040
+ class MediaRecorderConfiguration {}
1041
+
1042
+ /**
1043
+ * 人脸信息观测器。
1044
+ *
1045
+ * 你可以调用 registerFaceInfoObserver 注册 IFaceInfoObserver 观测器。
1046
+ */
1047
+ exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
1048
+ /**
1049
+ * 录制文件信息。
1050
+ */
1051
+ class RecorderInfo {}
1052
+
1053
+ /**
1054
+ * 包含音视频录制的事件。
1055
+ */
1056
+ exports.RecorderInfo = RecorderInfo;
1057
+ //# sourceMappingURL=AgoraMediaBase.js.map