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,948 +1,1807 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AudioDeviceInfo = exports.VideoDeviceInfo = exports.SDKBuildInfo = exports.VideoProfileType = exports.MediaDeviceStateType = exports.QualityReportFormatType = exports.IRtcEngine = exports.ExtensionInfo = exports.DirectCdnStreamingMediaOptions = exports.DirectCdnStreamingStats = exports.DirectCdnStreamingState = exports.DirectCdnStreamingError = exports.Metadata = exports.MaxMetadataSizeType = exports.MetadataType = exports.RtcEngineContext = exports.IVideoDeviceManager = exports.LeaveChannelOptions = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.ProxyType = exports.LocalProxyMode = exports.ChannelMediaOptions = exports.ImageTrackOptions = exports.AdvancedAudioOptions = exports.ScreenCaptureSourceInfo = exports.ScreenCaptureSourceType = exports.ThumbImageBuffer = exports.Size = exports.ScreenCaptureConfiguration = exports.CameraCapturerConfiguration = exports.CloudProxyType = exports.CameraDirection = exports.
|
|
4
|
-
require("./extension/IAgoraRtcEngineExtension");
|
|
5
|
-
/**
|
|
6
|
-
* Media device types.
|
|
7
|
-
*/
|
|
8
|
-
var MediaDeviceType;
|
|
9
|
-
(function (MediaDeviceType) {
|
|
10
|
-
/**
|
|
11
|
-
* -1: Unknown device type.
|
|
12
|
-
*/
|
|
13
|
-
MediaDeviceType[MediaDeviceType["UnknownAudioDevice"] = -1] = "UnknownAudioDevice";
|
|
14
|
-
/**
|
|
15
|
-
* 0: Audio playback device.
|
|
16
|
-
*/
|
|
17
|
-
MediaDeviceType[MediaDeviceType["AudioPlayoutDevice"] = 0] = "AudioPlayoutDevice";
|
|
18
|
-
/**
|
|
19
|
-
* 1: Audio capturing device.
|
|
20
|
-
*/
|
|
21
|
-
MediaDeviceType[MediaDeviceType["AudioRecordingDevice"] = 1] = "AudioRecordingDevice";
|
|
22
|
-
/**
|
|
23
|
-
* 2: Video rendering device.
|
|
24
|
-
*/
|
|
25
|
-
MediaDeviceType[MediaDeviceType["VideoRenderDevice"] = 2] = "VideoRenderDevice";
|
|
26
|
-
/**
|
|
27
|
-
* 3: Video capturing device.
|
|
28
|
-
*/
|
|
29
|
-
MediaDeviceType[MediaDeviceType["VideoCaptureDevice"] = 3] = "VideoCaptureDevice";
|
|
30
|
-
/**
|
|
31
|
-
* @ignore
|
|
32
|
-
*/
|
|
33
|
-
MediaDeviceType[MediaDeviceType["AudioApplicationPlayoutDevice"] = 4] = "AudioApplicationPlayoutDevice";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
AudioMixingStateType[AudioMixingStateType["
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
AudioMixingStateType[AudioMixingStateType["
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
AudioMixingReasonType[AudioMixingReasonType["
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
AudioMixingReasonType[AudioMixingReasonType["
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
AudioMixingReasonType[AudioMixingReasonType["
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
AudioMixingReasonType[AudioMixingReasonType["
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
AudioMixingReasonType[AudioMixingReasonType["
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @ignore
|
|
106
|
-
*/
|
|
107
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
108
|
-
/**
|
|
109
|
-
* @ignore
|
|
110
|
-
*/
|
|
111
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
112
|
-
/**
|
|
113
|
-
* @ignore
|
|
114
|
-
*/
|
|
115
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
116
|
-
/**
|
|
117
|
-
* @ignore
|
|
118
|
-
*/
|
|
119
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
120
|
-
/**
|
|
121
|
-
* @ignore
|
|
122
|
-
*/
|
|
123
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
124
|
-
/**
|
|
125
|
-
* @ignore
|
|
126
|
-
*/
|
|
127
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
128
|
-
/**
|
|
129
|
-
* @ignore
|
|
130
|
-
*/
|
|
131
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
132
|
-
/**
|
|
133
|
-
* @ignore
|
|
134
|
-
*/
|
|
135
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
136
|
-
/**
|
|
137
|
-
* @ignore
|
|
138
|
-
*/
|
|
139
|
-
InjectStreamStatus[InjectStreamStatus["
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
*/
|
|
157
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
161
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
169
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
*/
|
|
181
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
*/
|
|
203
|
-
AudioReverbType[AudioReverbType["
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
*/
|
|
207
|
-
AudioReverbType[AudioReverbType["
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
*/
|
|
211
|
-
AudioReverbType[AudioReverbType["
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @ignore
|
|
228
|
-
*/
|
|
229
|
-
StreamFallbackOptions[StreamFallbackOptions["
|
|
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
|
-
/**
|
|
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
|
-
* @ignore
|
|
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
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
*
|
|
638
|
-
*/
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
*
|
|
728
|
-
*/
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
*
|
|
732
|
-
*/
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
*
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
*
|
|
740
|
-
*/
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* @ignore
|
|
780
|
-
*/
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* @ignore
|
|
784
|
-
*/
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioDeviceInfo = exports.VideoDeviceInfo = exports.SDKBuildInfo = exports.VideoProfileType = exports.MediaDeviceStateType = exports.QualityReportFormatType = exports.IRtcEngine = exports.ExtensionInfo = exports.DirectCdnStreamingMediaOptions = exports.DirectCdnStreamingStats = exports.DirectCdnStreamingState = exports.DirectCdnStreamingError = exports.Metadata = exports.MaxMetadataSizeType = exports.MetadataType = exports.RtcEngineContext = exports.IVideoDeviceManager = exports.LeaveChannelOptions = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.ProxyType = exports.LocalProxyMode = exports.ChannelMediaOptions = exports.ImageTrackOptions = exports.AdvancedAudioOptions = exports.ScreenCaptureSourceInfo = exports.ScreenCaptureSourceType = exports.ThumbImageBuffer = exports.Size = exports.ScreenCaptureConfiguration = exports.CameraCapturerConfiguration = exports.CloudProxyType = exports.CameraDirection = exports.PublisherConfiguration = exports.RtmpStreamLifeCycleType = exports.InjectStreamConfig = exports.VideoCompositingLayout = exports.Region = exports.RemoteVideoStats = exports.RemoteAudioStats = exports.LocalVideoStats = exports.PriorityType = exports.StreamFallbackOptions = exports.AudioReverbType = exports.AudioEqualizationBandFrequency = exports.InjectStreamStatus = exports.AudioMixingReasonType = exports.AudioMixingStateType = exports.MediaDeviceType = void 0;
|
|
4
|
+
require("./extension/IAgoraRtcEngineExtension");
|
|
5
|
+
/**
|
|
6
|
+
* Media device types.
|
|
7
|
+
*/
|
|
8
|
+
var MediaDeviceType;
|
|
9
|
+
(function (MediaDeviceType) {
|
|
10
|
+
/**
|
|
11
|
+
* -1: Unknown device type.
|
|
12
|
+
*/
|
|
13
|
+
MediaDeviceType[MediaDeviceType["UnknownAudioDevice"] = -1] = "UnknownAudioDevice";
|
|
14
|
+
/**
|
|
15
|
+
* 0: Audio playback device.
|
|
16
|
+
*/
|
|
17
|
+
MediaDeviceType[MediaDeviceType["AudioPlayoutDevice"] = 0] = "AudioPlayoutDevice";
|
|
18
|
+
/**
|
|
19
|
+
* 1: Audio capturing device.
|
|
20
|
+
*/
|
|
21
|
+
MediaDeviceType[MediaDeviceType["AudioRecordingDevice"] = 1] = "AudioRecordingDevice";
|
|
22
|
+
/**
|
|
23
|
+
* 2: Video rendering device.
|
|
24
|
+
*/
|
|
25
|
+
MediaDeviceType[MediaDeviceType["VideoRenderDevice"] = 2] = "VideoRenderDevice";
|
|
26
|
+
/**
|
|
27
|
+
* 3: Video capturing device.
|
|
28
|
+
*/
|
|
29
|
+
MediaDeviceType[MediaDeviceType["VideoCaptureDevice"] = 3] = "VideoCaptureDevice";
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
MediaDeviceType[MediaDeviceType["AudioApplicationPlayoutDevice"] = 4] = "AudioApplicationPlayoutDevice";
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
MediaDeviceType[MediaDeviceType["AudioVirtualPlayoutDevice"] = 5] = "AudioVirtualPlayoutDevice";
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
MediaDeviceType[MediaDeviceType["AudioVirtualRecordingDevice"] = 6] = "AudioVirtualRecordingDevice";
|
|
42
|
+
})(MediaDeviceType = exports.MediaDeviceType || (exports.MediaDeviceType = {}));
|
|
43
|
+
/**
|
|
44
|
+
* The playback state of the music file.
|
|
45
|
+
*/
|
|
46
|
+
var AudioMixingStateType;
|
|
47
|
+
(function (AudioMixingStateType) {
|
|
48
|
+
/**
|
|
49
|
+
* 710: The music file is playing.
|
|
50
|
+
*/
|
|
51
|
+
AudioMixingStateType[AudioMixingStateType["AudioMixingStatePlaying"] = 710] = "AudioMixingStatePlaying";
|
|
52
|
+
/**
|
|
53
|
+
* 711: The music file pauses playing.
|
|
54
|
+
*/
|
|
55
|
+
AudioMixingStateType[AudioMixingStateType["AudioMixingStatePaused"] = 711] = "AudioMixingStatePaused";
|
|
56
|
+
/**
|
|
57
|
+
* 713: The music file stops playing.The possible reasons include:AudioMixingReasonAllLoopsCompleted(723)AudioMixingReasonStoppedByUser(724)
|
|
58
|
+
*/
|
|
59
|
+
AudioMixingStateType[AudioMixingStateType["AudioMixingStateStopped"] = 713] = "AudioMixingStateStopped";
|
|
60
|
+
/**
|
|
61
|
+
* 714: An error occurs during the playback of the audio mixing file.The possible reasons include:AudioMixingReasonCanNotOpen(701)AudioMixingReasonTooFrequentCall(702)AudioMixingReasonInterruptedEof(703)
|
|
62
|
+
*/
|
|
63
|
+
AudioMixingStateType[AudioMixingStateType["AudioMixingStateFailed"] = 714] = "AudioMixingStateFailed";
|
|
64
|
+
})(AudioMixingStateType = exports.AudioMixingStateType || (exports.AudioMixingStateType = {}));
|
|
65
|
+
/**
|
|
66
|
+
* The reason why the playback state of the music file changes. Reported in the onAudioMixingStateChanged callback.
|
|
67
|
+
*/
|
|
68
|
+
var AudioMixingReasonType;
|
|
69
|
+
(function (AudioMixingReasonType) {
|
|
70
|
+
/**
|
|
71
|
+
* 701: The SDK cannot open the music file. For example, the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL.
|
|
72
|
+
*/
|
|
73
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonCanNotOpen"] = 701] = "AudioMixingReasonCanNotOpen";
|
|
74
|
+
/**
|
|
75
|
+
* 702: The SDK opens the music file too frequently. If you need to call startAudioMixing multiple times, ensure that the call interval is more than 500 ms.
|
|
76
|
+
*/
|
|
77
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonTooFrequentCall"] = 702] = "AudioMixingReasonTooFrequentCall";
|
|
78
|
+
/**
|
|
79
|
+
* 703: The music file playback is interrupted.
|
|
80
|
+
*/
|
|
81
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonInterruptedEof"] = 703] = "AudioMixingReasonInterruptedEof";
|
|
82
|
+
/**
|
|
83
|
+
* 721: The music file completes a loop playback.
|
|
84
|
+
*/
|
|
85
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonOneLoopCompleted"] = 721] = "AudioMixingReasonOneLoopCompleted";
|
|
86
|
+
/**
|
|
87
|
+
* 723: The music file completes all loop playback.
|
|
88
|
+
*/
|
|
89
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonAllLoopsCompleted"] = 723] = "AudioMixingReasonAllLoopsCompleted";
|
|
90
|
+
/**
|
|
91
|
+
* 724: Successfully call stopAudioMixing to stop playing the music file.
|
|
92
|
+
*/
|
|
93
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonStoppedByUser"] = 724] = "AudioMixingReasonStoppedByUser";
|
|
94
|
+
/**
|
|
95
|
+
* 0: The SDK opens music file successfully.
|
|
96
|
+
*/
|
|
97
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonOk"] = 0] = "AudioMixingReasonOk";
|
|
98
|
+
})(AudioMixingReasonType = exports.AudioMixingReasonType || (exports.AudioMixingReasonType = {}));
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
|
+
*/
|
|
102
|
+
var InjectStreamStatus;
|
|
103
|
+
(function (InjectStreamStatus) {
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStartSuccess"] = 0] = "InjectStreamStatusStartSuccess";
|
|
108
|
+
/**
|
|
109
|
+
* @ignore
|
|
110
|
+
*/
|
|
111
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStartAlreadyExists"] = 1] = "InjectStreamStatusStartAlreadyExists";
|
|
112
|
+
/**
|
|
113
|
+
* @ignore
|
|
114
|
+
*/
|
|
115
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStartUnauthorized"] = 2] = "InjectStreamStatusStartUnauthorized";
|
|
116
|
+
/**
|
|
117
|
+
* @ignore
|
|
118
|
+
*/
|
|
119
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStartTimedout"] = 3] = "InjectStreamStatusStartTimedout";
|
|
120
|
+
/**
|
|
121
|
+
* @ignore
|
|
122
|
+
*/
|
|
123
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStartFailed"] = 4] = "InjectStreamStatusStartFailed";
|
|
124
|
+
/**
|
|
125
|
+
* @ignore
|
|
126
|
+
*/
|
|
127
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStopSuccess"] = 5] = "InjectStreamStatusStopSuccess";
|
|
128
|
+
/**
|
|
129
|
+
* @ignore
|
|
130
|
+
*/
|
|
131
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStopNotFound"] = 6] = "InjectStreamStatusStopNotFound";
|
|
132
|
+
/**
|
|
133
|
+
* @ignore
|
|
134
|
+
*/
|
|
135
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStopUnauthorized"] = 7] = "InjectStreamStatusStopUnauthorized";
|
|
136
|
+
/**
|
|
137
|
+
* @ignore
|
|
138
|
+
*/
|
|
139
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStopTimedout"] = 8] = "InjectStreamStatusStopTimedout";
|
|
140
|
+
/**
|
|
141
|
+
* @ignore
|
|
142
|
+
*/
|
|
143
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusStopFailed"] = 9] = "InjectStreamStatusStopFailed";
|
|
144
|
+
/**
|
|
145
|
+
* @ignore
|
|
146
|
+
*/
|
|
147
|
+
InjectStreamStatus[InjectStreamStatus["InjectStreamStatusBroken"] = 10] = "InjectStreamStatusBroken";
|
|
148
|
+
})(InjectStreamStatus = exports.InjectStreamStatus || (exports.InjectStreamStatus = {}));
|
|
149
|
+
/**
|
|
150
|
+
* The midrange frequency for audio equalization.
|
|
151
|
+
*/
|
|
152
|
+
var AudioEqualizationBandFrequency;
|
|
153
|
+
(function (AudioEqualizationBandFrequency) {
|
|
154
|
+
/**
|
|
155
|
+
* 0: 31 Hz
|
|
156
|
+
*/
|
|
157
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand31"] = 0] = "AudioEqualizationBand31";
|
|
158
|
+
/**
|
|
159
|
+
* 1: 62 Hz
|
|
160
|
+
*/
|
|
161
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand62"] = 1] = "AudioEqualizationBand62";
|
|
162
|
+
/**
|
|
163
|
+
* 2: 125 Hz
|
|
164
|
+
*/
|
|
165
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand125"] = 2] = "AudioEqualizationBand125";
|
|
166
|
+
/**
|
|
167
|
+
* 3: 250 Hz
|
|
168
|
+
*/
|
|
169
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand250"] = 3] = "AudioEqualizationBand250";
|
|
170
|
+
/**
|
|
171
|
+
* 4: 500 Hz
|
|
172
|
+
*/
|
|
173
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand500"] = 4] = "AudioEqualizationBand500";
|
|
174
|
+
/**
|
|
175
|
+
* 5: 1 kHz
|
|
176
|
+
*/
|
|
177
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand1k"] = 5] = "AudioEqualizationBand1k";
|
|
178
|
+
/**
|
|
179
|
+
* 6: 2 kHz
|
|
180
|
+
*/
|
|
181
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand2k"] = 6] = "AudioEqualizationBand2k";
|
|
182
|
+
/**
|
|
183
|
+
* 7: 4 kHz
|
|
184
|
+
*/
|
|
185
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand4k"] = 7] = "AudioEqualizationBand4k";
|
|
186
|
+
/**
|
|
187
|
+
* 8: 8 kHz
|
|
188
|
+
*/
|
|
189
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand8k"] = 8] = "AudioEqualizationBand8k";
|
|
190
|
+
/**
|
|
191
|
+
* 9: 16 kHz
|
|
192
|
+
*/
|
|
193
|
+
AudioEqualizationBandFrequency[AudioEqualizationBandFrequency["AudioEqualizationBand16k"] = 9] = "AudioEqualizationBand16k";
|
|
194
|
+
})(AudioEqualizationBandFrequency = exports.AudioEqualizationBandFrequency || (exports.AudioEqualizationBandFrequency = {}));
|
|
195
|
+
/**
|
|
196
|
+
* Audio reverberation types.
|
|
197
|
+
*/
|
|
198
|
+
var AudioReverbType;
|
|
199
|
+
(function (AudioReverbType) {
|
|
200
|
+
/**
|
|
201
|
+
* 0: The level of the dry signal (dB). The value is between -20 and 10.
|
|
202
|
+
*/
|
|
203
|
+
AudioReverbType[AudioReverbType["AudioReverbDryLevel"] = 0] = "AudioReverbDryLevel";
|
|
204
|
+
/**
|
|
205
|
+
* 1: The level of the early reflection signal (wet signal) (dB). The value is between -20 and 10.
|
|
206
|
+
*/
|
|
207
|
+
AudioReverbType[AudioReverbType["AudioReverbWetLevel"] = 1] = "AudioReverbWetLevel";
|
|
208
|
+
/**
|
|
209
|
+
* 2: The room size of the reflection. The value is between 0 and 100.
|
|
210
|
+
*/
|
|
211
|
+
AudioReverbType[AudioReverbType["AudioReverbRoomSize"] = 2] = "AudioReverbRoomSize";
|
|
212
|
+
/**
|
|
213
|
+
* 3: The length of the initial delay of the wet signal (ms). The value is between 0 and 200.
|
|
214
|
+
*/
|
|
215
|
+
AudioReverbType[AudioReverbType["AudioReverbWetDelay"] = 3] = "AudioReverbWetDelay";
|
|
216
|
+
/**
|
|
217
|
+
* 4: The reverberation strength. The value is between 0 and 100.
|
|
218
|
+
*/
|
|
219
|
+
AudioReverbType[AudioReverbType["AudioReverbStrength"] = 4] = "AudioReverbStrength";
|
|
220
|
+
})(AudioReverbType = exports.AudioReverbType || (exports.AudioReverbType = {}));
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
var StreamFallbackOptions;
|
|
225
|
+
(function (StreamFallbackOptions) {
|
|
226
|
+
/**
|
|
227
|
+
* @ignore
|
|
228
|
+
*/
|
|
229
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionDisabled"] = 0] = "StreamFallbackOptionDisabled";
|
|
230
|
+
/**
|
|
231
|
+
* @ignore
|
|
232
|
+
*/
|
|
233
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionVideoStreamLow"] = 1] = "StreamFallbackOptionVideoStreamLow";
|
|
234
|
+
/**
|
|
235
|
+
* @ignore
|
|
236
|
+
*/
|
|
237
|
+
StreamFallbackOptions[StreamFallbackOptions["StreamFallbackOptionAudioOnly"] = 2] = "StreamFallbackOptionAudioOnly";
|
|
238
|
+
})(StreamFallbackOptions = exports.StreamFallbackOptions || (exports.StreamFallbackOptions = {}));
|
|
239
|
+
/**
|
|
240
|
+
* @ignore
|
|
241
|
+
*/
|
|
242
|
+
var PriorityType;
|
|
243
|
+
(function (PriorityType) {
|
|
244
|
+
/**
|
|
245
|
+
* @ignore
|
|
246
|
+
*/
|
|
247
|
+
PriorityType[PriorityType["PriorityHigh"] = 50] = "PriorityHigh";
|
|
248
|
+
/**
|
|
249
|
+
* @ignore
|
|
250
|
+
*/
|
|
251
|
+
PriorityType[PriorityType["PriorityNormal"] = 100] = "PriorityNormal";
|
|
252
|
+
})(PriorityType = exports.PriorityType || (exports.PriorityType = {}));
|
|
253
|
+
/**
|
|
254
|
+
* The statistics of the local video stream.
|
|
255
|
+
*/
|
|
256
|
+
class LocalVideoStats {
|
|
257
|
+
/**
|
|
258
|
+
* The user ID of the local user.
|
|
259
|
+
*/
|
|
260
|
+
uid;
|
|
261
|
+
/**
|
|
262
|
+
* The actual bitrate (Kbps) while sending the local video stream.This value does not include the bitrate for resending the video after packet loss.
|
|
263
|
+
*/
|
|
264
|
+
sentBitrate;
|
|
265
|
+
/**
|
|
266
|
+
* The actual frame rate (fps) while sending the local video stream.This value does not include the frame rate for resending the video after packet loss.
|
|
267
|
+
*/
|
|
268
|
+
sentFrameRate;
|
|
269
|
+
/**
|
|
270
|
+
* The frame rate (fps) for capturing the local video stream.
|
|
271
|
+
*/
|
|
272
|
+
captureFrameRate;
|
|
273
|
+
/**
|
|
274
|
+
* The width (px) for capturing the local video stream.
|
|
275
|
+
*/
|
|
276
|
+
captureFrameWidth;
|
|
277
|
+
/**
|
|
278
|
+
* The height (px) for capturing the local video stream.
|
|
279
|
+
*/
|
|
280
|
+
captureFrameHeight;
|
|
281
|
+
/**
|
|
282
|
+
* The frame rate (fps) adjusted by the built-in video capture adapter (regulator) of the SDK for capturing the local video stream. The regulator adjusts the frame rate of the video captured by the camera according to the video encoding configuration.
|
|
283
|
+
*/
|
|
284
|
+
regulatedCaptureFrameRate;
|
|
285
|
+
/**
|
|
286
|
+
* The width (px) adjusted by the built-in video capture adapter (regulator) of the SDK for capturing the local video stream. The regulator adjusts the height and width of the video captured by the camera according to the video encoding configuration.
|
|
287
|
+
*/
|
|
288
|
+
regulatedCaptureFrameWidth;
|
|
289
|
+
/**
|
|
290
|
+
* The height (px) adjusted by the built-in video capture adapter (regulator) of the SDK for capturing the local video stream. The regulator adjusts the height and width of the video captured by the camera according to the video encoding configuration.
|
|
291
|
+
*/
|
|
292
|
+
regulatedCaptureFrameHeight;
|
|
293
|
+
/**
|
|
294
|
+
* The output frame rate (fps) of the local video encoder.
|
|
295
|
+
*/
|
|
296
|
+
encoderOutputFrameRate;
|
|
297
|
+
/**
|
|
298
|
+
* The width of the encoded video (px).
|
|
299
|
+
*/
|
|
300
|
+
encodedFrameWidth;
|
|
301
|
+
/**
|
|
302
|
+
* The height of the encoded video (px).
|
|
303
|
+
*/
|
|
304
|
+
encodedFrameHeight;
|
|
305
|
+
/**
|
|
306
|
+
* The output frame rate (fps) of the local video renderer.
|
|
307
|
+
*/
|
|
308
|
+
rendererOutputFrameRate;
|
|
309
|
+
/**
|
|
310
|
+
* The target bitrate (Kbps) of the current encoder. This is an estimate made by the SDK based on the current network conditions.
|
|
311
|
+
*/
|
|
312
|
+
targetBitrate;
|
|
313
|
+
/**
|
|
314
|
+
* The target frame rate (fps) of the current encoder.
|
|
315
|
+
*/
|
|
316
|
+
targetFrameRate;
|
|
317
|
+
/**
|
|
318
|
+
* The quality adaptation of the local video stream in the reported interval (based on the target frame rate and target bitrate). See QualityAdaptIndication .
|
|
319
|
+
*/
|
|
320
|
+
qualityAdaptIndication;
|
|
321
|
+
/**
|
|
322
|
+
* The bitrate (Kbps) while encoding the local video stream.This value does not include the bitrate for resending the video after packet loss.
|
|
323
|
+
*/
|
|
324
|
+
encodedBitrate;
|
|
325
|
+
/**
|
|
326
|
+
* The number of the sent video frames, represented by an aggregate value.
|
|
327
|
+
*/
|
|
328
|
+
encodedFrameCount;
|
|
329
|
+
/**
|
|
330
|
+
* The codec type of the local video. See VideoCodecType .
|
|
331
|
+
*/
|
|
332
|
+
codecType;
|
|
333
|
+
/**
|
|
334
|
+
* The video packet loss rate (%) from the local client to the Agora server before applying the anti-packet loss strategies.
|
|
335
|
+
*/
|
|
336
|
+
txPacketLossRate;
|
|
337
|
+
/**
|
|
338
|
+
* @ignore
|
|
339
|
+
*/
|
|
340
|
+
captureBrightnessLevel;
|
|
341
|
+
/**
|
|
342
|
+
* @ignore
|
|
343
|
+
*/
|
|
344
|
+
dualStreamEnabled;
|
|
345
|
+
/**
|
|
346
|
+
* The local video encoding acceleration type.
|
|
347
|
+
*/
|
|
348
|
+
hwEncoderAccelerating;
|
|
349
|
+
}
|
|
350
|
+
exports.LocalVideoStats = LocalVideoStats;
|
|
351
|
+
/**
|
|
352
|
+
* Audio statistics of the remote user.
|
|
353
|
+
*/
|
|
354
|
+
class RemoteAudioStats {
|
|
355
|
+
/**
|
|
356
|
+
* The user ID of the remote user.
|
|
357
|
+
*/
|
|
358
|
+
uid;
|
|
359
|
+
/**
|
|
360
|
+
* The quality of the audio stream sent by the user. See QualityType .
|
|
361
|
+
*/
|
|
362
|
+
quality;
|
|
363
|
+
/**
|
|
364
|
+
* The network delay (ms) from the sender to the receiver.
|
|
365
|
+
*/
|
|
366
|
+
networkTransportDelay;
|
|
367
|
+
/**
|
|
368
|
+
* The network delay (ms) from the audio receiver to the jitter buffer.When the receiving end is an audience member and audienceLatencyLevel of ClientRoleOptions is 1, this parameter does not take effect.
|
|
369
|
+
*/
|
|
370
|
+
jitterBufferDelay;
|
|
371
|
+
/**
|
|
372
|
+
* The frame loss rate (%) of the remote audio stream in the reported interval.
|
|
373
|
+
*/
|
|
374
|
+
audioLossRate;
|
|
375
|
+
/**
|
|
376
|
+
* The number of audio channels.
|
|
377
|
+
*/
|
|
378
|
+
numChannels;
|
|
379
|
+
/**
|
|
380
|
+
* The sampling rate of the received audio stream in the reported interval.
|
|
381
|
+
*/
|
|
382
|
+
receivedSampleRate;
|
|
383
|
+
/**
|
|
384
|
+
* The average bitrate (Kbps) of the received audio stream in the reported interval.
|
|
385
|
+
*/
|
|
386
|
+
receivedBitrate;
|
|
387
|
+
/**
|
|
388
|
+
* The total freeze time (ms) of the remote audio stream after the remote user joins the channel. In a session, audio freeze occurs when the audio frame loss rate reaches 4%.
|
|
389
|
+
*/
|
|
390
|
+
totalFrozenTime;
|
|
391
|
+
/**
|
|
392
|
+
* The total audio freeze time as a percentage (%) of the total time when the audio is available. The audio is considered available when the remote user neither stops sending the audio stream nor disables the audio module after joining the channel.
|
|
393
|
+
*/
|
|
394
|
+
frozenRate;
|
|
395
|
+
/**
|
|
396
|
+
* The quality of the remote audio stream in the reported interval. The quality is determined by the Agora real-time audio MOS (Mean Opinion Score) measurement method. The return value range is [0, 500]. Dividing the return value by 100 gets the MOS score, which ranges from 0 to 5. The higher the score, the better the audio quality.The subjective perception of audio quality corresponding to the Agora real-time audio MOS scores is as follows:MOS scorePerception of audio qualityGreater than 4Excellent. The audio sounds clear and smooth.From 3.5 to 4Good. The audio has some perceptible impairment but still sounds clear.From 3 to 3.5Fair. The audio freezes occasionally and requires attentive listening.From 2.5 to 3Poor. The audio sounds choppy and requires considerable effort to understand.From 2 to 2.5Bad. The audio has occasional noise. Consecutive audio dropouts occur, resulting in some information loss. The users can communicate only with difficulty.Less than 2Very bad. The audio has persistent noise. Consecutive audio dropouts are frequent, resulting in severe information loss. Communication is nearly impossible.
|
|
397
|
+
*/
|
|
398
|
+
mosValue;
|
|
399
|
+
/**
|
|
400
|
+
* @ignore
|
|
401
|
+
*/
|
|
402
|
+
frozenRateByCustomPlcCount;
|
|
403
|
+
/**
|
|
404
|
+
* @ignore
|
|
405
|
+
*/
|
|
406
|
+
plcCount;
|
|
407
|
+
/**
|
|
408
|
+
* The total active time (ms) between the start of the audio call and the callback of the remote user.The active time refers to the total duration of the remote user without the mute state.
|
|
409
|
+
*/
|
|
410
|
+
totalActiveTime;
|
|
411
|
+
/**
|
|
412
|
+
* The total duration (ms) of the remote audio stream.
|
|
413
|
+
*/
|
|
414
|
+
publishDuration;
|
|
415
|
+
/**
|
|
416
|
+
* The Quality of Experience (QoE) of the local user when receiving a remote audio stream. See ExperienceQualityType .
|
|
417
|
+
*/
|
|
418
|
+
qoeQuality;
|
|
419
|
+
/**
|
|
420
|
+
* Reasons why the QoE of the local user when receiving a remote audio stream is poor. See ExperiencePoorReason .
|
|
421
|
+
*/
|
|
422
|
+
qualityChangedReason;
|
|
423
|
+
/**
|
|
424
|
+
* @ignore
|
|
425
|
+
*/
|
|
426
|
+
rxAudioBytes;
|
|
427
|
+
}
|
|
428
|
+
exports.RemoteAudioStats = RemoteAudioStats;
|
|
429
|
+
/**
|
|
430
|
+
* Statistics of the remote video stream.
|
|
431
|
+
*/
|
|
432
|
+
class RemoteVideoStats {
|
|
433
|
+
/**
|
|
434
|
+
* The user ID of the remote user sending the video stream.
|
|
435
|
+
*/
|
|
436
|
+
uid;
|
|
437
|
+
/**
|
|
438
|
+
* Deprecated:In scenarios where audio and video are synchronized, you can get the video delay data from networkTransportDelay and jitterBufferDelay in RemoteAudioStats .The video delay (ms).
|
|
439
|
+
*/
|
|
440
|
+
delay;
|
|
441
|
+
/**
|
|
442
|
+
* @ignore
|
|
443
|
+
*/
|
|
444
|
+
e2eDelay;
|
|
445
|
+
/**
|
|
446
|
+
* The width (pixels) of the video.
|
|
447
|
+
*/
|
|
448
|
+
width;
|
|
449
|
+
/**
|
|
450
|
+
* The height (pixels) of the video.
|
|
451
|
+
*/
|
|
452
|
+
height;
|
|
453
|
+
/**
|
|
454
|
+
* The bitrate (Kbps) of the remote video received since the last count.
|
|
455
|
+
*/
|
|
456
|
+
receivedBitrate;
|
|
457
|
+
/**
|
|
458
|
+
* The frame rate (fps) of decoding the remote video.
|
|
459
|
+
*/
|
|
460
|
+
decoderOutputFrameRate;
|
|
461
|
+
/**
|
|
462
|
+
* The frame rate (fps) of rendering the remote video.
|
|
463
|
+
*/
|
|
464
|
+
rendererOutputFrameRate;
|
|
465
|
+
/**
|
|
466
|
+
* The packet loss rate (%) of the remote video.
|
|
467
|
+
*/
|
|
468
|
+
frameLossRate;
|
|
469
|
+
/**
|
|
470
|
+
* The packet loss rate (%) of the remote video after using the anti-packet-loss technology.
|
|
471
|
+
*/
|
|
472
|
+
packetLossRate;
|
|
473
|
+
/**
|
|
474
|
+
* The type of the video stream. See VideoStreamType .
|
|
475
|
+
*/
|
|
476
|
+
rxStreamType;
|
|
477
|
+
/**
|
|
478
|
+
* The total freeze time (ms) of the remote video stream after the remote user joins the channel. In a video session where the frame rate is set to no less than 5 fps, video freeze occurs when the time interval between two adjacent renderable video frames is more than 500 ms.
|
|
479
|
+
*/
|
|
480
|
+
totalFrozenTime;
|
|
481
|
+
/**
|
|
482
|
+
* The total video freeze time as a percentage (%) of the total time the video is available. The video is considered available as long as that the remote user neither stops sending the video stream nor disables the video module after joining the channel.
|
|
483
|
+
*/
|
|
484
|
+
frozenRate;
|
|
485
|
+
/**
|
|
486
|
+
* The amount of time (ms) that the audio is ahead of the video.If this value is negative, the audio is lagging behind the video.
|
|
487
|
+
*/
|
|
488
|
+
avSyncTimeMs;
|
|
489
|
+
/**
|
|
490
|
+
* The total active time (ms) of the video.As long as the remote user or host neither stops sending the video stream nor disables the video module after joining the channel, the video is available.
|
|
491
|
+
*/
|
|
492
|
+
totalActiveTime;
|
|
493
|
+
/**
|
|
494
|
+
* The total duration (ms) of the remote video stream.
|
|
495
|
+
*/
|
|
496
|
+
publishDuration;
|
|
497
|
+
/**
|
|
498
|
+
* @ignore
|
|
499
|
+
*/
|
|
500
|
+
mosValue;
|
|
501
|
+
/**
|
|
502
|
+
* @ignore
|
|
503
|
+
*/
|
|
504
|
+
rxVideoBytes;
|
|
505
|
+
}
|
|
506
|
+
exports.RemoteVideoStats = RemoteVideoStats;
|
|
507
|
+
/**
|
|
508
|
+
* @ignore
|
|
509
|
+
*/
|
|
510
|
+
class Region {
|
|
511
|
+
/**
|
|
512
|
+
* @ignore
|
|
513
|
+
*/
|
|
514
|
+
uid;
|
|
515
|
+
/**
|
|
516
|
+
* @ignore
|
|
517
|
+
*/
|
|
518
|
+
x;
|
|
519
|
+
/**
|
|
520
|
+
* @ignore
|
|
521
|
+
*/
|
|
522
|
+
y;
|
|
523
|
+
/**
|
|
524
|
+
* @ignore
|
|
525
|
+
*/
|
|
526
|
+
width;
|
|
527
|
+
/**
|
|
528
|
+
* @ignore
|
|
529
|
+
*/
|
|
530
|
+
height;
|
|
531
|
+
/**
|
|
532
|
+
* @ignore
|
|
533
|
+
*/
|
|
534
|
+
zOrder;
|
|
535
|
+
/**
|
|
536
|
+
* @ignore
|
|
537
|
+
*/
|
|
538
|
+
alpha;
|
|
539
|
+
/**
|
|
540
|
+
* @ignore
|
|
541
|
+
*/
|
|
542
|
+
renderMode;
|
|
543
|
+
}
|
|
544
|
+
exports.Region = Region;
|
|
545
|
+
/**
|
|
546
|
+
* @ignore
|
|
547
|
+
*/
|
|
548
|
+
class VideoCompositingLayout {
|
|
549
|
+
/**
|
|
550
|
+
* @ignore
|
|
551
|
+
*/
|
|
552
|
+
canvasWidth;
|
|
553
|
+
/**
|
|
554
|
+
* @ignore
|
|
555
|
+
*/
|
|
556
|
+
canvasHeight;
|
|
557
|
+
/**
|
|
558
|
+
* @ignore
|
|
559
|
+
*/
|
|
560
|
+
backgroundColor;
|
|
561
|
+
/**
|
|
562
|
+
* @ignore
|
|
563
|
+
*/
|
|
564
|
+
regions;
|
|
565
|
+
/**
|
|
566
|
+
* @ignore
|
|
567
|
+
*/
|
|
568
|
+
regionCount;
|
|
569
|
+
/**
|
|
570
|
+
* @ignore
|
|
571
|
+
*/
|
|
572
|
+
appData;
|
|
573
|
+
/**
|
|
574
|
+
* @ignore
|
|
575
|
+
*/
|
|
576
|
+
appDataLength;
|
|
577
|
+
}
|
|
578
|
+
exports.VideoCompositingLayout = VideoCompositingLayout;
|
|
579
|
+
/**
|
|
580
|
+
* @ignore
|
|
581
|
+
*/
|
|
582
|
+
class InjectStreamConfig {
|
|
583
|
+
/**
|
|
584
|
+
* @ignore
|
|
585
|
+
*/
|
|
586
|
+
width;
|
|
587
|
+
/**
|
|
588
|
+
* @ignore
|
|
589
|
+
*/
|
|
590
|
+
height;
|
|
591
|
+
/**
|
|
592
|
+
* @ignore
|
|
593
|
+
*/
|
|
594
|
+
videoGop;
|
|
595
|
+
/**
|
|
596
|
+
* @ignore
|
|
597
|
+
*/
|
|
598
|
+
videoFramerate;
|
|
599
|
+
/**
|
|
600
|
+
* @ignore
|
|
601
|
+
*/
|
|
602
|
+
videoBitrate;
|
|
603
|
+
/**
|
|
604
|
+
* @ignore
|
|
605
|
+
*/
|
|
606
|
+
audioSampleRate;
|
|
607
|
+
/**
|
|
608
|
+
* @ignore
|
|
609
|
+
*/
|
|
610
|
+
audioBitrate;
|
|
611
|
+
/**
|
|
612
|
+
* @ignore
|
|
613
|
+
*/
|
|
614
|
+
audioChannels;
|
|
615
|
+
}
|
|
616
|
+
exports.InjectStreamConfig = InjectStreamConfig;
|
|
617
|
+
/**
|
|
618
|
+
* Lifecycle of the CDN live video stream.
|
|
619
|
+
* Deprecated
|
|
620
|
+
*/
|
|
621
|
+
var RtmpStreamLifeCycleType;
|
|
622
|
+
(function (RtmpStreamLifeCycleType) {
|
|
623
|
+
/**
|
|
624
|
+
* Bind to the channel lifecycle. If all hosts leave the channel, the CDN live streaming stops after 30 seconds.
|
|
625
|
+
*/
|
|
626
|
+
RtmpStreamLifeCycleType[RtmpStreamLifeCycleType["RtmpStreamLifeCycleBind2channel"] = 1] = "RtmpStreamLifeCycleBind2channel";
|
|
627
|
+
/**
|
|
628
|
+
* Bind to the owner of the RTMP stream. If the owner leaves the channel, the CDN live streaming stops immediately.
|
|
629
|
+
*/
|
|
630
|
+
RtmpStreamLifeCycleType[RtmpStreamLifeCycleType["RtmpStreamLifeCycleBind2owner"] = 2] = "RtmpStreamLifeCycleBind2owner";
|
|
631
|
+
})(RtmpStreamLifeCycleType = exports.RtmpStreamLifeCycleType || (exports.RtmpStreamLifeCycleType = {}));
|
|
632
|
+
/**
|
|
633
|
+
* @ignore
|
|
634
|
+
*/
|
|
635
|
+
class PublisherConfiguration {
|
|
636
|
+
/**
|
|
637
|
+
* @ignore
|
|
638
|
+
*/
|
|
639
|
+
width;
|
|
640
|
+
/**
|
|
641
|
+
* @ignore
|
|
642
|
+
*/
|
|
643
|
+
height;
|
|
644
|
+
/**
|
|
645
|
+
* @ignore
|
|
646
|
+
*/
|
|
647
|
+
framerate;
|
|
648
|
+
/**
|
|
649
|
+
* @ignore
|
|
650
|
+
*/
|
|
651
|
+
bitrate;
|
|
652
|
+
/**
|
|
653
|
+
* @ignore
|
|
654
|
+
*/
|
|
655
|
+
defaultLayout;
|
|
656
|
+
/**
|
|
657
|
+
* @ignore
|
|
658
|
+
*/
|
|
659
|
+
lifecycle;
|
|
660
|
+
/**
|
|
661
|
+
* @ignore
|
|
662
|
+
*/
|
|
663
|
+
owner;
|
|
664
|
+
/**
|
|
665
|
+
* @ignore
|
|
666
|
+
*/
|
|
667
|
+
injectStreamWidth;
|
|
668
|
+
/**
|
|
669
|
+
* @ignore
|
|
670
|
+
*/
|
|
671
|
+
injectStreamHeight;
|
|
672
|
+
/**
|
|
673
|
+
* @ignore
|
|
674
|
+
*/
|
|
675
|
+
injectStreamUrl;
|
|
676
|
+
/**
|
|
677
|
+
* @ignore
|
|
678
|
+
*/
|
|
679
|
+
publishUrl;
|
|
680
|
+
/**
|
|
681
|
+
* @ignore
|
|
682
|
+
*/
|
|
683
|
+
rawStreamUrl;
|
|
684
|
+
/**
|
|
685
|
+
* @ignore
|
|
686
|
+
*/
|
|
687
|
+
extraInfo;
|
|
688
|
+
}
|
|
689
|
+
exports.PublisherConfiguration = PublisherConfiguration;
|
|
690
|
+
/**
|
|
691
|
+
* The camera direction.
|
|
692
|
+
*/
|
|
693
|
+
var CameraDirection;
|
|
694
|
+
(function (CameraDirection) {
|
|
695
|
+
/**
|
|
696
|
+
* The rear camera.
|
|
697
|
+
*/
|
|
698
|
+
CameraDirection[CameraDirection["CameraRear"] = 0] = "CameraRear";
|
|
699
|
+
/**
|
|
700
|
+
* The front camera.
|
|
701
|
+
*/
|
|
702
|
+
CameraDirection[CameraDirection["CameraFront"] = 1] = "CameraFront";
|
|
703
|
+
})(CameraDirection = exports.CameraDirection || (exports.CameraDirection = {}));
|
|
704
|
+
/**
|
|
705
|
+
* The cloud proxy type.
|
|
706
|
+
*/
|
|
707
|
+
var CloudProxyType;
|
|
708
|
+
(function (CloudProxyType) {
|
|
709
|
+
/**
|
|
710
|
+
* 0: The automatic mode. The SDK has this mode enabled by default. In this mode, the SDK attempts a direct connection to SD-RTN™ and automatically switches to TCP/TLS 443 if the attempt fails.
|
|
711
|
+
*/
|
|
712
|
+
CloudProxyType[CloudProxyType["NoneProxy"] = 0] = "NoneProxy";
|
|
713
|
+
/**
|
|
714
|
+
* 1: The cloud proxy for the UDP protocol, that is, the Force UDP cloud proxy mode. In this mode, the SDK always transmits data over UDP.
|
|
715
|
+
*/
|
|
716
|
+
CloudProxyType[CloudProxyType["UdpProxy"] = 1] = "UdpProxy";
|
|
717
|
+
/**
|
|
718
|
+
* 2: The cloud proxy for the TCP (encryption) protocol, that is, the Force TCP cloud proxy mode. In this mode, the SDK always transmits data over TCP/TLS 443.
|
|
719
|
+
*/
|
|
720
|
+
CloudProxyType[CloudProxyType["TcpProxy"] = 2] = "TcpProxy";
|
|
721
|
+
})(CloudProxyType = exports.CloudProxyType || (exports.CloudProxyType = {}));
|
|
722
|
+
/**
|
|
723
|
+
* The camera capturer preference.
|
|
724
|
+
*/
|
|
725
|
+
class CameraCapturerConfiguration {
|
|
726
|
+
/**
|
|
727
|
+
* @ignore
|
|
728
|
+
*/
|
|
729
|
+
cameraDirection;
|
|
730
|
+
/**
|
|
731
|
+
* This method applies to Windows only.The ID of the camera. The maximum length is MaxDeviceIdLengthType .
|
|
732
|
+
*/
|
|
733
|
+
deviceId;
|
|
734
|
+
/**
|
|
735
|
+
* The format of the video frame. See VideoFormat .
|
|
736
|
+
*/
|
|
737
|
+
format;
|
|
738
|
+
/**
|
|
739
|
+
* Whether to follow the video aspect ratio set in setVideoEncoderConfiguration :true: (Default) Follow the set video aspect ratio. The SDK crops the captured video according to the set video aspect ratio and synchronously changes the local preview screen and the video frame in onCaptureVideoFrame and onPreEncodeVideoFrame .false: Do not follow the system default audio playback device. The SDK does not change the aspect ratio of the captured video frame.
|
|
740
|
+
*/
|
|
741
|
+
followEncodeDimensionRatio;
|
|
742
|
+
}
|
|
743
|
+
exports.CameraCapturerConfiguration = CameraCapturerConfiguration;
|
|
744
|
+
/**
|
|
745
|
+
* The configuration of the captured screen.
|
|
746
|
+
*/
|
|
747
|
+
class ScreenCaptureConfiguration {
|
|
748
|
+
/**
|
|
749
|
+
* Whether to capture the window on the screen:true: Capture the window.false: (Default) Capture the screen, not the window.
|
|
750
|
+
*/
|
|
751
|
+
isCaptureWindow;
|
|
752
|
+
/**
|
|
753
|
+
* (macOS only) The display ID of the screen.This parameter takes effect only when you want to capture the screen on macOS.
|
|
754
|
+
*/
|
|
755
|
+
displayId;
|
|
756
|
+
/**
|
|
757
|
+
* (Windows only) The relative position of the shared screen to the virtual screen.This parameter takes effect only when you want to capture the screen on Windows.
|
|
758
|
+
*/
|
|
759
|
+
screenRect;
|
|
760
|
+
/**
|
|
761
|
+
* (For Windows and macOS only) Window ID.This parameter takes effect only when you want to capture the window.
|
|
762
|
+
*/
|
|
763
|
+
windowId;
|
|
764
|
+
/**
|
|
765
|
+
* (For Windows and macOS only) The screen capture configuration. See ScreenCaptureParameters .
|
|
766
|
+
*/
|
|
767
|
+
params;
|
|
768
|
+
/**
|
|
769
|
+
* (For Windows and macOS only) The relative position of the shared region to the whole screen. See Rectangle .If you do not set this parameter, the SDK shares the whole screen. If the region you set exceeds the boundary of the screen, only the region within in the screen is shared. If you setwidth or height in Rectangle as 0, the whole screen is shared.
|
|
770
|
+
*/
|
|
771
|
+
regionRect;
|
|
772
|
+
}
|
|
773
|
+
exports.ScreenCaptureConfiguration = ScreenCaptureConfiguration;
|
|
774
|
+
/**
|
|
775
|
+
* @ignore
|
|
776
|
+
*/
|
|
777
|
+
class Size {
|
|
778
|
+
/**
|
|
779
|
+
* @ignore
|
|
780
|
+
*/
|
|
781
|
+
width;
|
|
782
|
+
/**
|
|
783
|
+
* @ignore
|
|
784
|
+
*/
|
|
785
|
+
height;
|
|
786
|
+
}
|
|
787
|
+
exports.Size = Size;
|
|
788
|
+
/**
|
|
789
|
+
* The image content of the thumbnail or icon. Set in ScreenCaptureSourceInfo .
|
|
790
|
+
* The default image is in the ARGB format. If you need to use another format, you need to convert the image on your own.
|
|
791
|
+
*/
|
|
792
|
+
class ThumbImageBuffer {
|
|
793
|
+
/**
|
|
794
|
+
* The buffer of the thumbnail or icon.
|
|
795
|
+
*/
|
|
796
|
+
buffer;
|
|
797
|
+
/**
|
|
798
|
+
* The buffer length of the thumbnail or icon, in bytes.
|
|
799
|
+
*/
|
|
800
|
+
length;
|
|
801
|
+
/**
|
|
802
|
+
* The actual width (px) of the thumbnail or icon.
|
|
803
|
+
*/
|
|
804
|
+
width;
|
|
805
|
+
/**
|
|
806
|
+
* The actual height (px) of the thumbnail or icon.
|
|
807
|
+
*/
|
|
808
|
+
height;
|
|
809
|
+
}
|
|
810
|
+
exports.ThumbImageBuffer = ThumbImageBuffer;
|
|
811
|
+
/**
|
|
812
|
+
* The type of the shared target. Set in ScreenCaptureSourceInfo .
|
|
813
|
+
*/
|
|
814
|
+
var ScreenCaptureSourceType;
|
|
815
|
+
(function (ScreenCaptureSourceType) {
|
|
816
|
+
/**
|
|
817
|
+
* -1: Unknown type.
|
|
818
|
+
*/
|
|
819
|
+
ScreenCaptureSourceType[ScreenCaptureSourceType["ScreencapturesourcetypeUnknown"] = -1] = "ScreencapturesourcetypeUnknown";
|
|
820
|
+
/**
|
|
821
|
+
* 0: The shared target is a window.
|
|
822
|
+
*/
|
|
823
|
+
ScreenCaptureSourceType[ScreenCaptureSourceType["ScreencapturesourcetypeWindow"] = 0] = "ScreencapturesourcetypeWindow";
|
|
824
|
+
/**
|
|
825
|
+
* 1: The shared target is a screen of a particular monitor.
|
|
826
|
+
*/
|
|
827
|
+
ScreenCaptureSourceType[ScreenCaptureSourceType["ScreencapturesourcetypeScreen"] = 1] = "ScreencapturesourcetypeScreen";
|
|
828
|
+
/**
|
|
829
|
+
* 2: Reserved parameter
|
|
830
|
+
*/
|
|
831
|
+
ScreenCaptureSourceType[ScreenCaptureSourceType["ScreencapturesourcetypeCustom"] = 2] = "ScreencapturesourcetypeCustom";
|
|
832
|
+
})(ScreenCaptureSourceType = exports.ScreenCaptureSourceType || (exports.ScreenCaptureSourceType = {}));
|
|
833
|
+
/**
|
|
834
|
+
* The information about the specified shareable window or screen.
|
|
835
|
+
*/
|
|
836
|
+
class ScreenCaptureSourceInfo {
|
|
837
|
+
/**
|
|
838
|
+
* The type of the shared target. See ScreenCaptureSourceType .
|
|
839
|
+
*/
|
|
840
|
+
type;
|
|
841
|
+
/**
|
|
842
|
+
* The window ID for a window or the display ID for a screen.
|
|
843
|
+
*/
|
|
844
|
+
sourceId;
|
|
845
|
+
/**
|
|
846
|
+
* The name of the window or screen. UTF-8 encoding.
|
|
847
|
+
*/
|
|
848
|
+
sourceName;
|
|
849
|
+
/**
|
|
850
|
+
* The image content of the thumbnail. See ThumbImageBuffer
|
|
851
|
+
*/
|
|
852
|
+
thumbImage;
|
|
853
|
+
/**
|
|
854
|
+
* The image content of the icon. See ThumbImageBuffer
|
|
855
|
+
*/
|
|
856
|
+
iconImage;
|
|
857
|
+
/**
|
|
858
|
+
* The process to which the window belongs. UTF-8 encoding.
|
|
859
|
+
*/
|
|
860
|
+
processPath;
|
|
861
|
+
/**
|
|
862
|
+
* The title of the window. UTF-8 encoding.
|
|
863
|
+
*/
|
|
864
|
+
sourceTitle;
|
|
865
|
+
/**
|
|
866
|
+
* Determines whether the screen is the primary display:true: The screen is the primary display.false: The screen is not the primary display.
|
|
867
|
+
*/
|
|
868
|
+
primaryMonitor;
|
|
869
|
+
/**
|
|
870
|
+
* @ignore
|
|
871
|
+
*/
|
|
872
|
+
isOccluded;
|
|
873
|
+
/**
|
|
874
|
+
* @ignore
|
|
875
|
+
*/
|
|
876
|
+
position;
|
|
877
|
+
/**
|
|
878
|
+
* (For Windows only) Whether the window is minimized:true: The window is minimized.false: The window is not minimized.
|
|
879
|
+
*/
|
|
880
|
+
minimizeWindow;
|
|
881
|
+
/**
|
|
882
|
+
* @ignore
|
|
883
|
+
*/
|
|
884
|
+
sourceDisplayId;
|
|
885
|
+
}
|
|
886
|
+
exports.ScreenCaptureSourceInfo = ScreenCaptureSourceInfo;
|
|
887
|
+
/**
|
|
888
|
+
* The advanced options for audio.
|
|
889
|
+
*/
|
|
890
|
+
class AdvancedAudioOptions {
|
|
891
|
+
/**
|
|
892
|
+
* The number of channels for audio preprocessing. See AudioProcessingChannels .
|
|
893
|
+
*/
|
|
894
|
+
audioProcessingChannels;
|
|
895
|
+
}
|
|
896
|
+
exports.AdvancedAudioOptions = AdvancedAudioOptions;
|
|
897
|
+
/**
|
|
898
|
+
* Image configurations
|
|
899
|
+
*/
|
|
900
|
+
class ImageTrackOptions {
|
|
901
|
+
/**
|
|
902
|
+
* The URL of the image that you want to use to replace the video feeds. The image must be in PNG format. This method supports adding an image from the local absolute or relative file path.
|
|
903
|
+
*/
|
|
904
|
+
imageUrl;
|
|
905
|
+
/**
|
|
906
|
+
* The frame rate of the video streams being published. The value range is [1,30]. The default value is 1.
|
|
907
|
+
*/
|
|
908
|
+
fps;
|
|
909
|
+
/**
|
|
910
|
+
* @ignore
|
|
911
|
+
*/
|
|
912
|
+
mirrorMode;
|
|
913
|
+
}
|
|
914
|
+
exports.ImageTrackOptions = ImageTrackOptions;
|
|
915
|
+
/**
|
|
916
|
+
* The channel media options.
|
|
917
|
+
* Agora supports publishing multiple audio streams and one video stream at the same time and in the same RtcConnection . For example, publishMicrophoneTrack, publishAudioTrack, publishCustomAudioTrack, and publishMediaPlayerAudioTrack can be set as true at the same time, but only one of publishCameraTrack, publishCustomVideoTrack, or publishEncodedVideoTrack can be set as true.
|
|
918
|
+
*/
|
|
919
|
+
class ChannelMediaOptions {
|
|
920
|
+
/**
|
|
921
|
+
* Whether to publish the video captured by the camera:true: (Default) Publish the video captured by the camera.false: Do not publish the video captured by the camera.
|
|
922
|
+
*/
|
|
923
|
+
publishCameraTrack;
|
|
924
|
+
/**
|
|
925
|
+
* @ignore
|
|
926
|
+
*/
|
|
927
|
+
publishSecondaryCameraTrack;
|
|
928
|
+
/**
|
|
929
|
+
* Whether to publish the audio captured by the microphone:true: (Default) Publish the audio captured by the microphone.false: Do not publish the audio captured by the microphone.
|
|
930
|
+
*/
|
|
931
|
+
publishMicrophoneTrack;
|
|
932
|
+
/**
|
|
933
|
+
* Whether to publish the video captured from the screen:true: Publish the video captured from the screen.false: (Default) Do not publish the video captured from the screen.This parameter applies to Android and iOS only.
|
|
934
|
+
*/
|
|
935
|
+
publishScreenCaptureVideo;
|
|
936
|
+
/**
|
|
937
|
+
* @ignore
|
|
938
|
+
*/
|
|
939
|
+
publishScreenCaptureAudio;
|
|
940
|
+
/**
|
|
941
|
+
* @ignore
|
|
942
|
+
*/
|
|
943
|
+
publishScreenTrack;
|
|
944
|
+
/**
|
|
945
|
+
* Whether to publish the video captured from the second screen:true: Publish the video captured from the second screen.false: (Default) Do not publish the video captured from the second screen.
|
|
946
|
+
*/
|
|
947
|
+
publishSecondaryScreenTrack;
|
|
948
|
+
/**
|
|
949
|
+
* Whether to publish the audio captured from a custom source:true: Publish the audio captured from the custom source.false: (Default) Do not publish the audio captured from the custom source.
|
|
950
|
+
*/
|
|
951
|
+
publishCustomAudioTrack;
|
|
952
|
+
/**
|
|
953
|
+
* @ignore
|
|
954
|
+
*/
|
|
955
|
+
publishCustomAudioTrackId;
|
|
956
|
+
/**
|
|
957
|
+
* Whether to publish the video captured from a custom source:true: Publish the video captured from the custom source.false: (Default) Do not publish the video captured from the custom source.
|
|
958
|
+
*/
|
|
959
|
+
publishCustomVideoTrack;
|
|
960
|
+
/**
|
|
961
|
+
* Whether to publish the encoded video:true: Publish the encoded video.false: (Default) Do not publish the encoded video.
|
|
962
|
+
*/
|
|
963
|
+
publishEncodedVideoTrack;
|
|
964
|
+
/**
|
|
965
|
+
* Whether to publish the audio from the media player:true: Publish the audio from the media player.false: (Default) Do not publish the audio from the media player.
|
|
966
|
+
*/
|
|
967
|
+
publishMediaPlayerAudioTrack;
|
|
968
|
+
/**
|
|
969
|
+
* Whether to publish the video from the media player:true: Publish the video from the media player.false: (Default) Do not publish the video from the media player.
|
|
970
|
+
*/
|
|
971
|
+
publishMediaPlayerVideoTrack;
|
|
972
|
+
/**
|
|
973
|
+
* @ignore
|
|
974
|
+
*/
|
|
975
|
+
publishTranscodedVideoTrack;
|
|
976
|
+
/**
|
|
977
|
+
* Whether to automatically subscribe to all remote audio streams when the user joins a channel:true: (Default) Automatically subscribe to all remote audio streams.false: Do not automatically subscribe to any remote audio streams.
|
|
978
|
+
*/
|
|
979
|
+
autoSubscribeAudio;
|
|
980
|
+
/**
|
|
981
|
+
* Whether to automatically subscribe to all remote video streams when the user joins the channel:true: (Default) Automatically subscribe to all remote video streams.false: Do not automatically subscribe to any remote video streams.
|
|
982
|
+
*/
|
|
983
|
+
autoSubscribeVideo;
|
|
984
|
+
/**
|
|
985
|
+
* Whether to enable audio capturing or playback:true: (Default) Enable audio capturing or playback.false: Do not enable audio capturing or playback.
|
|
986
|
+
*/
|
|
987
|
+
enableAudioRecordingOrPlayout;
|
|
988
|
+
/**
|
|
989
|
+
* The ID of the media player to be published. The default value is 0.
|
|
990
|
+
*/
|
|
991
|
+
publishMediaPlayerId;
|
|
992
|
+
/**
|
|
993
|
+
* The user role. See ClientRoleType .
|
|
994
|
+
*/
|
|
995
|
+
clientRoleType;
|
|
996
|
+
/**
|
|
997
|
+
* The latency level of an audience member in interactive live streaming. See AudienceLatencyLevelType .
|
|
998
|
+
*
|
|
999
|
+
*/
|
|
1000
|
+
audienceLatencyLevel;
|
|
1001
|
+
/**
|
|
1002
|
+
* The default video-stream type. See VideoStreamType .
|
|
1003
|
+
*
|
|
1004
|
+
*/
|
|
1005
|
+
defaultVideoStreamType;
|
|
1006
|
+
/**
|
|
1007
|
+
* The channel profile. See ChannelProfileType .
|
|
1008
|
+
*/
|
|
1009
|
+
channelProfile;
|
|
1010
|
+
/**
|
|
1011
|
+
* @ignore
|
|
1012
|
+
*/
|
|
1013
|
+
audioDelayMs;
|
|
1014
|
+
/**
|
|
1015
|
+
* @ignore
|
|
1016
|
+
*/
|
|
1017
|
+
mediaPlayerAudioDelayMs;
|
|
1018
|
+
/**
|
|
1019
|
+
* (Optional) The token generated on your server for authentication. See This parameter takes effect only when calling updateChannelMediaOptions or updateChannelMediaOptionsEx .Ensure that the App ID, channel name, and user name used for creating the token are the same as those used by the initialize method for initializing the RTC engine, and those used by the joinChannel and joinChannelEx methods for joining the channel.
|
|
1020
|
+
*/
|
|
1021
|
+
token;
|
|
1022
|
+
/**
|
|
1023
|
+
* @ignore
|
|
1024
|
+
*/
|
|
1025
|
+
enableBuiltInMediaEncryption;
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether to publish the sound of a metronome to remote users:true: (Default) Publish the sound of the metronome. Both the local user and remote users can hear the metronome.false: Do not publish the sound of the metronome. Only the local user can hear the metronome.
|
|
1028
|
+
*/
|
|
1029
|
+
publishRhythmPlayerTrack;
|
|
1030
|
+
/**
|
|
1031
|
+
* Whether to enable interactive mode:true: Enable interactive mode. Once this mode is enabled and the user role is set as audience, the user can receive remote video streams with low latency.false: (Default) Do not enable interactive mode. If this mode is disabled, the user receives the remote video streams in default settings.This parameter only applies to scenarios involving cohosting across channels. The cohosts need to call the joinChannelEx method to join the other host's channel as an audience member, and set isInteractiveAudience to true.This parameter takes effect only when the user role is ClientRoleAudience.
|
|
1032
|
+
*/
|
|
1033
|
+
isInteractiveAudience;
|
|
1034
|
+
/**
|
|
1035
|
+
* The video track ID returned by calling the createCustomVideoTrack method. The default value is 0.
|
|
1036
|
+
*/
|
|
1037
|
+
customVideoTrackId;
|
|
1038
|
+
/**
|
|
1039
|
+
* Whether the audio stream being published is filtered according to the volume algorithm:true: (Default) The audio stream is filtered. If the audio stream filter is not enabled, this setting does not takes effect.false: The audio stream is not filtered.If you need to enable this function, contact .
|
|
1040
|
+
*/
|
|
1041
|
+
isAudioFilterable;
|
|
1042
|
+
}
|
|
1043
|
+
exports.ChannelMediaOptions = ChannelMediaOptions;
|
|
1044
|
+
/**
|
|
1045
|
+
* @ignore
|
|
1046
|
+
*/
|
|
1047
|
+
var LocalProxyMode;
|
|
1048
|
+
(function (LocalProxyMode) {
|
|
1049
|
+
/**
|
|
1050
|
+
* @ignore
|
|
1051
|
+
*/
|
|
1052
|
+
LocalProxyMode[LocalProxyMode["ConnectivityFirst"] = 0] = "ConnectivityFirst";
|
|
1053
|
+
/**
|
|
1054
|
+
* @ignore
|
|
1055
|
+
*/
|
|
1056
|
+
LocalProxyMode[LocalProxyMode["LocalOnly"] = 1] = "LocalOnly";
|
|
1057
|
+
})(LocalProxyMode = exports.LocalProxyMode || (exports.LocalProxyMode = {}));
|
|
1058
|
+
/**
|
|
1059
|
+
* The cloud proxy type.
|
|
1060
|
+
*/
|
|
1061
|
+
var ProxyType;
|
|
1062
|
+
(function (ProxyType) {
|
|
1063
|
+
/**
|
|
1064
|
+
* 0: Reserved for future use.
|
|
1065
|
+
*/
|
|
1066
|
+
ProxyType[ProxyType["NoneProxyType"] = 0] = "NoneProxyType";
|
|
1067
|
+
/**
|
|
1068
|
+
* 1: The cloud proxy for the UDP protocol, that is, the Force UDP cloud proxy mode. In this mode, the SDK always transmits data over UDP.
|
|
1069
|
+
*/
|
|
1070
|
+
ProxyType[ProxyType["UdpProxyType"] = 1] = "UdpProxyType";
|
|
1071
|
+
/**
|
|
1072
|
+
* 2: The cloud proxy for the TCP (encryption) protocol, that is, the Force TCP cloud proxy mode. In this mode, the SDK always transmits data over TCP/TLS 443.
|
|
1073
|
+
*/
|
|
1074
|
+
ProxyType[ProxyType["TcpProxyType"] = 2] = "TcpProxyType";
|
|
1075
|
+
/**
|
|
1076
|
+
* 3: Reserved for future use.
|
|
1077
|
+
*/
|
|
1078
|
+
ProxyType[ProxyType["LocalProxyType"] = 3] = "LocalProxyType";
|
|
1079
|
+
/**
|
|
1080
|
+
* 4: Automatic mode. In this mode, the SDK attempts a direct connection to SD-RTN™ and automatically switches to TCP/TLS 443 if the attempt fails.
|
|
1081
|
+
*/
|
|
1082
|
+
ProxyType[ProxyType["TcpProxyAutoFallbackType"] = 4] = "TcpProxyAutoFallbackType";
|
|
1083
|
+
/**
|
|
1084
|
+
* @ignore
|
|
1085
|
+
*/
|
|
1086
|
+
ProxyType[ProxyType["HttpProxyType"] = 5] = "HttpProxyType";
|
|
1087
|
+
/**
|
|
1088
|
+
* @ignore
|
|
1089
|
+
*/
|
|
1090
|
+
ProxyType[ProxyType["HttpsProxyType"] = 6] = "HttpsProxyType";
|
|
1091
|
+
})(ProxyType = exports.ProxyType || (exports.ProxyType = {}));
|
|
1092
|
+
/**
|
|
1093
|
+
* @ignore
|
|
1094
|
+
*/
|
|
1095
|
+
class LogUploadServerInfo {
|
|
1096
|
+
/**
|
|
1097
|
+
* @ignore
|
|
1098
|
+
*/
|
|
1099
|
+
serverDomain;
|
|
1100
|
+
/**
|
|
1101
|
+
* @ignore
|
|
1102
|
+
*/
|
|
1103
|
+
serverPath;
|
|
1104
|
+
/**
|
|
1105
|
+
* @ignore
|
|
1106
|
+
*/
|
|
1107
|
+
serverPort;
|
|
1108
|
+
/**
|
|
1109
|
+
* @ignore
|
|
1110
|
+
*/
|
|
1111
|
+
serverHttps;
|
|
1112
|
+
}
|
|
1113
|
+
exports.LogUploadServerInfo = LogUploadServerInfo;
|
|
1114
|
+
/**
|
|
1115
|
+
* @ignore
|
|
1116
|
+
*/
|
|
1117
|
+
class AdvancedConfigInfo {
|
|
1118
|
+
/**
|
|
1119
|
+
* @ignore
|
|
1120
|
+
*/
|
|
1121
|
+
logUploadServer;
|
|
1122
|
+
}
|
|
1123
|
+
exports.AdvancedConfigInfo = AdvancedConfigInfo;
|
|
1124
|
+
/**
|
|
1125
|
+
* @ignore
|
|
1126
|
+
*/
|
|
1127
|
+
class LocalAccessPointConfiguration {
|
|
1128
|
+
/**
|
|
1129
|
+
* @ignore
|
|
1130
|
+
*/
|
|
1131
|
+
ipList;
|
|
1132
|
+
/**
|
|
1133
|
+
* @ignore
|
|
1134
|
+
*/
|
|
1135
|
+
ipListSize;
|
|
1136
|
+
/**
|
|
1137
|
+
* @ignore
|
|
1138
|
+
*/
|
|
1139
|
+
domainList;
|
|
1140
|
+
/**
|
|
1141
|
+
* @ignore
|
|
1142
|
+
*/
|
|
1143
|
+
domainListSize;
|
|
1144
|
+
/**
|
|
1145
|
+
* @ignore
|
|
1146
|
+
*/
|
|
1147
|
+
verifyDomainName;
|
|
1148
|
+
/**
|
|
1149
|
+
* @ignore
|
|
1150
|
+
*/
|
|
1151
|
+
mode;
|
|
1152
|
+
/**
|
|
1153
|
+
* @ignore
|
|
1154
|
+
*/
|
|
1155
|
+
advancedConfig;
|
|
1156
|
+
}
|
|
1157
|
+
exports.LocalAccessPointConfiguration = LocalAccessPointConfiguration;
|
|
1158
|
+
/**
|
|
1159
|
+
* The options for leaving a channel.
|
|
1160
|
+
*/
|
|
1161
|
+
class LeaveChannelOptions {
|
|
1162
|
+
/**
|
|
1163
|
+
* Whether to stop playing and mixing the music file when a user leaves the channel. true: (Default) Stop playing and mixing the music file.false: Do not stop playing and mixing the music file.
|
|
1164
|
+
*/
|
|
1165
|
+
stopAudioMixing;
|
|
1166
|
+
/**
|
|
1167
|
+
* Whether to stop playing all audio effects when a user leaves the channel. true: (Default) Stop playing all audio effects.false: Do not stop playing any audio effect.
|
|
1168
|
+
*/
|
|
1169
|
+
stopAllEffect;
|
|
1170
|
+
/**
|
|
1171
|
+
* Whether to stop microphone recording when a user leaves the channel. true: (Default) Stop microphone recording.false: Do not stop microphone recording.
|
|
1172
|
+
*/
|
|
1173
|
+
stopMicrophoneRecording;
|
|
1174
|
+
}
|
|
1175
|
+
exports.LeaveChannelOptions = LeaveChannelOptions;
|
|
1176
|
+
/**
|
|
1177
|
+
* Video device management methods.
|
|
1178
|
+
*/
|
|
1179
|
+
class IVideoDeviceManager {
|
|
1180
|
+
}
|
|
1181
|
+
exports.IVideoDeviceManager = IVideoDeviceManager;
|
|
1182
|
+
/**
|
|
1183
|
+
* Configurations for the RtcEngineContext instance.
|
|
1184
|
+
*/
|
|
1185
|
+
class RtcEngineContext {
|
|
1186
|
+
/**
|
|
1187
|
+
* The App ID issued by Agora for your project. Only users in apps with the same App ID can join the same channel and communicate with each other. An App ID can only be used to create one IRtcEngine instance. To change your App ID, call release to destroy the current IRtcEngine instance, and then create a new one.
|
|
1188
|
+
*/
|
|
1189
|
+
appId;
|
|
1190
|
+
/**
|
|
1191
|
+
* The channel profile. See ChannelProfileType .
|
|
1192
|
+
*/
|
|
1193
|
+
channelProfile;
|
|
1194
|
+
/**
|
|
1195
|
+
* @ignore
|
|
1196
|
+
*/
|
|
1197
|
+
license;
|
|
1198
|
+
/**
|
|
1199
|
+
* The audio scenarios. See AudioScenarioType . Under different audio scenarios, the device uses different volume types.
|
|
1200
|
+
*/
|
|
1201
|
+
audioScenario;
|
|
1202
|
+
/**
|
|
1203
|
+
* The region for connection. This is an advanced feature and applies to scenarios that have regional restrictions. The area codes support bitwise operation.
|
|
1204
|
+
*/
|
|
1205
|
+
areaCode;
|
|
1206
|
+
/**
|
|
1207
|
+
* The SDK log files are: agorasdk.log, agorasdk.1.log, agorasdk.2.log, agorasdk.3.log, and agorasdk.4.log.
|
|
1208
|
+
* The API call log files are: agoraapi.log, agoraapi.1.log, agoraapi.2.log, agoraapi.3.log, and agoraapi.4.log.
|
|
1209
|
+
* The default size for each SDK log file is 1,024 KB; the default size for each API call log file is 2,048 KB. These log files are encoded in UTF-8.
|
|
1210
|
+
* The SDK writes the latest logs in agorasdk.log or agoraapi.log.
|
|
1211
|
+
* When agorasdk.log is full, the SDK processes the log files in the following order:
|
|
1212
|
+
* Delete the agorasdk.4.log file (if any).
|
|
1213
|
+
* Rename agorasdk.3.log to agorasdk.4.log.
|
|
1214
|
+
* Rename agorasdk.2.log to agorasdk.3.log.
|
|
1215
|
+
* Rename agorasdk.1.log to agorasdk.2.log.
|
|
1216
|
+
* Create a new agorasdk.log file. The overwrite rules for the agoraapi.log file are the same as for agorasdk.log. Sets the log file size. See LogConfig .By default, the SDK generates five SDK log files and five API call log files with the following rules:
|
|
1217
|
+
*/
|
|
1218
|
+
logConfig;
|
|
1219
|
+
/**
|
|
1220
|
+
* @ignore
|
|
1221
|
+
*/
|
|
1222
|
+
threadPriority;
|
|
1223
|
+
/**
|
|
1224
|
+
* @ignore
|
|
1225
|
+
*/
|
|
1226
|
+
useExternalEglContext;
|
|
1227
|
+
/**
|
|
1228
|
+
* Whether to enable domain name restriction:true: Enables the domain name restriction. This value is suitable for scenarios where IoT devices use IoT cards for network access. The SDK will only connect to servers in the domain name or IP whitelist that has been reported to the operator.false: (Default) Disables the domain name restriction. This value is suitable for most common scenarios.
|
|
1229
|
+
*/
|
|
1230
|
+
domainLimit;
|
|
1231
|
+
/**
|
|
1232
|
+
* @ignore
|
|
1233
|
+
*/
|
|
1234
|
+
autoRegisterAgoraExtensions;
|
|
1235
|
+
}
|
|
1236
|
+
exports.RtcEngineContext = RtcEngineContext;
|
|
1237
|
+
/**
|
|
1238
|
+
* Metadata type of the observer. We only support video metadata for now.
|
|
1239
|
+
*/
|
|
1240
|
+
var MetadataType;
|
|
1241
|
+
(function (MetadataType) {
|
|
1242
|
+
/**
|
|
1243
|
+
* The type of metadata is unknown.
|
|
1244
|
+
*/
|
|
1245
|
+
MetadataType[MetadataType["UnknownMetadata"] = -1] = "UnknownMetadata";
|
|
1246
|
+
/**
|
|
1247
|
+
* The type of metadata is video.
|
|
1248
|
+
*/
|
|
1249
|
+
MetadataType[MetadataType["VideoMetadata"] = 0] = "VideoMetadata";
|
|
1250
|
+
})(MetadataType = exports.MetadataType || (exports.MetadataType = {}));
|
|
1251
|
+
/**
|
|
1252
|
+
* @ignore
|
|
1253
|
+
*/
|
|
1254
|
+
var MaxMetadataSizeType;
|
|
1255
|
+
(function (MaxMetadataSizeType) {
|
|
1256
|
+
/**
|
|
1257
|
+
* @ignore
|
|
1258
|
+
*/
|
|
1259
|
+
MaxMetadataSizeType[MaxMetadataSizeType["InvalidMetadataSizeInByte"] = -1] = "InvalidMetadataSizeInByte";
|
|
1260
|
+
/**
|
|
1261
|
+
* @ignore
|
|
1262
|
+
*/
|
|
1263
|
+
MaxMetadataSizeType[MaxMetadataSizeType["DefaultMetadataSizeInByte"] = 512] = "DefaultMetadataSizeInByte";
|
|
1264
|
+
/**
|
|
1265
|
+
* @ignore
|
|
1266
|
+
*/
|
|
1267
|
+
MaxMetadataSizeType[MaxMetadataSizeType["MaxMetadataSizeInByte"] = 1024] = "MaxMetadataSizeInByte";
|
|
1268
|
+
})(MaxMetadataSizeType = exports.MaxMetadataSizeType || (exports.MaxMetadataSizeType = {}));
|
|
1269
|
+
/**
|
|
1270
|
+
* Media metadata.
|
|
1271
|
+
*/
|
|
1272
|
+
class Metadata {
|
|
1273
|
+
/**
|
|
1274
|
+
* The user ID.For the recipient:the ID of the remote user who sent the Metadata.Ignore it for sender.
|
|
1275
|
+
*/
|
|
1276
|
+
uid;
|
|
1277
|
+
/**
|
|
1278
|
+
* Buffer size for received or sent Metadata.
|
|
1279
|
+
*/
|
|
1280
|
+
size;
|
|
1281
|
+
/**
|
|
1282
|
+
* The buffer address of the received or sent Metadata.
|
|
1283
|
+
*/
|
|
1284
|
+
buffer;
|
|
1285
|
+
/**
|
|
1286
|
+
* The timestamp (ms) of Metadata.
|
|
1287
|
+
*/
|
|
1288
|
+
timeStampMs;
|
|
1289
|
+
}
|
|
1290
|
+
exports.Metadata = Metadata;
|
|
1291
|
+
/**
|
|
1292
|
+
* The CDN streaming error.
|
|
1293
|
+
*/
|
|
1294
|
+
var DirectCdnStreamingError;
|
|
1295
|
+
(function (DirectCdnStreamingError) {
|
|
1296
|
+
/**
|
|
1297
|
+
* 0: No error.
|
|
1298
|
+
*/
|
|
1299
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorOk"] = 0] = "DirectCdnStreamingErrorOk";
|
|
1300
|
+
/**
|
|
1301
|
+
* 1: A general error; no specific reason. You can try to push the media stream again.
|
|
1302
|
+
*/
|
|
1303
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorFailed"] = 1] = "DirectCdnStreamingErrorFailed";
|
|
1304
|
+
/**
|
|
1305
|
+
* 2: An error occurs when pushing audio streams. For example, the local audio capture device is not working properly, is occupied by another process, or does not get the permission required.
|
|
1306
|
+
*/
|
|
1307
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorAudioPublication"] = 2] = "DirectCdnStreamingErrorAudioPublication";
|
|
1308
|
+
/**
|
|
1309
|
+
* 3: An error occurs when pushing video streams. For example, the local video capture device is not working properly, is occupied by another process, or does not get the permission required.
|
|
1310
|
+
*/
|
|
1311
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorVideoPublication"] = 3] = "DirectCdnStreamingErrorVideoPublication";
|
|
1312
|
+
/**
|
|
1313
|
+
* 4: Fails to connect to the CDN.
|
|
1314
|
+
*/
|
|
1315
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorNetConnect"] = 4] = "DirectCdnStreamingErrorNetConnect";
|
|
1316
|
+
/**
|
|
1317
|
+
* 5: The URL is already being used. Use a new URL for streaming.
|
|
1318
|
+
*/
|
|
1319
|
+
DirectCdnStreamingError[DirectCdnStreamingError["DirectCdnStreamingErrorBadName"] = 5] = "DirectCdnStreamingErrorBadName";
|
|
1320
|
+
})(DirectCdnStreamingError = exports.DirectCdnStreamingError || (exports.DirectCdnStreamingError = {}));
|
|
1321
|
+
/**
|
|
1322
|
+
* The current CDN streaming state.
|
|
1323
|
+
*/
|
|
1324
|
+
var DirectCdnStreamingState;
|
|
1325
|
+
(function (DirectCdnStreamingState) {
|
|
1326
|
+
/**
|
|
1327
|
+
* 0: The initial state before the CDN streaming starts.
|
|
1328
|
+
*/
|
|
1329
|
+
DirectCdnStreamingState[DirectCdnStreamingState["DirectCdnStreamingStateIdle"] = 0] = "DirectCdnStreamingStateIdle";
|
|
1330
|
+
/**
|
|
1331
|
+
* 1: Streams are being pushed to the CDN. The SDK returns this value when you call the startDirectCdnStreaming method to push streams to the CDN.
|
|
1332
|
+
*/
|
|
1333
|
+
DirectCdnStreamingState[DirectCdnStreamingState["DirectCdnStreamingStateRunning"] = 1] = "DirectCdnStreamingStateRunning";
|
|
1334
|
+
/**
|
|
1335
|
+
* 2: Stops pushing streams to the CDN. The SDK returns this value when you call the stopDirectCdnStreaming method to stop pushing streams to the CDN.
|
|
1336
|
+
*/
|
|
1337
|
+
DirectCdnStreamingState[DirectCdnStreamingState["DirectCdnStreamingStateStopped"] = 2] = "DirectCdnStreamingStateStopped";
|
|
1338
|
+
/**
|
|
1339
|
+
* 3: Fails to push streams to the CDN. You can troubleshoot the issue with the information reported by the onDirectCdnStreamingStateChanged callback, and then push streams to the CDN again.
|
|
1340
|
+
*/
|
|
1341
|
+
DirectCdnStreamingState[DirectCdnStreamingState["DirectCdnStreamingStateFailed"] = 3] = "DirectCdnStreamingStateFailed";
|
|
1342
|
+
/**
|
|
1343
|
+
* 4: Tries to reconnect the Agora server to the CDN. The SDK attempts to reconnect a maximum of 10 times; if the connection is not restored, the streaming state becomes DirectCdnStreamingStateFailed.
|
|
1344
|
+
*/
|
|
1345
|
+
DirectCdnStreamingState[DirectCdnStreamingState["DirectCdnStreamingStateRecovering"] = 4] = "DirectCdnStreamingStateRecovering";
|
|
1346
|
+
})(DirectCdnStreamingState = exports.DirectCdnStreamingState || (exports.DirectCdnStreamingState = {}));
|
|
1347
|
+
/**
|
|
1348
|
+
* The statistics of the current CDN streaming.
|
|
1349
|
+
*/
|
|
1350
|
+
class DirectCdnStreamingStats {
|
|
1351
|
+
/**
|
|
1352
|
+
* The width (px) of the video frame.
|
|
1353
|
+
*/
|
|
1354
|
+
videoWidth;
|
|
1355
|
+
/**
|
|
1356
|
+
* The height (px) of the video frame.
|
|
1357
|
+
*/
|
|
1358
|
+
videoHeight;
|
|
1359
|
+
/**
|
|
1360
|
+
* The frame rate (fps) of the current video frame.
|
|
1361
|
+
*/
|
|
1362
|
+
fps;
|
|
1363
|
+
/**
|
|
1364
|
+
* The bitrate (bps) of the current video frame.
|
|
1365
|
+
*/
|
|
1366
|
+
videoBitrate;
|
|
1367
|
+
/**
|
|
1368
|
+
* The bitrate (bps) of the current audio frame.
|
|
1369
|
+
*/
|
|
1370
|
+
audioBitrate;
|
|
1371
|
+
}
|
|
1372
|
+
exports.DirectCdnStreamingStats = DirectCdnStreamingStats;
|
|
1373
|
+
/**
|
|
1374
|
+
* The media setting options for the host.
|
|
1375
|
+
*/
|
|
1376
|
+
class DirectCdnStreamingMediaOptions {
|
|
1377
|
+
/**
|
|
1378
|
+
* Sets whether to publish the video captured by the camera:true: Publish the video captured by the camera.false: (Default) Do not publish the video captured by the camera.
|
|
1379
|
+
*/
|
|
1380
|
+
publishCameraTrack;
|
|
1381
|
+
/**
|
|
1382
|
+
* Sets whether to publish the audio captured by the microphone:true: Publish the audio captured by the microphone.false: (Default) Do not publish the audio captured by the microphone.
|
|
1383
|
+
*/
|
|
1384
|
+
publishMicrophoneTrack;
|
|
1385
|
+
/**
|
|
1386
|
+
* Sets whether to publish the captured audio from a custom source:true: Publish the captured audio from a custom source.false: (Default) Do not publish the captured audio from the custom source.
|
|
1387
|
+
*/
|
|
1388
|
+
publishCustomAudioTrack;
|
|
1389
|
+
/**
|
|
1390
|
+
* Sets whether to publish the captured video from a custom source:true: Publish the captured video from a custom source.false: (Default) Do not publish the captured video from the custom source.
|
|
1391
|
+
*/
|
|
1392
|
+
publishCustomVideoTrack;
|
|
1393
|
+
/**
|
|
1394
|
+
* @ignore
|
|
1395
|
+
*/
|
|
1396
|
+
publishMediaPlayerAudioTrack;
|
|
1397
|
+
/**
|
|
1398
|
+
* @ignore
|
|
1399
|
+
*/
|
|
1400
|
+
publishMediaPlayerId;
|
|
1401
|
+
/**
|
|
1402
|
+
* The video track ID returned by calling the createCustomVideoTrack method. The default value is 0.
|
|
1403
|
+
*/
|
|
1404
|
+
customVideoTrackId;
|
|
1405
|
+
}
|
|
1406
|
+
exports.DirectCdnStreamingMediaOptions = DirectCdnStreamingMediaOptions;
|
|
1407
|
+
/**
|
|
1408
|
+
* @ignore
|
|
1409
|
+
*/
|
|
1410
|
+
class ExtensionInfo {
|
|
1411
|
+
/**
|
|
1412
|
+
* @ignore
|
|
1413
|
+
*/
|
|
1414
|
+
mediaSourceType;
|
|
1415
|
+
/**
|
|
1416
|
+
* @ignore
|
|
1417
|
+
*/
|
|
1418
|
+
remoteUid;
|
|
1419
|
+
/**
|
|
1420
|
+
* @ignore
|
|
1421
|
+
*/
|
|
1422
|
+
channelId;
|
|
1423
|
+
/**
|
|
1424
|
+
* @ignore
|
|
1425
|
+
*/
|
|
1426
|
+
localUid;
|
|
1427
|
+
}
|
|
1428
|
+
exports.ExtensionInfo = ExtensionInfo;
|
|
1429
|
+
/**
|
|
1430
|
+
* The basic interface of the Agora SDK that implements the core functions of real-time communication.
|
|
1431
|
+
* IRtcEngine provides the main methods that your app can call.Before calling other APIs, you must call createAgoraRtcEngine to create an IRtcEngine object.
|
|
1432
|
+
*/
|
|
1433
|
+
class IRtcEngine {
|
|
1434
|
+
}
|
|
1435
|
+
exports.IRtcEngine = IRtcEngine;
|
|
1436
|
+
/**
|
|
1437
|
+
* @ignore
|
|
1438
|
+
*/
|
|
1439
|
+
var QualityReportFormatType;
|
|
1440
|
+
(function (QualityReportFormatType) {
|
|
1441
|
+
/**
|
|
1442
|
+
* @ignore
|
|
1443
|
+
*/
|
|
1444
|
+
QualityReportFormatType[QualityReportFormatType["QualityReportJson"] = 0] = "QualityReportJson";
|
|
1445
|
+
/**
|
|
1446
|
+
* @ignore
|
|
1447
|
+
*/
|
|
1448
|
+
QualityReportFormatType[QualityReportFormatType["QualityReportHtml"] = 1] = "QualityReportHtml";
|
|
1449
|
+
})(QualityReportFormatType = exports.QualityReportFormatType || (exports.QualityReportFormatType = {}));
|
|
1450
|
+
/**
|
|
1451
|
+
* Media device states.
|
|
1452
|
+
*/
|
|
1453
|
+
var MediaDeviceStateType;
|
|
1454
|
+
(function (MediaDeviceStateType) {
|
|
1455
|
+
/**
|
|
1456
|
+
* @ignore
|
|
1457
|
+
*/
|
|
1458
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateIdle"] = 0] = "MediaDeviceStateIdle";
|
|
1459
|
+
/**
|
|
1460
|
+
* 1: The device is in use.
|
|
1461
|
+
*/
|
|
1462
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateActive"] = 1] = "MediaDeviceStateActive";
|
|
1463
|
+
/**
|
|
1464
|
+
* 2: The device is disabled.
|
|
1465
|
+
*/
|
|
1466
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateDisabled"] = 2] = "MediaDeviceStateDisabled";
|
|
1467
|
+
/**
|
|
1468
|
+
* 4: The device is not found.
|
|
1469
|
+
*/
|
|
1470
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateNotPresent"] = 4] = "MediaDeviceStateNotPresent";
|
|
1471
|
+
/**
|
|
1472
|
+
* 8: The device is unplugged.
|
|
1473
|
+
*/
|
|
1474
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateUnplugged"] = 8] = "MediaDeviceStateUnplugged";
|
|
1475
|
+
})(MediaDeviceStateType = exports.MediaDeviceStateType || (exports.MediaDeviceStateType = {}));
|
|
1476
|
+
/**
|
|
1477
|
+
* Video profile.
|
|
1478
|
+
*/
|
|
1479
|
+
var VideoProfileType;
|
|
1480
|
+
(function (VideoProfileType) {
|
|
1481
|
+
/**
|
|
1482
|
+
* 0: 160 × 120, frame rate 15 fps, bitrate 65 Kbps.
|
|
1483
|
+
*/
|
|
1484
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape120p"] = 0] = "VideoProfileLandscape120p";
|
|
1485
|
+
/**
|
|
1486
|
+
* 2: 120 × 120, frame rate 15 fps, bitrate 50 Kbps.
|
|
1487
|
+
*/
|
|
1488
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape120p3"] = 2] = "VideoProfileLandscape120p3";
|
|
1489
|
+
/**
|
|
1490
|
+
* 10: 320 × 180, frame rate 15 fps, bitrate 140 Kbps.
|
|
1491
|
+
*/
|
|
1492
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape180p"] = 10] = "VideoProfileLandscape180p";
|
|
1493
|
+
/**
|
|
1494
|
+
* 12: 180 × 180, frame rate 15 fps, bitrate 100 Kbps.
|
|
1495
|
+
*/
|
|
1496
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape180p3"] = 12] = "VideoProfileLandscape180p3";
|
|
1497
|
+
/**
|
|
1498
|
+
* 13: 240 × 180, frame rate 15 fps, bitrate 120 Kbps.
|
|
1499
|
+
*/
|
|
1500
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape180p4"] = 13] = "VideoProfileLandscape180p4";
|
|
1501
|
+
/**
|
|
1502
|
+
* 20: 320 × 240, frame rate 15 fps, bitrate 200 Kbps.
|
|
1503
|
+
*/
|
|
1504
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape240p"] = 20] = "VideoProfileLandscape240p";
|
|
1505
|
+
/**
|
|
1506
|
+
* 22: 240 × 240, frame rate 15 fps, bitrate 140 Kbps.
|
|
1507
|
+
*/
|
|
1508
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape240p3"] = 22] = "VideoProfileLandscape240p3";
|
|
1509
|
+
/**
|
|
1510
|
+
* 23: 424 × 240, frame rate 15 fps, bitrate 220 Kbps.
|
|
1511
|
+
*/
|
|
1512
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape240p4"] = 23] = "VideoProfileLandscape240p4";
|
|
1513
|
+
/**
|
|
1514
|
+
* 30: 640 × 360, frame rate 15 fps, bitrate 400 Kbps.
|
|
1515
|
+
*/
|
|
1516
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p"] = 30] = "VideoProfileLandscape360p";
|
|
1517
|
+
/**
|
|
1518
|
+
* 32: 360 × 360, frame rate 15 fps, bitrate 260 Kbps.
|
|
1519
|
+
*/
|
|
1520
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p3"] = 32] = "VideoProfileLandscape360p3";
|
|
1521
|
+
/**
|
|
1522
|
+
* 33: 640 × 360, frame rate 30 fps, bitrate 600 Kbps.
|
|
1523
|
+
*/
|
|
1524
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p4"] = 33] = "VideoProfileLandscape360p4";
|
|
1525
|
+
/**
|
|
1526
|
+
* 35: 360 × 360, frame rate 30 fps, bitrate 400 Kbps.
|
|
1527
|
+
*/
|
|
1528
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p6"] = 35] = "VideoProfileLandscape360p6";
|
|
1529
|
+
/**
|
|
1530
|
+
* 36: 480 × 360, frame rate 15 fps, bitrate 320 Kbps.
|
|
1531
|
+
*/
|
|
1532
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p7"] = 36] = "VideoProfileLandscape360p7";
|
|
1533
|
+
/**
|
|
1534
|
+
* 37: 480 × 360, frame rate 30 fps, bitrate 490 Kbps.
|
|
1535
|
+
*/
|
|
1536
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p8"] = 37] = "VideoProfileLandscape360p8";
|
|
1537
|
+
/**
|
|
1538
|
+
* 38: 640 × 360, frame rate 15 fps, bitrate 800 Kbps.This profile applies only to the live streaming channel profile.
|
|
1539
|
+
*/
|
|
1540
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p9"] = 38] = "VideoProfileLandscape360p9";
|
|
1541
|
+
/**
|
|
1542
|
+
* 39: 640 × 360, frame rate 24 fps, bitrate 800 Kbps.This profile applies only to the live streaming channel profile.
|
|
1543
|
+
*/
|
|
1544
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p10"] = 39] = "VideoProfileLandscape360p10";
|
|
1545
|
+
/**
|
|
1546
|
+
* 100: 640 × 360, frame rate 24 fps, bitrate 1000 Kbps.This profile applies only to the live streaming channel profile.
|
|
1547
|
+
*/
|
|
1548
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape360p11"] = 100] = "VideoProfileLandscape360p11";
|
|
1549
|
+
/**
|
|
1550
|
+
* 40: 640 × 480, frame rate 15 fps, bitrate 500 Kbps.
|
|
1551
|
+
*/
|
|
1552
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p"] = 40] = "VideoProfileLandscape480p";
|
|
1553
|
+
/**
|
|
1554
|
+
* 42: 480 × 480, frame rate 15 fps, bitrate 400 Kbps.
|
|
1555
|
+
*/
|
|
1556
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p3"] = 42] = "VideoProfileLandscape480p3";
|
|
1557
|
+
/**
|
|
1558
|
+
* 43: 640 × 480, frame rate 30 fps, bitrate 750 Kbps.
|
|
1559
|
+
*/
|
|
1560
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p4"] = 43] = "VideoProfileLandscape480p4";
|
|
1561
|
+
/**
|
|
1562
|
+
* 45: 480 × 480, frame rate 30 fps, bitrate 600 Kbps.
|
|
1563
|
+
*/
|
|
1564
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p6"] = 45] = "VideoProfileLandscape480p6";
|
|
1565
|
+
/**
|
|
1566
|
+
* 47: 848 × 480, frame rate 15 fps, bitrate 610 Kbps.
|
|
1567
|
+
*/
|
|
1568
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p8"] = 47] = "VideoProfileLandscape480p8";
|
|
1569
|
+
/**
|
|
1570
|
+
* 48: 848 × 480, frame rate 30 fps, bitrate 930 Kbps.
|
|
1571
|
+
*/
|
|
1572
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p9"] = 48] = "VideoProfileLandscape480p9";
|
|
1573
|
+
/**
|
|
1574
|
+
* 49: 640 × 480, frame rate 10 fps, bitrate 400 Kbps.
|
|
1575
|
+
*/
|
|
1576
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape480p10"] = 49] = "VideoProfileLandscape480p10";
|
|
1577
|
+
/**
|
|
1578
|
+
* 50: 1280 × 720, frame rate 15 fps, bitrate 1130 Kbps.
|
|
1579
|
+
*/
|
|
1580
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape720p"] = 50] = "VideoProfileLandscape720p";
|
|
1581
|
+
/**
|
|
1582
|
+
* 52: 1280 × 720, frame rate 30 fps, bitrate 1710 Kbps.
|
|
1583
|
+
*/
|
|
1584
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape720p3"] = 52] = "VideoProfileLandscape720p3";
|
|
1585
|
+
/**
|
|
1586
|
+
* 54: 960 × 720, frame rate 15 fps, bitrate 910 Kbps.
|
|
1587
|
+
*/
|
|
1588
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape720p5"] = 54] = "VideoProfileLandscape720p5";
|
|
1589
|
+
/**
|
|
1590
|
+
* 55: 960 × 720, frame rate 30 fps, bitrate 1380 Kbps.
|
|
1591
|
+
*/
|
|
1592
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape720p6"] = 55] = "VideoProfileLandscape720p6";
|
|
1593
|
+
/**
|
|
1594
|
+
* 60: 1920 × 1080, frame rate 15 fps, bitrate 2080 Kbps.
|
|
1595
|
+
*/
|
|
1596
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape1080p"] = 60] = "VideoProfileLandscape1080p";
|
|
1597
|
+
/**
|
|
1598
|
+
* 60: 1920 × 1080, frame rate 30 fps, bitrate 3150 Kbps.
|
|
1599
|
+
*/
|
|
1600
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape1080p3"] = 62] = "VideoProfileLandscape1080p3";
|
|
1601
|
+
/**
|
|
1602
|
+
* 64: 1920 × 1080, frame rate 60 fps, bitrate 4780 Kbps.
|
|
1603
|
+
*/
|
|
1604
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape1080p5"] = 64] = "VideoProfileLandscape1080p5";
|
|
1605
|
+
/**
|
|
1606
|
+
* @ignore
|
|
1607
|
+
*/
|
|
1608
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape1440p"] = 66] = "VideoProfileLandscape1440p";
|
|
1609
|
+
/**
|
|
1610
|
+
* @ignore
|
|
1611
|
+
*/
|
|
1612
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape1440p2"] = 67] = "VideoProfileLandscape1440p2";
|
|
1613
|
+
/**
|
|
1614
|
+
* @ignore
|
|
1615
|
+
*/
|
|
1616
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape4k"] = 70] = "VideoProfileLandscape4k";
|
|
1617
|
+
/**
|
|
1618
|
+
* @ignore
|
|
1619
|
+
*/
|
|
1620
|
+
VideoProfileType[VideoProfileType["VideoProfileLandscape4k3"] = 72] = "VideoProfileLandscape4k3";
|
|
1621
|
+
/**
|
|
1622
|
+
* 1000: 120 × 160, frame rate 15 fps, bitrate 65 Kbps.
|
|
1623
|
+
*/
|
|
1624
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait120p"] = 1000] = "VideoProfilePortrait120p";
|
|
1625
|
+
/**
|
|
1626
|
+
* 1002: 120 × 120, frame rate 15 fps, bitrate 50 Kbps.
|
|
1627
|
+
*/
|
|
1628
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait120p3"] = 1002] = "VideoProfilePortrait120p3";
|
|
1629
|
+
/**
|
|
1630
|
+
* 1010: 180 × 320, frame rate 15 fps, bitrate 140 Kbps.
|
|
1631
|
+
*/
|
|
1632
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait180p"] = 1010] = "VideoProfilePortrait180p";
|
|
1633
|
+
/**
|
|
1634
|
+
* 1012: 180 × 180, frame rate 15 fps, bitrate 100 Kbps.
|
|
1635
|
+
*/
|
|
1636
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait180p3"] = 1012] = "VideoProfilePortrait180p3";
|
|
1637
|
+
/**
|
|
1638
|
+
* 1013: 180 × 240, frame rate 15 fps, bitrate 120 Kbps.
|
|
1639
|
+
*/
|
|
1640
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait180p4"] = 1013] = "VideoProfilePortrait180p4";
|
|
1641
|
+
/**
|
|
1642
|
+
* 1020: 240 × 320, frame rate 15 fps, bitrate 200 Kbps.
|
|
1643
|
+
*/
|
|
1644
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait240p"] = 1020] = "VideoProfilePortrait240p";
|
|
1645
|
+
/**
|
|
1646
|
+
* 1022: 240 × 240, frame rate 15 fps, bitrate 140 Kbps.
|
|
1647
|
+
*/
|
|
1648
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait240p3"] = 1022] = "VideoProfilePortrait240p3";
|
|
1649
|
+
/**
|
|
1650
|
+
* 1023: 240 × 424, frame rate 15 fps, bitrate 220 Kbps.
|
|
1651
|
+
*/
|
|
1652
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait240p4"] = 1023] = "VideoProfilePortrait240p4";
|
|
1653
|
+
/**
|
|
1654
|
+
* 1030: 360 × 640, frame rate 15 fps, bitrate 400 Kbps.
|
|
1655
|
+
*/
|
|
1656
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p"] = 1030] = "VideoProfilePortrait360p";
|
|
1657
|
+
/**
|
|
1658
|
+
* 1032: 360 × 360, frame rate 15 fps, bitrate 260 Kbps.
|
|
1659
|
+
*/
|
|
1660
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p3"] = 1032] = "VideoProfilePortrait360p3";
|
|
1661
|
+
/**
|
|
1662
|
+
* 1033: 360 × 640, frame rate 15 fps, bitrate 600 Kbps.
|
|
1663
|
+
*/
|
|
1664
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p4"] = 1033] = "VideoProfilePortrait360p4";
|
|
1665
|
+
/**
|
|
1666
|
+
* 1035: 360 × 360, frame rate 30 fps, bitrate 400 Kbps.
|
|
1667
|
+
*/
|
|
1668
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p6"] = 1035] = "VideoProfilePortrait360p6";
|
|
1669
|
+
/**
|
|
1670
|
+
* 1036: 360 × 480, frame rate 15 fps, bitrate 320 Kbps.
|
|
1671
|
+
*/
|
|
1672
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p7"] = 1036] = "VideoProfilePortrait360p7";
|
|
1673
|
+
/**
|
|
1674
|
+
* 1037: 360 × 480, frame rate 30 fps, bitrate 490 Kbps.
|
|
1675
|
+
*/
|
|
1676
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p8"] = 1037] = "VideoProfilePortrait360p8";
|
|
1677
|
+
/**
|
|
1678
|
+
* 1038: 360 × 640, frame rate 15 fps, bitrate 800 Kbps.This profile applies only to the live streaming channel profile.
|
|
1679
|
+
*/
|
|
1680
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p9"] = 1038] = "VideoProfilePortrait360p9";
|
|
1681
|
+
/**
|
|
1682
|
+
* 1039: 360 × 640, frame rate 24 fps, bitrate 800 Kbps.This profile applies only to the live streaming channel profile.
|
|
1683
|
+
*/
|
|
1684
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p10"] = 1039] = "VideoProfilePortrait360p10";
|
|
1685
|
+
/**
|
|
1686
|
+
* 1100: 360 × 640, frame rate 24 fps, bitrate 1000 Kbps.This profile applies only to the live streaming channel profile.
|
|
1687
|
+
*/
|
|
1688
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait360p11"] = 1100] = "VideoProfilePortrait360p11";
|
|
1689
|
+
/**
|
|
1690
|
+
* 1040: 480 × 640, frame rate 15 fps, bitrate 500 Kbps.
|
|
1691
|
+
*/
|
|
1692
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p"] = 1040] = "VideoProfilePortrait480p";
|
|
1693
|
+
/**
|
|
1694
|
+
* 1042: 480 × 480, frame rate 15 fps, bitrate 400 Kbps.
|
|
1695
|
+
*/
|
|
1696
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p3"] = 1042] = "VideoProfilePortrait480p3";
|
|
1697
|
+
/**
|
|
1698
|
+
* 1043: 480 × 640, frame rate 30 fps, bitrate 750 Kbps.
|
|
1699
|
+
*/
|
|
1700
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p4"] = 1043] = "VideoProfilePortrait480p4";
|
|
1701
|
+
/**
|
|
1702
|
+
* 1045: 480 × 480, frame rate 30 fps, bitrate 600 Kbps.
|
|
1703
|
+
*/
|
|
1704
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p6"] = 1045] = "VideoProfilePortrait480p6";
|
|
1705
|
+
/**
|
|
1706
|
+
* 1047: 480 × 848, frame rate 15 fps, bitrate 610 Kbps.
|
|
1707
|
+
*/
|
|
1708
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p8"] = 1047] = "VideoProfilePortrait480p8";
|
|
1709
|
+
/**
|
|
1710
|
+
* 1048: 480 × 848, frame rate 30 fps, bitrate 930 Kbps.
|
|
1711
|
+
*/
|
|
1712
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p9"] = 1048] = "VideoProfilePortrait480p9";
|
|
1713
|
+
/**
|
|
1714
|
+
* 1049: 480 × 640, frame rate 10 fps, bitrate 400 Kbps.
|
|
1715
|
+
*/
|
|
1716
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait480p10"] = 1049] = "VideoProfilePortrait480p10";
|
|
1717
|
+
/**
|
|
1718
|
+
* 1050: 720 × 1280, frame rate 15 fps, bitrate 1130 Kbps.
|
|
1719
|
+
*/
|
|
1720
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait720p"] = 1050] = "VideoProfilePortrait720p";
|
|
1721
|
+
/**
|
|
1722
|
+
* 1052: 720 × 1280, frame rate 30 fps, bitrate 1710 Kbps.
|
|
1723
|
+
*/
|
|
1724
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait720p3"] = 1052] = "VideoProfilePortrait720p3";
|
|
1725
|
+
/**
|
|
1726
|
+
* 1054: 720 × 960, frame rate 15 fps, bitrate 910 Kbps.
|
|
1727
|
+
*/
|
|
1728
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait720p5"] = 1054] = "VideoProfilePortrait720p5";
|
|
1729
|
+
/**
|
|
1730
|
+
* 1055: 720 × 960, frame rate 30 fps, bitrate 1380 Kbps.
|
|
1731
|
+
*/
|
|
1732
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait720p6"] = 1055] = "VideoProfilePortrait720p6";
|
|
1733
|
+
/**
|
|
1734
|
+
* 1060: 1080 × 1920, frame rate 15 fps, bitrate 2080 Kbps.
|
|
1735
|
+
*/
|
|
1736
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait1080p"] = 1060] = "VideoProfilePortrait1080p";
|
|
1737
|
+
/**
|
|
1738
|
+
* 1062: 1080 × 1920, frame rate 30 fps, bitrate 3150 Kbps.
|
|
1739
|
+
*/
|
|
1740
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait1080p3"] = 1062] = "VideoProfilePortrait1080p3";
|
|
1741
|
+
/**
|
|
1742
|
+
* 1064: 1080 × 1920, frame rate 60 fps, bitrate 4780 Kbps.
|
|
1743
|
+
*/
|
|
1744
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait1080p5"] = 1064] = "VideoProfilePortrait1080p5";
|
|
1745
|
+
/**
|
|
1746
|
+
* @ignore
|
|
1747
|
+
*/
|
|
1748
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait1440p"] = 1066] = "VideoProfilePortrait1440p";
|
|
1749
|
+
/**
|
|
1750
|
+
* @ignore
|
|
1751
|
+
*/
|
|
1752
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait1440p2"] = 1067] = "VideoProfilePortrait1440p2";
|
|
1753
|
+
/**
|
|
1754
|
+
* @ignore
|
|
1755
|
+
*/
|
|
1756
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait4k"] = 1070] = "VideoProfilePortrait4k";
|
|
1757
|
+
/**
|
|
1758
|
+
* @ignore
|
|
1759
|
+
*/
|
|
1760
|
+
VideoProfileType[VideoProfileType["VideoProfilePortrait4k3"] = 1072] = "VideoProfilePortrait4k3";
|
|
1761
|
+
/**
|
|
1762
|
+
* (Default) 640 × 360, frame rate 15 fps, bitrate 400 Kbps.
|
|
1763
|
+
*/
|
|
1764
|
+
VideoProfileType[VideoProfileType["VideoProfileDefault"] = 30] = "VideoProfileDefault";
|
|
1765
|
+
})(VideoProfileType = exports.VideoProfileType || (exports.VideoProfileType = {}));
|
|
1766
|
+
/**
|
|
1767
|
+
* SDK version information.
|
|
1768
|
+
*/
|
|
1769
|
+
class SDKBuildInfo {
|
|
1770
|
+
/**
|
|
1771
|
+
* SDK build index.
|
|
1772
|
+
*/
|
|
1773
|
+
build;
|
|
1774
|
+
/**
|
|
1775
|
+
* SDK version information. String format, such as 4.0.0.
|
|
1776
|
+
*/
|
|
1777
|
+
version;
|
|
1778
|
+
}
|
|
1779
|
+
exports.SDKBuildInfo = SDKBuildInfo;
|
|
1780
|
+
/**
|
|
1781
|
+
* The VideoDeviceInfo class that contains the ID and device name of the video devices.
|
|
1782
|
+
*/
|
|
1783
|
+
class VideoDeviceInfo {
|
|
1784
|
+
/**
|
|
1785
|
+
* The device ID.
|
|
1786
|
+
*/
|
|
1787
|
+
deviceId;
|
|
1788
|
+
/**
|
|
1789
|
+
* The device name.
|
|
1790
|
+
*/
|
|
1791
|
+
deviceName;
|
|
1792
|
+
}
|
|
1793
|
+
exports.VideoDeviceInfo = VideoDeviceInfo;
|
|
1794
|
+
/**
|
|
1795
|
+
* The AudioDeviceInfo class that contains the ID and device name of the audio devices.
|
|
1796
|
+
*/
|
|
1797
|
+
class AudioDeviceInfo {
|
|
1798
|
+
/**
|
|
1799
|
+
* The device ID.
|
|
1800
|
+
*/
|
|
1801
|
+
deviceId;
|
|
1802
|
+
/**
|
|
1803
|
+
* The device name.
|
|
1804
|
+
*/
|
|
1805
|
+
deviceName;
|
|
1806
|
+
}
|
|
1807
|
+
exports.AudioDeviceInfo = AudioDeviceInfo;
|