agora-electron-sdk 4.1.1-rc.1 → 4.2.0-dev.13

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 (358) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +143 -143
  3. package/gulpfile.js +5 -4
  4. package/js/AgoraSdk.js +62 -60
  5. package/js/Private/AgoraBase.js +4575 -3269
  6. package/js/Private/AgoraMediaBase.js +968 -564
  7. package/js/Private/AgoraMediaPlayerTypes.js +422 -310
  8. package/js/Private/IAgoraLog.js +86 -74
  9. package/js/Private/IAgoraMediaEngine.js +32 -32
  10. package/js/Private/IAgoraMediaPlayer.js +16 -16
  11. package/js/Private/IAgoraMediaPlayerSource.js +3 -3
  12. package/js/Private/IAgoraMediaRecorder.js +12 -12
  13. package/js/Private/IAgoraMediaStreamingSource.js +84 -0
  14. package/js/Private/IAgoraMusicContentCenter.js +239 -81
  15. package/js/Private/IAgoraRhythmPlayer.js +70 -62
  16. package/js/Private/IAgoraRtcEngine.js +1807 -948
  17. package/js/Private/IAgoraRtcEngineEx.js +26 -18
  18. package/js/Private/IAgoraSpatialAudio.js +74 -30
  19. package/js/Private/IAudioDeviceManager.js +20 -20
  20. package/js/Private/extension/AgoraBaseExtension.js +2 -2
  21. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
  22. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
  23. package/js/Private/extension/IAgoraLogExtension.js +2 -2
  24. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
  25. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
  26. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
  27. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
  28. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
  29. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
  30. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
  31. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
  32. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
  33. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
  34. package/js/Private/impl/AgoraBaseImpl.js +23 -23
  35. package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
  36. package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
  37. package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
  38. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
  39. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
  40. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
  41. package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
  42. package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
  43. package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
  44. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
  45. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
  46. package/js/Private/internal/IrisApiEngine.js +391 -382
  47. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
  48. package/js/Private/internal/MediaEngineInternal.js +119 -123
  49. package/js/Private/internal/MediaPlayerInternal.js +215 -213
  50. package/js/Private/internal/MediaRecorderInternal.js +82 -81
  51. package/js/Private/internal/MusicContentCenterInternal.js +128 -130
  52. package/js/Private/internal/RtcEngineExInternal.js +422 -363
  53. package/js/Private/internal/emitter/EventEmitter.js +111 -111
  54. package/js/Private/ti/AgoraBase-ti.js +40 -40
  55. package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
  56. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
  57. package/js/Private/ti/IAgoraLog-ti.js +5 -5
  58. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
  59. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
  60. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
  61. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
  62. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  63. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
  64. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
  65. package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
  66. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
  67. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
  68. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
  69. package/js/Renderer/AgoraView.js +128 -131
  70. package/js/Renderer/IRenderer.js +40 -48
  71. package/js/Renderer/IRendererManager.js +9 -0
  72. package/js/Renderer/RendererManager.js +479 -392
  73. package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
  74. package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
  75. package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
  76. package/js/Renderer/index.js +18 -0
  77. package/js/Types.js +17 -29
  78. package/js/Utils.js +168 -173
  79. package/package.json +61 -103
  80. package/scripts/bootstrap.js +1 -1
  81. package/scripts/build.js +1 -0
  82. package/scripts/buildJS.js +3 -3
  83. package/scripts/clean.js +2 -1
  84. package/scripts/downloadPrebuild.js +5 -5
  85. package/scripts/getConfig.js +3 -2
  86. package/scripts/synclib.js +8 -5
  87. package/scripts/util.js +3 -2
  88. package/scripts/zipBuild.js +2 -1
  89. package/ts/AgoraSdk.ts +9 -6
  90. package/ts/Private/AgoraBase.ts +278 -173
  91. package/ts/Private/AgoraMediaBase.ts +167 -100
  92. package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
  93. package/ts/Private/IAgoraMediaEngine.ts +43 -56
  94. package/ts/Private/IAgoraMediaPlayer.ts +90 -104
  95. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
  96. package/ts/Private/IAgoraMediaRecorder.ts +8 -35
  97. package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
  98. package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
  99. package/ts/Private/IAgoraRtcEngine.ts +807 -910
  100. package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
  101. package/ts/Private/IAgoraSpatialAudio.ts +40 -22
  102. package/ts/Private/IAudioDeviceManager.ts +35 -13
  103. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
  104. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
  105. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
  106. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
  107. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
  108. package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
  109. package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
  110. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
  111. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
  112. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
  113. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
  114. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
  115. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
  116. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
  117. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
  118. package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
  119. package/ts/Private/internal/IrisApiEngine.ts +41 -32
  120. package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
  121. package/ts/Private/internal/MediaEngineInternal.ts +9 -11
  122. package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
  123. package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
  124. package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
  125. package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
  126. package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
  127. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
  128. package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
  129. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
  130. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
  131. package/ts/Renderer/AgoraView.ts +12 -7
  132. package/ts/Renderer/IRenderer.ts +11 -16
  133. package/ts/Renderer/IRendererManager.ts +35 -0
  134. package/ts/Renderer/RendererManager.ts +146 -82
  135. package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
  136. package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
  137. package/ts/Renderer/index.ts +2 -0
  138. package/ts/Types.ts +43 -23
  139. package/ts/Utils.ts +7 -12
  140. package/types/AgoraSdk.d.ts +38 -36
  141. package/types/AgoraSdk.d.ts.map +1 -0
  142. package/types/Private/AgoraBase.d.ts +4455 -4358
  143. package/types/Private/AgoraBase.d.ts.map +1 -0
  144. package/types/Private/AgoraMediaBase.d.ts +1125 -1070
  145. package/types/Private/AgoraMediaBase.d.ts.map +1 -0
  146. package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
  147. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  148. package/types/Private/IAgoraLog.d.ts +81 -80
  149. package/types/Private/IAgoraLog.d.ts.map +1 -0
  150. package/types/Private/IAgoraMediaEngine.d.ts +184 -193
  151. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
  152. package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
  153. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  154. package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
  155. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  156. package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
  157. package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  158. package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
  159. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  160. package/types/Private/IAgoraMusicContentCenter.d.ts +336 -255
  161. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  162. package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
  163. package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  164. package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
  165. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
  166. package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
  167. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  168. package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
  169. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  170. package/types/Private/IAudioDeviceManager.d.ts +255 -233
  171. package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
  172. package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
  173. package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  174. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
  175. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  176. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
  177. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  178. package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
  179. package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  180. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
  181. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  182. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
  183. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  184. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
  185. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  186. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
  187. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  188. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
  189. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  190. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
  191. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  192. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
  193. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  194. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
  195. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  196. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
  197. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  198. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
  199. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  200. package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
  201. package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  202. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
  203. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  204. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
  205. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  206. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
  207. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  208. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
  209. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  210. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
  211. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  212. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
  213. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  214. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
  215. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  216. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  217. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  218. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
  219. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  220. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
  221. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  222. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
  223. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  224. package/types/Private/internal/IrisApiEngine.d.ts +148 -146
  225. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
  226. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
  227. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  228. package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
  229. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  230. package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
  231. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  232. package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
  233. package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  234. package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
  235. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  236. package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
  237. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  238. package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
  239. package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
  240. package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
  241. package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  242. package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
  243. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  244. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
  245. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  246. package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
  247. package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  248. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
  249. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  250. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
  251. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  252. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
  253. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  254. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
  255. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  256. package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
  257. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  258. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
  259. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  260. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
  261. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  262. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
  263. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  264. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
  265. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  266. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
  267. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  268. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
  269. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  270. package/types/Renderer/AgoraView.d.ts +70 -70
  271. package/types/Renderer/AgoraView.d.ts.map +1 -0
  272. package/types/Renderer/IRenderer.d.ts +22 -21
  273. package/types/Renderer/IRenderer.d.ts.map +1 -0
  274. package/types/Renderer/IRendererManager.d.ts +18 -0
  275. package/types/Renderer/IRendererManager.d.ts.map +1 -0
  276. package/types/Renderer/RendererManager.d.ts +154 -71
  277. package/types/Renderer/RendererManager.d.ts.map +1 -0
  278. package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
  279. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  280. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
  281. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  282. package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  283. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  284. package/types/Renderer/index.d.ts +3 -0
  285. package/types/Renderer/index.d.ts.map +1 -0
  286. package/types/Types.d.ts +280 -260
  287. package/types/Types.d.ts.map +1 -0
  288. package/types/Utils.d.ts +59 -58
  289. package/types/Utils.d.ts.map +1 -0
  290. package/js/AgoraSdk.d.ts +0 -36
  291. package/js/Private/AgoraBase.d.ts +0 -4358
  292. package/js/Private/AgoraMediaBase.d.ts +0 -1070
  293. package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
  294. package/js/Private/IAgoraLog.d.ts +0 -80
  295. package/js/Private/IAgoraMediaEngine.d.ts +0 -193
  296. package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
  297. package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
  298. package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
  299. package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
  300. package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
  301. package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
  302. package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
  303. package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
  304. package/js/Private/IAudioDeviceManager.d.ts +0 -233
  305. package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
  306. package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
  307. package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
  308. package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
  309. package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
  310. package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
  311. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
  312. package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
  313. package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
  314. package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
  315. package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
  316. package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
  317. package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
  318. package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
  319. package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
  320. package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
  321. package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
  322. package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
  323. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
  324. package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
  325. package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
  326. package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
  327. package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
  328. package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
  329. package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
  330. package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
  331. package/js/Private/internal/IrisApiEngine.d.ts +0 -146
  332. package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
  333. package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
  334. package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
  335. package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
  336. package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
  337. package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
  338. package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
  339. package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
  340. package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
  341. package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
  342. package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
  343. package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
  344. package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
  345. package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
  346. package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
  347. package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
  348. package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
  349. package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
  350. package/js/Renderer/AgoraView.d.ts +0 -70
  351. package/js/Renderer/GlRenderer/index.d.ts +0 -59
  352. package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
  353. package/js/Renderer/IRenderer.d.ts +0 -21
  354. package/js/Renderer/RendererManager.d.ts +0 -71
  355. package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
  356. package/js/Types.d.ts +0 -260
  357. package/js/Utils.d.ts +0 -58
  358. /package/ts/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +0 -0
