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.
- package/LICENSE +21 -21
- package/README.md +143 -143
- package/gulpfile.js +5 -4
- package/js/AgoraSdk.js +62 -60
- package/js/Private/AgoraBase.js +4575 -3269
- package/js/Private/AgoraMediaBase.js +968 -564
- package/js/Private/AgoraMediaPlayerTypes.js +422 -310
- package/js/Private/IAgoraLog.js +86 -74
- package/js/Private/IAgoraMediaEngine.js +32 -32
- package/js/Private/IAgoraMediaPlayer.js +16 -16
- package/js/Private/IAgoraMediaPlayerSource.js +3 -3
- package/js/Private/IAgoraMediaRecorder.js +12 -12
- package/js/Private/IAgoraMediaStreamingSource.js +84 -0
- package/js/Private/IAgoraMusicContentCenter.js +239 -81
- package/js/Private/IAgoraRhythmPlayer.js +70 -62
- package/js/Private/IAgoraRtcEngine.js +1807 -948
- package/js/Private/IAgoraRtcEngineEx.js +26 -18
- package/js/Private/IAgoraSpatialAudio.js +74 -30
- package/js/Private/IAudioDeviceManager.js +20 -20
- package/js/Private/extension/AgoraBaseExtension.js +2 -2
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
- package/js/Private/extension/IAgoraLogExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
- package/js/Private/impl/AgoraBaseImpl.js +23 -23
- package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
- package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
- package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
- package/js/Private/internal/IrisApiEngine.js +391 -382
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
- package/js/Private/internal/MediaEngineInternal.js +119 -123
- package/js/Private/internal/MediaPlayerInternal.js +215 -213
- package/js/Private/internal/MediaRecorderInternal.js +82 -81
- package/js/Private/internal/MusicContentCenterInternal.js +128 -130
- package/js/Private/internal/RtcEngineExInternal.js +422 -363
- package/js/Private/internal/emitter/EventEmitter.js +111 -111
- package/js/Private/ti/AgoraBase-ti.js +40 -40
- package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
- package/js/Private/ti/IAgoraLog-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
- package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
- package/js/Renderer/AgoraView.js +128 -131
- package/js/Renderer/IRenderer.js +40 -48
- package/js/Renderer/IRendererManager.js +9 -0
- package/js/Renderer/RendererManager.js +479 -392
- package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
- package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
- package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
- package/js/Renderer/index.js +18 -0
- package/js/Types.js +17 -29
- package/js/Utils.js +168 -173
- package/package.json +61 -103
- package/scripts/bootstrap.js +1 -1
- package/scripts/build.js +1 -0
- package/scripts/buildJS.js +3 -3
- package/scripts/clean.js +2 -1
- package/scripts/downloadPrebuild.js +5 -5
- package/scripts/getConfig.js +3 -2
- package/scripts/synclib.js +8 -5
- package/scripts/util.js +3 -2
- package/scripts/zipBuild.js +2 -1
- package/ts/AgoraSdk.ts +9 -6
- package/ts/Private/AgoraBase.ts +278 -173
- package/ts/Private/AgoraMediaBase.ts +167 -100
- package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
- package/ts/Private/IAgoraMediaEngine.ts +43 -56
- package/ts/Private/IAgoraMediaPlayer.ts +90 -104
- package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
- package/ts/Private/IAgoraMediaRecorder.ts +8 -35
- package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
- package/ts/Private/IAgoraRtcEngine.ts +807 -910
- package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
- package/ts/Private/IAgoraSpatialAudio.ts +40 -22
- package/ts/Private/IAudioDeviceManager.ts +35 -13
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
- package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
- package/ts/Private/internal/IrisApiEngine.ts +41 -32
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
- package/ts/Private/internal/MediaEngineInternal.ts +9 -11
- package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
- package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
- package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
- package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
- package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
- package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
- package/ts/Renderer/AgoraView.ts +12 -7
- package/ts/Renderer/IRenderer.ts +11 -16
- package/ts/Renderer/IRendererManager.ts +35 -0
- package/ts/Renderer/RendererManager.ts +146 -82
- package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
- package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
- package/ts/Renderer/index.ts +2 -0
- package/ts/Types.ts +43 -23
- package/ts/Utils.ts +7 -12
- package/types/AgoraSdk.d.ts +38 -36
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +4455 -4358
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1125 -1070
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +81 -80
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +184 -193
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
- package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts +336 -255
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +255 -233
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +148 -146
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
- package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +70 -70
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +22 -21
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererManager.d.ts +18 -0
- package/types/Renderer/IRendererManager.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +154 -71
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +3 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +280 -260
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +59 -58
- package/types/Utils.d.ts.map +1 -0
- package/js/AgoraSdk.d.ts +0 -36
- package/js/Private/AgoraBase.d.ts +0 -4358
- package/js/Private/AgoraMediaBase.d.ts +0 -1070
- package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
- package/js/Private/IAgoraLog.d.ts +0 -80
- package/js/Private/IAgoraMediaEngine.d.ts +0 -193
- package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
- package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
- package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
- package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
- package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
- package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
- package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
- package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
- package/js/Private/IAudioDeviceManager.d.ts +0 -233
- package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
- package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
- package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
- package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
- package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
- package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
- package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
- package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
- package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
- package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
- package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
- package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
- package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
- package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
- package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
- package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
- package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
- package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
- package/js/Private/internal/IrisApiEngine.d.ts +0 -146
- package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
- package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
- package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
- package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
- package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
- package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
- package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
- package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
- package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
- package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
- package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
- package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
- package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
- package/js/Renderer/AgoraView.d.ts +0 -70
- package/js/Renderer/GlRenderer/index.d.ts +0 -59
- package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
- package/js/Renderer/IRenderer.d.ts +0 -21
- package/js/Renderer/RendererManager.d.ts +0 -71
- package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
- package/js/Types.d.ts +0 -260
- package/js/Utils.d.ts +0 -58
- /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
|
|
7
|
-
*/
|
|
8
|
-
var
|
|
9
|
-
(function (
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @ignore
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
*
|
|
266
|
-
*/
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @ignore
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
*
|
|
359
|
-
*/
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
*
|
|
464
|
-
*/
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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;
|