@@ -1,564 +1,968 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderErrorCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = void 0;
4
- require("./extension/AgoraMediaBaseExtension");
5
- /**
6
- * The type of the audio route.
7
- */
8
- var AudioRoute;
9
- (function (AudioRoute) {
10
- /**
11
- * -1: The default audio route.
12
- */
13
- AudioRoute[AudioRoute["RouteDefault"] = -1] = "RouteDefault";
14
- /**
15
- * 0: Audio output routing is a headset with microphone.
16
- */
17
- AudioRoute[AudioRoute["RouteHeadset"] = 0] = "RouteHeadset";
18
- /**
19
- * 1: The audio route is an earpiece.
20
- */
21
- AudioRoute[AudioRoute["RouteEarpiece"] = 1] = "RouteEarpiece";
22
- /**
23
- * 2: The audio route is a headset without a microphone.
24
- */
25
- AudioRoute[AudioRoute["RouteHeadsetnomic"] = 2] = "RouteHeadsetnomic";
26
- /**
27
- * 3: The audio route is the speaker that comes with the device.
28
- */
29
- AudioRoute[AudioRoute["RouteSpeakerphone"] = 3] = "RouteSpeakerphone";
30
- /**
31
- * 4: The audio route is an external speaker. (macOS only)
32
- */
33
- AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
34
- /**
35
- * @ignore
36
- */
37
- AudioRoute[AudioRoute["RouteHeadsetbluetooth"] = 5] = "RouteHeadsetbluetooth";
38
- /**
39
- * 7: The audio route is a USB peripheral device. (For macOS only)
40
- */
41
- AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
42
- /**
43
- * 6: The audio route is an HDMI peripheral device. (For macOS only)
44
- */
45
- AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
46
- /**
47
- * 8: The audio route is a DisplayPort peripheral device. (For macOS only)
48
- */
49
- AudioRoute[AudioRoute["RouteDisplayport"] = 8] = "RouteDisplayport";
50
- /**
51
- * 9: The audio route is Apple AirPlay. (For macOS only)
52
- */
53
- AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
54
- })(AudioRoute = exports.AudioRoute || (exports.AudioRoute = {}));
55
- /**
56
- * @ignore
57
- */
58
- var BytesPerSample;
59
- (function (BytesPerSample) {
60
- /**
61
- * @ignore
62
- */
63
- BytesPerSample[BytesPerSample["TwoBytesPerSample"] = 2] = "TwoBytesPerSample";
64
- })(BytesPerSample = exports.BytesPerSample || (exports.BytesPerSample = {}));
65
- /**
66
- * @ignore
67
- */
68
- class AudioParameters {
69
- }
70
- exports.AudioParameters = AudioParameters;
71
- /**
72
- * The use mode of the audio data.
73
- */
74
- var RawAudioFrameOpModeType;
75
- (function (RawAudioFrameOpModeType) {
76
- /**
77
- * 0: Read-only mode, Users only read the data returned by the SDK without modifying anything. For example, when users acquire the data with the Agora SDK, then start the media push.
78
- */
79
- RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadOnly"] = 0] = "RawAudioFrameOpModeReadOnly";
80
- /**
81
- * 2: Read and write mode, Users read the data returned by the SDK, modify it, and then play it. For example, when users have their own audio-effect processing module and perform some voice preprocessing, such as a voice change.
82
- */
83
- RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadWrite"] = 2] = "RawAudioFrameOpModeReadWrite";
84
- })(RawAudioFrameOpModeType = exports.RawAudioFrameOpModeType || (exports.RawAudioFrameOpModeType = {}));
85
- /**
86
- * Media source type.
87
- */
88
- var MediaSourceType;
89
- (function (MediaSourceType) {
90
- /**
91
- * 0: Audio playback device.
92
- */
93
- MediaSourceType[MediaSourceType["AudioPlayoutSource"] = 0] = "AudioPlayoutSource";
94
- /**
95
- * 1: Audio capturing device.
96
- */
97
- MediaSourceType[MediaSourceType["AudioRecordingSource"] = 1] = "AudioRecordingSource";
98
- /**
99
- * 2: The primary camera.
100
- */
101
- MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
102
- /**
103
- * 3: The secondary camera.
104
- */
105
- MediaSourceType[MediaSourceType["SecondaryCameraSource"] = 3] = "SecondaryCameraSource";
106
- /**
107
- * @ignore
108
- */
109
- MediaSourceType[MediaSourceType["PrimaryScreenSource"] = 4] = "PrimaryScreenSource";
110
- /**
111
- * @ignore
112
- */
113
- MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
114
- /**
115
- * @ignore
116
- */
117
- MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
118
- /**
119
- * @ignore
120
- */
121
- MediaSourceType[MediaSourceType["MediaPlayerSource"] = 7] = "MediaPlayerSource";
122
- /**
123
- * @ignore
124
- */
125
- MediaSourceType[MediaSourceType["RtcImagePngSource"] = 8] = "RtcImagePngSource";
126
- /**
127
- * @ignore
128
- */
129
- MediaSourceType[MediaSourceType["RtcImageJpegSource"] = 9] = "RtcImageJpegSource";
130
- /**
131
- * @ignore
132
- */
133
- MediaSourceType[MediaSourceType["RtcImageGifSource"] = 10] = "RtcImageGifSource";
134
- /**
135
- * @ignore
136
- */
137
- MediaSourceType[MediaSourceType["RemoteVideoSource"] = 11] = "RemoteVideoSource";
138
- /**
139
- * @ignore
140
- */
141
- MediaSourceType[MediaSourceType["TranscodedVideoSource"] = 12] = "TranscodedVideoSource";
142
- /**
143
- * 100: Unknown media source.
144
- */
145
- MediaSourceType[MediaSourceType["UnknownMediaSource"] = 100] = "UnknownMediaSource";
146
- })(MediaSourceType = exports.MediaSourceType || (exports.MediaSourceType = {}));
147
- /**
148
- * @ignore
149
- */
150
- var ContentInspectResult;
151
- (function (ContentInspectResult) {
152
- /**
153
- * @ignore
154
- */
155
- ContentInspectResult[ContentInspectResult["ContentInspectNeutral"] = 1] = "ContentInspectNeutral";
156
- /**
157
- * @ignore
158
- */
159
- ContentInspectResult[ContentInspectResult["ContentInspectSexy"] = 2] = "ContentInspectSexy";
160
- /**
161
- * @ignore
162
- */
163
- ContentInspectResult[ContentInspectResult["ContentInspectPorn"] = 3] = "ContentInspectPorn";
164
- })(ContentInspectResult = exports.ContentInspectResult || (exports.ContentInspectResult = {}));
165
- /**
166
- * The type of video content moderation module.
167
- */
168
- var ContentInspectType;
169
- (function (ContentInspectType) {
170
- /**
171
- * 0: (Default) This module has no actual function. Do not set type to this value.
172
- */
173
- ContentInspectType[ContentInspectType["ContentInspectInvalid"] = 0] = "ContentInspectInvalid";
174
- /**
175
- * 1: Video content moderation. SDK takes screenshots, inspects video content of the video stream in the channel, and uploads the screenshots and moderation results.
176
- */
177
- ContentInspectType[ContentInspectType["ContentInspectModeration"] = 1] = "ContentInspectModeration";
178
- /**
179
- * @ignore
180
- */
181
- ContentInspectType[ContentInspectType["ContentInspectSupervision"] = 2] = "ContentInspectSupervision";
182
- })(ContentInspectType = exports.ContentInspectType || (exports.ContentInspectType = {}));
183
- /**
184
- * A structure used to configure the frequency of video screenshot and upload.ContentInspectModule
185
- */
186
- class ContentInspectModule {
187
- }
188
- exports.ContentInspectModule = ContentInspectModule;
189
- /**
190
- * Configuration of video screenshot and upload.
191
- */
192
- class ContentInspectConfig {
193
- }
194
- exports.ContentInspectConfig = ContentInspectConfig;
195
- /**
196
- * @ignore
197
- */
198
- class PacketOptions {
199
- }
200
- exports.PacketOptions = PacketOptions;
201
- /**
202
- * @ignore
203
- */
204
- class AudioEncodedFrameInfo {
205
- }
206
- exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
207
- /**
208
- * The parameters of the audio frame in PCM format.
209
- */
210
- class AudioPcmFrame {
211
- }
212
- exports.AudioPcmFrame = AudioPcmFrame;
213
- /**
214
- * The channel mode.
215
- */
216
- var AudioDualMonoMode;
217
- (function (AudioDualMonoMode) {
218
- /**
219
- * 0: Original mode.
220
- */
221
- AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoStereo"] = 0] = "AudioDualMonoStereo";
222
- /**
223
- * 1: Left channel mode. This mode replaces the audio of the right channel with the audio of the left channel, which means the user can only hear the audio of the left channel.
224
- */
225
- AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoL"] = 1] = "AudioDualMonoL";
226
- /**
227
- * 2: Right channel mode. This mode replaces the audio of the left channel with the audio of the right channel, which means the user can only hear the audio of the right channel.
228
- */
229
- AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoR"] = 2] = "AudioDualMonoR";
230
- /**
231
- * 3: Mixed channel mode. This mode mixes the audio of the left channel and the right channel, which means the user can hear the audio of the left channel and the right channel at the same time.
232
- */
233
- AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoMix"] = 3] = "AudioDualMonoMix";
234
- })(AudioDualMonoMode = exports.AudioDualMonoMode || (exports.AudioDualMonoMode = {}));
235
- /**
236
- * The video pixel format.
237
- */
238
- var VideoPixelFormat;
239
- (function (VideoPixelFormat) {
240
- /**
241
- * 0: Raw video pixel format.
242
- */
243
- VideoPixelFormat[VideoPixelFormat["VideoPixelDefault"] = 0] = "VideoPixelDefault";
244
- /**
245
- * 1: The format is I420.
246
- */
247
- VideoPixelFormat[VideoPixelFormat["VideoPixelI420"] = 1] = "VideoPixelI420";
248
- /**
249
- * @ignore
250
- */
251
- VideoPixelFormat[VideoPixelFormat["VideoPixelBgra"] = 2] = "VideoPixelBgra";
252
- /**
253
- * @ignore
254
- */
255
- VideoPixelFormat[VideoPixelFormat["VideoPixelNv21"] = 3] = "VideoPixelNv21";
256
- /**
257
- * 4: The format is RGBA.
258
- */
259
- VideoPixelFormat[VideoPixelFormat["VideoPixelRgba"] = 4] = "VideoPixelRgba";
260
- /**
261
- * 8: The format is NV12.
262
- */
263
- VideoPixelFormat[VideoPixelFormat["VideoPixelNv12"] = 8] = "VideoPixelNv12";
264
- /**
265
- * @ignore
266
- */
267
- VideoPixelFormat[VideoPixelFormat["VideoTexture2d"] = 10] = "VideoTexture2d";
268
- /**
269
- * @ignore
270
- */
271
- VideoPixelFormat[VideoPixelFormat["VideoTextureOes"] = 11] = "VideoTextureOes";
272
- /**
273
- * @ignore
274
- */
275
- VideoPixelFormat[VideoPixelFormat["VideoCvpixelNv12"] = 12] = "VideoCvpixelNv12";
276
- /**
277
- * @ignore
278
- */
279
- VideoPixelFormat[VideoPixelFormat["VideoCvpixelI420"] = 13] = "VideoCvpixelI420";
280
- /**
281
- * @ignore
282
- */
283
- VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
284
- /**
285
- * 16: The format is I422.
286
- */
287
- VideoPixelFormat[VideoPixelFormat["VideoPixelI422"] = 16] = "VideoPixelI422";
288
- })(VideoPixelFormat = exports.VideoPixelFormat || (exports.VideoPixelFormat = {}));
289
- /**
290
- * Video display modes.
291
- */
292
- var RenderModeType;
293
- (function (RenderModeType) {
294
- /**
295
- * 1: Hidden mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). One dimension of the video may have clipped contents.
296
- */
297
- RenderModeType[RenderModeType["RenderModeHidden"] = 1] = "RenderModeHidden";
298
- /**
299
- * 2: Fit mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to disparity in the aspect ratio are filled with black.
300
- */
301
- RenderModeType[RenderModeType["RenderModeFit"] = 2] = "RenderModeFit";
302
- /**
303
- * @ignore
304
- */
305
- RenderModeType[RenderModeType["RenderModeAdaptive"] = 3] = "RenderModeAdaptive";
306
- })(RenderModeType = exports.RenderModeType || (exports.RenderModeType = {}));
307
- /**
308
- * @ignore
309
- */
310
- var EglContextType;
311
- (function (EglContextType) {
312
- /**
313
- * @ignore
314
- */
315
- EglContextType[EglContextType["EglContext10"] = 0] = "EglContext10";
316
- /**
317
- * @ignore
318
- */
319
- EglContextType[EglContextType["EglContext14"] = 1] = "EglContext14";
320
- })(EglContextType = exports.EglContextType || (exports.EglContextType = {}));
321
- /**
322
- * The video buffer type.
323
- */
324
- var VideoBufferType;
325
- (function (VideoBufferType) {
326
- /**
327
- * 1: The video buffer in the format of raw data.
328
- */
329
- VideoBufferType[VideoBufferType["VideoBufferRawData"] = 1] = "VideoBufferRawData";
330
- /**
331
- * 2: The video buffer in the format of raw data.
332
- */
333
- VideoBufferType[VideoBufferType["VideoBufferArray"] = 2] = "VideoBufferArray";
334
- /**
335
- * 3: The video buffer in the format of Texture.
336
- */
337
- VideoBufferType[VideoBufferType["VideoBufferTexture"] = 3] = "VideoBufferTexture";
338
- })(VideoBufferType = exports.VideoBufferType || (exports.VideoBufferType = {}));
339
- /**
340
- * The external video frame.
341
- */
342
- class ExternalVideoFrame {
343
- }
344
- exports.ExternalVideoFrame = ExternalVideoFrame;
345
- /**
346
- * Configurations of the video frame.
347
- * The video data format is YUV420. Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
348
- */
349
- class VideoFrame {
350
- }
351
- exports.VideoFrame = VideoFrame;
352
- /**
353
- * @ignore
354
- */
355
- var MediaPlayerSourceType;
356
- (function (MediaPlayerSourceType) {
357
- /**
358
- * @ignore
359
- */
360
- MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceDefault"] = 0] = "MediaPlayerSourceDefault";
361
- /**
362
- * @ignore
363
- */
364
- MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceFullFeatured"] = 1] = "MediaPlayerSourceFullFeatured";
365
- /**
366
- * @ignore
367
- */
368
- MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceSimple"] = 2] = "MediaPlayerSourceSimple";
369
- })(MediaPlayerSourceType = exports.MediaPlayerSourceType || (exports.MediaPlayerSourceType = {}));
370
- /**
371
- * The frame position of the video observer.
372
- */
373
- var VideoModulePosition;
374
- (function (VideoModulePosition) {
375
- /**
376
- * 1: The post-capturer position, which corresponds to the video data in the onCaptureVideoFrame callback.
377
- */
378
- VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
379
- /**
380
- * 2: The pre-renderer position, which corresponds to the video data in the onRenderVideoFrame callback.
381
- */
382
- VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
383
- /**
384
- * 4: The pre-encoder position, which corresponds to the video data in the onPreEncodeVideoFrame callback.
385
- */
386
- VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
387
- })(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
388
- /**
389
- * Audio frame type.
390
- */
391
- var AudioFrameType;
392
- (function (AudioFrameType) {
393
- /**
394
- * 0: PCM 16
395
- */
396
- AudioFrameType[AudioFrameType["FrameTypePcm16"] = 0] = "FrameTypePcm16";
397
- })(AudioFrameType = exports.AudioFrameType || (exports.AudioFrameType = {}));
398
- /**
399
- * Raw audio data.
400
- */
401
- class AudioFrame {
402
- }
403
- exports.AudioFrame = AudioFrame;
404
- /**
405
- * @ignore
406
- */
407
- var AudioFramePosition;
408
- (function (AudioFramePosition) {
409
- /**
410
- * @ignore
411
- */
412
- AudioFramePosition[AudioFramePosition["AudioFramePositionNone"] = 0] = "AudioFramePositionNone";
413
- /**
414
- * @ignore
415
- */
416
- AudioFramePosition[AudioFramePosition["AudioFramePositionPlayback"] = 1] = "AudioFramePositionPlayback";
417
- /**
418
- * @ignore
419
- */
420
- AudioFramePosition[AudioFramePosition["AudioFramePositionRecord"] = 2] = "AudioFramePositionRecord";
421
- /**
422
- * @ignore
423
- */
424
- AudioFramePosition[AudioFramePosition["AudioFramePositionMixed"] = 4] = "AudioFramePositionMixed";
425
- /**
426
- * @ignore
427
- */
428
- AudioFramePosition[AudioFramePosition["AudioFramePositionBeforeMixing"] = 8] = "AudioFramePositionBeforeMixing";
429
- /**
430
- * @ignore
431
- */
432
- AudioFramePosition[AudioFramePosition["AudioFramePositionEarMonitoring"] = 16] = "AudioFramePositionEarMonitoring";
433
- })(AudioFramePosition = exports.AudioFramePosition || (exports.AudioFramePosition = {}));
434
- /**
435
- * Audio data format.
436
- * The SDK sets the audio data format in the following callbacks according to AudioParams. onRecordAudioFrame onPlaybackAudioFrame onMixedAudioFrame The SDK calculates the sampling interval through the samplesPerCall, sampleRate, and channel parameters in AudioParams, and triggers the onRecordAudioFrame, onPlaybackAudioFrame, onMixedAudioFrame, and onEarMonitoringAudioFrame callbacks according to the sampling interval.Sample interval (sec) = samplePerCall/(sampleRate × channel).Ensure that the sample interval ≥ 0.01 (s).
437
- */
438
- class AudioParams {
439
- }
440
- exports.AudioParams = AudioParams;
441
- /**
442
- * The audio spectrum data.
443
- */
444
- class AudioSpectrumData {
445
- }
446
- exports.AudioSpectrumData = AudioSpectrumData;
447
- /**
448
- * Audio spectrum information of the remote user.
449
- */
450
- class UserAudioSpectrumInfo {
451
- }
452
- exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
453
- /**
454
- * The process mode of the video frame:
455
- */
456
- var VideoFrameProcessMode;
457
- (function (VideoFrameProcessMode) {
458
- /**
459
- * Read-only mode.In this mode, you do not modify the video frame. The video frame observer is a renderer.
460
- */
461
- VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadOnly"] = 0] = "ProcessModeReadOnly";
462
- /**
463
- * Read and write mode.In this mode, you modify the video frame. The video frame observer is a video filter.
464
- */
465
- VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadWrite"] = 1] = "ProcessModeReadWrite";
466
- })(VideoFrameProcessMode = exports.VideoFrameProcessMode || (exports.VideoFrameProcessMode = {}));
467
- /**
468
- * The external video frame encoding type.
469
- */
470
- var ExternalVideoSourceType;
471
- (function (ExternalVideoSourceType) {
472
- /**
473
- * 0: The video frame is not encoded.
474
- */
475
- ExternalVideoSourceType[ExternalVideoSourceType["VideoFrame"] = 0] = "VideoFrame";
476
- /**
477
- * 1: The video frame is encoded.
478
- */
479
- ExternalVideoSourceType[ExternalVideoSourceType["EncodedVideoFrame"] = 1] = "EncodedVideoFrame";
480
- })(ExternalVideoSourceType = exports.ExternalVideoSourceType || (exports.ExternalVideoSourceType = {}));
481
- /**
482
- * The format of the recording file.
483
- */
484
- var MediaRecorderContainerFormat;
485
- (function (MediaRecorderContainerFormat) {
486
- /**
487
- * 1: (Default) MP4.
488
- */
489
- MediaRecorderContainerFormat[MediaRecorderContainerFormat["FormatMp4"] = 1] = "FormatMp4";
490
- })(MediaRecorderContainerFormat = exports.MediaRecorderContainerFormat || (exports.MediaRecorderContainerFormat = {}));
491
- /**
492
- * The recording content.
493
- */
494
- var MediaRecorderStreamType;
495
- (function (MediaRecorderStreamType) {
496
- /**
497
- * Only audio.
498
- */
499
- MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeAudio"] = 1] = "StreamTypeAudio";
500
- /**
501
- * Only video.
502
- */
503
- MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeVideo"] = 2] = "StreamTypeVideo";
504
- /**
505
- * (Default) Audio and video.
506
- */
507
- MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeBoth"] = 3] = "StreamTypeBoth";
508
- })(MediaRecorderStreamType = exports.MediaRecorderStreamType || (exports.MediaRecorderStreamType = {}));
509
- /**
510
- * The current recording state.
511
- */
512
- var RecorderState;
513
- (function (RecorderState) {
514
- /**
515
- * -1: An error occurs during the recording. See RecorderErrorCode for the reason.
516
- */
517
- RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
518
- /**
519
- * 2: The audio and video recording starts.
520
- */
521
- RecorderState[RecorderState["RecorderStateStart"] = 2] = "RecorderStateStart";
522
- /**
523
- * 3: The audio and video recording stops.
524
- */
525
- RecorderState[RecorderState["RecorderStateStop"] = 3] = "RecorderStateStop";
526
- })(RecorderState = exports.RecorderState || (exports.RecorderState = {}));
527
- /**
528
- * The reason for the state change.
529
- */
530
- var RecorderErrorCode;
531
- (function (RecorderErrorCode) {
532
- /**
533
- * 0: No error.
534
- */
535
- RecorderErrorCode[RecorderErrorCode["RecorderErrorNone"] = 0] = "RecorderErrorNone";
536
- /**
537
- * 1: The SDK fails to write the recorded data to a file.
538
- */
539
- RecorderErrorCode[RecorderErrorCode["RecorderErrorWriteFailed"] = 1] = "RecorderErrorWriteFailed";
540
- /**
541
- * 2: The SDK does not detect any audio and video streams, or audio and video streams are interrupted for more than five seconds during recording.
542
- */
543
- RecorderErrorCode[RecorderErrorCode["RecorderErrorNoStream"] = 2] = "RecorderErrorNoStream";
544
- /**
545
- * 3: The recording duration exceeds the upper limit.
546
- */
547
- RecorderErrorCode[RecorderErrorCode["RecorderErrorOverMaxDuration"] = 3] = "RecorderErrorOverMaxDuration";
548
- /**
549
- * 4: The recording configuration changes.
550
- */
551
- RecorderErrorCode[RecorderErrorCode["RecorderErrorConfigChanged"] = 4] = "RecorderErrorConfigChanged";
552
- })(RecorderErrorCode = exports.RecorderErrorCode || (exports.RecorderErrorCode = {}));
553
- /**
554
- * Configurations for the local audio and video recording.
555
- */
556
- class MediaRecorderConfiguration {
557
- }
558
- exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
559
- /**
560
- * The information about the file that is recorded.
561
- */
562
- class RecorderInfo {
563
- }
564
- exports.RecorderInfo = RecorderInfo;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderErrorCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.VideoSourceType = void 0;
4
+ require("./extension/AgoraMediaBaseExtension");
5
+ /**
6
+ * The capture type of the custom video source.
7
+ */
8
+ var VideoSourceType;
9
+ (function (VideoSourceType) {
10
+ /**
11
+ * @ignore
12
+ */
13
+ VideoSourceType[VideoSourceType["VideoSourceCameraPrimary"] = 0] = "VideoSourceCameraPrimary";
14
+ /**
15
+ * The camera.
16
+ */
17
+ VideoSourceType[VideoSourceType["VideoSourceCamera"] = 0] = "VideoSourceCamera";
18
+ /**
19
+ * The secondary camera.
20
+ */
21
+ VideoSourceType[VideoSourceType["VideoSourceCameraSecondary"] = 1] = "VideoSourceCameraSecondary";
22
+ /**
23
+ * The primary screen.
24
+ */
25
+ VideoSourceType[VideoSourceType["VideoSourceScreenPrimary"] = 2] = "VideoSourceScreenPrimary";
26
+ /**
27
+ * The screen.
28
+ */
29
+ VideoSourceType[VideoSourceType["VideoSourceScreen"] = 2] = "VideoSourceScreen";
30
+ /**
31
+ * The secondary screen.
32
+ */
33
+ VideoSourceType[VideoSourceType["VideoSourceScreenSecondary"] = 3] = "VideoSourceScreenSecondary";
34
+ /**
35
+ * The custom video source.
36
+ */
37
+ VideoSourceType[VideoSourceType["VideoSourceCustom"] = 4] = "VideoSourceCustom";
38
+ /**
39
+ * The video source from the media player.
40
+ */
41
+ VideoSourceType[VideoSourceType["VideoSourceMediaPlayer"] = 5] = "VideoSourceMediaPlayer";
42
+ /**
43
+ * The video source is a PNG image.
44
+ */
45
+ VideoSourceType[VideoSourceType["VideoSourceRtcImagePng"] = 6] = "VideoSourceRtcImagePng";
46
+ /**
47
+ * The video source is a JPEG image.
48
+ */
49
+ VideoSourceType[VideoSourceType["VideoSourceRtcImageJpeg"] = 7] = "VideoSourceRtcImageJpeg";
50
+ /**
51
+ * The video source is a GIF image.
52
+ */
53
+ VideoSourceType[VideoSourceType["VideoSourceRtcImageGif"] = 8] = "VideoSourceRtcImageGif";
54
+ /**
55
+ * The video source is remote video acquired by the network.
56
+ */
57
+ VideoSourceType[VideoSourceType["VideoSourceRemote"] = 9] = "VideoSourceRemote";
58
+ /**
59
+ * A transcoded video source.
60
+ */
61
+ VideoSourceType[VideoSourceType["VideoSourceTranscoded"] = 10] = "VideoSourceTranscoded";
62
+ /**
63
+ * @ignore
64
+ */
65
+ VideoSourceType[VideoSourceType["VideoSourceCameraThird"] = 11] = "VideoSourceCameraThird";
66
+ /**
67
+ * @ignore
68
+ */
69
+ VideoSourceType[VideoSourceType["VideoSourceCameraFourth"] = 12] = "VideoSourceCameraFourth";
70
+ /**
71
+ * @ignore
72
+ */
73
+ VideoSourceType[VideoSourceType["VideoSourceScreenThird"] = 13] = "VideoSourceScreenThird";
74
+ /**
75
+ * @ignore
76
+ */
77
+ VideoSourceType[VideoSourceType["VideoSourceScreenFourth"] = 14] = "VideoSourceScreenFourth";
78
+ /**
79
+ * An unknown video source.
80
+ */
81
+ VideoSourceType[VideoSourceType["VideoSourceUnknown"] = 100] = "VideoSourceUnknown";
82
+ })(VideoSourceType = exports.VideoSourceType || (exports.VideoSourceType = {}));
83
+ /**
84
+ * The type of the audio route.
85
+ */
86
+ var AudioRoute;
87
+ (function (AudioRoute) {
88
+ /**
89
+ * -1: The default audio route.
90
+ */
91
+ AudioRoute[AudioRoute["RouteDefault"] = -1] = "RouteDefault";
92
+ /**
93
+ * 0: Audio output routing is a headset with microphone.
94
+ */
95
+ AudioRoute[AudioRoute["RouteHeadset"] = 0] = "RouteHeadset";
96
+ /**
97
+ * 1: The audio route is an earpiece.
98
+ */
99
+ AudioRoute[AudioRoute["RouteEarpiece"] = 1] = "RouteEarpiece";
100
+ /**
101
+ * 2: The audio route is a headset without a microphone.
102
+ */
103
+ AudioRoute[AudioRoute["RouteHeadsetnomic"] = 2] = "RouteHeadsetnomic";
104
+ /**
105
+ * 3: The audio route is the speaker that comes with the device.
106
+ */
107
+ AudioRoute[AudioRoute["RouteSpeakerphone"] = 3] = "RouteSpeakerphone";
108
+ /**
109
+ * 4: The audio route is an external speaker. (macOS only)
110
+ */
111
+ AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
112
+ /**
113
+ * @ignore
114
+ */
115
+ AudioRoute[AudioRoute["RouteHeadsetbluetooth"] = 5] = "RouteHeadsetbluetooth";
116
+ /**
117
+ * 7: The audio route is a USB peripheral device. (For macOS only)
118
+ */
119
+ AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
120
+ /**
121
+ * 6: The audio route is an HDMI peripheral device. (For macOS only)
122
+ */
123
+ AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
124
+ /**
125
+ * 8: The audio route is a DisplayPort peripheral device. (For macOS only)
126
+ */
127
+ AudioRoute[AudioRoute["RouteDisplayport"] = 8] = "RouteDisplayport";
128
+ /**
129
+ * 9: The audio route is Apple AirPlay. (For macOS only)
130
+ */
131
+ AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
132
+ })(AudioRoute = exports.AudioRoute || (exports.AudioRoute = {}));
133
+ /**
134
+ * @ignore
135
+ */
136
+ var BytesPerSample;
137
+ (function (BytesPerSample) {
138
+ /**
139
+ * @ignore
140
+ */
141
+ BytesPerSample[BytesPerSample["TwoBytesPerSample"] = 2] = "TwoBytesPerSample";
142
+ })(BytesPerSample = exports.BytesPerSample || (exports.BytesPerSample = {}));
143
+ /**
144
+ * @ignore
145
+ */
146
+ class AudioParameters {
147
+ /**
148
+ * @ignore
149
+ */
150
+ sample_rate;
151
+ /**
152
+ * @ignore
153
+ */
154
+ channels;
155
+ /**
156
+ * @ignore
157
+ */
158
+ frames_per_buffer;
159
+ }
160
+ exports.AudioParameters = AudioParameters;
161
+ /**
162
+ * The use mode of the audio data.
163
+ */
164
+ var RawAudioFrameOpModeType;
165
+ (function (RawAudioFrameOpModeType) {
166
+ /**
167
+ * 0: Read-only mode, Users only read the data returned by the SDK without modifying anything. For example, when users acquire the data with the Agora SDK, then start the media push.
168
+ */
169
+ RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadOnly"] = 0] = "RawAudioFrameOpModeReadOnly";
170
+ /**
171
+ * 2: Read and write mode, Users read the data returned by the SDK, modify it, and then play it. For example, when users have their own audio-effect processing module and perform some voice preprocessing, such as a voice change.
172
+ */
173
+ RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadWrite"] = 2] = "RawAudioFrameOpModeReadWrite";
174
+ })(RawAudioFrameOpModeType = exports.RawAudioFrameOpModeType || (exports.RawAudioFrameOpModeType = {}));
175
+ /**
176
+ * Media source type.
177
+ */
178
+ var MediaSourceType;
179
+ (function (MediaSourceType) {
180
+ /**
181
+ * 0: Audio playback device.
182
+ */
183
+ MediaSourceType[MediaSourceType["AudioPlayoutSource"] = 0] = "AudioPlayoutSource";
184
+ /**
185
+ * 1: Audio capturing device.
186
+ */
187
+ MediaSourceType[MediaSourceType["AudioRecordingSource"] = 1] = "AudioRecordingSource";
188
+ /**
189
+ * 2: The primary camera.
190
+ */
191
+ MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
192
+ /**
193
+ * 3: The secondary camera.
194
+ */
195
+ MediaSourceType[MediaSourceType["SecondaryCameraSource"] = 3] = "SecondaryCameraSource";
196
+ /**
197
+ * @ignore
198
+ */
199
+ MediaSourceType[MediaSourceType["PrimaryScreenSource"] = 4] = "PrimaryScreenSource";
200
+ /**
201
+ * @ignore
202
+ */
203
+ MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
204
+ /**
205
+ * @ignore
206
+ */
207
+ MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
208
+ /**
209
+ * @ignore
210
+ */
211
+ MediaSourceType[MediaSourceType["MediaPlayerSource"] = 7] = "MediaPlayerSource";
212
+ /**
213
+ * @ignore
214
+ */
215
+ MediaSourceType[MediaSourceType["RtcImagePngSource"] = 8] = "RtcImagePngSource";
216
+ /**
217
+ * @ignore
218
+ */
219
+ MediaSourceType[MediaSourceType["RtcImageJpegSource"] = 9] = "RtcImageJpegSource";
220
+ /**
221
+ * @ignore
222
+ */
223
+ MediaSourceType[MediaSourceType["RtcImageGifSource"] = 10] = "RtcImageGifSource";
224
+ /**
225
+ * @ignore
226
+ */
227
+ MediaSourceType[MediaSourceType["RemoteVideoSource"] = 11] = "RemoteVideoSource";
228
+ /**
229
+ * @ignore
230
+ */
231
+ MediaSourceType[MediaSourceType["TranscodedVideoSource"] = 12] = "TranscodedVideoSource";
232
+ /**
233
+ * 100: Unknown media source.
234
+ */
235
+ MediaSourceType[MediaSourceType["UnknownMediaSource"] = 100] = "UnknownMediaSource";
236
+ })(MediaSourceType = exports.MediaSourceType || (exports.MediaSourceType = {}));
237
+ /**
238
+ * @ignore
239
+ */
240
+ var ContentInspectResult;
241
+ (function (ContentInspectResult) {
242
+ /**
243
+ * @ignore
244
+ */
245
+ ContentInspectResult[ContentInspectResult["ContentInspectNeutral"] = 1] = "ContentInspectNeutral";
246
+ /**
247
+ * @ignore
248
+ */
249
+ ContentInspectResult[ContentInspectResult["ContentInspectSexy"] = 2] = "ContentInspectSexy";
250
+ /**
251
+ * @ignore
252
+ */
253
+ ContentInspectResult[ContentInspectResult["ContentInspectPorn"] = 3] = "ContentInspectPorn";
254
+ })(ContentInspectResult = exports.ContentInspectResult || (exports.ContentInspectResult = {}));
255
+ /**
256
+ * The type of video content moderation module.
257
+ */
258
+ var ContentInspectType;
259
+ (function (ContentInspectType) {
260
+ /**
261
+ * 0: (Default) This module has no actual function. Do not set type to this value.
262
+ */
263
+ ContentInspectType[ContentInspectType["ContentInspectInvalid"] = 0] = "ContentInspectInvalid";
264
+ /**
265
+ * 1: Video content moderation. SDK takes screenshots, inspects video content of the video stream in the channel, and uploads the screenshots and moderation results.
266
+ */
267
+ ContentInspectType[ContentInspectType["ContentInspectModeration"] = 1] = "ContentInspectModeration";
268
+ /**
269
+ * @ignore
270
+ */
271
+ ContentInspectType[ContentInspectType["ContentInspectSupervision"] = 2] = "ContentInspectSupervision";
272
+ })(ContentInspectType = exports.ContentInspectType || (exports.ContentInspectType = {}));
273
+ /**
274
+ * A structure used to configure the frequency of video screenshot and upload.ContentInspectModule
275
+ */
276
+ class ContentInspectModule {
277
+ /**
278
+ * Types of functional module. See ContentInspectType .
279
+ */
280
+ type;
281
+ /**
282
+ * The frequency (s) of video screenshot and upload. The value should be set as larger than 0. The default value is 0, the SDK does not take screenshots. Agora recommends that you set the value as 10; you can also adjust it according to your business needs.
283
+ */
284
+ interval;
285
+ }
286
+ exports.ContentInspectModule = ContentInspectModule;
287
+ /**
288
+ * Configuration of video screenshot and upload.
289
+ */
290
+ class ContentInspectConfig {
291
+ /**
292
+ * Additional information on the video content (maximum length: 1024 Bytes).The SDK sends the screenshots and additional information on the video content to the Agora server. Once the video screenshot and upload process is completed, the Agora server sends the additional information and the callback notification to your server.
293
+ */
294
+ extraInfo;
295
+ /**
296
+ * Functional module. See ContentInspectModule .A maximum of 32 ContentInspectModule instances can be configured, and the value range of MAX_CONTENT_INSPECT_MODULE_COUNT is an integer in [1,32].A function module can only be configured with one instance at most. Currently only the video screenshot and upload function is supported.
297
+ */
298
+ modules;
299
+ /**
300
+ * The number of functional modules, that is,the number of configured ContentInspectModule instances, must be the same as the number of instances configured in modules. The maximum number is 32.
301
+ */
302
+ moduleCount;
303
+ }
304
+ exports.ContentInspectConfig = ContentInspectConfig;
305
+ /**
306
+ * @ignore
307
+ */
308
+ class PacketOptions {
309
+ /**
310
+ * @ignore
311
+ */
312
+ timestamp;
313
+ /**
314
+ * @ignore
315
+ */
316
+ audioLevelIndication;
317
+ }
318
+ exports.PacketOptions = PacketOptions;
319
+ /**
320
+ * @ignore
321
+ */
322
+ class AudioEncodedFrameInfo {
323
+ /**
324
+ * @ignore
325
+ */
326
+ sendTs;
327
+ /**
328
+ * @ignore
329
+ */
330
+ codec;
331
+ }
332
+ exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
333
+ /**
334
+ * The parameters of the audio frame in PCM format.
335
+ */
336
+ class AudioPcmFrame {
337
+ /**
338
+ * The timestamp (ms) of the audio frame.
339
+ */
340
+ capture_timestamp;
341
+ /**
342
+ * The number of samples per channel in the audio frame.
343
+ */
344
+ samples_per_channel_;
345
+ /**
346
+ * Audio sample rate (Hz).
347
+ */
348
+ sample_rate_hz_;
349
+ /**
350
+ * The number of audio channels.
351
+ */
352
+ num_channels_;
353
+ /**
354
+ * The number of bytes per sample.
355
+ */
356
+ bytes_per_sample;
357
+ /**
358
+ * The video frame.
359
+ */
360
+ data_;
361
+ }
362
+ exports.AudioPcmFrame = AudioPcmFrame;
363
+ /**
364
+ * The channel mode.
365
+ */
366
+ var AudioDualMonoMode;
367
+ (function (AudioDualMonoMode) {
368
+ /**
369
+ * 0: Original mode.
370
+ */
371
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoStereo"] = 0] = "AudioDualMonoStereo";
372
+ /**
373
+ * 1: Left channel mode. This mode replaces the audio of the right channel with the audio of the left channel, which means the user can only hear the audio of the left channel.
374
+ */
375
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoL"] = 1] = "AudioDualMonoL";
376
+ /**
377
+ * 2: Right channel mode. This mode replaces the audio of the left channel with the audio of the right channel, which means the user can only hear the audio of the right channel.
378
+ */
379
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoR"] = 2] = "AudioDualMonoR";
380
+ /**
381
+ * 3: Mixed channel mode. This mode mixes the audio of the left channel and the right channel, which means the user can hear the audio of the left channel and the right channel at the same time.
382
+ */
383
+ AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoMix"] = 3] = "AudioDualMonoMix";
384
+ })(AudioDualMonoMode = exports.AudioDualMonoMode || (exports.AudioDualMonoMode = {}));
385
+ /**
386
+ * The video pixel format.
387
+ */
388
+ var VideoPixelFormat;
389
+ (function (VideoPixelFormat) {
390
+ /**
391
+ * 0: Raw video pixel format.
392
+ */
393
+ VideoPixelFormat[VideoPixelFormat["VideoPixelDefault"] = 0] = "VideoPixelDefault";
394
+ /**
395
+ * 1: The format is I420.
396
+ */
397
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI420"] = 1] = "VideoPixelI420";
398
+ /**
399
+ * @ignore
400
+ */
401
+ VideoPixelFormat[VideoPixelFormat["VideoPixelBgra"] = 2] = "VideoPixelBgra";
402
+ /**
403
+ * @ignore
404
+ */
405
+ VideoPixelFormat[VideoPixelFormat["VideoPixelNv21"] = 3] = "VideoPixelNv21";
406
+ /**
407
+ * 4: The format is RGBA.
408
+ */
409
+ VideoPixelFormat[VideoPixelFormat["VideoPixelRgba"] = 4] = "VideoPixelRgba";
410
+ /**
411
+ * 8: The format is NV12.
412
+ */
413
+ VideoPixelFormat[VideoPixelFormat["VideoPixelNv12"] = 8] = "VideoPixelNv12";
414
+ /**
415
+ * @ignore
416
+ */
417
+ VideoPixelFormat[VideoPixelFormat["VideoTexture2d"] = 10] = "VideoTexture2d";
418
+ /**
419
+ * @ignore
420
+ */
421
+ VideoPixelFormat[VideoPixelFormat["VideoTextureOes"] = 11] = "VideoTextureOes";
422
+ /**
423
+ * @ignore
424
+ */
425
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelNv12"] = 12] = "VideoCvpixelNv12";
426
+ /**
427
+ * @ignore
428
+ */
429
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelI420"] = 13] = "VideoCvpixelI420";
430
+ /**
431
+ * @ignore
432
+ */
433
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
434
+ /**
435
+ * 16: The format is I422.
436
+ */
437
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI422"] = 16] = "VideoPixelI422";
438
+ })(VideoPixelFormat = exports.VideoPixelFormat || (exports.VideoPixelFormat = {}));
439
+ /**
440
+ * Video display modes.
441
+ */
442
+ var RenderModeType;
443
+ (function (RenderModeType) {
444
+ /**
445
+ * 1: Hidden mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). One dimension of the video may have clipped contents.
446
+ */
447
+ RenderModeType[RenderModeType["RenderModeHidden"] = 1] = "RenderModeHidden";
448
+ /**
449
+ * 2: Fit mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to disparity in the aspect ratio are filled with black.
450
+ */
451
+ RenderModeType[RenderModeType["RenderModeFit"] = 2] = "RenderModeFit";
452
+ /**
453
+ * @ignore
454
+ */
455
+ RenderModeType[RenderModeType["RenderModeAdaptive"] = 3] = "RenderModeAdaptive";
456
+ })(RenderModeType = exports.RenderModeType || (exports.RenderModeType = {}));
457
+ /**
458
+ * @ignore
459
+ */
460
+ var CameraVideoSourceType;
461
+ (function (CameraVideoSourceType) {
462
+ /**
463
+ * @ignore
464
+ */
465
+ CameraVideoSourceType[CameraVideoSourceType["CameraSourceFront"] = 0] = "CameraSourceFront";
466
+ /**
467
+ * @ignore
468
+ */
469
+ CameraVideoSourceType[CameraVideoSourceType["CameraSourceBack"] = 1] = "CameraSourceBack";
470
+ /**
471
+ * @ignore
472
+ */
473
+ CameraVideoSourceType[CameraVideoSourceType["VideoSourceUnspecified"] = 2] = "VideoSourceUnspecified";
474
+ })(CameraVideoSourceType = exports.CameraVideoSourceType || (exports.CameraVideoSourceType = {}));
475
+ /**
476
+ * @ignore
477
+ */
478
+ var EglContextType;
479
+ (function (EglContextType) {
480
+ /**
481
+ * @ignore
482
+ */
483
+ EglContextType[EglContextType["EglContext10"] = 0] = "EglContext10";
484
+ /**
485
+ * @ignore
486
+ */
487
+ EglContextType[EglContextType["EglContext14"] = 1] = "EglContext14";
488
+ })(EglContextType = exports.EglContextType || (exports.EglContextType = {}));
489
+ /**
490
+ * The video buffer type.
491
+ */
492
+ var VideoBufferType;
493
+ (function (VideoBufferType) {
494
+ /**
495
+ * 1: The video buffer in the format of raw data.
496
+ */
497
+ VideoBufferType[VideoBufferType["VideoBufferRawData"] = 1] = "VideoBufferRawData";
498
+ /**
499
+ * 2: The video buffer in the format of raw data.
500
+ */
501
+ VideoBufferType[VideoBufferType["VideoBufferArray"] = 2] = "VideoBufferArray";
502
+ /**
503
+ * 3: The video buffer in the format of Texture.
504
+ */
505
+ VideoBufferType[VideoBufferType["VideoBufferTexture"] = 3] = "VideoBufferTexture";
506
+ })(VideoBufferType = exports.VideoBufferType || (exports.VideoBufferType = {}));
507
+ /**
508
+ * The external video frame.
509
+ */
510
+ class ExternalVideoFrame {
511
+ /**
512
+ * The video type. See VideoBufferType .
513
+ */
514
+ type;
515
+ /**
516
+ * The pixel format. See VideoPixelFormat .
517
+ */
518
+ format;
519
+ /**
520
+ * Video frame buffer.
521
+ */
522
+ buffer;
523
+ /**
524
+ * Line spacing of the incoming video frame, which must be in pixels instead of bytes. For textures, it is the width of the texture.
525
+ */
526
+ stride;
527
+ /**
528
+ * Height of the incoming video frame.
529
+ */
530
+ height;
531
+ /**
532
+ * Raw data related parameter. The number of pixels trimmed from the left. The default value is 0.
533
+ */
534
+ cropLeft;
535
+ /**
536
+ * Raw data related parameter. The number of pixels trimmed from the top. The default value is 0.
537
+ */
538
+ cropTop;
539
+ /**
540
+ * Raw data related parameter. The number of pixels trimmed from the right. The default value is 0.
541
+ */
542
+ cropRight;
543
+ /**
544
+ * Raw data related parameter. The number of pixels trimmed from the bottom. The default value is 0.
545
+ */
546
+ cropBottom;
547
+ /**
548
+ * Raw data related parameter. The clockwise rotation of the video frame. You can set the rotation angle as 0, 90, 180, or 270. The default value is 0.
549
+ */
550
+ rotation;
551
+ /**
552
+ * Timestamp (ms) of the incoming video frame. An incorrect timestamp results in frame loss or unsynchronized audio and video.
553
+ */
554
+ timestamp;
555
+ /**
556
+ * This parameter only applies to video data in Texture format. Texture ID of the frame.
557
+ */
558
+ eglType;
559
+ /**
560
+ * This parameter only applies to video data in Texture format. Incoming 4 x 4 transformational matrix. The typical value is a unit matrix.
561
+ */
562
+ textureId;
563
+ /**
564
+ * This parameter only applies to video data in Texture format. Incoming 4 x 4 transformational matrix. The typical value is a unit matrix.
565
+ */
566
+ matrix;
567
+ /**
568
+ * This parameter only applies to video data in Texture format. The MetaData buffer. The default value is NULL.
569
+ */
570
+ metadata_buffer;
571
+ /**
572
+ * This parameter only applies to video data in Texture format. The MetaData size. The default value is 0.
573
+ */
574
+ metadata_size;
575
+ /**
576
+ * @ignore
577
+ */
578
+ alphaBuffer;
579
+ }
580
+ exports.ExternalVideoFrame = ExternalVideoFrame;
581
+ /**
582
+ * Configurations of the video frame.
583
+ * Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
584
+ */
585
+ class VideoFrame {
586
+ /**
587
+ * The pixel format. See VideoPixelFormat .
588
+ */
589
+ type;
590
+ /**
591
+ * The width of the video, in pixels.
592
+ */
593
+ width;
594
+ /**
595
+ * The height of the video, in pixels.
596
+ */
597
+ height;
598
+ /**
599
+ * For YUV data, the line span of the Y buffer; for RGBA data, the total data length.
600
+ */
601
+ yStride;
602
+ /**
603
+ * For YUV data, the line span of the U buffer; for RGBA data, the value is 0.
604
+ */
605
+ uStride;
606
+ /**
607
+ * For YUV data, the line span of the V buffer; for RGBA data, the value is 0.
608
+ */
609
+ vStride;
610
+ /**
611
+ * For YUV data, the pointer to the Y buffer; for RGBA data, the data buffer.
612
+ */
613
+ yBuffer;
614
+ /**
615
+ * For YUV data, the pointer to the U buffer; for RGBA data, the value is 0.
616
+ */
617
+ uBuffer;
618
+ /**
619
+ * For YUV data, the pointer to the V buffer; for RGBA data, the value is 0.
620
+ */
621
+ vBuffer;
622
+ /**
623
+ * The clockwise rotation of the video frame before rendering. Supported values include 0, 90, 180, and 270 degrees.
624
+ */
625
+ rotation;
626
+ /**
627
+ * The Unix timestamp (ms) when the video frame is rendered. This timestamp can be used to guide the rendering of the video frame. It is required.
628
+ */
629
+ renderTimeMs;
630
+ /**
631
+ * Reserved for future use.
632
+ */
633
+ avsync_type;
634
+ /**
635
+ * This parameter only applies to video data in Texture format. The MetaData buffer. The default value is NULL.
636
+ */
637
+ metadata_buffer;
638
+ /**
639
+ * This parameter only applies to video data in Texture format. The MetaData size. The default value is 0.
640
+ */
641
+ metadata_size;
642
+ /**
643
+ * This parameter only applies to video data in Texture format. Texture ID.
644
+ */
645
+ textureId;
646
+ /**
647
+ * This parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
648
+ */
649
+ matrix;
650
+ /**
651
+ * @ignore
652
+ */
653
+ alphaBuffer;
654
+ /**
655
+ * @ignore
656
+ */
657
+ pixelBuffer;
658
+ }
659
+ exports.VideoFrame = VideoFrame;
660
+ /**
661
+ * @ignore
662
+ */
663
+ var MediaPlayerSourceType;
664
+ (function (MediaPlayerSourceType) {
665
+ /**
666
+ * @ignore
667
+ */
668
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceDefault"] = 0] = "MediaPlayerSourceDefault";
669
+ /**
670
+ * @ignore
671
+ */
672
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceFullFeatured"] = 1] = "MediaPlayerSourceFullFeatured";
673
+ /**
674
+ * @ignore
675
+ */
676
+ MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceSimple"] = 2] = "MediaPlayerSourceSimple";
677
+ })(MediaPlayerSourceType = exports.MediaPlayerSourceType || (exports.MediaPlayerSourceType = {}));
678
+ /**
679
+ * The frame position of the video observer.
680
+ */
681
+ var VideoModulePosition;
682
+ (function (VideoModulePosition) {
683
+ /**
684
+ * 1: The post-capturer position, which corresponds to the video data in the onCaptureVideoFrame callback.
685
+ */
686
+ VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
687
+ /**
688
+ * 2: The pre-renderer position, which corresponds to the video data in the onRenderVideoFrame callback.
689
+ */
690
+ VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
691
+ /**
692
+ * 4: The pre-encoder position, which corresponds to the video data in the onPreEncodeVideoFrame callback.
693
+ */
694
+ VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
695
+ })(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
696
+ /**
697
+ * Audio frame type.
698
+ */
699
+ var AudioFrameType;
700
+ (function (AudioFrameType) {
701
+ /**
702
+ * 0: PCM 16
703
+ */
704
+ AudioFrameType[AudioFrameType["FrameTypePcm16"] = 0] = "FrameTypePcm16";
705
+ })(AudioFrameType = exports.AudioFrameType || (exports.AudioFrameType = {}));
706
+ /**
707
+ * Raw audio data.
708
+ */
709
+ class AudioFrame {
710
+ /**
711
+ * The type of the audio frame. See AudioFrameType .
712
+ */
713
+ type;
714
+ /**
715
+ * The number of samples per channel in the audio frame.
716
+ */
717
+ samplesPerChannel;
718
+ /**
719
+ * The number of bytes per audio sample, which is usually 16-bit (2 bytes).
720
+ */
721
+ bytesPerSample;
722
+ /**
723
+ * The number of audio channels (the data are interleaved if it is stereo).1: Mono.2: Stereo.
724
+ */
725
+ channels;
726
+ /**
727
+ * The number of samples per channel in the audio frame.
728
+ */
729
+ samplesPerSec;
730
+ /**
731
+ * The data buffer of the audio frame. When the audio frame uses a stereo channel, the data buffer is interleaved.The size of the data buffer is as follows: buffer = samples ×channels × bytesPerSample.
732
+ */
733
+ buffer;
734
+ /**
735
+ * The timestamp (ms) of the external audio frame.You can use this timestamp to restore the order of the captured audio frame, and synchronize audio and video frames in video scenarios, including scenarios where external video sources are used.
736
+ */
737
+ renderTimeMs;
738
+ /**
739
+ * Reserved for future use.
740
+ */
741
+ avsync_type;
742
+ }
743
+ exports.AudioFrame = AudioFrame;
744
+ /**
745
+ * @ignore
746
+ */
747
+ var AudioFramePosition;
748
+ (function (AudioFramePosition) {
749
+ /**
750
+ * @ignore
751
+ */
752
+ AudioFramePosition[AudioFramePosition["AudioFramePositionNone"] = 0] = "AudioFramePositionNone";
753
+ /**
754
+ * @ignore
755
+ */
756
+ AudioFramePosition[AudioFramePosition["AudioFramePositionPlayback"] = 1] = "AudioFramePositionPlayback";
757
+ /**
758
+ * @ignore
759
+ */
760
+ AudioFramePosition[AudioFramePosition["AudioFramePositionRecord"] = 2] = "AudioFramePositionRecord";
761
+ /**
762
+ * @ignore
763
+ */
764
+ AudioFramePosition[AudioFramePosition["AudioFramePositionMixed"] = 4] = "AudioFramePositionMixed";
765
+ /**
766
+ * @ignore
767
+ */
768
+ AudioFramePosition[AudioFramePosition["AudioFramePositionBeforeMixing"] = 8] = "AudioFramePositionBeforeMixing";
769
+ /**
770
+ * @ignore
771
+ */
772
+ AudioFramePosition[AudioFramePosition["AudioFramePositionEarMonitoring"] = 16] = "AudioFramePositionEarMonitoring";
773
+ })(AudioFramePosition = exports.AudioFramePosition || (exports.AudioFramePosition = {}));
774
+ /**
775
+ * Audio data format.
776
+ * The SDK sets the audio data format in the following callbacks according to AudioParams. onRecordAudioFrame onPlaybackAudioFrame onMixedAudioFrame The SDK calculates the sampling interval through the samplesPerCall, sampleRate, and channel parameters in AudioParams, and triggers the onRecordAudioFrame, onPlaybackAudioFrame, onMixedAudioFrame, and onEarMonitoringAudioFrame callbacks according to the sampling interval.Sample interval (sec) = samplePerCall/(sampleRate × channel).Ensure that the sample interval ≥ 0.01 (s).
777
+ */
778
+ class AudioParams {
779
+ /**
780
+ * The audio sample rate (Hz), which can be set as one of the following values:8000.(Default) 16000.32000.4410048000
781
+ */
782
+ sample_rate;
783
+ /**
784
+ * The number of audio channels, which can be set as either of the following values:1: (Default) Mono.2: Stereo.
785
+ */
786
+ channels;
787
+ /**
788
+ * The use mode of the audio data. See RawAudioFrameOpModeType .
789
+ */
790
+ mode;
791
+ /**
792
+ * The number of samples, such as 1024 for the media push.
793
+ */
794
+ samples_per_call;
795
+ }
796
+ exports.AudioParams = AudioParams;
797
+ /**
798
+ * The audio spectrum data.
799
+ */
800
+ class AudioSpectrumData {
801
+ /**
802
+ * The audio spectrum data. Agora divides the audio frequency into 256 frequency domains, and reports the energy value of each frequency domain through this parameter. The value range of each energy type is [-300, 1] and the unit is dBFS.
803
+ */
804
+ audioSpectrumData;
805
+ /**
806
+ * The audio spectrum data length is 256.
807
+ */
808
+ dataLength;
809
+ }
810
+ exports.AudioSpectrumData = AudioSpectrumData;
811
+ /**
812
+ * Audio spectrum information of the remote user.
813
+ */
814
+ class UserAudioSpectrumInfo {
815
+ /**
816
+ * The user ID of the remote user.
817
+ */
818
+ uid;
819
+ /**
820
+ * Audio spectrum information of the remote user.See AudioSpectrumData .
821
+ */
822
+ spectrumData;
823
+ }
824
+ exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
825
+ /**
826
+ * The process mode of the video frame:
827
+ */
828
+ var VideoFrameProcessMode;
829
+ (function (VideoFrameProcessMode) {
830
+ /**
831
+ * Read-only mode.In this mode, you do not modify the video frame. The video frame observer is a renderer.
832
+ */
833
+ VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadOnly"] = 0] = "ProcessModeReadOnly";
834
+ /**
835
+ * Read and write mode.In this mode, you modify the video frame. The video frame observer is a video filter.
836
+ */
837
+ VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadWrite"] = 1] = "ProcessModeReadWrite";
838
+ })(VideoFrameProcessMode = exports.VideoFrameProcessMode || (exports.VideoFrameProcessMode = {}));
839
+ /**
840
+ * The external video frame encoding type.
841
+ */
842
+ var ExternalVideoSourceType;
843
+ (function (ExternalVideoSourceType) {
844
+ /**
845
+ * 0: The video frame is not encoded.
846
+ */
847
+ ExternalVideoSourceType[ExternalVideoSourceType["VideoFrame"] = 0] = "VideoFrame";
848
+ /**
849
+ * 1: The video frame is encoded.
850
+ */
851
+ ExternalVideoSourceType[ExternalVideoSourceType["EncodedVideoFrame"] = 1] = "EncodedVideoFrame";
852
+ })(ExternalVideoSourceType = exports.ExternalVideoSourceType || (exports.ExternalVideoSourceType = {}));
853
+ /**
854
+ * The format of the recording file.
855
+ */
856
+ var MediaRecorderContainerFormat;
857
+ (function (MediaRecorderContainerFormat) {
858
+ /**
859
+ * 1: (Default) MP4.
860
+ */
861
+ MediaRecorderContainerFormat[MediaRecorderContainerFormat["FormatMp4"] = 1] = "FormatMp4";
862
+ })(MediaRecorderContainerFormat = exports.MediaRecorderContainerFormat || (exports.MediaRecorderContainerFormat = {}));
863
+ /**
864
+ * The recording content.
865
+ */
866
+ var MediaRecorderStreamType;
867
+ (function (MediaRecorderStreamType) {
868
+ /**
869
+ * Only audio.
870
+ */
871
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeAudio"] = 1] = "StreamTypeAudio";
872
+ /**
873
+ * Only video.
874
+ */
875
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeVideo"] = 2] = "StreamTypeVideo";
876
+ /**
877
+ * (Default) Audio and video.
878
+ */
879
+ MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeBoth"] = 3] = "StreamTypeBoth";
880
+ })(MediaRecorderStreamType = exports.MediaRecorderStreamType || (exports.MediaRecorderStreamType = {}));
881
+ /**
882
+ * The current recording state.
883
+ */
884
+ var RecorderState;
885
+ (function (RecorderState) {
886
+ /**
887
+ * -1: An error occurs during the recording. See RecorderErrorCode for the reason.
888
+ */
889
+ RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
890
+ /**
891
+ * 2: The audio and video recording starts.
892
+ */
893
+ RecorderState[RecorderState["RecorderStateStart"] = 2] = "RecorderStateStart";
894
+ /**
895
+ * 3: The audio and video recording stops.
896
+ */
897
+ RecorderState[RecorderState["RecorderStateStop"] = 3] = "RecorderStateStop";
898
+ })(RecorderState = exports.RecorderState || (exports.RecorderState = {}));
899
+ /**
900
+ * The reason for the state change.
901
+ */
902
+ var RecorderErrorCode;
903
+ (function (RecorderErrorCode) {
904
+ /**
905
+ * 0: No error.
906
+ */
907
+ RecorderErrorCode[RecorderErrorCode["RecorderErrorNone"] = 0] = "RecorderErrorNone";
908
+ /**
909
+ * 1: The SDK fails to write the recorded data to a file.
910
+ */
911
+ RecorderErrorCode[RecorderErrorCode["RecorderErrorWriteFailed"] = 1] = "RecorderErrorWriteFailed";
912
+ /**
913
+ * 2: The SDK does not detect any audio and video streams, or audio and video streams are interrupted for more than five seconds during recording.
914
+ */
915
+ RecorderErrorCode[RecorderErrorCode["RecorderErrorNoStream"] = 2] = "RecorderErrorNoStream";
916
+ /**
917
+ * 3: The recording duration exceeds the upper limit.
918
+ */
919
+ RecorderErrorCode[RecorderErrorCode["RecorderErrorOverMaxDuration"] = 3] = "RecorderErrorOverMaxDuration";
920
+ /**
921
+ * 4: The recording configuration changes.
922
+ */
923
+ RecorderErrorCode[RecorderErrorCode["RecorderErrorConfigChanged"] = 4] = "RecorderErrorConfigChanged";
924
+ })(RecorderErrorCode = exports.RecorderErrorCode || (exports.RecorderErrorCode = {}));
925
+ /**
926
+ * Configurations for the local audio and video recording.
927
+ */
928
+ class MediaRecorderConfiguration {
929
+ /**
930
+ * The absolute path (including the filename extensions) of the recording file. For example:Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.mp4iOS: /App Sandbox/Library/Caches/example.mp4macOS: /Library/Logs/example.mp4Android: /storage/emulated/0/Android/data/<package name>/files/example.mp4Ensure that the directory for the log files exists and is writable.
931
+ */
932
+ storagePath;
933
+ /**
934
+ * The format of the recording file. See MediaRecorderContainerFormat .
935
+ */
936
+ containerFormat;
937
+ /**
938
+ * The recording content. See MediaRecorderStreamType .
939
+ */
940
+ streamType;
941
+ /**
942
+ * The maximum recording duration, in milliseconds. The default value is 120000.
943
+ */
944
+ maxDurationMs;
945
+ /**
946
+ * The interval (ms) of updating the recording information. The value range is [1000,10000]. Based on the value you set in this parameter, the SDK triggers the onRecorderInfoUpdated callback to report the updated recording information.
947
+ */
948
+ recorderInfoUpdateInterval;
949
+ }
950
+ exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
951
+ /**
952
+ * The information about the file that is recorded.
953
+ */
954
+ class RecorderInfo {
955
+ /**
956
+ * The absolute path of the recording file.
957
+ */
958
+ fileName;
959
+ /**
960
+ * The recording duration (ms).
961
+ */
962
+ durationMs;
963
+ /**
964
+ * The size (bytes) of the recording file.
965
+ */
966
+ fileSize;
967
+ }
968
+ exports.RecorderInfo = RecorderInfo;