agora-electron-sdk 0.0.0-dev.1
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/CHANGELOG.md +315 -0
- package/LICENSE +21 -0
- package/README.md +143 -0
- package/gulpfile.js +52 -0
- package/js/AgoraSdk.js +64 -0
- package/js/Decoder/gpu-utils.js +74 -0
- package/js/Decoder/index.js +172 -0
- package/js/Private/AgoraBase.js +3985 -0
- package/js/Private/AgoraMediaBase.js +1014 -0
- package/js/Private/AgoraMediaPlayerTypes.js +316 -0
- package/js/Private/IAgoraH265Transcoder.js +36 -0
- package/js/Private/IAgoraLog.js +78 -0
- package/js/Private/IAgoraMediaEngine.js +32 -0
- package/js/Private/IAgoraMediaPlayer.js +16 -0
- package/js/Private/IAgoraMediaPlayerSource.js +3 -0
- package/js/Private/IAgoraMediaRecorder.js +10 -0
- package/js/Private/IAgoraMediaStreamingSource.js +74 -0
- package/js/Private/IAgoraMusicContentCenter.js +157 -0
- package/js/Private/IAgoraRhythmPlayer.js +62 -0
- package/js/Private/IAgoraRtcEngine.js +982 -0
- package/js/Private/IAgoraRtcEngineEx.js +19 -0
- package/js/Private/IAgoraSpatialAudio.js +24 -0
- package/js/Private/IAudioDeviceManager.js +20 -0
- package/js/Private/extension/AgoraBaseExtension.js +3 -0
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/extension/IAgoraLogExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
- package/js/Private/impl/AgoraBaseImpl.js +23 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +950 -0
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +1042 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +5167 -0
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
- package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
- package/js/Private/internal/IrisApiEngine.js +424 -0
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
- package/js/Private/internal/MediaEngineInternal.js +122 -0
- package/js/Private/internal/MediaPlayerInternal.js +194 -0
- package/js/Private/internal/MediaRecorderInternal.js +70 -0
- package/js/Private/internal/MusicContentCenterInternal.js +139 -0
- package/js/Private/internal/RtcEngineExInternal.js +430 -0
- package/js/Private/ipc/main.js +21 -0
- package/js/Private/ipc/renderer.js +21 -0
- package/js/Private/ti/AgoraBase-ti.js +40 -0
- package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraLog-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
- package/js/Private/ti/IAgoraRtcEngine-ti.js +141 -0
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
- package/js/Renderer/AgoraView.js +161 -0
- package/js/Renderer/CapabilityManager.js +99 -0
- package/js/Renderer/IRenderer.js +136 -0
- package/js/Renderer/IRendererCache.js +75 -0
- package/js/Renderer/RendererCache.js +100 -0
- package/js/Renderer/RendererManager.js +301 -0
- package/js/Renderer/WebCodecsRenderer/index.js +109 -0
- package/js/Renderer/WebCodecsRendererCache.js +115 -0
- package/js/Renderer/WebGLRenderer/index.js +314 -0
- package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
- package/js/Renderer/YUVCanvasRenderer/index.js +46 -0
- package/js/Renderer/index.js +17 -0
- package/js/Types.js +67 -0
- package/js/Utils.js +187 -0
- package/package.json +167 -0
- package/scripts/bootstrap.js +29 -0
- package/scripts/build.js +37 -0
- package/scripts/buildJS.js +14 -0
- package/scripts/checkElectron.js +43 -0
- package/scripts/clean.js +16 -0
- package/scripts/download.js +105 -0
- package/scripts/downloadPrebuild.js +199 -0
- package/scripts/getConfig.js +73 -0
- package/scripts/logger.js +32 -0
- package/scripts/synclib.js +69 -0
- package/scripts/util.js +47 -0
- package/scripts/zipBuild.js +40 -0
- package/ts/AgoraSdk.ts +54 -0
- package/ts/Decoder/gpu-utils.ts +92 -0
- package/ts/Decoder/index.ts +206 -0
- package/ts/Private/AgoraBase.ts +5511 -0
- package/ts/Private/AgoraMediaBase.ts +1764 -0
- package/ts/Private/AgoraMediaPlayerTypes.ts +464 -0
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +91 -0
- package/ts/Private/IAgoraMediaEngine.ts +316 -0
- package/ts/Private/IAgoraMediaPlayer.ts +744 -0
- package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
- package/ts/Private/IAgoraMediaRecorder.ts +25 -0
- package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +455 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
- package/ts/Private/IAgoraRtcEngine.ts +7306 -0
- package/ts/Private/IAgoraRtcEngineEx.ts +992 -0
- package/ts/Private/IAgoraSpatialAudio.ts +250 -0
- package/ts/Private/IAudioDeviceManager.ts +342 -0
- package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
- package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
- package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
- package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +237 -0
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1169 -0
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1672 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7352 -0
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
- package/ts/Private/internal/IrisApiEngine.ts +598 -0
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/ts/Private/internal/MediaEngineInternal.ts +190 -0
- package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
- package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +647 -0
- package/ts/Private/ipc/main.ts +22 -0
- package/ts/Private/ipc/renderer.ts +21 -0
- package/ts/Private/ti/AgoraBase-ti.ts +16 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
- package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +119 -0
- package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
- package/ts/Renderer/AgoraView.ts +235 -0
- package/ts/Renderer/CapabilityManager.ts +126 -0
- package/ts/Renderer/IRenderer.ts +158 -0
- package/ts/Renderer/IRendererCache.ts +96 -0
- package/ts/Renderer/RendererCache.ts +124 -0
- package/ts/Renderer/RendererManager.ts +400 -0
- package/ts/Renderer/WebCodecsRenderer/index.ts +145 -0
- package/ts/Renderer/WebCodecsRendererCache.ts +137 -0
- package/ts/Renderer/WebGLRenderer/index.ts +489 -0
- package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
- package/ts/Renderer/YUVCanvasRenderer/index.ts +67 -0
- package/ts/Renderer/index.ts +1 -0
- package/ts/Types.ts +249 -0
- package/ts/Utils.ts +197 -0
- package/types/AgoraSdk.d.ts +40 -0
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Decoder/gpu-utils.d.ts +21 -0
- package/types/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/Decoder/index.d.ts +26 -0
- package/types/Decoder/index.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +5310 -0
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1668 -0
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +453 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +89 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +250 -0
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +648 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +20 -0
- 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 +381 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +6103 -0
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +741 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +196 -0
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +312 -0
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +143 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +116 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +628 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +69 -0
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +73 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/Private/ipc/main.d.ts +2 -0
- package/types/Private/ipc/main.d.ts.map +1 -0
- package/types/Private/ipc/renderer.d.ts +3 -0
- package/types/Private/ipc/renderer.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +76 -0
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/CapabilityManager.d.ts +20 -0
- package/types/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +20 -0
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererCache.d.ts +26 -0
- package/types/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererCache.d.ts +24 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +66 -0
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts +15 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/index.d.ts +27 -0
- 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 +9 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +2 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +177 -0
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +50 -0
- package/types/Utils.d.ts.map +1 -0
|
@@ -0,0 +1,3985 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamLayerIndex = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.FocalLengthInfo = exports.CodecCapInfo = exports.CodecCapLevels = exports.CodecCapMask = exports.HdrCapability = exports.VideoModuleType = exports.CameraFormatType = exports.VideoMirrorModeType = exports.AdvanceOptions = exports.EncodingPreference = exports.CompressionPreference = exports.EncodedVideoFrameInfo = exports.MaxUserAccountLengthType = exports.VideoSubscriptionOptions = exports.VideoStreamType = exports.H264PacketizeMode = exports.AudioPcmDataInfo = exports.EncodedAudioFrameInfo = exports.EncodedAudioFrameAdvancedSettings = exports.WatermarkFitMode = exports.AudioEncodingType = exports.AudioCodecType = exports.SenderOptions = exports.TCcMode = exports.CameraFocalLengthType = exports.VideoCodecType = exports.VideoCodecCapabilityLevel = exports.ScreenCaptureFramerateCapability = exports.VideoDimensions = exports.DegradationPreference = exports.OrientationMode = exports.VideoFrameType = exports.FrameHeight = exports.FrameWidth = exports.FrameRate = exports.VideoOrientation = exports.FitModeType = exports.QualityType = exports.InterfaceIdType = exports.UserOfflineReasonType = exports.AudioSessionOperationRestriction = exports.LicenseErrorType = exports.ErrorCodeType = exports.WarnCodeType = exports.ChannelProfileType = void 0;
|
|
4
|
+
exports.TranscodingVideoStream = exports.LiveTranscoding = exports.TranscodingUser = exports.ConnectionStateType = exports.LiveStreamAdvancedFeature = exports.RtcImage = exports.RtmpStreamingEvent = exports.RtmpStreamPublishReason = exports.RtmpStreamPublishState = exports.LocalAudioStats = exports.AudioCodecProfileType = exports.VideoCodecProfileType = exports.VideoCodecTypeForStream = exports.AudioSampleRateType = exports.Packet = exports.DeviceInfo = exports.AudioVolumeInfo = exports.RemoteVideoDownscaleLevel = exports.VideoTrackInfo = exports.RemoteUserState = exports.RemoteVideoStateReason = exports.RemoteVideoState = exports.RemoteAudioStateReason = exports.RemoteAudioState = exports.LocalVideoStreamReason = exports.LocalVideoStreamState = exports.LocalAudioStreamReason = exports.LocalAudioStreamState = exports.CameraStabilizationMode = exports.CaptureBrightnessLevelType = exports.VideoQoePreferenceType = exports.VideoApplicationScenarioType = exports.ScreenScenarioType = exports.VideoContentHint = exports.VideoFormat = exports.AudioScenarioType = exports.AudioProfileType = exports.AudioAinsMode = exports.ExperiencePoorReason = exports.ExperienceQualityType = exports.ClientRoleOptions = exports.AudienceLatencyLevelType = exports.QualityAdaptIndication = exports.ClientRoleType = exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastConfig = exports.StreamLayerConfig = void 0;
|
|
5
|
+
exports.AreaCodeEx = exports.AreaCode = exports.AudioEncodedFrameObserverConfig = exports.AudioRecordingConfiguration = exports.AudioEncodedFrameObserverPosition = exports.AudioFileRecordingType = exports.AudioRecordingQualityType = exports.ScreenCaptureParameters = exports.VoiceAiTunerType = exports.HeadphoneEqualizerPreset = exports.VoiceConversionPreset = exports.AudioEffectPreset = exports.VoiceBeautifierPreset = exports.AudioTrackConfig = exports.AudioTrackType = exports.SegmentationProperty = exports.SegModelType = exports.VirtualBackgroundSource = exports.BackgroundBlurDegree = exports.BackgroundSourceType = exports.ColorEnhanceOptions = exports.VideoDenoiserOptions = exports.VideoDenoiserLevel = exports.VideoDenoiserMode = exports.LowlightEnhanceOptions = exports.LowLightEnhanceLevel = exports.LowLightEnhanceMode = exports.FilterEffectOptions = exports.FaceShapeBeautyOptions = exports.FaceShapeBeautyStyle = exports.FaceShapeAreaOptions = exports.FaceShapeArea = exports.BeautyOptions = exports.LighteningContrastLevel = exports.VideoCanvas = exports.VideoViewSetupMode = exports.NetworkType = exports.WlAccStats = exports.WlaccSuggestAction = exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = exports.LastmileProbeResult = exports.LastmileProbeOneWayResult = exports.LastmileProbeResultState = exports.LastmileProbeConfig = exports.LocalAudioMixerConfiguration = exports.MixedAudioStream = exports.VideoTranscoderError = exports.LocalTranscoderConfiguration = void 0;
|
|
6
|
+
exports.VideoLayout = exports.SpatialAudioParams = exports.RecorderStreamInfo = exports.RecorderStreamType = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.LocalProxyMode = exports.ConfigFetchType = exports.VideoRenderingTracingInfo = exports.MediaTraceEvent = exports.ScreenCaptureParameters2 = exports.ScreenAudioParameters = exports.ScreenVideoParameters = exports.ThreadPriorityType = exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.PermissionType = exports.UploadErrorReason = exports.EncryptionErrorType = exports.EncryptionConfig = exports.EncryptionMode = exports.DownlinkNetworkInfo = exports.PeerDownlinkInfo = exports.UplinkNetworkInfo = exports.ChannelMediaRelayConfiguration = exports.ChannelMediaInfo = exports.ChannelMediaRelayState = exports.ChannelMediaRelayError = void 0;
|
|
7
|
+
require("./extension/AgoraBaseExtension");
|
|
8
|
+
/**
|
|
9
|
+
* The channel profile.
|
|
10
|
+
*/
|
|
11
|
+
var ChannelProfileType;
|
|
12
|
+
(function (ChannelProfileType) {
|
|
13
|
+
/**
|
|
14
|
+
* 0: Communication. Use this profile when there are only two users in the channel.
|
|
15
|
+
*/
|
|
16
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCommunication"] = 0] = "ChannelProfileCommunication";
|
|
17
|
+
/**
|
|
18
|
+
* 1: Live streaming. Live streaming. Use this profile when there are more than two users in the channel.
|
|
19
|
+
*/
|
|
20
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileLiveBroadcasting"] = 1] = "ChannelProfileLiveBroadcasting";
|
|
21
|
+
/**
|
|
22
|
+
* 2: Gaming. This profile is deprecated.
|
|
23
|
+
*/
|
|
24
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileGame"] = 2] = "ChannelProfileGame";
|
|
25
|
+
/**
|
|
26
|
+
* Cloud gaming. The scenario is optimized for latency. Use this profile if the use case requires frequent interactions between users.
|
|
27
|
+
*/
|
|
28
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCloudGaming"] = 3] = "ChannelProfileCloudGaming";
|
|
29
|
+
/**
|
|
30
|
+
* @ignore
|
|
31
|
+
*/
|
|
32
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCommunication1v1"] = 4] = "ChannelProfileCommunication1v1";
|
|
33
|
+
})(ChannelProfileType = exports.ChannelProfileType || (exports.ChannelProfileType = {}));
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
var WarnCodeType;
|
|
38
|
+
(function (WarnCodeType) {
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
*/
|
|
42
|
+
WarnCodeType[WarnCodeType["WarnInvalidView"] = 8] = "WarnInvalidView";
|
|
43
|
+
/**
|
|
44
|
+
* @ignore
|
|
45
|
+
*/
|
|
46
|
+
WarnCodeType[WarnCodeType["WarnInitVideo"] = 16] = "WarnInitVideo";
|
|
47
|
+
/**
|
|
48
|
+
* @ignore
|
|
49
|
+
*/
|
|
50
|
+
WarnCodeType[WarnCodeType["WarnPending"] = 20] = "WarnPending";
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
WarnCodeType[WarnCodeType["WarnNoAvailableChannel"] = 103] = "WarnNoAvailableChannel";
|
|
55
|
+
/**
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
WarnCodeType[WarnCodeType["WarnLookupChannelTimeout"] = 104] = "WarnLookupChannelTimeout";
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
WarnCodeType[WarnCodeType["WarnLookupChannelRejected"] = 105] = "WarnLookupChannelRejected";
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelTimeout"] = 106] = "WarnOpenChannelTimeout";
|
|
67
|
+
/**
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelRejected"] = 107] = "WarnOpenChannelRejected";
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
WarnCodeType[WarnCodeType["WarnSwitchLiveVideoTimeout"] = 111] = "WarnSwitchLiveVideoTimeout";
|
|
75
|
+
/**
|
|
76
|
+
* @ignore
|
|
77
|
+
*/
|
|
78
|
+
WarnCodeType[WarnCodeType["WarnSetClientRoleTimeout"] = 118] = "WarnSetClientRoleTimeout";
|
|
79
|
+
/**
|
|
80
|
+
* @ignore
|
|
81
|
+
*/
|
|
82
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelInvalidTicket"] = 121] = "WarnOpenChannelInvalidTicket";
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelTryNextVos"] = 122] = "WarnOpenChannelTryNextVos";
|
|
87
|
+
/**
|
|
88
|
+
* @ignore
|
|
89
|
+
*/
|
|
90
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionUnrecoverable"] = 131] = "WarnChannelConnectionUnrecoverable";
|
|
91
|
+
/**
|
|
92
|
+
* @ignore
|
|
93
|
+
*/
|
|
94
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionIpChanged"] = 132] = "WarnChannelConnectionIpChanged";
|
|
95
|
+
/**
|
|
96
|
+
* @ignore
|
|
97
|
+
*/
|
|
98
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionPortChanged"] = 133] = "WarnChannelConnectionPortChanged";
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
|
+
*/
|
|
102
|
+
WarnCodeType[WarnCodeType["WarnChannelSocketError"] = 134] = "WarnChannelSocketError";
|
|
103
|
+
/**
|
|
104
|
+
* @ignore
|
|
105
|
+
*/
|
|
106
|
+
WarnCodeType[WarnCodeType["WarnAudioMixingOpenError"] = 701] = "WarnAudioMixingOpenError";
|
|
107
|
+
/**
|
|
108
|
+
* @ignore
|
|
109
|
+
*/
|
|
110
|
+
WarnCodeType[WarnCodeType["WarnAdmRuntimePlayoutWarning"] = 1014] = "WarnAdmRuntimePlayoutWarning";
|
|
111
|
+
/**
|
|
112
|
+
* @ignore
|
|
113
|
+
*/
|
|
114
|
+
WarnCodeType[WarnCodeType["WarnAdmRuntimeRecordingWarning"] = 1016] = "WarnAdmRuntimeRecordingWarning";
|
|
115
|
+
/**
|
|
116
|
+
* @ignore
|
|
117
|
+
*/
|
|
118
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordAudioSilence"] = 1019] = "WarnAdmRecordAudioSilence";
|
|
119
|
+
/**
|
|
120
|
+
* @ignore
|
|
121
|
+
*/
|
|
122
|
+
WarnCodeType[WarnCodeType["WarnAdmPlayoutMalfunction"] = 1020] = "WarnAdmPlayoutMalfunction";
|
|
123
|
+
/**
|
|
124
|
+
* @ignore
|
|
125
|
+
*/
|
|
126
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordMalfunction"] = 1021] = "WarnAdmRecordMalfunction";
|
|
127
|
+
/**
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordAudioLowlevel"] = 1031] = "WarnAdmRecordAudioLowlevel";
|
|
131
|
+
/**
|
|
132
|
+
* @ignore
|
|
133
|
+
*/
|
|
134
|
+
WarnCodeType[WarnCodeType["WarnAdmPlayoutAudioLowlevel"] = 1032] = "WarnAdmPlayoutAudioLowlevel";
|
|
135
|
+
/**
|
|
136
|
+
* @ignore
|
|
137
|
+
*/
|
|
138
|
+
WarnCodeType[WarnCodeType["WarnAdmWindowsNoDataReadyEvent"] = 1040] = "WarnAdmWindowsNoDataReadyEvent";
|
|
139
|
+
/**
|
|
140
|
+
* @ignore
|
|
141
|
+
*/
|
|
142
|
+
WarnCodeType[WarnCodeType["WarnApmHowling"] = 1051] = "WarnApmHowling";
|
|
143
|
+
/**
|
|
144
|
+
* @ignore
|
|
145
|
+
*/
|
|
146
|
+
WarnCodeType[WarnCodeType["WarnAdmGlitchState"] = 1052] = "WarnAdmGlitchState";
|
|
147
|
+
/**
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
WarnCodeType[WarnCodeType["WarnAdmImproperSettings"] = 1053] = "WarnAdmImproperSettings";
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
WarnCodeType[WarnCodeType["WarnAdmPopState"] = 1055] = "WarnAdmPopState";
|
|
155
|
+
/**
|
|
156
|
+
* @ignore
|
|
157
|
+
*/
|
|
158
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreNoRecordingDevice"] = 1322] = "WarnAdmWinCoreNoRecordingDevice";
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
|
+
*/
|
|
162
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreNoPlayoutDevice"] = 1323] = "WarnAdmWinCoreNoPlayoutDevice";
|
|
163
|
+
/**
|
|
164
|
+
* @ignore
|
|
165
|
+
*/
|
|
166
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreImproperCaptureRelease"] = 1324] = "WarnAdmWinCoreImproperCaptureRelease";
|
|
167
|
+
})(WarnCodeType = exports.WarnCodeType || (exports.WarnCodeType = {}));
|
|
168
|
+
/**
|
|
169
|
+
* Error codes.
|
|
170
|
+
*
|
|
171
|
+
* An error code indicates that the SDK encountered an unrecoverable error that requires application intervention. For example, an error is returned when the camera fails to open, and the app needs to inform the user that the camera cannot be used.
|
|
172
|
+
*/
|
|
173
|
+
var ErrorCodeType;
|
|
174
|
+
(function (ErrorCodeType) {
|
|
175
|
+
/**
|
|
176
|
+
* 0: No error.
|
|
177
|
+
*/
|
|
178
|
+
ErrorCodeType[ErrorCodeType["ErrOk"] = 0] = "ErrOk";
|
|
179
|
+
/**
|
|
180
|
+
* 1: General error with no classified reason. Try calling the method again.
|
|
181
|
+
*/
|
|
182
|
+
ErrorCodeType[ErrorCodeType["ErrFailed"] = 1] = "ErrFailed";
|
|
183
|
+
/**
|
|
184
|
+
* 2: An invalid parameter is used. For example, the specified channel name includes illegal characters. Reset the parameter.
|
|
185
|
+
*/
|
|
186
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidArgument"] = 2] = "ErrInvalidArgument";
|
|
187
|
+
/**
|
|
188
|
+
* 3: The SDK is not ready. Possible reasons include the following:
|
|
189
|
+
* The initialization of IRtcEngine fails. Reinitialize the IRtcEngine.
|
|
190
|
+
* No user has joined the channel when the method is called. Check the code logic.
|
|
191
|
+
* The user has not left the channel when the rate or complain method is called. Check the code logic.
|
|
192
|
+
* The audio module is disabled.
|
|
193
|
+
* The program is not complete.
|
|
194
|
+
*/
|
|
195
|
+
ErrorCodeType[ErrorCodeType["ErrNotReady"] = 3] = "ErrNotReady";
|
|
196
|
+
/**
|
|
197
|
+
* 4: The IRtcEngine does not support the request. Possible reasons include the following:
|
|
198
|
+
* The built-in encryption mode is incorrect, or the SDK fails to load the external encryption library. Check the encryption mode setting, or reload the external encryption library.
|
|
199
|
+
*/
|
|
200
|
+
ErrorCodeType[ErrorCodeType["ErrNotSupported"] = 4] = "ErrNotSupported";
|
|
201
|
+
/**
|
|
202
|
+
* 5: The request is rejected. Possible reasons include the following:
|
|
203
|
+
* The IRtcEngine initialization fails. Reinitialize the IRtcEngine.
|
|
204
|
+
* The channel name is set as the empty string "" when joining the channel. Reset the channel name.
|
|
205
|
+
* When the joinChannelEx method is called to join multiple channels, the specified channel name is already in use. Reset the channel name.
|
|
206
|
+
*/
|
|
207
|
+
ErrorCodeType[ErrorCodeType["ErrRefused"] = 5] = "ErrRefused";
|
|
208
|
+
/**
|
|
209
|
+
* 6: The buffer size is insufficient to store the returned data.
|
|
210
|
+
*/
|
|
211
|
+
ErrorCodeType[ErrorCodeType["ErrBufferTooSmall"] = 6] = "ErrBufferTooSmall";
|
|
212
|
+
/**
|
|
213
|
+
* 7: A method is called before the initialization of IRtcEngine. Ensure that the IRtcEngine object is initialized before using this method.
|
|
214
|
+
*/
|
|
215
|
+
ErrorCodeType[ErrorCodeType["ErrNotInitialized"] = 7] = "ErrNotInitialized";
|
|
216
|
+
/**
|
|
217
|
+
* 8: Invalid state.
|
|
218
|
+
*/
|
|
219
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidState"] = 8] = "ErrInvalidState";
|
|
220
|
+
/**
|
|
221
|
+
* 9: Permission to access is not granted. Check whether your app has access to the audio and video device.
|
|
222
|
+
*/
|
|
223
|
+
ErrorCodeType[ErrorCodeType["ErrNoPermission"] = 9] = "ErrNoPermission";
|
|
224
|
+
/**
|
|
225
|
+
* 10: A timeout occurs. Some API calls require the SDK to return the execution result. This error occurs if the SDK takes too long (more than 10 seconds) to return the result.
|
|
226
|
+
*/
|
|
227
|
+
ErrorCodeType[ErrorCodeType["ErrTimedout"] = 10] = "ErrTimedout";
|
|
228
|
+
/**
|
|
229
|
+
* @ignore
|
|
230
|
+
*/
|
|
231
|
+
ErrorCodeType[ErrorCodeType["ErrCanceled"] = 11] = "ErrCanceled";
|
|
232
|
+
/**
|
|
233
|
+
* @ignore
|
|
234
|
+
*/
|
|
235
|
+
ErrorCodeType[ErrorCodeType["ErrTooOften"] = 12] = "ErrTooOften";
|
|
236
|
+
/**
|
|
237
|
+
* @ignore
|
|
238
|
+
*/
|
|
239
|
+
ErrorCodeType[ErrorCodeType["ErrBindSocket"] = 13] = "ErrBindSocket";
|
|
240
|
+
/**
|
|
241
|
+
* @ignore
|
|
242
|
+
*/
|
|
243
|
+
ErrorCodeType[ErrorCodeType["ErrNetDown"] = 14] = "ErrNetDown";
|
|
244
|
+
/**
|
|
245
|
+
* 17: The request to join the channel is rejected. Possible reasons include the following:
|
|
246
|
+
* The user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected (1) state.
|
|
247
|
+
* After calling startEchoTest for the call test, the user tries to join the channel without calling stopEchoTest to end the current test. To join a channel, the call test must be ended by calling stopEchoTest.
|
|
248
|
+
*/
|
|
249
|
+
ErrorCodeType[ErrorCodeType["ErrJoinChannelRejected"] = 17] = "ErrJoinChannelRejected";
|
|
250
|
+
/**
|
|
251
|
+
* 18: Fails to leave the channel. Possible reasons include the following:
|
|
252
|
+
* The user has left the channel before calling the leaveChannel method. Stop calling this method to clear this error.
|
|
253
|
+
* The user calls the leaveChannel method to leave the channel before joining the channel. In this case, no extra operation is needed.
|
|
254
|
+
*/
|
|
255
|
+
ErrorCodeType[ErrorCodeType["ErrLeaveChannelRejected"] = 18] = "ErrLeaveChannelRejected";
|
|
256
|
+
/**
|
|
257
|
+
* 19: Resources are already in use.
|
|
258
|
+
*/
|
|
259
|
+
ErrorCodeType[ErrorCodeType["ErrAlreadyInUse"] = 19] = "ErrAlreadyInUse";
|
|
260
|
+
/**
|
|
261
|
+
* 20: The request is abandoned by the SDK, possibly because the request has been sent too frequently.
|
|
262
|
+
*/
|
|
263
|
+
ErrorCodeType[ErrorCodeType["ErrAborted"] = 20] = "ErrAborted";
|
|
264
|
+
/**
|
|
265
|
+
* 21: The IRtcEngine fails to initialize and has crashed because of specific Windows firewall settings.
|
|
266
|
+
*/
|
|
267
|
+
ErrorCodeType[ErrorCodeType["ErrInitNetEngine"] = 21] = "ErrInitNetEngine";
|
|
268
|
+
/**
|
|
269
|
+
* 22: The SDK fails to allocate resources because your app uses too many system resources or system resources are insufficient.
|
|
270
|
+
*/
|
|
271
|
+
ErrorCodeType[ErrorCodeType["ErrResourceLimited"] = 22] = "ErrResourceLimited";
|
|
272
|
+
/**
|
|
273
|
+
* 101: The specified App ID is invalid. Rejoin the channel with a valid App ID.
|
|
274
|
+
*/
|
|
275
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidAppId"] = 101] = "ErrInvalidAppId";
|
|
276
|
+
/**
|
|
277
|
+
* 102: The specified channel name is invalid. A possible reason is that the parameter's data type is incorrect. Rejoin the channel with a valid channel name.
|
|
278
|
+
*/
|
|
279
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidChannelName"] = 102] = "ErrInvalidChannelName";
|
|
280
|
+
/**
|
|
281
|
+
* 103: Fails to get server resources in the specified region. Try another region when initializing IRtcEngine.
|
|
282
|
+
*/
|
|
283
|
+
ErrorCodeType[ErrorCodeType["ErrNoServerResources"] = 103] = "ErrNoServerResources";
|
|
284
|
+
/**
|
|
285
|
+
* 109: The current token has expired. Apply for a new token on the server and call renewToken. Deprecated: This enumerator is deprecated. Use ConnectionChangedTokenExpired (9) in the onConnectionStateChanged callback instead.
|
|
286
|
+
*/
|
|
287
|
+
ErrorCodeType[ErrorCodeType["ErrTokenExpired"] = 109] = "ErrTokenExpired";
|
|
288
|
+
/**
|
|
289
|
+
* 110: Invalid token. Typical reasons include the following:
|
|
290
|
+
* App Certificate is enabled in Agora Console, but the code still uses App ID for authentication. Once App Certificate is enabled for a project, you must use token-based authentication.
|
|
291
|
+
* The uid used to generate the token is not the same as the uid used to join the channel. Deprecated: This enumerator is deprecated. Use ConnectionChangedInvalidToken (8) in the onConnectionStateChanged callback instead.
|
|
292
|
+
*/
|
|
293
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidToken"] = 110] = "ErrInvalidToken";
|
|
294
|
+
/**
|
|
295
|
+
* 111: The network connection is interrupted. The SDK triggers this callback when it loses connection with the server for more than four seconds after the connection is established.
|
|
296
|
+
*/
|
|
297
|
+
ErrorCodeType[ErrorCodeType["ErrConnectionInterrupted"] = 111] = "ErrConnectionInterrupted";
|
|
298
|
+
/**
|
|
299
|
+
* 112: The network connection is lost. Occurs when the SDK cannot reconnect to Agora's edge server 10 seconds after its connection to the server is interrupted.
|
|
300
|
+
*/
|
|
301
|
+
ErrorCodeType[ErrorCodeType["ErrConnectionLost"] = 112] = "ErrConnectionLost";
|
|
302
|
+
/**
|
|
303
|
+
* 113: The user is not in the channel when calling the sendStreamMessage method.
|
|
304
|
+
*/
|
|
305
|
+
ErrorCodeType[ErrorCodeType["ErrNotInChannel"] = 113] = "ErrNotInChannel";
|
|
306
|
+
/**
|
|
307
|
+
* 114: The data size exceeds 1 KB when calling the sendStreamMessage method.
|
|
308
|
+
*/
|
|
309
|
+
ErrorCodeType[ErrorCodeType["ErrSizeTooLarge"] = 114] = "ErrSizeTooLarge";
|
|
310
|
+
/**
|
|
311
|
+
* 115: The data bitrate exceeds 6 KB/s when calling the sendStreamMessage method.
|
|
312
|
+
*/
|
|
313
|
+
ErrorCodeType[ErrorCodeType["ErrBitrateLimit"] = 115] = "ErrBitrateLimit";
|
|
314
|
+
/**
|
|
315
|
+
* 116: More than five data streams are created when calling the createDataStream method.
|
|
316
|
+
*/
|
|
317
|
+
ErrorCodeType[ErrorCodeType["ErrTooManyDataStreams"] = 116] = "ErrTooManyDataStreams";
|
|
318
|
+
/**
|
|
319
|
+
* 117: The data stream transmission times out.
|
|
320
|
+
*/
|
|
321
|
+
ErrorCodeType[ErrorCodeType["ErrStreamMessageTimeout"] = 117] = "ErrStreamMessageTimeout";
|
|
322
|
+
/**
|
|
323
|
+
* 119: Switching roles fails, try rejoining the channel.
|
|
324
|
+
*/
|
|
325
|
+
ErrorCodeType[ErrorCodeType["ErrSetClientRoleNotAuthorized"] = 119] = "ErrSetClientRoleNotAuthorized";
|
|
326
|
+
/**
|
|
327
|
+
* 120: Media streams decryption fails. The user might use an incorrect password to join the channel. Check the entered password, or tell the user to try rejoining the channel.
|
|
328
|
+
*/
|
|
329
|
+
ErrorCodeType[ErrorCodeType["ErrDecryptionFailed"] = 120] = "ErrDecryptionFailed";
|
|
330
|
+
/**
|
|
331
|
+
* 121: The user ID is invalid.
|
|
332
|
+
*/
|
|
333
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidUserId"] = 121] = "ErrInvalidUserId";
|
|
334
|
+
/**
|
|
335
|
+
* 122: Data streams decryption fails. The user might use an incorrect password to join the channel. Check the entered password, or tell the user to try rejoining the channel.
|
|
336
|
+
*/
|
|
337
|
+
ErrorCodeType[ErrorCodeType["ErrDatastreamDecryptionFailed"] = 122] = "ErrDatastreamDecryptionFailed";
|
|
338
|
+
/**
|
|
339
|
+
* 123: The user is banned from the server.
|
|
340
|
+
*/
|
|
341
|
+
ErrorCodeType[ErrorCodeType["ErrClientIsBannedByServer"] = 123] = "ErrClientIsBannedByServer";
|
|
342
|
+
/**
|
|
343
|
+
* 130: The SDK does not support pushing encrypted streams to CDN.
|
|
344
|
+
*/
|
|
345
|
+
ErrorCodeType[ErrorCodeType["ErrEncryptedStreamNotAllowedPublish"] = 130] = "ErrEncryptedStreamNotAllowedPublish";
|
|
346
|
+
/**
|
|
347
|
+
* @ignore
|
|
348
|
+
*/
|
|
349
|
+
ErrorCodeType[ErrorCodeType["ErrLicenseCredentialInvalid"] = 131] = "ErrLicenseCredentialInvalid";
|
|
350
|
+
/**
|
|
351
|
+
* 134: The user account is invalid, possibly because it contains invalid parameters.
|
|
352
|
+
*/
|
|
353
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidUserAccount"] = 134] = "ErrInvalidUserAccount";
|
|
354
|
+
/**
|
|
355
|
+
* @ignore
|
|
356
|
+
*/
|
|
357
|
+
ErrorCodeType[ErrorCodeType["ErrModuleNotFound"] = 157] = "ErrModuleNotFound";
|
|
358
|
+
/**
|
|
359
|
+
* 1001: The SDK fails to load the media engine.
|
|
360
|
+
*/
|
|
361
|
+
ErrorCodeType[ErrorCodeType["ErrCertRaw"] = 157] = "ErrCertRaw";
|
|
362
|
+
/**
|
|
363
|
+
* @ignore
|
|
364
|
+
*/
|
|
365
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonPart"] = 158] = "ErrCertJsonPart";
|
|
366
|
+
/**
|
|
367
|
+
* @ignore
|
|
368
|
+
*/
|
|
369
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonInval"] = 159] = "ErrCertJsonInval";
|
|
370
|
+
/**
|
|
371
|
+
* @ignore
|
|
372
|
+
*/
|
|
373
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonNomem"] = 160] = "ErrCertJsonNomem";
|
|
374
|
+
/**
|
|
375
|
+
* @ignore
|
|
376
|
+
*/
|
|
377
|
+
ErrorCodeType[ErrorCodeType["ErrCertCustom"] = 161] = "ErrCertCustom";
|
|
378
|
+
/**
|
|
379
|
+
* @ignore
|
|
380
|
+
*/
|
|
381
|
+
ErrorCodeType[ErrorCodeType["ErrCertCredential"] = 162] = "ErrCertCredential";
|
|
382
|
+
/**
|
|
383
|
+
* @ignore
|
|
384
|
+
*/
|
|
385
|
+
ErrorCodeType[ErrorCodeType["ErrCertSign"] = 163] = "ErrCertSign";
|
|
386
|
+
/**
|
|
387
|
+
* @ignore
|
|
388
|
+
*/
|
|
389
|
+
ErrorCodeType[ErrorCodeType["ErrCertFail"] = 164] = "ErrCertFail";
|
|
390
|
+
/**
|
|
391
|
+
* @ignore
|
|
392
|
+
*/
|
|
393
|
+
ErrorCodeType[ErrorCodeType["ErrCertBuf"] = 165] = "ErrCertBuf";
|
|
394
|
+
/**
|
|
395
|
+
* @ignore
|
|
396
|
+
*/
|
|
397
|
+
ErrorCodeType[ErrorCodeType["ErrCertNull"] = 166] = "ErrCertNull";
|
|
398
|
+
/**
|
|
399
|
+
* @ignore
|
|
400
|
+
*/
|
|
401
|
+
ErrorCodeType[ErrorCodeType["ErrCertDuedate"] = 167] = "ErrCertDuedate";
|
|
402
|
+
/**
|
|
403
|
+
* @ignore
|
|
404
|
+
*/
|
|
405
|
+
ErrorCodeType[ErrorCodeType["ErrCertRequest"] = 168] = "ErrCertRequest";
|
|
406
|
+
/**
|
|
407
|
+
* @ignore
|
|
408
|
+
*/
|
|
409
|
+
ErrorCodeType[ErrorCodeType["ErrPcmsendFormat"] = 200] = "ErrPcmsendFormat";
|
|
410
|
+
/**
|
|
411
|
+
* @ignore
|
|
412
|
+
*/
|
|
413
|
+
ErrorCodeType[ErrorCodeType["ErrPcmsendBufferoverflow"] = 201] = "ErrPcmsendBufferoverflow";
|
|
414
|
+
/**
|
|
415
|
+
* @ignore
|
|
416
|
+
*/
|
|
417
|
+
ErrorCodeType[ErrorCodeType["ErrLoginAlreadyLogin"] = 428] = "ErrLoginAlreadyLogin";
|
|
418
|
+
/**
|
|
419
|
+
* @ignore
|
|
420
|
+
*/
|
|
421
|
+
ErrorCodeType[ErrorCodeType["ErrLoadMediaEngine"] = 1001] = "ErrLoadMediaEngine";
|
|
422
|
+
/**
|
|
423
|
+
* 1005: A general error occurs (no specified reason). Check whether the audio device is already in use by another app, or try rejoining the channel.
|
|
424
|
+
*/
|
|
425
|
+
ErrorCodeType[ErrorCodeType["ErrAdmGeneralError"] = 1005] = "ErrAdmGeneralError";
|
|
426
|
+
/**
|
|
427
|
+
* 1008: An error occurs when initializing the playback device. Check whether the playback device is already in use by another app, or try rejoining the channel.
|
|
428
|
+
*/
|
|
429
|
+
ErrorCodeType[ErrorCodeType["ErrAdmInitPlayout"] = 1008] = "ErrAdmInitPlayout";
|
|
430
|
+
/**
|
|
431
|
+
* 1009: An error occurs when starting the playback device. Check the playback device.
|
|
432
|
+
*/
|
|
433
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStartPlayout"] = 1009] = "ErrAdmStartPlayout";
|
|
434
|
+
/**
|
|
435
|
+
* 1010: An error occurs when stopping the playback device.
|
|
436
|
+
*/
|
|
437
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStopPlayout"] = 1010] = "ErrAdmStopPlayout";
|
|
438
|
+
/**
|
|
439
|
+
* 1011: An error occurs when initializing the recording device. Check the recording device, or try rejoining the channel.
|
|
440
|
+
*/
|
|
441
|
+
ErrorCodeType[ErrorCodeType["ErrAdmInitRecording"] = 1011] = "ErrAdmInitRecording";
|
|
442
|
+
/**
|
|
443
|
+
* 1012: An error occurs when starting the recording device. Check the recording device.
|
|
444
|
+
*/
|
|
445
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStartRecording"] = 1012] = "ErrAdmStartRecording";
|
|
446
|
+
/**
|
|
447
|
+
* 1013: An error occurs when stopping the recording device.
|
|
448
|
+
*/
|
|
449
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStopRecording"] = 1013] = "ErrAdmStopRecording";
|
|
450
|
+
/**
|
|
451
|
+
* 1501: Permission to access the camera is not granted. Check whether permission to access the camera permission is granted.
|
|
452
|
+
*/
|
|
453
|
+
ErrorCodeType[ErrorCodeType["ErrVdmCameraNotAuthorized"] = 1501] = "ErrVdmCameraNotAuthorized";
|
|
454
|
+
})(ErrorCodeType = exports.ErrorCodeType || (exports.ErrorCodeType = {}));
|
|
455
|
+
/**
|
|
456
|
+
* @ignore
|
|
457
|
+
*/
|
|
458
|
+
var LicenseErrorType;
|
|
459
|
+
(function (LicenseErrorType) {
|
|
460
|
+
/**
|
|
461
|
+
* @ignore
|
|
462
|
+
*/
|
|
463
|
+
LicenseErrorType[LicenseErrorType["LicenseErrInvalid"] = 1] = "LicenseErrInvalid";
|
|
464
|
+
/**
|
|
465
|
+
* @ignore
|
|
466
|
+
*/
|
|
467
|
+
LicenseErrorType[LicenseErrorType["LicenseErrExpire"] = 2] = "LicenseErrExpire";
|
|
468
|
+
/**
|
|
469
|
+
* @ignore
|
|
470
|
+
*/
|
|
471
|
+
LicenseErrorType[LicenseErrorType["LicenseErrMinutesExceed"] = 3] = "LicenseErrMinutesExceed";
|
|
472
|
+
/**
|
|
473
|
+
* @ignore
|
|
474
|
+
*/
|
|
475
|
+
LicenseErrorType[LicenseErrorType["LicenseErrLimitedPeriod"] = 4] = "LicenseErrLimitedPeriod";
|
|
476
|
+
/**
|
|
477
|
+
* @ignore
|
|
478
|
+
*/
|
|
479
|
+
LicenseErrorType[LicenseErrorType["LicenseErrDiffDevices"] = 5] = "LicenseErrDiffDevices";
|
|
480
|
+
/**
|
|
481
|
+
* @ignore
|
|
482
|
+
*/
|
|
483
|
+
LicenseErrorType[LicenseErrorType["LicenseErrInternal"] = 99] = "LicenseErrInternal";
|
|
484
|
+
})(LicenseErrorType = exports.LicenseErrorType || (exports.LicenseErrorType = {}));
|
|
485
|
+
/**
|
|
486
|
+
* The operation permissions of the SDK on the audio session.
|
|
487
|
+
*/
|
|
488
|
+
var AudioSessionOperationRestriction;
|
|
489
|
+
(function (AudioSessionOperationRestriction) {
|
|
490
|
+
/**
|
|
491
|
+
* No restriction, the SDK can change the audio session.
|
|
492
|
+
*/
|
|
493
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionNone"] = 0] = "AudioSessionOperationRestrictionNone";
|
|
494
|
+
/**
|
|
495
|
+
* The SDK cannot change the audio session category.
|
|
496
|
+
*/
|
|
497
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionSetCategory"] = 1] = "AudioSessionOperationRestrictionSetCategory";
|
|
498
|
+
/**
|
|
499
|
+
* The SDK cannot change the audio session category, mode, or categoryOptions.
|
|
500
|
+
*/
|
|
501
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionConfigureSession"] = 2] = "AudioSessionOperationRestrictionConfigureSession";
|
|
502
|
+
/**
|
|
503
|
+
* The SDK keeps the audio session active when the user leaves the channel, for example, to play an audio file in the background.
|
|
504
|
+
*/
|
|
505
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionDeactivateSession"] = 4] = "AudioSessionOperationRestrictionDeactivateSession";
|
|
506
|
+
/**
|
|
507
|
+
* Completely restricts the operation permissions of the SDK on the audio session; the SDK cannot change the audio session.
|
|
508
|
+
*/
|
|
509
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionAll"] = 128] = "AudioSessionOperationRestrictionAll";
|
|
510
|
+
})(AudioSessionOperationRestriction = exports.AudioSessionOperationRestriction || (exports.AudioSessionOperationRestriction = {}));
|
|
511
|
+
/**
|
|
512
|
+
* Reasons for a user being offline.
|
|
513
|
+
*/
|
|
514
|
+
var UserOfflineReasonType;
|
|
515
|
+
(function (UserOfflineReasonType) {
|
|
516
|
+
/**
|
|
517
|
+
* 0: The user quits the call.
|
|
518
|
+
*/
|
|
519
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineQuit"] = 0] = "UserOfflineQuit";
|
|
520
|
+
/**
|
|
521
|
+
* 1: The SDK times out and the user drops offline because no data packet is received within a certain period of time. If the user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user dropped offline.
|
|
522
|
+
*/
|
|
523
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineDropped"] = 1] = "UserOfflineDropped";
|
|
524
|
+
/**
|
|
525
|
+
* 2: The user switches the client role from the host to the audience.
|
|
526
|
+
*/
|
|
527
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineBecomeAudience"] = 2] = "UserOfflineBecomeAudience";
|
|
528
|
+
})(UserOfflineReasonType = exports.UserOfflineReasonType || (exports.UserOfflineReasonType = {}));
|
|
529
|
+
/**
|
|
530
|
+
* The interface class.
|
|
531
|
+
*/
|
|
532
|
+
var InterfaceIdType;
|
|
533
|
+
(function (InterfaceIdType) {
|
|
534
|
+
/**
|
|
535
|
+
* 1: The IAudioDeviceManager interface class.
|
|
536
|
+
*/
|
|
537
|
+
InterfaceIdType[InterfaceIdType["AgoraIidAudioDeviceManager"] = 1] = "AgoraIidAudioDeviceManager";
|
|
538
|
+
/**
|
|
539
|
+
* 2: The IVideoDeviceManager interface class.
|
|
540
|
+
*/
|
|
541
|
+
InterfaceIdType[InterfaceIdType["AgoraIidVideoDeviceManager"] = 2] = "AgoraIidVideoDeviceManager";
|
|
542
|
+
/**
|
|
543
|
+
* @ignore
|
|
544
|
+
*/
|
|
545
|
+
InterfaceIdType[InterfaceIdType["AgoraIidParameterEngine"] = 3] = "AgoraIidParameterEngine";
|
|
546
|
+
/**
|
|
547
|
+
* 4: The IMediaEngine interface class.
|
|
548
|
+
*/
|
|
549
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMediaEngine"] = 4] = "AgoraIidMediaEngine";
|
|
550
|
+
/**
|
|
551
|
+
* @ignore
|
|
552
|
+
*/
|
|
553
|
+
InterfaceIdType[InterfaceIdType["AgoraIidAudioEngine"] = 5] = "AgoraIidAudioEngine";
|
|
554
|
+
/**
|
|
555
|
+
* @ignore
|
|
556
|
+
*/
|
|
557
|
+
InterfaceIdType[InterfaceIdType["AgoraIidVideoEngine"] = 6] = "AgoraIidVideoEngine";
|
|
558
|
+
/**
|
|
559
|
+
* @ignore
|
|
560
|
+
*/
|
|
561
|
+
InterfaceIdType[InterfaceIdType["AgoraIidRtcConnection"] = 7] = "AgoraIidRtcConnection";
|
|
562
|
+
/**
|
|
563
|
+
* @ignore
|
|
564
|
+
*/
|
|
565
|
+
InterfaceIdType[InterfaceIdType["AgoraIidSignalingEngine"] = 8] = "AgoraIidSignalingEngine";
|
|
566
|
+
/**
|
|
567
|
+
* @ignore
|
|
568
|
+
*/
|
|
569
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMediaEngineRegulator"] = 9] = "AgoraIidMediaEngineRegulator";
|
|
570
|
+
/**
|
|
571
|
+
* @ignore
|
|
572
|
+
*/
|
|
573
|
+
InterfaceIdType[InterfaceIdType["AgoraIidLocalSpatialAudio"] = 11] = "AgoraIidLocalSpatialAudio";
|
|
574
|
+
/**
|
|
575
|
+
* @ignore
|
|
576
|
+
*/
|
|
577
|
+
InterfaceIdType[InterfaceIdType["AgoraIidStateSync"] = 13] = "AgoraIidStateSync";
|
|
578
|
+
/**
|
|
579
|
+
* @ignore
|
|
580
|
+
*/
|
|
581
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMetaService"] = 14] = "AgoraIidMetaService";
|
|
582
|
+
/**
|
|
583
|
+
* @ignore
|
|
584
|
+
*/
|
|
585
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMusicContentCenter"] = 15] = "AgoraIidMusicContentCenter";
|
|
586
|
+
/**
|
|
587
|
+
* @ignore
|
|
588
|
+
*/
|
|
589
|
+
InterfaceIdType[InterfaceIdType["AgoraIidH265Transcoder"] = 16] = "AgoraIidH265Transcoder";
|
|
590
|
+
})(InterfaceIdType = exports.InterfaceIdType || (exports.InterfaceIdType = {}));
|
|
591
|
+
/**
|
|
592
|
+
* Network quality types.
|
|
593
|
+
*/
|
|
594
|
+
var QualityType;
|
|
595
|
+
(function (QualityType) {
|
|
596
|
+
/**
|
|
597
|
+
* 0: The network quality is unknown.
|
|
598
|
+
*/
|
|
599
|
+
QualityType[QualityType["QualityUnknown"] = 0] = "QualityUnknown";
|
|
600
|
+
/**
|
|
601
|
+
* 1: The network quality is excellent.
|
|
602
|
+
*/
|
|
603
|
+
QualityType[QualityType["QualityExcellent"] = 1] = "QualityExcellent";
|
|
604
|
+
/**
|
|
605
|
+
* 2: The network quality is quite good, but the bitrate may be slightly lower than excellent.
|
|
606
|
+
*/
|
|
607
|
+
QualityType[QualityType["QualityGood"] = 2] = "QualityGood";
|
|
608
|
+
/**
|
|
609
|
+
* 3: Users can feel the communication is slightly impaired.
|
|
610
|
+
*/
|
|
611
|
+
QualityType[QualityType["QualityPoor"] = 3] = "QualityPoor";
|
|
612
|
+
/**
|
|
613
|
+
* 4: Users cannot communicate smoothly.
|
|
614
|
+
*/
|
|
615
|
+
QualityType[QualityType["QualityBad"] = 4] = "QualityBad";
|
|
616
|
+
/**
|
|
617
|
+
* 5: The quality is so bad that users can barely communicate.
|
|
618
|
+
*/
|
|
619
|
+
QualityType[QualityType["QualityVbad"] = 5] = "QualityVbad";
|
|
620
|
+
/**
|
|
621
|
+
* 6: The network is down and users cannot communicate at all.
|
|
622
|
+
*/
|
|
623
|
+
QualityType[QualityType["QualityDown"] = 6] = "QualityDown";
|
|
624
|
+
/**
|
|
625
|
+
* @ignore
|
|
626
|
+
*/
|
|
627
|
+
QualityType[QualityType["QualityUnsupported"] = 7] = "QualityUnsupported";
|
|
628
|
+
/**
|
|
629
|
+
* 8: The last-mile network probe test is in progress.
|
|
630
|
+
*/
|
|
631
|
+
QualityType[QualityType["QualityDetecting"] = 8] = "QualityDetecting";
|
|
632
|
+
})(QualityType = exports.QualityType || (exports.QualityType = {}));
|
|
633
|
+
/**
|
|
634
|
+
* @ignore
|
|
635
|
+
*/
|
|
636
|
+
var FitModeType;
|
|
637
|
+
(function (FitModeType) {
|
|
638
|
+
/**
|
|
639
|
+
* @ignore
|
|
640
|
+
*/
|
|
641
|
+
FitModeType[FitModeType["ModeCover"] = 1] = "ModeCover";
|
|
642
|
+
/**
|
|
643
|
+
* @ignore
|
|
644
|
+
*/
|
|
645
|
+
FitModeType[FitModeType["ModeContain"] = 2] = "ModeContain";
|
|
646
|
+
})(FitModeType = exports.FitModeType || (exports.FitModeType = {}));
|
|
647
|
+
/**
|
|
648
|
+
* The clockwise rotation of the video.
|
|
649
|
+
*/
|
|
650
|
+
var VideoOrientation;
|
|
651
|
+
(function (VideoOrientation) {
|
|
652
|
+
/**
|
|
653
|
+
* 0: (Default) No rotation.
|
|
654
|
+
*/
|
|
655
|
+
VideoOrientation[VideoOrientation["VideoOrientation0"] = 0] = "VideoOrientation0";
|
|
656
|
+
/**
|
|
657
|
+
* 90: 90 degrees.
|
|
658
|
+
*/
|
|
659
|
+
VideoOrientation[VideoOrientation["VideoOrientation90"] = 90] = "VideoOrientation90";
|
|
660
|
+
/**
|
|
661
|
+
* 180: 180 degrees.
|
|
662
|
+
*/
|
|
663
|
+
VideoOrientation[VideoOrientation["VideoOrientation180"] = 180] = "VideoOrientation180";
|
|
664
|
+
/**
|
|
665
|
+
* 270: 270 degrees.
|
|
666
|
+
*/
|
|
667
|
+
VideoOrientation[VideoOrientation["VideoOrientation270"] = 270] = "VideoOrientation270";
|
|
668
|
+
})(VideoOrientation = exports.VideoOrientation || (exports.VideoOrientation = {}));
|
|
669
|
+
/**
|
|
670
|
+
* The video frame rate.
|
|
671
|
+
*/
|
|
672
|
+
var FrameRate;
|
|
673
|
+
(function (FrameRate) {
|
|
674
|
+
/**
|
|
675
|
+
* 1: 1 fps
|
|
676
|
+
*/
|
|
677
|
+
FrameRate[FrameRate["FrameRateFps1"] = 1] = "FrameRateFps1";
|
|
678
|
+
/**
|
|
679
|
+
* 7: 7 fps
|
|
680
|
+
*/
|
|
681
|
+
FrameRate[FrameRate["FrameRateFps7"] = 7] = "FrameRateFps7";
|
|
682
|
+
/**
|
|
683
|
+
* 10: 10 fps
|
|
684
|
+
*/
|
|
685
|
+
FrameRate[FrameRate["FrameRateFps10"] = 10] = "FrameRateFps10";
|
|
686
|
+
/**
|
|
687
|
+
* 15: 15 fps
|
|
688
|
+
*/
|
|
689
|
+
FrameRate[FrameRate["FrameRateFps15"] = 15] = "FrameRateFps15";
|
|
690
|
+
/**
|
|
691
|
+
* 24: 24 fps
|
|
692
|
+
*/
|
|
693
|
+
FrameRate[FrameRate["FrameRateFps24"] = 24] = "FrameRateFps24";
|
|
694
|
+
/**
|
|
695
|
+
* 30: 30 fps
|
|
696
|
+
*/
|
|
697
|
+
FrameRate[FrameRate["FrameRateFps30"] = 30] = "FrameRateFps30";
|
|
698
|
+
/**
|
|
699
|
+
* 60: 60 fps
|
|
700
|
+
*/
|
|
701
|
+
FrameRate[FrameRate["FrameRateFps60"] = 60] = "FrameRateFps60";
|
|
702
|
+
})(FrameRate = exports.FrameRate || (exports.FrameRate = {}));
|
|
703
|
+
/**
|
|
704
|
+
* @ignore
|
|
705
|
+
*/
|
|
706
|
+
var FrameWidth;
|
|
707
|
+
(function (FrameWidth) {
|
|
708
|
+
/**
|
|
709
|
+
* @ignore
|
|
710
|
+
*/
|
|
711
|
+
FrameWidth[FrameWidth["FrameWidth960"] = 960] = "FrameWidth960";
|
|
712
|
+
})(FrameWidth = exports.FrameWidth || (exports.FrameWidth = {}));
|
|
713
|
+
/**
|
|
714
|
+
* @ignore
|
|
715
|
+
*/
|
|
716
|
+
var FrameHeight;
|
|
717
|
+
(function (FrameHeight) {
|
|
718
|
+
/**
|
|
719
|
+
* @ignore
|
|
720
|
+
*/
|
|
721
|
+
FrameHeight[FrameHeight["FrameHeight540"] = 540] = "FrameHeight540";
|
|
722
|
+
})(FrameHeight = exports.FrameHeight || (exports.FrameHeight = {}));
|
|
723
|
+
/**
|
|
724
|
+
* The video frame type.
|
|
725
|
+
*/
|
|
726
|
+
var VideoFrameType;
|
|
727
|
+
(function (VideoFrameType) {
|
|
728
|
+
/**
|
|
729
|
+
* 0: A black frame.
|
|
730
|
+
*/
|
|
731
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeBlankFrame"] = 0] = "VideoFrameTypeBlankFrame";
|
|
732
|
+
/**
|
|
733
|
+
* 3: Key frame.
|
|
734
|
+
*/
|
|
735
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeKeyFrame"] = 3] = "VideoFrameTypeKeyFrame";
|
|
736
|
+
/**
|
|
737
|
+
* 4: Delta frame.
|
|
738
|
+
*/
|
|
739
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeDeltaFrame"] = 4] = "VideoFrameTypeDeltaFrame";
|
|
740
|
+
/**
|
|
741
|
+
* 5: The B frame.
|
|
742
|
+
*/
|
|
743
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeBFrame"] = 5] = "VideoFrameTypeBFrame";
|
|
744
|
+
/**
|
|
745
|
+
* 6: A discarded frame.
|
|
746
|
+
*/
|
|
747
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeDroppableFrame"] = 6] = "VideoFrameTypeDroppableFrame";
|
|
748
|
+
/**
|
|
749
|
+
* Unknown frame.
|
|
750
|
+
*/
|
|
751
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeUnknow"] = 7] = "VideoFrameTypeUnknow";
|
|
752
|
+
})(VideoFrameType = exports.VideoFrameType || (exports.VideoFrameType = {}));
|
|
753
|
+
/**
|
|
754
|
+
* Video output orientation mode.
|
|
755
|
+
*/
|
|
756
|
+
var OrientationMode;
|
|
757
|
+
(function (OrientationMode) {
|
|
758
|
+
/**
|
|
759
|
+
* 0: (Default) The output video always follows the orientation of the captured video. The receiver takes the rotational information passed on from the video encoder. This mode applies to scenarios where video orientation can be adjusted on the receiver.
|
|
760
|
+
* If the captured video is in landscape mode, the output video is in landscape mode.
|
|
761
|
+
* If the captured video is in portrait mode, the output video is in portrait mode.
|
|
762
|
+
*/
|
|
763
|
+
OrientationMode[OrientationMode["OrientationModeAdaptive"] = 0] = "OrientationModeAdaptive";
|
|
764
|
+
/**
|
|
765
|
+
* @ignore
|
|
766
|
+
*/
|
|
767
|
+
OrientationMode[OrientationMode["OrientationModeFixedLandscape"] = 1] = "OrientationModeFixedLandscape";
|
|
768
|
+
/**
|
|
769
|
+
* @ignore
|
|
770
|
+
*/
|
|
771
|
+
OrientationMode[OrientationMode["OrientationModeFixedPortrait"] = 2] = "OrientationModeFixedPortrait";
|
|
772
|
+
})(OrientationMode = exports.OrientationMode || (exports.OrientationMode = {}));
|
|
773
|
+
/**
|
|
774
|
+
* Video degradation preferences when the bandwidth is a constraint.
|
|
775
|
+
*/
|
|
776
|
+
var DegradationPreference;
|
|
777
|
+
(function (DegradationPreference) {
|
|
778
|
+
/**
|
|
779
|
+
* 0: (Default) Automatic mode. The SDK will automatically select MaintainFramerate, MaintainBalanced or MaintainResolution based on the video scenario you set, in order to achieve the best overall quality of experience (QoE).
|
|
780
|
+
*/
|
|
781
|
+
DegradationPreference[DegradationPreference["MaintainAuto"] = -1] = "MaintainAuto";
|
|
782
|
+
/**
|
|
783
|
+
* 0: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized. Deprecated: This enumerator is deprecated. Use other enumerations instead.
|
|
784
|
+
*/
|
|
785
|
+
DegradationPreference[DegradationPreference["MaintainQuality"] = 0] = "MaintainQuality";
|
|
786
|
+
/**
|
|
787
|
+
* 1: Reduces the video resolution while maintaining the video frame rate during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where smoothness is prioritized and video quality is allowed to be reduced.
|
|
788
|
+
*/
|
|
789
|
+
DegradationPreference[DegradationPreference["MaintainFramerate"] = 1] = "MaintainFramerate";
|
|
790
|
+
/**
|
|
791
|
+
* 2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MaintainBalanced has a lower reduction than MaintainQuality and MaintainFramerate, and this preference is suitable for scenarios where both smoothness and video quality are a priority. The resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged.
|
|
792
|
+
*/
|
|
793
|
+
DegradationPreference[DegradationPreference["MaintainBalanced"] = 2] = "MaintainBalanced";
|
|
794
|
+
/**
|
|
795
|
+
* 3: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
|
|
796
|
+
*/
|
|
797
|
+
DegradationPreference[DegradationPreference["MaintainResolution"] = 3] = "MaintainResolution";
|
|
798
|
+
/**
|
|
799
|
+
* @ignore
|
|
800
|
+
*/
|
|
801
|
+
DegradationPreference[DegradationPreference["Disabled"] = 100] = "Disabled";
|
|
802
|
+
})(DegradationPreference = exports.DegradationPreference || (exports.DegradationPreference = {}));
|
|
803
|
+
/**
|
|
804
|
+
* The video dimension.
|
|
805
|
+
*/
|
|
806
|
+
class VideoDimensions {
|
|
807
|
+
}
|
|
808
|
+
exports.VideoDimensions = VideoDimensions;
|
|
809
|
+
/**
|
|
810
|
+
* @ignore
|
|
811
|
+
*/
|
|
812
|
+
var ScreenCaptureFramerateCapability;
|
|
813
|
+
(function (ScreenCaptureFramerateCapability) {
|
|
814
|
+
/**
|
|
815
|
+
* @ignore
|
|
816
|
+
*/
|
|
817
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability15Fps"] = 0] = "ScreenCaptureFramerateCapability15Fps";
|
|
818
|
+
/**
|
|
819
|
+
* @ignore
|
|
820
|
+
*/
|
|
821
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability30Fps"] = 1] = "ScreenCaptureFramerateCapability30Fps";
|
|
822
|
+
/**
|
|
823
|
+
* @ignore
|
|
824
|
+
*/
|
|
825
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability60Fps"] = 2] = "ScreenCaptureFramerateCapability60Fps";
|
|
826
|
+
})(ScreenCaptureFramerateCapability = exports.ScreenCaptureFramerateCapability || (exports.ScreenCaptureFramerateCapability = {}));
|
|
827
|
+
/**
|
|
828
|
+
* @ignore
|
|
829
|
+
*/
|
|
830
|
+
var VideoCodecCapabilityLevel;
|
|
831
|
+
(function (VideoCodecCapabilityLevel) {
|
|
832
|
+
/**
|
|
833
|
+
* @ignore
|
|
834
|
+
*/
|
|
835
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelUnspecified"] = -1] = "CodecCapabilityLevelUnspecified";
|
|
836
|
+
/**
|
|
837
|
+
* @ignore
|
|
838
|
+
*/
|
|
839
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelBasicSupport"] = 5] = "CodecCapabilityLevelBasicSupport";
|
|
840
|
+
/**
|
|
841
|
+
* @ignore
|
|
842
|
+
*/
|
|
843
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p30fps"] = 10] = "CodecCapabilityLevel1080p30fps";
|
|
844
|
+
/**
|
|
845
|
+
* @ignore
|
|
846
|
+
*/
|
|
847
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p60fps"] = 20] = "CodecCapabilityLevel1080p60fps";
|
|
848
|
+
/**
|
|
849
|
+
* @ignore
|
|
850
|
+
*/
|
|
851
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel4k60fps"] = 30] = "CodecCapabilityLevel4k60fps";
|
|
852
|
+
})(VideoCodecCapabilityLevel = exports.VideoCodecCapabilityLevel || (exports.VideoCodecCapabilityLevel = {}));
|
|
853
|
+
/**
|
|
854
|
+
* Video codec types.
|
|
855
|
+
*/
|
|
856
|
+
var VideoCodecType;
|
|
857
|
+
(function (VideoCodecType) {
|
|
858
|
+
/**
|
|
859
|
+
* 0: (Default) Unspecified codec format. The SDK automatically matches the appropriate codec format based on the current video stream's resolution and device performance.
|
|
860
|
+
*/
|
|
861
|
+
VideoCodecType[VideoCodecType["VideoCodecNone"] = 0] = "VideoCodecNone";
|
|
862
|
+
/**
|
|
863
|
+
* 1: Standard VP8.
|
|
864
|
+
*/
|
|
865
|
+
VideoCodecType[VideoCodecType["VideoCodecVp8"] = 1] = "VideoCodecVp8";
|
|
866
|
+
/**
|
|
867
|
+
* 2: Standard H.264.
|
|
868
|
+
*/
|
|
869
|
+
VideoCodecType[VideoCodecType["VideoCodecH264"] = 2] = "VideoCodecH264";
|
|
870
|
+
/**
|
|
871
|
+
* 3: Standard H.265.
|
|
872
|
+
*/
|
|
873
|
+
VideoCodecType[VideoCodecType["VideoCodecH265"] = 3] = "VideoCodecH265";
|
|
874
|
+
/**
|
|
875
|
+
* 6: Generic. This type is used for transmitting raw video data, such as encrypted video frames. The SDK returns this type of video frames in callbacks, and you need to decode and render the frames yourself.
|
|
876
|
+
*/
|
|
877
|
+
VideoCodecType[VideoCodecType["VideoCodecGeneric"] = 6] = "VideoCodecGeneric";
|
|
878
|
+
/**
|
|
879
|
+
* @ignore
|
|
880
|
+
*/
|
|
881
|
+
VideoCodecType[VideoCodecType["VideoCodecGenericH264"] = 7] = "VideoCodecGenericH264";
|
|
882
|
+
/**
|
|
883
|
+
* @ignore
|
|
884
|
+
*/
|
|
885
|
+
VideoCodecType[VideoCodecType["VideoCodecAv1"] = 12] = "VideoCodecAv1";
|
|
886
|
+
/**
|
|
887
|
+
* @ignore
|
|
888
|
+
*/
|
|
889
|
+
VideoCodecType[VideoCodecType["VideoCodecVp9"] = 13] = "VideoCodecVp9";
|
|
890
|
+
/**
|
|
891
|
+
* 20: Generic JPEG. This type consumes minimum computing resources and applies to IoT devices.
|
|
892
|
+
*/
|
|
893
|
+
VideoCodecType[VideoCodecType["VideoCodecGenericJpeg"] = 20] = "VideoCodecGenericJpeg";
|
|
894
|
+
})(VideoCodecType = exports.VideoCodecType || (exports.VideoCodecType = {}));
|
|
895
|
+
/**
|
|
896
|
+
* @ignore
|
|
897
|
+
*/
|
|
898
|
+
var CameraFocalLengthType;
|
|
899
|
+
(function (CameraFocalLengthType) {
|
|
900
|
+
/**
|
|
901
|
+
* @ignore
|
|
902
|
+
*/
|
|
903
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthDefault"] = 0] = "CameraFocalLengthDefault";
|
|
904
|
+
/**
|
|
905
|
+
* @ignore
|
|
906
|
+
*/
|
|
907
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthWideAngle"] = 1] = "CameraFocalLengthWideAngle";
|
|
908
|
+
/**
|
|
909
|
+
* @ignore
|
|
910
|
+
*/
|
|
911
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthUltraWide"] = 2] = "CameraFocalLengthUltraWide";
|
|
912
|
+
/**
|
|
913
|
+
* @ignore
|
|
914
|
+
*/
|
|
915
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthTelephoto"] = 3] = "CameraFocalLengthTelephoto";
|
|
916
|
+
})(CameraFocalLengthType = exports.CameraFocalLengthType || (exports.CameraFocalLengthType = {}));
|
|
917
|
+
/**
|
|
918
|
+
* @ignore
|
|
919
|
+
*/
|
|
920
|
+
var TCcMode;
|
|
921
|
+
(function (TCcMode) {
|
|
922
|
+
/**
|
|
923
|
+
* @ignore
|
|
924
|
+
*/
|
|
925
|
+
TCcMode[TCcMode["CcEnabled"] = 0] = "CcEnabled";
|
|
926
|
+
/**
|
|
927
|
+
* @ignore
|
|
928
|
+
*/
|
|
929
|
+
TCcMode[TCcMode["CcDisabled"] = 1] = "CcDisabled";
|
|
930
|
+
})(TCcMode = exports.TCcMode || (exports.TCcMode = {}));
|
|
931
|
+
/**
|
|
932
|
+
* @ignore
|
|
933
|
+
*/
|
|
934
|
+
class SenderOptions {
|
|
935
|
+
}
|
|
936
|
+
exports.SenderOptions = SenderOptions;
|
|
937
|
+
/**
|
|
938
|
+
* The codec type of audio.
|
|
939
|
+
*/
|
|
940
|
+
var AudioCodecType;
|
|
941
|
+
(function (AudioCodecType) {
|
|
942
|
+
/**
|
|
943
|
+
* 1: OPUS.
|
|
944
|
+
*/
|
|
945
|
+
AudioCodecType[AudioCodecType["AudioCodecOpus"] = 1] = "AudioCodecOpus";
|
|
946
|
+
/**
|
|
947
|
+
* @ignore
|
|
948
|
+
*/
|
|
949
|
+
AudioCodecType[AudioCodecType["AudioCodecPcma"] = 3] = "AudioCodecPcma";
|
|
950
|
+
/**
|
|
951
|
+
* @ignore
|
|
952
|
+
*/
|
|
953
|
+
AudioCodecType[AudioCodecType["AudioCodecPcmu"] = 4] = "AudioCodecPcmu";
|
|
954
|
+
/**
|
|
955
|
+
* @ignore
|
|
956
|
+
*/
|
|
957
|
+
AudioCodecType[AudioCodecType["AudioCodecG722"] = 5] = "AudioCodecG722";
|
|
958
|
+
/**
|
|
959
|
+
* 8: LC-AAC.
|
|
960
|
+
*/
|
|
961
|
+
AudioCodecType[AudioCodecType["AudioCodecAaclc"] = 8] = "AudioCodecAaclc";
|
|
962
|
+
/**
|
|
963
|
+
* 9: HE-AAC.
|
|
964
|
+
*/
|
|
965
|
+
AudioCodecType[AudioCodecType["AudioCodecHeaac"] = 9] = "AudioCodecHeaac";
|
|
966
|
+
/**
|
|
967
|
+
* @ignore
|
|
968
|
+
*/
|
|
969
|
+
AudioCodecType[AudioCodecType["AudioCodecJc1"] = 10] = "AudioCodecJc1";
|
|
970
|
+
/**
|
|
971
|
+
* 11: HE-AAC v2.
|
|
972
|
+
*/
|
|
973
|
+
AudioCodecType[AudioCodecType["AudioCodecHeaac2"] = 11] = "AudioCodecHeaac2";
|
|
974
|
+
/**
|
|
975
|
+
* @ignore
|
|
976
|
+
*/
|
|
977
|
+
AudioCodecType[AudioCodecType["AudioCodecLpcnet"] = 12] = "AudioCodecLpcnet";
|
|
978
|
+
/**
|
|
979
|
+
* @ignore
|
|
980
|
+
*/
|
|
981
|
+
AudioCodecType[AudioCodecType["AudioCodecOpusmc"] = 13] = "AudioCodecOpusmc";
|
|
982
|
+
})(AudioCodecType = exports.AudioCodecType || (exports.AudioCodecType = {}));
|
|
983
|
+
/**
|
|
984
|
+
* Audio encoding type.
|
|
985
|
+
*/
|
|
986
|
+
var AudioEncodingType;
|
|
987
|
+
(function (AudioEncodingType) {
|
|
988
|
+
/**
|
|
989
|
+
* AAC encoding format, 16000 Hz sampling rate, bass quality. A file with an audio duration of 10 minutes is approximately 1.2 MB after encoding.
|
|
990
|
+
*/
|
|
991
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac16000Low"] = 65793] = "AudioEncodingTypeAac16000Low";
|
|
992
|
+
/**
|
|
993
|
+
* AAC encoding format, 16000 Hz sampling rate, medium sound quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
994
|
+
*/
|
|
995
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac16000Medium"] = 65794] = "AudioEncodingTypeAac16000Medium";
|
|
996
|
+
/**
|
|
997
|
+
* AAC encoding format, 32000 Hz sampling rate, bass quality. A file with an audio duration of 10 minutes is approximately 1.2 MB after encoding.
|
|
998
|
+
*/
|
|
999
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000Low"] = 66049] = "AudioEncodingTypeAac32000Low";
|
|
1000
|
+
/**
|
|
1001
|
+
* AAC encoding format, 32000 Hz sampling rate, medium sound quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
1002
|
+
*/
|
|
1003
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000Medium"] = 66050] = "AudioEncodingTypeAac32000Medium";
|
|
1004
|
+
/**
|
|
1005
|
+
* AAC encoding format, 32000 Hz sampling rate, high sound quality. A file with an audio duration of 10 minutes is approximately 3.5 MB after encoding.
|
|
1006
|
+
*/
|
|
1007
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000High"] = 66051] = "AudioEncodingTypeAac32000High";
|
|
1008
|
+
/**
|
|
1009
|
+
* AAC encoding format, 48000 Hz sampling rate, medium sound quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
1010
|
+
*/
|
|
1011
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac48000Medium"] = 66306] = "AudioEncodingTypeAac48000Medium";
|
|
1012
|
+
/**
|
|
1013
|
+
* AAC encoding format, 48000 Hz sampling rate, high sound quality. A file with an audio duration of 10 minutes is approximately 3.5 MB after encoding.
|
|
1014
|
+
*/
|
|
1015
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac48000High"] = 66307] = "AudioEncodingTypeAac48000High";
|
|
1016
|
+
/**
|
|
1017
|
+
* OPUS encoding format, 16000 Hz sampling rate, bass quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
1018
|
+
*/
|
|
1019
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus16000Low"] = 131329] = "AudioEncodingTypeOpus16000Low";
|
|
1020
|
+
/**
|
|
1021
|
+
* OPUS encoding format, 16000 Hz sampling rate, medium sound quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
1022
|
+
*/
|
|
1023
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus16000Medium"] = 131330] = "AudioEncodingTypeOpus16000Medium";
|
|
1024
|
+
/**
|
|
1025
|
+
* OPUS encoding format, 48000 Hz sampling rate, medium sound quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
|
|
1026
|
+
*/
|
|
1027
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus48000Medium"] = 131842] = "AudioEncodingTypeOpus48000Medium";
|
|
1028
|
+
/**
|
|
1029
|
+
* OPUS encoding format, 48000 Hz sampling rate, high sound quality. A file with an audio duration of 10 minutes is approximately 3.5 MB after encoding.
|
|
1030
|
+
*/
|
|
1031
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus48000High"] = 131843] = "AudioEncodingTypeOpus48000High";
|
|
1032
|
+
})(AudioEncodingType = exports.AudioEncodingType || (exports.AudioEncodingType = {}));
|
|
1033
|
+
/**
|
|
1034
|
+
* The adaptation mode of the watermark.
|
|
1035
|
+
*/
|
|
1036
|
+
var WatermarkFitMode;
|
|
1037
|
+
(function (WatermarkFitMode) {
|
|
1038
|
+
/**
|
|
1039
|
+
* Use the positionInLandscapeMode and positionInPortraitMode values you set in WatermarkOptions. The settings in WatermarkRatio are invalid.
|
|
1040
|
+
*/
|
|
1041
|
+
WatermarkFitMode[WatermarkFitMode["FitModeCoverPosition"] = 0] = "FitModeCoverPosition";
|
|
1042
|
+
/**
|
|
1043
|
+
* Use the value you set in WatermarkRatio. The settings in positionInLandscapeMode and positionInPortraitMode in WatermarkOptions are invalid.
|
|
1044
|
+
*/
|
|
1045
|
+
WatermarkFitMode[WatermarkFitMode["FitModeUseImageRatio"] = 1] = "FitModeUseImageRatio";
|
|
1046
|
+
})(WatermarkFitMode = exports.WatermarkFitMode || (exports.WatermarkFitMode = {}));
|
|
1047
|
+
/**
|
|
1048
|
+
* @ignore
|
|
1049
|
+
*/
|
|
1050
|
+
class EncodedAudioFrameAdvancedSettings {
|
|
1051
|
+
}
|
|
1052
|
+
exports.EncodedAudioFrameAdvancedSettings = EncodedAudioFrameAdvancedSettings;
|
|
1053
|
+
/**
|
|
1054
|
+
* Audio information after encoding.
|
|
1055
|
+
*/
|
|
1056
|
+
class EncodedAudioFrameInfo {
|
|
1057
|
+
}
|
|
1058
|
+
exports.EncodedAudioFrameInfo = EncodedAudioFrameInfo;
|
|
1059
|
+
/**
|
|
1060
|
+
* @ignore
|
|
1061
|
+
*/
|
|
1062
|
+
class AudioPcmDataInfo {
|
|
1063
|
+
}
|
|
1064
|
+
exports.AudioPcmDataInfo = AudioPcmDataInfo;
|
|
1065
|
+
/**
|
|
1066
|
+
* @ignore
|
|
1067
|
+
*/
|
|
1068
|
+
var H264PacketizeMode;
|
|
1069
|
+
(function (H264PacketizeMode) {
|
|
1070
|
+
/**
|
|
1071
|
+
* @ignore
|
|
1072
|
+
*/
|
|
1073
|
+
H264PacketizeMode[H264PacketizeMode["NonInterleaved"] = 0] = "NonInterleaved";
|
|
1074
|
+
/**
|
|
1075
|
+
* @ignore
|
|
1076
|
+
*/
|
|
1077
|
+
H264PacketizeMode[H264PacketizeMode["SingleNalUnit"] = 1] = "SingleNalUnit";
|
|
1078
|
+
})(H264PacketizeMode = exports.H264PacketizeMode || (exports.H264PacketizeMode = {}));
|
|
1079
|
+
/**
|
|
1080
|
+
* The type of video streams.
|
|
1081
|
+
*/
|
|
1082
|
+
var VideoStreamType;
|
|
1083
|
+
(function (VideoStreamType) {
|
|
1084
|
+
/**
|
|
1085
|
+
* 0: High-quality video stream.
|
|
1086
|
+
*/
|
|
1087
|
+
VideoStreamType[VideoStreamType["VideoStreamHigh"] = 0] = "VideoStreamHigh";
|
|
1088
|
+
/**
|
|
1089
|
+
* 1: Low-quality video stream.
|
|
1090
|
+
*/
|
|
1091
|
+
VideoStreamType[VideoStreamType["VideoStreamLow"] = 1] = "VideoStreamLow";
|
|
1092
|
+
/**
|
|
1093
|
+
* @ignore
|
|
1094
|
+
*/
|
|
1095
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer1"] = 4] = "VideoStreamLayer1";
|
|
1096
|
+
/**
|
|
1097
|
+
* @ignore
|
|
1098
|
+
*/
|
|
1099
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer2"] = 5] = "VideoStreamLayer2";
|
|
1100
|
+
/**
|
|
1101
|
+
* @ignore
|
|
1102
|
+
*/
|
|
1103
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer3"] = 6] = "VideoStreamLayer3";
|
|
1104
|
+
/**
|
|
1105
|
+
* @ignore
|
|
1106
|
+
*/
|
|
1107
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer4"] = 7] = "VideoStreamLayer4";
|
|
1108
|
+
/**
|
|
1109
|
+
* @ignore
|
|
1110
|
+
*/
|
|
1111
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer5"] = 8] = "VideoStreamLayer5";
|
|
1112
|
+
/**
|
|
1113
|
+
* @ignore
|
|
1114
|
+
*/
|
|
1115
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer6"] = 9] = "VideoStreamLayer6";
|
|
1116
|
+
})(VideoStreamType = exports.VideoStreamType || (exports.VideoStreamType = {}));
|
|
1117
|
+
/**
|
|
1118
|
+
* Video subscription options.
|
|
1119
|
+
*/
|
|
1120
|
+
class VideoSubscriptionOptions {
|
|
1121
|
+
}
|
|
1122
|
+
exports.VideoSubscriptionOptions = VideoSubscriptionOptions;
|
|
1123
|
+
/**
|
|
1124
|
+
* The maximum length of the user account.
|
|
1125
|
+
*/
|
|
1126
|
+
var MaxUserAccountLengthType;
|
|
1127
|
+
(function (MaxUserAccountLengthType) {
|
|
1128
|
+
/**
|
|
1129
|
+
* The maximum length of the user account is 256 bytes.
|
|
1130
|
+
*/
|
|
1131
|
+
MaxUserAccountLengthType[MaxUserAccountLengthType["MaxUserAccountLength"] = 256] = "MaxUserAccountLength";
|
|
1132
|
+
})(MaxUserAccountLengthType = exports.MaxUserAccountLengthType || (exports.MaxUserAccountLengthType = {}));
|
|
1133
|
+
/**
|
|
1134
|
+
* Information about externally encoded video frames.
|
|
1135
|
+
*/
|
|
1136
|
+
class EncodedVideoFrameInfo {
|
|
1137
|
+
}
|
|
1138
|
+
exports.EncodedVideoFrameInfo = EncodedVideoFrameInfo;
|
|
1139
|
+
/**
|
|
1140
|
+
* Compression preference for video encoding.
|
|
1141
|
+
*/
|
|
1142
|
+
var CompressionPreference;
|
|
1143
|
+
(function (CompressionPreference) {
|
|
1144
|
+
/**
|
|
1145
|
+
* -1: (Default) Automatic mode. The SDK will automatically select PreferLowLatency or PreferQuality based on the video scenario you set to achieve the best user experience.
|
|
1146
|
+
*/
|
|
1147
|
+
CompressionPreference[CompressionPreference["PreferCompressionAuto"] = -1] = "PreferCompressionAuto";
|
|
1148
|
+
/**
|
|
1149
|
+
* 0: Low latency preference. The SDK compresses video frames to reduce latency. This preference is suitable for scenarios where smoothness is prioritized and reduced video quality is acceptable.
|
|
1150
|
+
*/
|
|
1151
|
+
CompressionPreference[CompressionPreference["PreferLowLatency"] = 0] = "PreferLowLatency";
|
|
1152
|
+
/**
|
|
1153
|
+
* 1: High quality preference. The SDK compresses video frames while maintaining video quality. This preference is suitable for scenarios where video quality is prioritized.
|
|
1154
|
+
*/
|
|
1155
|
+
CompressionPreference[CompressionPreference["PreferQuality"] = 1] = "PreferQuality";
|
|
1156
|
+
})(CompressionPreference = exports.CompressionPreference || (exports.CompressionPreference = {}));
|
|
1157
|
+
/**
|
|
1158
|
+
* Video encoder preference.
|
|
1159
|
+
*/
|
|
1160
|
+
var EncodingPreference;
|
|
1161
|
+
(function (EncodingPreference) {
|
|
1162
|
+
/**
|
|
1163
|
+
* -1: Adaptive preference. The SDK automatically selects the optimal encoding type for encoding based on factors such as platform and device type.
|
|
1164
|
+
*/
|
|
1165
|
+
EncodingPreference[EncodingPreference["PreferAuto"] = -1] = "PreferAuto";
|
|
1166
|
+
/**
|
|
1167
|
+
* 0: Software coding preference. The SDK prefers software encoders for video encoding.
|
|
1168
|
+
*/
|
|
1169
|
+
EncodingPreference[EncodingPreference["PreferSoftware"] = 0] = "PreferSoftware";
|
|
1170
|
+
/**
|
|
1171
|
+
* 1: Hardware encoding preference. The SDK prefers a hardware encoder for video encoding. When the device does not support hardware encoding, the SDK automatically uses software encoding and reports the currently used video encoder type through hwEncoderAccelerating in the onLocalVideoStats callback.
|
|
1172
|
+
*/
|
|
1173
|
+
EncodingPreference[EncodingPreference["PreferHardware"] = 1] = "PreferHardware";
|
|
1174
|
+
})(EncodingPreference = exports.EncodingPreference || (exports.EncodingPreference = {}));
|
|
1175
|
+
/**
|
|
1176
|
+
* Advanced options for video encoding.
|
|
1177
|
+
*/
|
|
1178
|
+
class AdvanceOptions {
|
|
1179
|
+
}
|
|
1180
|
+
exports.AdvanceOptions = AdvanceOptions;
|
|
1181
|
+
/**
|
|
1182
|
+
* Video mirror mode.
|
|
1183
|
+
*/
|
|
1184
|
+
var VideoMirrorModeType;
|
|
1185
|
+
(function (VideoMirrorModeType) {
|
|
1186
|
+
/**
|
|
1187
|
+
* 0: The SDK determines the mirror mode.
|
|
1188
|
+
* For the mirror mode of the local video view: If you use a front camera, the SDK enables the mirror mode by default; if you use a rear camera, the SDK disables the mirror mode by default.
|
|
1189
|
+
* For the remote user: The mirror mode is disabled by default.
|
|
1190
|
+
*/
|
|
1191
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeAuto"] = 0] = "VideoMirrorModeAuto";
|
|
1192
|
+
/**
|
|
1193
|
+
* 1: Enable mirror mode.
|
|
1194
|
+
*/
|
|
1195
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeEnabled"] = 1] = "VideoMirrorModeEnabled";
|
|
1196
|
+
/**
|
|
1197
|
+
* 2: Disable mirror mode.
|
|
1198
|
+
*/
|
|
1199
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeDisabled"] = 2] = "VideoMirrorModeDisabled";
|
|
1200
|
+
})(VideoMirrorModeType = exports.VideoMirrorModeType || (exports.VideoMirrorModeType = {}));
|
|
1201
|
+
/**
|
|
1202
|
+
* @ignore
|
|
1203
|
+
*/
|
|
1204
|
+
var CameraFormatType;
|
|
1205
|
+
(function (CameraFormatType) {
|
|
1206
|
+
/**
|
|
1207
|
+
* @ignore
|
|
1208
|
+
*/
|
|
1209
|
+
CameraFormatType[CameraFormatType["CameraFormatNv12"] = 0] = "CameraFormatNv12";
|
|
1210
|
+
/**
|
|
1211
|
+
* @ignore
|
|
1212
|
+
*/
|
|
1213
|
+
CameraFormatType[CameraFormatType["CameraFormatBgra"] = 1] = "CameraFormatBgra";
|
|
1214
|
+
})(CameraFormatType = exports.CameraFormatType || (exports.CameraFormatType = {}));
|
|
1215
|
+
/**
|
|
1216
|
+
* @ignore
|
|
1217
|
+
*/
|
|
1218
|
+
var VideoModuleType;
|
|
1219
|
+
(function (VideoModuleType) {
|
|
1220
|
+
/**
|
|
1221
|
+
* @ignore
|
|
1222
|
+
*/
|
|
1223
|
+
VideoModuleType[VideoModuleType["VideoModuleCapturer"] = 0] = "VideoModuleCapturer";
|
|
1224
|
+
/**
|
|
1225
|
+
* @ignore
|
|
1226
|
+
*/
|
|
1227
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareEncoder"] = 1] = "VideoModuleSoftwareEncoder";
|
|
1228
|
+
/**
|
|
1229
|
+
* @ignore
|
|
1230
|
+
*/
|
|
1231
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareEncoder"] = 2] = "VideoModuleHardwareEncoder";
|
|
1232
|
+
/**
|
|
1233
|
+
* @ignore
|
|
1234
|
+
*/
|
|
1235
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareDecoder"] = 3] = "VideoModuleSoftwareDecoder";
|
|
1236
|
+
/**
|
|
1237
|
+
* @ignore
|
|
1238
|
+
*/
|
|
1239
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareDecoder"] = 4] = "VideoModuleHardwareDecoder";
|
|
1240
|
+
/**
|
|
1241
|
+
* @ignore
|
|
1242
|
+
*/
|
|
1243
|
+
VideoModuleType[VideoModuleType["VideoModuleRenderer"] = 5] = "VideoModuleRenderer";
|
|
1244
|
+
})(VideoModuleType = exports.VideoModuleType || (exports.VideoModuleType = {}));
|
|
1245
|
+
/**
|
|
1246
|
+
* @ignore
|
|
1247
|
+
*/
|
|
1248
|
+
var HdrCapability;
|
|
1249
|
+
(function (HdrCapability) {
|
|
1250
|
+
/**
|
|
1251
|
+
* @ignore
|
|
1252
|
+
*/
|
|
1253
|
+
HdrCapability[HdrCapability["HdrCapabilityUnknown"] = -1] = "HdrCapabilityUnknown";
|
|
1254
|
+
/**
|
|
1255
|
+
* @ignore
|
|
1256
|
+
*/
|
|
1257
|
+
HdrCapability[HdrCapability["HdrCapabilityUnsupported"] = 0] = "HdrCapabilityUnsupported";
|
|
1258
|
+
/**
|
|
1259
|
+
* @ignore
|
|
1260
|
+
*/
|
|
1261
|
+
HdrCapability[HdrCapability["HdrCapabilitySupported"] = 1] = "HdrCapabilitySupported";
|
|
1262
|
+
})(HdrCapability = exports.HdrCapability || (exports.HdrCapability = {}));
|
|
1263
|
+
/**
|
|
1264
|
+
* The bit mask of the codec type.
|
|
1265
|
+
*/
|
|
1266
|
+
var CodecCapMask;
|
|
1267
|
+
(function (CodecCapMask) {
|
|
1268
|
+
/**
|
|
1269
|
+
* (0): The device does not support encoding or decoding.
|
|
1270
|
+
*/
|
|
1271
|
+
CodecCapMask[CodecCapMask["CodecCapMaskNone"] = 0] = "CodecCapMaskNone";
|
|
1272
|
+
/**
|
|
1273
|
+
* (1 << 0): The device supports hardware decoding.
|
|
1274
|
+
*/
|
|
1275
|
+
CodecCapMask[CodecCapMask["CodecCapMaskHwDec"] = 1] = "CodecCapMaskHwDec";
|
|
1276
|
+
/**
|
|
1277
|
+
* (1 << 1): The device supports hardware encoding.
|
|
1278
|
+
*/
|
|
1279
|
+
CodecCapMask[CodecCapMask["CodecCapMaskHwEnc"] = 2] = "CodecCapMaskHwEnc";
|
|
1280
|
+
/**
|
|
1281
|
+
* (1 << 2): The device supports software decoding.
|
|
1282
|
+
*/
|
|
1283
|
+
CodecCapMask[CodecCapMask["CodecCapMaskSwDec"] = 4] = "CodecCapMaskSwDec";
|
|
1284
|
+
/**
|
|
1285
|
+
* (1 << 3): The device supports software ecoding.
|
|
1286
|
+
*/
|
|
1287
|
+
CodecCapMask[CodecCapMask["CodecCapMaskSwEnc"] = 8] = "CodecCapMaskSwEnc";
|
|
1288
|
+
})(CodecCapMask = exports.CodecCapMask || (exports.CodecCapMask = {}));
|
|
1289
|
+
/**
|
|
1290
|
+
* The level of the codec capability.
|
|
1291
|
+
*/
|
|
1292
|
+
class CodecCapLevels {
|
|
1293
|
+
}
|
|
1294
|
+
exports.CodecCapLevels = CodecCapLevels;
|
|
1295
|
+
/**
|
|
1296
|
+
* The codec capability of the SDK.
|
|
1297
|
+
*/
|
|
1298
|
+
class CodecCapInfo {
|
|
1299
|
+
}
|
|
1300
|
+
exports.CodecCapInfo = CodecCapInfo;
|
|
1301
|
+
/**
|
|
1302
|
+
* @ignore
|
|
1303
|
+
*/
|
|
1304
|
+
class FocalLengthInfo {
|
|
1305
|
+
}
|
|
1306
|
+
exports.FocalLengthInfo = FocalLengthInfo;
|
|
1307
|
+
/**
|
|
1308
|
+
* Video encoder configurations.
|
|
1309
|
+
*/
|
|
1310
|
+
class VideoEncoderConfiguration {
|
|
1311
|
+
}
|
|
1312
|
+
exports.VideoEncoderConfiguration = VideoEncoderConfiguration;
|
|
1313
|
+
/**
|
|
1314
|
+
* The configurations for the data stream.
|
|
1315
|
+
*
|
|
1316
|
+
* The following table shows the SDK behaviors under different parameter settings:
|
|
1317
|
+
*/
|
|
1318
|
+
class DataStreamConfig {
|
|
1319
|
+
}
|
|
1320
|
+
exports.DataStreamConfig = DataStreamConfig;
|
|
1321
|
+
/**
|
|
1322
|
+
* The mode in which the video stream is sent.
|
|
1323
|
+
*/
|
|
1324
|
+
var SimulcastStreamMode;
|
|
1325
|
+
(function (SimulcastStreamMode) {
|
|
1326
|
+
/**
|
|
1327
|
+
* -1: By default, do not send the low-quality video stream until a subscription request for the low-quality video stream is received from the receiving end, then automatically start sending low-quality video stream.
|
|
1328
|
+
*/
|
|
1329
|
+
SimulcastStreamMode[SimulcastStreamMode["AutoSimulcastStream"] = -1] = "AutoSimulcastStream";
|
|
1330
|
+
/**
|
|
1331
|
+
* 0: Never send low-quality video stream.
|
|
1332
|
+
*/
|
|
1333
|
+
SimulcastStreamMode[SimulcastStreamMode["DisableSimulcastStream"] = 0] = "DisableSimulcastStream";
|
|
1334
|
+
/**
|
|
1335
|
+
* 1: Always send low-quality video stream.
|
|
1336
|
+
*/
|
|
1337
|
+
SimulcastStreamMode[SimulcastStreamMode["EnableSimulcastStream"] = 1] = "EnableSimulcastStream";
|
|
1338
|
+
})(SimulcastStreamMode = exports.SimulcastStreamMode || (exports.SimulcastStreamMode = {}));
|
|
1339
|
+
/**
|
|
1340
|
+
* The configuration of the low-quality video stream.
|
|
1341
|
+
*/
|
|
1342
|
+
class SimulcastStreamConfig {
|
|
1343
|
+
}
|
|
1344
|
+
exports.SimulcastStreamConfig = SimulcastStreamConfig;
|
|
1345
|
+
/**
|
|
1346
|
+
* @ignore
|
|
1347
|
+
*/
|
|
1348
|
+
var StreamLayerIndex;
|
|
1349
|
+
(function (StreamLayerIndex) {
|
|
1350
|
+
/**
|
|
1351
|
+
* @ignore
|
|
1352
|
+
*/
|
|
1353
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer1"] = 0] = "StreamLayer1";
|
|
1354
|
+
/**
|
|
1355
|
+
* @ignore
|
|
1356
|
+
*/
|
|
1357
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer2"] = 1] = "StreamLayer2";
|
|
1358
|
+
/**
|
|
1359
|
+
* @ignore
|
|
1360
|
+
*/
|
|
1361
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer3"] = 2] = "StreamLayer3";
|
|
1362
|
+
/**
|
|
1363
|
+
* @ignore
|
|
1364
|
+
*/
|
|
1365
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer4"] = 3] = "StreamLayer4";
|
|
1366
|
+
/**
|
|
1367
|
+
* @ignore
|
|
1368
|
+
*/
|
|
1369
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer5"] = 4] = "StreamLayer5";
|
|
1370
|
+
/**
|
|
1371
|
+
* @ignore
|
|
1372
|
+
*/
|
|
1373
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer6"] = 5] = "StreamLayer6";
|
|
1374
|
+
/**
|
|
1375
|
+
* @ignore
|
|
1376
|
+
*/
|
|
1377
|
+
StreamLayerIndex[StreamLayerIndex["StreamLow"] = 6] = "StreamLow";
|
|
1378
|
+
/**
|
|
1379
|
+
* @ignore
|
|
1380
|
+
*/
|
|
1381
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayerCountMax"] = 7] = "StreamLayerCountMax";
|
|
1382
|
+
})(StreamLayerIndex = exports.StreamLayerIndex || (exports.StreamLayerIndex = {}));
|
|
1383
|
+
/**
|
|
1384
|
+
* @ignore
|
|
1385
|
+
*/
|
|
1386
|
+
class StreamLayerConfig {
|
|
1387
|
+
}
|
|
1388
|
+
exports.StreamLayerConfig = StreamLayerConfig;
|
|
1389
|
+
/**
|
|
1390
|
+
* @ignore
|
|
1391
|
+
*/
|
|
1392
|
+
class SimulcastConfig {
|
|
1393
|
+
}
|
|
1394
|
+
exports.SimulcastConfig = SimulcastConfig;
|
|
1395
|
+
/**
|
|
1396
|
+
* The location of the target area relative to the screen or window. If you do not set this parameter, the SDK selects the whole screen or window.
|
|
1397
|
+
*/
|
|
1398
|
+
class Rectangle {
|
|
1399
|
+
}
|
|
1400
|
+
exports.Rectangle = Rectangle;
|
|
1401
|
+
/**
|
|
1402
|
+
* The position and size of the watermark on the screen.
|
|
1403
|
+
*
|
|
1404
|
+
* The position and size of the watermark on the screen are determined by xRatio, yRatio, and widthRatio :
|
|
1405
|
+
* (xRatio, yRatio) refers to the coordinates of the upper left corner of the watermark, which determines the distance from the upper left corner of the watermark to the upper left corner of the screen.
|
|
1406
|
+
* The widthRatio determines the width of the watermark.
|
|
1407
|
+
*/
|
|
1408
|
+
class WatermarkRatio {
|
|
1409
|
+
}
|
|
1410
|
+
exports.WatermarkRatio = WatermarkRatio;
|
|
1411
|
+
/**
|
|
1412
|
+
* Configurations of the watermark image.
|
|
1413
|
+
*/
|
|
1414
|
+
class WatermarkOptions {
|
|
1415
|
+
}
|
|
1416
|
+
exports.WatermarkOptions = WatermarkOptions;
|
|
1417
|
+
/**
|
|
1418
|
+
* Statistics of a call session.
|
|
1419
|
+
*/
|
|
1420
|
+
class RtcStats {
|
|
1421
|
+
}
|
|
1422
|
+
exports.RtcStats = RtcStats;
|
|
1423
|
+
/**
|
|
1424
|
+
* The user role in the interactive live streaming.
|
|
1425
|
+
*/
|
|
1426
|
+
var ClientRoleType;
|
|
1427
|
+
(function (ClientRoleType) {
|
|
1428
|
+
/**
|
|
1429
|
+
* 1: Host. A host can both send and receive streams.
|
|
1430
|
+
*/
|
|
1431
|
+
ClientRoleType[ClientRoleType["ClientRoleBroadcaster"] = 1] = "ClientRoleBroadcaster";
|
|
1432
|
+
/**
|
|
1433
|
+
* 2: (Default) Audience. An audience member can only receive streams.
|
|
1434
|
+
*/
|
|
1435
|
+
ClientRoleType[ClientRoleType["ClientRoleAudience"] = 2] = "ClientRoleAudience";
|
|
1436
|
+
})(ClientRoleType = exports.ClientRoleType || (exports.ClientRoleType = {}));
|
|
1437
|
+
/**
|
|
1438
|
+
* Quality change of the local video in terms of target frame rate and target bit rate since last count.
|
|
1439
|
+
*/
|
|
1440
|
+
var QualityAdaptIndication;
|
|
1441
|
+
(function (QualityAdaptIndication) {
|
|
1442
|
+
/**
|
|
1443
|
+
* 0: The local video quality stays the same.
|
|
1444
|
+
*/
|
|
1445
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptNone"] = 0] = "AdaptNone";
|
|
1446
|
+
/**
|
|
1447
|
+
* 1: The local video quality improves because the network bandwidth increases.
|
|
1448
|
+
*/
|
|
1449
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptUpBandwidth"] = 1] = "AdaptUpBandwidth";
|
|
1450
|
+
/**
|
|
1451
|
+
* 2: The local video quality deteriorates because the network bandwidth decreases.
|
|
1452
|
+
*/
|
|
1453
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptDownBandwidth"] = 2] = "AdaptDownBandwidth";
|
|
1454
|
+
})(QualityAdaptIndication = exports.QualityAdaptIndication || (exports.QualityAdaptIndication = {}));
|
|
1455
|
+
/**
|
|
1456
|
+
* The latency level of an audience member in interactive live streaming. This enum takes effect only when the user role is set to ClientRoleAudience .
|
|
1457
|
+
*/
|
|
1458
|
+
var AudienceLatencyLevelType;
|
|
1459
|
+
(function (AudienceLatencyLevelType) {
|
|
1460
|
+
/**
|
|
1461
|
+
* 1: Low latency.
|
|
1462
|
+
*/
|
|
1463
|
+
AudienceLatencyLevelType[AudienceLatencyLevelType["AudienceLatencyLevelLowLatency"] = 1] = "AudienceLatencyLevelLowLatency";
|
|
1464
|
+
/**
|
|
1465
|
+
* 2: (Default) Ultra low latency.
|
|
1466
|
+
*/
|
|
1467
|
+
AudienceLatencyLevelType[AudienceLatencyLevelType["AudienceLatencyLevelUltraLowLatency"] = 2] = "AudienceLatencyLevelUltraLowLatency";
|
|
1468
|
+
})(AudienceLatencyLevelType = exports.AudienceLatencyLevelType || (exports.AudienceLatencyLevelType = {}));
|
|
1469
|
+
/**
|
|
1470
|
+
* Setting of user role properties.
|
|
1471
|
+
*/
|
|
1472
|
+
class ClientRoleOptions {
|
|
1473
|
+
}
|
|
1474
|
+
exports.ClientRoleOptions = ClientRoleOptions;
|
|
1475
|
+
/**
|
|
1476
|
+
* The Quality of Experience (QoE) of the local user when receiving a remote audio stream.
|
|
1477
|
+
*/
|
|
1478
|
+
var ExperienceQualityType;
|
|
1479
|
+
(function (ExperienceQualityType) {
|
|
1480
|
+
/**
|
|
1481
|
+
* 0: The QoE of the local user is good.
|
|
1482
|
+
*/
|
|
1483
|
+
ExperienceQualityType[ExperienceQualityType["ExperienceQualityGood"] = 0] = "ExperienceQualityGood";
|
|
1484
|
+
/**
|
|
1485
|
+
* 1: The QoE of the local user is poor.
|
|
1486
|
+
*/
|
|
1487
|
+
ExperienceQualityType[ExperienceQualityType["ExperienceQualityBad"] = 1] = "ExperienceQualityBad";
|
|
1488
|
+
})(ExperienceQualityType = exports.ExperienceQualityType || (exports.ExperienceQualityType = {}));
|
|
1489
|
+
/**
|
|
1490
|
+
* Reasons why the QoE of the local user when receiving a remote audio stream is poor.
|
|
1491
|
+
*/
|
|
1492
|
+
var ExperiencePoorReason;
|
|
1493
|
+
(function (ExperiencePoorReason) {
|
|
1494
|
+
/**
|
|
1495
|
+
* 0: No reason, indicating a good QoE of the local user.
|
|
1496
|
+
*/
|
|
1497
|
+
ExperiencePoorReason[ExperiencePoorReason["ExperienceReasonNone"] = 0] = "ExperienceReasonNone";
|
|
1498
|
+
/**
|
|
1499
|
+
* 1: The remote user's network quality is poor.
|
|
1500
|
+
*/
|
|
1501
|
+
ExperiencePoorReason[ExperiencePoorReason["RemoteNetworkQualityPoor"] = 1] = "RemoteNetworkQualityPoor";
|
|
1502
|
+
/**
|
|
1503
|
+
* 2: The local user's network quality is poor.
|
|
1504
|
+
*/
|
|
1505
|
+
ExperiencePoorReason[ExperiencePoorReason["LocalNetworkQualityPoor"] = 2] = "LocalNetworkQualityPoor";
|
|
1506
|
+
/**
|
|
1507
|
+
* 4: The local user's Wi-Fi or mobile network signal is weak.
|
|
1508
|
+
*/
|
|
1509
|
+
ExperiencePoorReason[ExperiencePoorReason["WirelessSignalPoor"] = 4] = "WirelessSignalPoor";
|
|
1510
|
+
/**
|
|
1511
|
+
* 8: The local user enables both Wi-Fi and bluetooth, and their signals interfere with each other. As a result, audio transmission quality is undermined.
|
|
1512
|
+
*/
|
|
1513
|
+
ExperiencePoorReason[ExperiencePoorReason["WifiBluetoothCoexist"] = 8] = "WifiBluetoothCoexist";
|
|
1514
|
+
})(ExperiencePoorReason = exports.ExperiencePoorReason || (exports.ExperiencePoorReason = {}));
|
|
1515
|
+
/**
|
|
1516
|
+
* AI noise suppression modes.
|
|
1517
|
+
*/
|
|
1518
|
+
var AudioAinsMode;
|
|
1519
|
+
(function (AudioAinsMode) {
|
|
1520
|
+
/**
|
|
1521
|
+
* 0: (Default) Balance mode. This mode allows for a balanced performance on noice suppression and time delay.
|
|
1522
|
+
*/
|
|
1523
|
+
AudioAinsMode[AudioAinsMode["AinsModeBalanced"] = 0] = "AinsModeBalanced";
|
|
1524
|
+
/**
|
|
1525
|
+
* 1: Aggressive mode. In scenarios where high performance on noise suppression is required, such as live streaming outdoor events, this mode reduces nosie more dramatically, but may sometimes affect the original character of the audio.
|
|
1526
|
+
*/
|
|
1527
|
+
AudioAinsMode[AudioAinsMode["AinsModeAggressive"] = 1] = "AinsModeAggressive";
|
|
1528
|
+
/**
|
|
1529
|
+
* 2: Aggressive mode with low latency. The noise suppression delay of this mode is about only half of that of the balance and aggressive modes. It is suitable for scenarios that have high requirements on noise suppression with low latency, such as sing together online in real time.
|
|
1530
|
+
*/
|
|
1531
|
+
AudioAinsMode[AudioAinsMode["AinsModeUltralowlatency"] = 2] = "AinsModeUltralowlatency";
|
|
1532
|
+
})(AudioAinsMode = exports.AudioAinsMode || (exports.AudioAinsMode = {}));
|
|
1533
|
+
/**
|
|
1534
|
+
* The audio profile.
|
|
1535
|
+
*/
|
|
1536
|
+
var AudioProfileType;
|
|
1537
|
+
(function (AudioProfileType) {
|
|
1538
|
+
/**
|
|
1539
|
+
* 0: The default audio profile.
|
|
1540
|
+
* For the interactive streaming profile: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
|
|
1541
|
+
* For the communication profile:
|
|
1542
|
+
* Windows: A sample rate of 16 kHz, audio encoding, mono, and a bitrate of up to 16 Kbps. macOS: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
|
|
1543
|
+
*/
|
|
1544
|
+
AudioProfileType[AudioProfileType["AudioProfileDefault"] = 0] = "AudioProfileDefault";
|
|
1545
|
+
/**
|
|
1546
|
+
* 1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
|
|
1547
|
+
*/
|
|
1548
|
+
AudioProfileType[AudioProfileType["AudioProfileSpeechStandard"] = 1] = "AudioProfileSpeechStandard";
|
|
1549
|
+
/**
|
|
1550
|
+
* 2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 64 Kbps.
|
|
1551
|
+
*/
|
|
1552
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicStandard"] = 2] = "AudioProfileMusicStandard";
|
|
1553
|
+
/**
|
|
1554
|
+
* 3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 80 Kbps. To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
|
|
1555
|
+
*/
|
|
1556
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicStandardStereo"] = 3] = "AudioProfileMusicStandardStereo";
|
|
1557
|
+
/**
|
|
1558
|
+
* 4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 96 Kbps.
|
|
1559
|
+
*/
|
|
1560
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicHighQuality"] = 4] = "AudioProfileMusicHighQuality";
|
|
1561
|
+
/**
|
|
1562
|
+
* 5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 128 Kbps. To implement stereo audio, you also need to call setAdvancedAudioOptions and set audioProcessingChannels to AudioProcessingStereo in AdvancedAudioOptions.
|
|
1563
|
+
*/
|
|
1564
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicHighQualityStereo"] = 5] = "AudioProfileMusicHighQualityStereo";
|
|
1565
|
+
/**
|
|
1566
|
+
* 6: A sample rate of 16 kHz, audio encoding, mono, and Acoustic Echo Cancellation (AEC) enabled.
|
|
1567
|
+
*/
|
|
1568
|
+
AudioProfileType[AudioProfileType["AudioProfileIot"] = 6] = "AudioProfileIot";
|
|
1569
|
+
/**
|
|
1570
|
+
* Enumerator boundary.
|
|
1571
|
+
*/
|
|
1572
|
+
AudioProfileType[AudioProfileType["AudioProfileNum"] = 7] = "AudioProfileNum";
|
|
1573
|
+
})(AudioProfileType = exports.AudioProfileType || (exports.AudioProfileType = {}));
|
|
1574
|
+
/**
|
|
1575
|
+
* The audio scenarios.
|
|
1576
|
+
*/
|
|
1577
|
+
var AudioScenarioType;
|
|
1578
|
+
(function (AudioScenarioType) {
|
|
1579
|
+
/**
|
|
1580
|
+
* 0: (Default) Automatic scenario match, where the SDK chooses the appropriate audio quality according to the user role and audio route.
|
|
1581
|
+
*/
|
|
1582
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioDefault"] = 0] = "AudioScenarioDefault";
|
|
1583
|
+
/**
|
|
1584
|
+
* 3: High-quality audio scenario, where users mainly play music. For example, instrument tutoring.
|
|
1585
|
+
*/
|
|
1586
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioGameStreaming"] = 3] = "AudioScenarioGameStreaming";
|
|
1587
|
+
/**
|
|
1588
|
+
* 5: Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. For example, education scenarios.
|
|
1589
|
+
*/
|
|
1590
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioChatroom"] = 5] = "AudioScenarioChatroom";
|
|
1591
|
+
/**
|
|
1592
|
+
* 7: Real-time chorus scenario, where users have good network conditions and require ultra-low latency.
|
|
1593
|
+
*/
|
|
1594
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioChorus"] = 7] = "AudioScenarioChorus";
|
|
1595
|
+
/**
|
|
1596
|
+
* 8: Meeting scenario that mainly contains the human voice.
|
|
1597
|
+
*/
|
|
1598
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioMeeting"] = 8] = "AudioScenarioMeeting";
|
|
1599
|
+
/**
|
|
1600
|
+
* @ignore
|
|
1601
|
+
*/
|
|
1602
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioAiServer"] = 9] = "AudioScenarioAiServer";
|
|
1603
|
+
/**
|
|
1604
|
+
* 10: AI conversation scenario, which is only applicable to scenarios where the user interacts with the conversational AI agent created by.
|
|
1605
|
+
*/
|
|
1606
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioAiClient"] = 10] = "AudioScenarioAiClient";
|
|
1607
|
+
/**
|
|
1608
|
+
* The number of enumerations.
|
|
1609
|
+
*/
|
|
1610
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioNum"] = 11] = "AudioScenarioNum";
|
|
1611
|
+
})(AudioScenarioType = exports.AudioScenarioType || (exports.AudioScenarioType = {}));
|
|
1612
|
+
/**
|
|
1613
|
+
* The format of the video frame.
|
|
1614
|
+
*/
|
|
1615
|
+
class VideoFormat {
|
|
1616
|
+
}
|
|
1617
|
+
exports.VideoFormat = VideoFormat;
|
|
1618
|
+
/**
|
|
1619
|
+
* The content hint for screen sharing.
|
|
1620
|
+
*/
|
|
1621
|
+
var VideoContentHint;
|
|
1622
|
+
(function (VideoContentHint) {
|
|
1623
|
+
/**
|
|
1624
|
+
* (Default) No content hint.
|
|
1625
|
+
*/
|
|
1626
|
+
VideoContentHint[VideoContentHint["ContentHintNone"] = 0] = "ContentHintNone";
|
|
1627
|
+
/**
|
|
1628
|
+
* Motion-intensive content. Choose this option if you prefer smoothness or when you are sharing a video clip, movie, or video game.
|
|
1629
|
+
*/
|
|
1630
|
+
VideoContentHint[VideoContentHint["ContentHintMotion"] = 1] = "ContentHintMotion";
|
|
1631
|
+
/**
|
|
1632
|
+
* Motionless content. Choose this option if you prefer sharpness or when you are sharing a picture, PowerPoint slides, or texts.
|
|
1633
|
+
*/
|
|
1634
|
+
VideoContentHint[VideoContentHint["ContentHintDetails"] = 2] = "ContentHintDetails";
|
|
1635
|
+
})(VideoContentHint = exports.VideoContentHint || (exports.VideoContentHint = {}));
|
|
1636
|
+
/**
|
|
1637
|
+
* The screen sharing scenario.
|
|
1638
|
+
*/
|
|
1639
|
+
var ScreenScenarioType;
|
|
1640
|
+
(function (ScreenScenarioType) {
|
|
1641
|
+
/**
|
|
1642
|
+
* 1: (Default) Document. This scenario prioritizes the video quality of screen sharing and reduces the latency of the shared video for the receiver. If you share documents, slides, and tables, you can set this scenario.
|
|
1643
|
+
*/
|
|
1644
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioDocument"] = 1] = "ScreenScenarioDocument";
|
|
1645
|
+
/**
|
|
1646
|
+
* 2: Game. This scenario prioritizes the smoothness of screen sharing. If you share games, you can set this scenario.
|
|
1647
|
+
*/
|
|
1648
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioGaming"] = 2] = "ScreenScenarioGaming";
|
|
1649
|
+
/**
|
|
1650
|
+
* 3: Video. This scenario prioritizes the smoothness of screen sharing. If you share movies or live videos, you can set this scenario.
|
|
1651
|
+
*/
|
|
1652
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioVideo"] = 3] = "ScreenScenarioVideo";
|
|
1653
|
+
/**
|
|
1654
|
+
* 4: Remote control. This scenario prioritizes the video quality of screen sharing and reduces the latency of the shared video for the receiver. If you share the device desktop being remotely controlled, you can set this scenario.
|
|
1655
|
+
*/
|
|
1656
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioRdc"] = 4] = "ScreenScenarioRdc";
|
|
1657
|
+
})(ScreenScenarioType = exports.ScreenScenarioType || (exports.ScreenScenarioType = {}));
|
|
1658
|
+
/**
|
|
1659
|
+
* The video application scenarios.
|
|
1660
|
+
*/
|
|
1661
|
+
var VideoApplicationScenarioType;
|
|
1662
|
+
(function (VideoApplicationScenarioType) {
|
|
1663
|
+
/**
|
|
1664
|
+
* 0: (Default) The general scenario.
|
|
1665
|
+
*/
|
|
1666
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioGeneral"] = 0] = "ApplicationScenarioGeneral";
|
|
1667
|
+
/**
|
|
1668
|
+
* ApplicationScenarioMeeting (1) is suitable for meeting scenarios. The SDK automatically enables the following strategies:
|
|
1669
|
+
* In meeting scenarios where low-quality video streams are required to have a high bitrate, the SDK automatically enables multiple technologies used to deal with network congestions, to enhance the performance of the low-quality streams and to ensure the smooth reception by subscribers.
|
|
1670
|
+
* The SDK monitors the number of subscribers to the high-quality video stream in real time and dynamically adjusts its configuration based on the number of subscribers.
|
|
1671
|
+
* If nobody subscribers to the high-quality stream, the SDK automatically reduces its bitrate and frame rate to save upstream bandwidth.
|
|
1672
|
+
* If someone subscribes to the high-quality stream, the SDK resets the high-quality stream to the VideoEncoderConfiguration configuration used in the most recent calling of setVideoEncoderConfiguration. If no configuration has been set by the user previously, the following values are used:
|
|
1673
|
+
* Resolution: 1280 × 720
|
|
1674
|
+
* Frame rate: 15 fps
|
|
1675
|
+
* Bitrate: 1600 Kbps
|
|
1676
|
+
* The SDK monitors the number of subscribers to the low-quality video stream in real time and dynamically enables or disables it based on the number of subscribers. If the user has called setDualStreamMode to set that never send low-quality video stream (DisableSimulcastStream), the dynamic adjustment of the low-quality stream in meeting scenarios will not take effect.
|
|
1677
|
+
* If nobody subscribes to the low-quality stream, the SDK automatically disables it to save upstream bandwidth.
|
|
1678
|
+
* If someone subscribes to the low-quality stream, the SDK enables the low-quality stream and resets it to the SimulcastStreamConfig configuration used in the most recent calling of setDualStreamMode. If no configuration has been set by the user previously, the following values are used:
|
|
1679
|
+
* Resolution: 480 × 272
|
|
1680
|
+
* Frame rate: 15 fps
|
|
1681
|
+
* Bitrate: 500 Kbps 1: The meeting scenario.
|
|
1682
|
+
*/
|
|
1683
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioMeeting"] = 1] = "ApplicationScenarioMeeting";
|
|
1684
|
+
/**
|
|
1685
|
+
* ApplicationScenario1v1 (2) This is applicable to the scenario. To meet the requirements for low latency and high-quality video in this scenario, the SDK optimizes its strategies, improving performance in terms of video quality, first frame rendering, latency on mid-to-low-end devices, and smoothness under weak network conditions. 2: 1v1 video call scenario.
|
|
1686
|
+
*/
|
|
1687
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenario1v1"] = 2] = "ApplicationScenario1v1";
|
|
1688
|
+
/**
|
|
1689
|
+
* ApplicationScenarioLiveshow (3) This is applicable to the scenario. In this scenario, fast video rendering and high image quality are crucial. The SDK implements several performance optimizations, including automatically enabling accelerated audio and video frame rendering to minimize first-frame latency (no need to call enableInstantMediaRendering), and B-frame encoding to achieve better image quality and bandwidth efficiency. The SDK also provides enhanced video quality and smooth playback, even in poor network conditions or on lower-end devices. 3. Live show scenario.
|
|
1690
|
+
*/
|
|
1691
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioLiveshow"] = 3] = "ApplicationScenarioLiveshow";
|
|
1692
|
+
})(VideoApplicationScenarioType = exports.VideoApplicationScenarioType || (exports.VideoApplicationScenarioType = {}));
|
|
1693
|
+
/**
|
|
1694
|
+
* @ignore
|
|
1695
|
+
*/
|
|
1696
|
+
var VideoQoePreferenceType;
|
|
1697
|
+
(function (VideoQoePreferenceType) {
|
|
1698
|
+
/**
|
|
1699
|
+
* @ignore
|
|
1700
|
+
*/
|
|
1701
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceBalance"] = 1] = "VideoQoePreferenceBalance";
|
|
1702
|
+
/**
|
|
1703
|
+
* @ignore
|
|
1704
|
+
*/
|
|
1705
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceDelayFirst"] = 2] = "VideoQoePreferenceDelayFirst";
|
|
1706
|
+
/**
|
|
1707
|
+
* @ignore
|
|
1708
|
+
*/
|
|
1709
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferencePictureQualityFirst"] = 3] = "VideoQoePreferencePictureQualityFirst";
|
|
1710
|
+
/**
|
|
1711
|
+
* @ignore
|
|
1712
|
+
*/
|
|
1713
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceFluencyFirst"] = 4] = "VideoQoePreferenceFluencyFirst";
|
|
1714
|
+
})(VideoQoePreferenceType = exports.VideoQoePreferenceType || (exports.VideoQoePreferenceType = {}));
|
|
1715
|
+
/**
|
|
1716
|
+
* The brightness level of the video image captured by the local camera.
|
|
1717
|
+
*/
|
|
1718
|
+
var CaptureBrightnessLevelType;
|
|
1719
|
+
(function (CaptureBrightnessLevelType) {
|
|
1720
|
+
/**
|
|
1721
|
+
* @ignore
|
|
1722
|
+
*/
|
|
1723
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelInvalid"] = -1] = "CaptureBrightnessLevelInvalid";
|
|
1724
|
+
/**
|
|
1725
|
+
* @ignore
|
|
1726
|
+
*/
|
|
1727
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelNormal"] = 0] = "CaptureBrightnessLevelNormal";
|
|
1728
|
+
/**
|
|
1729
|
+
* @ignore
|
|
1730
|
+
*/
|
|
1731
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelBright"] = 1] = "CaptureBrightnessLevelBright";
|
|
1732
|
+
/**
|
|
1733
|
+
* @ignore
|
|
1734
|
+
*/
|
|
1735
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelDark"] = 2] = "CaptureBrightnessLevelDark";
|
|
1736
|
+
})(CaptureBrightnessLevelType = exports.CaptureBrightnessLevelType || (exports.CaptureBrightnessLevelType = {}));
|
|
1737
|
+
/**
|
|
1738
|
+
* @ignore
|
|
1739
|
+
*/
|
|
1740
|
+
var CameraStabilizationMode;
|
|
1741
|
+
(function (CameraStabilizationMode) {
|
|
1742
|
+
/**
|
|
1743
|
+
* @ignore
|
|
1744
|
+
*/
|
|
1745
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeOff"] = -1] = "CameraStabilizationModeOff";
|
|
1746
|
+
/**
|
|
1747
|
+
* @ignore
|
|
1748
|
+
*/
|
|
1749
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeAuto"] = 0] = "CameraStabilizationModeAuto";
|
|
1750
|
+
/**
|
|
1751
|
+
* @ignore
|
|
1752
|
+
*/
|
|
1753
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel1"] = 1] = "CameraStabilizationModeLevel1";
|
|
1754
|
+
/**
|
|
1755
|
+
* @ignore
|
|
1756
|
+
*/
|
|
1757
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel2"] = 2] = "CameraStabilizationModeLevel2";
|
|
1758
|
+
/**
|
|
1759
|
+
* @ignore
|
|
1760
|
+
*/
|
|
1761
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel3"] = 3] = "CameraStabilizationModeLevel3";
|
|
1762
|
+
/**
|
|
1763
|
+
* @ignore
|
|
1764
|
+
*/
|
|
1765
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeMaxLevel"] = 3] = "CameraStabilizationModeMaxLevel";
|
|
1766
|
+
})(CameraStabilizationMode = exports.CameraStabilizationMode || (exports.CameraStabilizationMode = {}));
|
|
1767
|
+
/**
|
|
1768
|
+
* The state of the local audio.
|
|
1769
|
+
*/
|
|
1770
|
+
var LocalAudioStreamState;
|
|
1771
|
+
(function (LocalAudioStreamState) {
|
|
1772
|
+
/**
|
|
1773
|
+
* 0: The local audio is in the initial state.
|
|
1774
|
+
*/
|
|
1775
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateStopped"] = 0] = "LocalAudioStreamStateStopped";
|
|
1776
|
+
/**
|
|
1777
|
+
* 1: The local audio capturing device starts successfully.
|
|
1778
|
+
*/
|
|
1779
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateRecording"] = 1] = "LocalAudioStreamStateRecording";
|
|
1780
|
+
/**
|
|
1781
|
+
* 2: The first audio frame encodes successfully.
|
|
1782
|
+
*/
|
|
1783
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateEncoding"] = 2] = "LocalAudioStreamStateEncoding";
|
|
1784
|
+
/**
|
|
1785
|
+
* 3: The local audio fails to start.
|
|
1786
|
+
*/
|
|
1787
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateFailed"] = 3] = "LocalAudioStreamStateFailed";
|
|
1788
|
+
})(LocalAudioStreamState = exports.LocalAudioStreamState || (exports.LocalAudioStreamState = {}));
|
|
1789
|
+
/**
|
|
1790
|
+
* Reasons for local audio state changes.
|
|
1791
|
+
*/
|
|
1792
|
+
var LocalAudioStreamReason;
|
|
1793
|
+
(function (LocalAudioStreamReason) {
|
|
1794
|
+
/**
|
|
1795
|
+
* 0: The local audio is normal.
|
|
1796
|
+
*/
|
|
1797
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonOk"] = 0] = "LocalAudioStreamReasonOk";
|
|
1798
|
+
/**
|
|
1799
|
+
* 1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
|
|
1800
|
+
*/
|
|
1801
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonFailure"] = 1] = "LocalAudioStreamReasonFailure";
|
|
1802
|
+
/**
|
|
1803
|
+
* 2: No permission to use the local audio capturing device. Remind your users to grant permission. Deprecated: This enumerator is deprecated. Please use RecordAudio in the onPermissionError callback instead.
|
|
1804
|
+
*/
|
|
1805
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceNoPermission"] = 2] = "LocalAudioStreamReasonDeviceNoPermission";
|
|
1806
|
+
/**
|
|
1807
|
+
* @ignore
|
|
1808
|
+
*/
|
|
1809
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceBusy"] = 3] = "LocalAudioStreamReasonDeviceBusy";
|
|
1810
|
+
/**
|
|
1811
|
+
* 4: The local audio capture fails.
|
|
1812
|
+
*/
|
|
1813
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordFailure"] = 4] = "LocalAudioStreamReasonRecordFailure";
|
|
1814
|
+
/**
|
|
1815
|
+
* 5: The local audio encoding fails.
|
|
1816
|
+
*/
|
|
1817
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonEncodeFailure"] = 5] = "LocalAudioStreamReasonEncodeFailure";
|
|
1818
|
+
/**
|
|
1819
|
+
* 6: No local audio capture device. Remind your users to check whether the microphone is connected to the device properly in the control panel of the device or if the microphone is working properly.
|
|
1820
|
+
*/
|
|
1821
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoRecordingDevice"] = 6] = "LocalAudioStreamReasonNoRecordingDevice";
|
|
1822
|
+
/**
|
|
1823
|
+
* 7: No local audio capture device. Remind your users to check whether the speaker is connected to the device properly in the control panel of the device or if the speaker is working properly.
|
|
1824
|
+
*/
|
|
1825
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoPlayoutDevice"] = 7] = "LocalAudioStreamReasonNoPlayoutDevice";
|
|
1826
|
+
/**
|
|
1827
|
+
* @ignore
|
|
1828
|
+
*/
|
|
1829
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonInterrupted"] = 8] = "LocalAudioStreamReasonInterrupted";
|
|
1830
|
+
/**
|
|
1831
|
+
* 9: (Windows only) The ID of the local audio-capture device is invalid. Prompt the user to check the audio capture device ID.
|
|
1832
|
+
*/
|
|
1833
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordInvalidId"] = 9] = "LocalAudioStreamReasonRecordInvalidId";
|
|
1834
|
+
/**
|
|
1835
|
+
* 10: (Windows only) The ID of the local audio-playback device is invalid. Prompt the user to check the audio playback device ID.
|
|
1836
|
+
*/
|
|
1837
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonPlayoutInvalidId"] = 10] = "LocalAudioStreamReasonPlayoutInvalidId";
|
|
1838
|
+
})(LocalAudioStreamReason = exports.LocalAudioStreamReason || (exports.LocalAudioStreamReason = {}));
|
|
1839
|
+
/**
|
|
1840
|
+
* Local video state types.
|
|
1841
|
+
*/
|
|
1842
|
+
var LocalVideoStreamState;
|
|
1843
|
+
(function (LocalVideoStreamState) {
|
|
1844
|
+
/**
|
|
1845
|
+
* 0: The local video is in the initial state.
|
|
1846
|
+
*/
|
|
1847
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateStopped"] = 0] = "LocalVideoStreamStateStopped";
|
|
1848
|
+
/**
|
|
1849
|
+
* 1: The local video capturing device starts successfully.
|
|
1850
|
+
*/
|
|
1851
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateCapturing"] = 1] = "LocalVideoStreamStateCapturing";
|
|
1852
|
+
/**
|
|
1853
|
+
* 2: The first video frame is successfully encoded.
|
|
1854
|
+
*/
|
|
1855
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateEncoding"] = 2] = "LocalVideoStreamStateEncoding";
|
|
1856
|
+
/**
|
|
1857
|
+
* 3: Fails to start the local video.
|
|
1858
|
+
*/
|
|
1859
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateFailed"] = 3] = "LocalVideoStreamStateFailed";
|
|
1860
|
+
})(LocalVideoStreamState = exports.LocalVideoStreamState || (exports.LocalVideoStreamState = {}));
|
|
1861
|
+
/**
|
|
1862
|
+
* Reasons for local video state changes.
|
|
1863
|
+
*/
|
|
1864
|
+
var LocalVideoStreamReason;
|
|
1865
|
+
(function (LocalVideoStreamReason) {
|
|
1866
|
+
/**
|
|
1867
|
+
* 0: The local video is normal.
|
|
1868
|
+
*/
|
|
1869
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonOk"] = 0] = "LocalVideoStreamReasonOk";
|
|
1870
|
+
/**
|
|
1871
|
+
* 1: No specified reason for the local video failure.
|
|
1872
|
+
*/
|
|
1873
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonFailure"] = 1] = "LocalVideoStreamReasonFailure";
|
|
1874
|
+
/**
|
|
1875
|
+
* 2: No permission to use the local video capturing device. Prompt the user to grant permissions and rejoin the channel. Deprecated: This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
|
|
1876
|
+
*/
|
|
1877
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNoPermission"] = 2] = "LocalVideoStreamReasonDeviceNoPermission";
|
|
1878
|
+
/**
|
|
1879
|
+
* 3: The local video capturing device is in use. Prompt the user to check if the camera is being used by another app, or try to rejoin the channel.
|
|
1880
|
+
*/
|
|
1881
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceBusy"] = 3] = "LocalVideoStreamReasonDeviceBusy";
|
|
1882
|
+
/**
|
|
1883
|
+
* 4: The local video capture fails. Prompt the user to check whether the video capture device is working properly, whether the camera is used by another app, or try to rejoin the channel.
|
|
1884
|
+
*/
|
|
1885
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureFailure"] = 4] = "LocalVideoStreamReasonCaptureFailure";
|
|
1886
|
+
/**
|
|
1887
|
+
* 5: The local video encoding fails.
|
|
1888
|
+
*/
|
|
1889
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCodecNotSupport"] = 5] = "LocalVideoStreamReasonCodecNotSupport";
|
|
1890
|
+
/**
|
|
1891
|
+
* @ignore
|
|
1892
|
+
*/
|
|
1893
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureInbackground"] = 6] = "LocalVideoStreamReasonCaptureInbackground";
|
|
1894
|
+
/**
|
|
1895
|
+
* @ignore
|
|
1896
|
+
*/
|
|
1897
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureMultipleForegroundApps"] = 7] = "LocalVideoStreamReasonCaptureMultipleForegroundApps";
|
|
1898
|
+
/**
|
|
1899
|
+
* 8: Fails to find a local video capture device. Remind the user to check whether the camera is connected to the device properly or the camera is working properly, and then to rejoin the channel.
|
|
1900
|
+
*/
|
|
1901
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNotFound"] = 8] = "LocalVideoStreamReasonDeviceNotFound";
|
|
1902
|
+
/**
|
|
1903
|
+
* 9: The video capture device currently in use is disconnected (such as being unplugged).
|
|
1904
|
+
*/
|
|
1905
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceDisconnected"] = 9] = "LocalVideoStreamReasonDeviceDisconnected";
|
|
1906
|
+
/**
|
|
1907
|
+
* 10: The SDK cannot find the video device in the video device list. Check whether the ID of the video device is valid.
|
|
1908
|
+
*/
|
|
1909
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInvalidId"] = 10] = "LocalVideoStreamReasonDeviceInvalidId";
|
|
1910
|
+
/**
|
|
1911
|
+
* @ignore
|
|
1912
|
+
*/
|
|
1913
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInterrupt"] = 14] = "LocalVideoStreamReasonDeviceInterrupt";
|
|
1914
|
+
/**
|
|
1915
|
+
* @ignore
|
|
1916
|
+
*/
|
|
1917
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceFatalError"] = 15] = "LocalVideoStreamReasonDeviceFatalError";
|
|
1918
|
+
/**
|
|
1919
|
+
* 101: The current video capture device is unavailable due to excessive system pressure.
|
|
1920
|
+
*/
|
|
1921
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceSystemPressure"] = 101] = "LocalVideoStreamReasonDeviceSystemPressure";
|
|
1922
|
+
/**
|
|
1923
|
+
* 11: The shared window is minimized when you call the startScreenCaptureByWindowId method to share a window. The SDK cannot share a minimized window. Please prompt the user to unminimize the shared window.
|
|
1924
|
+
*/
|
|
1925
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowMinimized"] = 11] = "LocalVideoStreamReasonScreenCaptureWindowMinimized";
|
|
1926
|
+
/**
|
|
1927
|
+
* 12: The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing. Common scenarios reporting this error code:
|
|
1928
|
+
* The local user closes the shared window.
|
|
1929
|
+
* The local user shows some slides in full-screen mode first, and then shares the windows of the slides. After the user exits full-screen mode, the SDK reports this error code.
|
|
1930
|
+
* The local user watches a web video or reads a web document in full-screen mode first, and then shares the window of the web video or document. After the user exits full-screen mode, the SDK reports this error code.
|
|
1931
|
+
*/
|
|
1932
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowClosed"] = 12] = "LocalVideoStreamReasonScreenCaptureWindowClosed";
|
|
1933
|
+
/**
|
|
1934
|
+
* 13: (Windows only) The window being shared is overlapped by another window, so the overlapped area is blacked out by the SDK during window sharing.
|
|
1935
|
+
*/
|
|
1936
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowOccluded"] = 13] = "LocalVideoStreamReasonScreenCaptureWindowOccluded";
|
|
1937
|
+
/**
|
|
1938
|
+
* @ignore
|
|
1939
|
+
*/
|
|
1940
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowNotSupported"] = 20] = "LocalVideoStreamReasonScreenCaptureWindowNotSupported";
|
|
1941
|
+
/**
|
|
1942
|
+
* 21: (Windows and Android only) The currently captured window has no data.
|
|
1943
|
+
*/
|
|
1944
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureFailure"] = 21] = "LocalVideoStreamReasonScreenCaptureFailure";
|
|
1945
|
+
/**
|
|
1946
|
+
* 22: No permission for screen capture.
|
|
1947
|
+
*/
|
|
1948
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureNoPermission"] = 22] = "LocalVideoStreamReasonScreenCaptureNoPermission";
|
|
1949
|
+
/**
|
|
1950
|
+
* 24: (Windows only) An unexpected error occurred during screen sharing (possibly due to window blocking failure), resulting in decreased performance, but the screen sharing process itself was not affected.
|
|
1951
|
+
*/
|
|
1952
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureAutoFallback"] = 24] = "LocalVideoStreamReasonScreenCaptureAutoFallback";
|
|
1953
|
+
/**
|
|
1954
|
+
* 25: (Windows only) The window for the current screen capture is hidden and not visible on the current screen.
|
|
1955
|
+
*/
|
|
1956
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowHidden"] = 25] = "LocalVideoStreamReasonScreenCaptureWindowHidden";
|
|
1957
|
+
/**
|
|
1958
|
+
* 26: (Windows only) The window for screen capture has been restored from hidden state.
|
|
1959
|
+
*/
|
|
1960
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden"] = 26] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden";
|
|
1961
|
+
/**
|
|
1962
|
+
* 27: The window for screen capture has been restored from the minimized state.
|
|
1963
|
+
*/
|
|
1964
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized"] = 27] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized";
|
|
1965
|
+
/**
|
|
1966
|
+
* 28: (Windows only) Screen capture has been paused. Common scenarios reporting this error code: The current screen may have been switched to a secure desktop, such as a UAC dialog box or Winlogon desktop.
|
|
1967
|
+
*/
|
|
1968
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCapturePaused"] = 28] = "LocalVideoStreamReasonScreenCapturePaused";
|
|
1969
|
+
/**
|
|
1970
|
+
* 29: (Windows only) Screen capture has resumed from paused state.
|
|
1971
|
+
*/
|
|
1972
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureResumed"] = 29] = "LocalVideoStreamReasonScreenCaptureResumed";
|
|
1973
|
+
/**
|
|
1974
|
+
* 30: The displayer used for screen capture is disconnected. The current screen sharing has been paused. Prompt the user to restart the screen sharing.
|
|
1975
|
+
*/
|
|
1976
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureDisplayDisconnected"] = 30] = "LocalVideoStreamReasonScreenCaptureDisplayDisconnected";
|
|
1977
|
+
})(LocalVideoStreamReason = exports.LocalVideoStreamReason || (exports.LocalVideoStreamReason = {}));
|
|
1978
|
+
/**
|
|
1979
|
+
* Remote audio states.
|
|
1980
|
+
*/
|
|
1981
|
+
var RemoteAudioState;
|
|
1982
|
+
(function (RemoteAudioState) {
|
|
1983
|
+
/**
|
|
1984
|
+
* 0: The local audio is in the initial state. The SDK reports this state in the case of RemoteAudioReasonLocalMuted, RemoteAudioReasonRemoteMuted or RemoteAudioReasonRemoteOffline.
|
|
1985
|
+
*/
|
|
1986
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateStopped"] = 0] = "RemoteAudioStateStopped";
|
|
1987
|
+
/**
|
|
1988
|
+
* 1: The first remote audio packet is received.
|
|
1989
|
+
*/
|
|
1990
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateStarting"] = 1] = "RemoteAudioStateStarting";
|
|
1991
|
+
/**
|
|
1992
|
+
* 2: The remote audio stream is decoded and plays normally. The SDK reports this state in the case of RemoteAudioReasonNetworkRecovery, RemoteAudioReasonLocalUnmuted or RemoteAudioReasonRemoteUnmuted.
|
|
1993
|
+
*/
|
|
1994
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateDecoding"] = 2] = "RemoteAudioStateDecoding";
|
|
1995
|
+
/**
|
|
1996
|
+
* 3: The remote audio is frozen. The SDK reports this state in the case of RemoteAudioReasonNetworkCongestion.
|
|
1997
|
+
*/
|
|
1998
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateFrozen"] = 3] = "RemoteAudioStateFrozen";
|
|
1999
|
+
/**
|
|
2000
|
+
* 4: The remote audio fails to start. The SDK reports this state in the case of RemoteAudioReasonInternal.
|
|
2001
|
+
*/
|
|
2002
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateFailed"] = 4] = "RemoteAudioStateFailed";
|
|
2003
|
+
})(RemoteAudioState = exports.RemoteAudioState || (exports.RemoteAudioState = {}));
|
|
2004
|
+
/**
|
|
2005
|
+
* The reason for the remote audio state change.
|
|
2006
|
+
*/
|
|
2007
|
+
var RemoteAudioStateReason;
|
|
2008
|
+
(function (RemoteAudioStateReason) {
|
|
2009
|
+
/**
|
|
2010
|
+
* 0: The SDK reports this reason when the audio state changes.
|
|
2011
|
+
*/
|
|
2012
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonInternal"] = 0] = "RemoteAudioReasonInternal";
|
|
2013
|
+
/**
|
|
2014
|
+
* 1: Network congestion.
|
|
2015
|
+
*/
|
|
2016
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNetworkCongestion"] = 1] = "RemoteAudioReasonNetworkCongestion";
|
|
2017
|
+
/**
|
|
2018
|
+
* 2: Network recovery.
|
|
2019
|
+
*/
|
|
2020
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNetworkRecovery"] = 2] = "RemoteAudioReasonNetworkRecovery";
|
|
2021
|
+
/**
|
|
2022
|
+
* 3: The local user stops receiving the remote audio stream or disables the audio module.
|
|
2023
|
+
*/
|
|
2024
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalMuted"] = 3] = "RemoteAudioReasonLocalMuted";
|
|
2025
|
+
/**
|
|
2026
|
+
* 4: The local user resumes receiving the remote audio stream or enables the audio module.
|
|
2027
|
+
*/
|
|
2028
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalUnmuted"] = 4] = "RemoteAudioReasonLocalUnmuted";
|
|
2029
|
+
/**
|
|
2030
|
+
* 5: The remote user stops sending the audio stream or disables the audio module.
|
|
2031
|
+
*/
|
|
2032
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteMuted"] = 5] = "RemoteAudioReasonRemoteMuted";
|
|
2033
|
+
/**
|
|
2034
|
+
* 6: The remote user resumes sending the audio stream or enables the audio module.
|
|
2035
|
+
*/
|
|
2036
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteUnmuted"] = 6] = "RemoteAudioReasonRemoteUnmuted";
|
|
2037
|
+
/**
|
|
2038
|
+
* 7: The remote user leaves the channel.
|
|
2039
|
+
*/
|
|
2040
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteOffline"] = 7] = "RemoteAudioReasonRemoteOffline";
|
|
2041
|
+
/**
|
|
2042
|
+
* @ignore
|
|
2043
|
+
*/
|
|
2044
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNoPacketReceive"] = 8] = "RemoteAudioReasonNoPacketReceive";
|
|
2045
|
+
/**
|
|
2046
|
+
* @ignore
|
|
2047
|
+
*/
|
|
2048
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalPlayFailed"] = 9] = "RemoteAudioReasonLocalPlayFailed";
|
|
2049
|
+
})(RemoteAudioStateReason = exports.RemoteAudioStateReason || (exports.RemoteAudioStateReason = {}));
|
|
2050
|
+
/**
|
|
2051
|
+
* The state of the remote video stream.
|
|
2052
|
+
*/
|
|
2053
|
+
var RemoteVideoState;
|
|
2054
|
+
(function (RemoteVideoState) {
|
|
2055
|
+
/**
|
|
2056
|
+
* 0: The remote video is in the initial state. The SDK reports this state in the case of RemoteVideoStateReasonLocalMuted, RemoteVideoStateReasonRemoteMuted, or RemoteVideoStateReasonRemoteOffline.
|
|
2057
|
+
*/
|
|
2058
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateStopped"] = 0] = "RemoteVideoStateStopped";
|
|
2059
|
+
/**
|
|
2060
|
+
* 1: The first remote video packet is received.
|
|
2061
|
+
*/
|
|
2062
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateStarting"] = 1] = "RemoteVideoStateStarting";
|
|
2063
|
+
/**
|
|
2064
|
+
* 2: The remote video stream is decoded and plays normally. The SDK reports this state in the case of RemoteVideoStateReasonNetworkRecovery, RemoteVideoStateReasonLocalUnmuted, or RemoteVideoStateReasonRemoteUnmuted.
|
|
2065
|
+
*/
|
|
2066
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateDecoding"] = 2] = "RemoteVideoStateDecoding";
|
|
2067
|
+
/**
|
|
2068
|
+
* 3: The remote video is frozen. The SDK reports this state in the case of RemoteVideoStateReasonNetworkCongestion.
|
|
2069
|
+
*/
|
|
2070
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateFrozen"] = 3] = "RemoteVideoStateFrozen";
|
|
2071
|
+
/**
|
|
2072
|
+
* 4: The remote video fails to start. The SDK reports this state in the case of RemoteVideoStateReasonInternal.
|
|
2073
|
+
*/
|
|
2074
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateFailed"] = 4] = "RemoteVideoStateFailed";
|
|
2075
|
+
})(RemoteVideoState = exports.RemoteVideoState || (exports.RemoteVideoState = {}));
|
|
2076
|
+
/**
|
|
2077
|
+
* The reason for the remote video state change.
|
|
2078
|
+
*/
|
|
2079
|
+
var RemoteVideoStateReason;
|
|
2080
|
+
(function (RemoteVideoStateReason) {
|
|
2081
|
+
/**
|
|
2082
|
+
* 0: The SDK reports this reason when the video state changes.
|
|
2083
|
+
*/
|
|
2084
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonInternal"] = 0] = "RemoteVideoStateReasonInternal";
|
|
2085
|
+
/**
|
|
2086
|
+
* 1: Network congestion.
|
|
2087
|
+
*/
|
|
2088
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonNetworkCongestion"] = 1] = "RemoteVideoStateReasonNetworkCongestion";
|
|
2089
|
+
/**
|
|
2090
|
+
* 2: Network is recovered.
|
|
2091
|
+
*/
|
|
2092
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonNetworkRecovery"] = 2] = "RemoteVideoStateReasonNetworkRecovery";
|
|
2093
|
+
/**
|
|
2094
|
+
* 3: The local user stops receiving the remote video stream or disables the video module.
|
|
2095
|
+
*/
|
|
2096
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonLocalMuted"] = 3] = "RemoteVideoStateReasonLocalMuted";
|
|
2097
|
+
/**
|
|
2098
|
+
* 4: The local user resumes receiving the remote video stream or enables the video module.
|
|
2099
|
+
*/
|
|
2100
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonLocalUnmuted"] = 4] = "RemoteVideoStateReasonLocalUnmuted";
|
|
2101
|
+
/**
|
|
2102
|
+
* 5: The remote user stops sending the video stream or disables the video module.
|
|
2103
|
+
*/
|
|
2104
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteMuted"] = 5] = "RemoteVideoStateReasonRemoteMuted";
|
|
2105
|
+
/**
|
|
2106
|
+
* 6: The remote user resumes sending the video stream or enables the video module.
|
|
2107
|
+
*/
|
|
2108
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteUnmuted"] = 6] = "RemoteVideoStateReasonRemoteUnmuted";
|
|
2109
|
+
/**
|
|
2110
|
+
* 7: The remote user leaves the channel.
|
|
2111
|
+
*/
|
|
2112
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteOffline"] = 7] = "RemoteVideoStateReasonRemoteOffline";
|
|
2113
|
+
/**
|
|
2114
|
+
* 8: The remote audio-and-video stream falls back to the audio-only stream due to poor network conditions.
|
|
2115
|
+
*/
|
|
2116
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallback"] = 8] = "RemoteVideoStateReasonAudioFallback";
|
|
2117
|
+
/**
|
|
2118
|
+
* 9: The remote audio-only stream switches back to the audio-and-video stream after the network conditions improve.
|
|
2119
|
+
*/
|
|
2120
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallbackRecovery"] = 9] = "RemoteVideoStateReasonAudioFallbackRecovery";
|
|
2121
|
+
/**
|
|
2122
|
+
* @ignore
|
|
2123
|
+
*/
|
|
2124
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonVideoStreamTypeChangeToLow"] = 10] = "RemoteVideoStateReasonVideoStreamTypeChangeToLow";
|
|
2125
|
+
/**
|
|
2126
|
+
* @ignore
|
|
2127
|
+
*/
|
|
2128
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonVideoStreamTypeChangeToHigh"] = 11] = "RemoteVideoStateReasonVideoStreamTypeChangeToHigh";
|
|
2129
|
+
/**
|
|
2130
|
+
* @ignore
|
|
2131
|
+
*/
|
|
2132
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonSdkInBackground"] = 12] = "RemoteVideoStateReasonSdkInBackground";
|
|
2133
|
+
/**
|
|
2134
|
+
* 13: The local video decoder does not support decoding the remote video stream.
|
|
2135
|
+
*/
|
|
2136
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonCodecNotSupport"] = 13] = "RemoteVideoStateReasonCodecNotSupport";
|
|
2137
|
+
})(RemoteVideoStateReason = exports.RemoteVideoStateReason || (exports.RemoteVideoStateReason = {}));
|
|
2138
|
+
/**
|
|
2139
|
+
* @ignore
|
|
2140
|
+
*/
|
|
2141
|
+
var RemoteUserState;
|
|
2142
|
+
(function (RemoteUserState) {
|
|
2143
|
+
/**
|
|
2144
|
+
* @ignore
|
|
2145
|
+
*/
|
|
2146
|
+
RemoteUserState[RemoteUserState["UserStateMuteAudio"] = 1] = "UserStateMuteAudio";
|
|
2147
|
+
/**
|
|
2148
|
+
* @ignore
|
|
2149
|
+
*/
|
|
2150
|
+
RemoteUserState[RemoteUserState["UserStateMuteVideo"] = 2] = "UserStateMuteVideo";
|
|
2151
|
+
/**
|
|
2152
|
+
* @ignore
|
|
2153
|
+
*/
|
|
2154
|
+
RemoteUserState[RemoteUserState["UserStateEnableVideo"] = 16] = "UserStateEnableVideo";
|
|
2155
|
+
/**
|
|
2156
|
+
* @ignore
|
|
2157
|
+
*/
|
|
2158
|
+
RemoteUserState[RemoteUserState["UserStateEnableLocalVideo"] = 256] = "UserStateEnableLocalVideo";
|
|
2159
|
+
})(RemoteUserState = exports.RemoteUserState || (exports.RemoteUserState = {}));
|
|
2160
|
+
/**
|
|
2161
|
+
* @ignore
|
|
2162
|
+
*/
|
|
2163
|
+
class VideoTrackInfo {
|
|
2164
|
+
}
|
|
2165
|
+
exports.VideoTrackInfo = VideoTrackInfo;
|
|
2166
|
+
/**
|
|
2167
|
+
* @ignore
|
|
2168
|
+
*/
|
|
2169
|
+
var RemoteVideoDownscaleLevel;
|
|
2170
|
+
(function (RemoteVideoDownscaleLevel) {
|
|
2171
|
+
/**
|
|
2172
|
+
* @ignore
|
|
2173
|
+
*/
|
|
2174
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevelNone"] = 0] = "RemoteVideoDownscaleLevelNone";
|
|
2175
|
+
/**
|
|
2176
|
+
* @ignore
|
|
2177
|
+
*/
|
|
2178
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel1"] = 1] = "RemoteVideoDownscaleLevel1";
|
|
2179
|
+
/**
|
|
2180
|
+
* @ignore
|
|
2181
|
+
*/
|
|
2182
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel2"] = 2] = "RemoteVideoDownscaleLevel2";
|
|
2183
|
+
/**
|
|
2184
|
+
* @ignore
|
|
2185
|
+
*/
|
|
2186
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel3"] = 3] = "RemoteVideoDownscaleLevel3";
|
|
2187
|
+
/**
|
|
2188
|
+
* @ignore
|
|
2189
|
+
*/
|
|
2190
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel4"] = 4] = "RemoteVideoDownscaleLevel4";
|
|
2191
|
+
})(RemoteVideoDownscaleLevel = exports.RemoteVideoDownscaleLevel || (exports.RemoteVideoDownscaleLevel = {}));
|
|
2192
|
+
/**
|
|
2193
|
+
* The volume information of users.
|
|
2194
|
+
*/
|
|
2195
|
+
class AudioVolumeInfo {
|
|
2196
|
+
}
|
|
2197
|
+
exports.AudioVolumeInfo = AudioVolumeInfo;
|
|
2198
|
+
/**
|
|
2199
|
+
* The audio device information.
|
|
2200
|
+
*/
|
|
2201
|
+
class DeviceInfo {
|
|
2202
|
+
}
|
|
2203
|
+
exports.DeviceInfo = DeviceInfo;
|
|
2204
|
+
/**
|
|
2205
|
+
* @ignore
|
|
2206
|
+
*/
|
|
2207
|
+
class Packet {
|
|
2208
|
+
}
|
|
2209
|
+
exports.Packet = Packet;
|
|
2210
|
+
/**
|
|
2211
|
+
* The audio sampling rate of the stream to be pushed to the CDN.
|
|
2212
|
+
*/
|
|
2213
|
+
var AudioSampleRateType;
|
|
2214
|
+
(function (AudioSampleRateType) {
|
|
2215
|
+
/**
|
|
2216
|
+
* 32000: 32 kHz
|
|
2217
|
+
*/
|
|
2218
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate32000"] = 32000] = "AudioSampleRate32000";
|
|
2219
|
+
/**
|
|
2220
|
+
* 44100: 44.1 kHz
|
|
2221
|
+
*/
|
|
2222
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate44100"] = 44100] = "AudioSampleRate44100";
|
|
2223
|
+
/**
|
|
2224
|
+
* 48000: (Default) 48 kHz
|
|
2225
|
+
*/
|
|
2226
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate48000"] = 48000] = "AudioSampleRate48000";
|
|
2227
|
+
})(AudioSampleRateType = exports.AudioSampleRateType || (exports.AudioSampleRateType = {}));
|
|
2228
|
+
/**
|
|
2229
|
+
* The codec type of the output video.
|
|
2230
|
+
*/
|
|
2231
|
+
var VideoCodecTypeForStream;
|
|
2232
|
+
(function (VideoCodecTypeForStream) {
|
|
2233
|
+
/**
|
|
2234
|
+
* 1: (Default) H.264.
|
|
2235
|
+
*/
|
|
2236
|
+
VideoCodecTypeForStream[VideoCodecTypeForStream["VideoCodecH264ForStream"] = 1] = "VideoCodecH264ForStream";
|
|
2237
|
+
/**
|
|
2238
|
+
* 2: H.265.
|
|
2239
|
+
*/
|
|
2240
|
+
VideoCodecTypeForStream[VideoCodecTypeForStream["VideoCodecH265ForStream"] = 2] = "VideoCodecH265ForStream";
|
|
2241
|
+
})(VideoCodecTypeForStream = exports.VideoCodecTypeForStream || (exports.VideoCodecTypeForStream = {}));
|
|
2242
|
+
/**
|
|
2243
|
+
* Video codec profile types.
|
|
2244
|
+
*/
|
|
2245
|
+
var VideoCodecProfileType;
|
|
2246
|
+
(function (VideoCodecProfileType) {
|
|
2247
|
+
/**
|
|
2248
|
+
* 66: Baseline video codec profile; generally used for video calls on mobile phones.
|
|
2249
|
+
*/
|
|
2250
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileBaseline"] = 66] = "VideoCodecProfileBaseline";
|
|
2251
|
+
/**
|
|
2252
|
+
* 77: Main video codec profile; generally used in mainstream electronics such as MP4 players, portable video players, PSP, and iPads.
|
|
2253
|
+
*/
|
|
2254
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileMain"] = 77] = "VideoCodecProfileMain";
|
|
2255
|
+
/**
|
|
2256
|
+
* 100: (Default) High video codec profile; generally used in high-resolution live streaming or television.
|
|
2257
|
+
*/
|
|
2258
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileHigh"] = 100] = "VideoCodecProfileHigh";
|
|
2259
|
+
})(VideoCodecProfileType = exports.VideoCodecProfileType || (exports.VideoCodecProfileType = {}));
|
|
2260
|
+
/**
|
|
2261
|
+
* Self-defined audio codec profile.
|
|
2262
|
+
*/
|
|
2263
|
+
var AudioCodecProfileType;
|
|
2264
|
+
(function (AudioCodecProfileType) {
|
|
2265
|
+
/**
|
|
2266
|
+
* 0: (Default) LC-AAC.
|
|
2267
|
+
*/
|
|
2268
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileLcAac"] = 0] = "AudioCodecProfileLcAac";
|
|
2269
|
+
/**
|
|
2270
|
+
* 1: HE-AAC.
|
|
2271
|
+
*/
|
|
2272
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileHeAac"] = 1] = "AudioCodecProfileHeAac";
|
|
2273
|
+
/**
|
|
2274
|
+
* 2: HE-AAC v2.
|
|
2275
|
+
*/
|
|
2276
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileHeAacV2"] = 2] = "AudioCodecProfileHeAacV2";
|
|
2277
|
+
})(AudioCodecProfileType = exports.AudioCodecProfileType || (exports.AudioCodecProfileType = {}));
|
|
2278
|
+
/**
|
|
2279
|
+
* Local audio statistics.
|
|
2280
|
+
*/
|
|
2281
|
+
class LocalAudioStats {
|
|
2282
|
+
}
|
|
2283
|
+
exports.LocalAudioStats = LocalAudioStats;
|
|
2284
|
+
/**
|
|
2285
|
+
* States of the Media Push.
|
|
2286
|
+
*/
|
|
2287
|
+
var RtmpStreamPublishState;
|
|
2288
|
+
(function (RtmpStreamPublishState) {
|
|
2289
|
+
/**
|
|
2290
|
+
* 0: The Media Push has not started or has ended.
|
|
2291
|
+
*/
|
|
2292
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateIdle"] = 0] = "RtmpStreamPublishStateIdle";
|
|
2293
|
+
/**
|
|
2294
|
+
* 1: The streaming server and CDN server are being connected.
|
|
2295
|
+
*/
|
|
2296
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateConnecting"] = 1] = "RtmpStreamPublishStateConnecting";
|
|
2297
|
+
/**
|
|
2298
|
+
* 2: The RTMP or RTMPS streaming publishes. The SDK successfully publishes the RTMP or RTMPS streaming and returns this state.
|
|
2299
|
+
*/
|
|
2300
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateRunning"] = 2] = "RtmpStreamPublishStateRunning";
|
|
2301
|
+
/**
|
|
2302
|
+
* 3: The RTMP or RTMPS streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP or RTMPS streaming and returns this state.
|
|
2303
|
+
* If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning (2) returns.
|
|
2304
|
+
* If the streaming does not resume within 60 seconds or server errors occur, RtmpStreamPublishStateFailure (4) returns. If you feel that 60 seconds is too long, you can also actively try to reconnect.
|
|
2305
|
+
*/
|
|
2306
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateRecovering"] = 3] = "RtmpStreamPublishStateRecovering";
|
|
2307
|
+
/**
|
|
2308
|
+
* 4: The RTMP or RTMPS streaming fails. After a failure, you can troubleshoot the cause of the error through the returned error code.
|
|
2309
|
+
*/
|
|
2310
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateFailure"] = 4] = "RtmpStreamPublishStateFailure";
|
|
2311
|
+
/**
|
|
2312
|
+
* 5: The SDK is disconnecting from the Agora streaming server and CDN. When you call stopRtmpStream to stop the Media Push normally, the SDK reports the Media Push state as RtmpStreamPublishStateDisconnecting and RtmpStreamPublishStateIdle in sequence.
|
|
2313
|
+
*/
|
|
2314
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateDisconnecting"] = 5] = "RtmpStreamPublishStateDisconnecting";
|
|
2315
|
+
})(RtmpStreamPublishState = exports.RtmpStreamPublishState || (exports.RtmpStreamPublishState = {}));
|
|
2316
|
+
/**
|
|
2317
|
+
* Reasons for changes in the status of RTMP or RTMPS streaming.
|
|
2318
|
+
*/
|
|
2319
|
+
var RtmpStreamPublishReason;
|
|
2320
|
+
(function (RtmpStreamPublishReason) {
|
|
2321
|
+
/**
|
|
2322
|
+
* 0: The RTMP or RTMPS streaming has not started or has ended.
|
|
2323
|
+
*/
|
|
2324
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonOk"] = 0] = "RtmpStreamPublishReasonOk";
|
|
2325
|
+
/**
|
|
2326
|
+
* 1: Invalid argument used. Check the parameter setting.
|
|
2327
|
+
*/
|
|
2328
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidArgument"] = 1] = "RtmpStreamPublishReasonInvalidArgument";
|
|
2329
|
+
/**
|
|
2330
|
+
* 2: The RTMP or RTMPS streaming is encrypted and cannot be published.
|
|
2331
|
+
*/
|
|
2332
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonEncryptedStreamNotAllowed"] = 2] = "RtmpStreamPublishReasonEncryptedStreamNotAllowed";
|
|
2333
|
+
/**
|
|
2334
|
+
* 3: Timeout for the RTMP or RTMPS streaming.
|
|
2335
|
+
*/
|
|
2336
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonConnectionTimeout"] = 3] = "RtmpStreamPublishReasonConnectionTimeout";
|
|
2337
|
+
/**
|
|
2338
|
+
* 4: An error occurs in Agora's streaming server.
|
|
2339
|
+
*/
|
|
2340
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInternalServerError"] = 4] = "RtmpStreamPublishReasonInternalServerError";
|
|
2341
|
+
/**
|
|
2342
|
+
* 5: An error occurs in the CDN server.
|
|
2343
|
+
*/
|
|
2344
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonRtmpServerError"] = 5] = "RtmpStreamPublishReasonRtmpServerError";
|
|
2345
|
+
/**
|
|
2346
|
+
* 6: The RTMP or RTMPS streaming publishes too frequently.
|
|
2347
|
+
*/
|
|
2348
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTooOften"] = 6] = "RtmpStreamPublishReasonTooOften";
|
|
2349
|
+
/**
|
|
2350
|
+
* 7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
|
2351
|
+
*/
|
|
2352
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonReachLimit"] = 7] = "RtmpStreamPublishReasonReachLimit";
|
|
2353
|
+
/**
|
|
2354
|
+
* 8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
|
|
2355
|
+
*/
|
|
2356
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotAuthorized"] = 8] = "RtmpStreamPublishReasonNotAuthorized";
|
|
2357
|
+
/**
|
|
2358
|
+
* 9: Agora's server fails to find the RTMP or RTMPS streaming.
|
|
2359
|
+
*/
|
|
2360
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonStreamNotFound"] = 9] = "RtmpStreamPublishReasonStreamNotFound";
|
|
2361
|
+
/**
|
|
2362
|
+
* 10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
|
|
2363
|
+
*/
|
|
2364
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonFormatNotSupported"] = 10] = "RtmpStreamPublishReasonFormatNotSupported";
|
|
2365
|
+
/**
|
|
2366
|
+
* 11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
|
|
2367
|
+
*/
|
|
2368
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotBroadcaster"] = 11] = "RtmpStreamPublishReasonNotBroadcaster";
|
|
2369
|
+
/**
|
|
2370
|
+
* 13: The updateRtmpTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic.
|
|
2371
|
+
*/
|
|
2372
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTranscodingNoMixStream"] = 13] = "RtmpStreamPublishReasonTranscodingNoMixStream";
|
|
2373
|
+
/**
|
|
2374
|
+
* 14: Errors occurred in the host's network.
|
|
2375
|
+
*/
|
|
2376
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNetDown"] = 14] = "RtmpStreamPublishReasonNetDown";
|
|
2377
|
+
/**
|
|
2378
|
+
* @ignore
|
|
2379
|
+
*/
|
|
2380
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidAppid"] = 15] = "RtmpStreamPublishReasonInvalidAppid";
|
|
2381
|
+
/**
|
|
2382
|
+
* 16: Your project does not have permission to use streaming services.
|
|
2383
|
+
*/
|
|
2384
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidPrivilege"] = 16] = "RtmpStreamPublishReasonInvalidPrivilege";
|
|
2385
|
+
/**
|
|
2386
|
+
* @ignore
|
|
2387
|
+
*/
|
|
2388
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamUnpublishReasonOk"] = 100] = "RtmpStreamUnpublishReasonOk";
|
|
2389
|
+
})(RtmpStreamPublishReason = exports.RtmpStreamPublishReason || (exports.RtmpStreamPublishReason = {}));
|
|
2390
|
+
/**
|
|
2391
|
+
* Events during the Media Push.
|
|
2392
|
+
*/
|
|
2393
|
+
var RtmpStreamingEvent;
|
|
2394
|
+
(function (RtmpStreamingEvent) {
|
|
2395
|
+
/**
|
|
2396
|
+
* 1: An error occurs when you add a background image or a watermark image in the Media Push.
|
|
2397
|
+
*/
|
|
2398
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventFailedLoadImage"] = 1] = "RtmpStreamingEventFailedLoadImage";
|
|
2399
|
+
/**
|
|
2400
|
+
* 2: The streaming URL is already being used for Media Push. If you want to start new streaming, use a new streaming URL.
|
|
2401
|
+
*/
|
|
2402
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventUrlAlreadyInUse"] = 2] = "RtmpStreamingEventUrlAlreadyInUse";
|
|
2403
|
+
/**
|
|
2404
|
+
* 3: The feature is not supported.
|
|
2405
|
+
*/
|
|
2406
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventAdvancedFeatureNotSupport"] = 3] = "RtmpStreamingEventAdvancedFeatureNotSupport";
|
|
2407
|
+
/**
|
|
2408
|
+
* 4: Reserved.
|
|
2409
|
+
*/
|
|
2410
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventRequestTooOften"] = 4] = "RtmpStreamingEventRequestTooOften";
|
|
2411
|
+
})(RtmpStreamingEvent = exports.RtmpStreamingEvent || (exports.RtmpStreamingEvent = {}));
|
|
2412
|
+
/**
|
|
2413
|
+
* Image properties.
|
|
2414
|
+
*
|
|
2415
|
+
* This class sets the properties of the watermark and background images in the live video.
|
|
2416
|
+
*/
|
|
2417
|
+
class RtcImage {
|
|
2418
|
+
}
|
|
2419
|
+
exports.RtcImage = RtcImage;
|
|
2420
|
+
/**
|
|
2421
|
+
* The configuration for advanced features of the RTMP or RTMPS streaming with transcoding.
|
|
2422
|
+
*
|
|
2423
|
+
* If you want to enable the advanced features of streaming with transcoding, contact.
|
|
2424
|
+
*/
|
|
2425
|
+
class LiveStreamAdvancedFeature {
|
|
2426
|
+
}
|
|
2427
|
+
exports.LiveStreamAdvancedFeature = LiveStreamAdvancedFeature;
|
|
2428
|
+
/**
|
|
2429
|
+
* Connection states.
|
|
2430
|
+
*/
|
|
2431
|
+
var ConnectionStateType;
|
|
2432
|
+
(function (ConnectionStateType) {
|
|
2433
|
+
/**
|
|
2434
|
+
* 1: The SDK is disconnected from the Agora edge server. The state indicates the SDK is in one of the following phases:
|
|
2435
|
+
* Theinitial state before calling the joinChannel method.
|
|
2436
|
+
* The app calls the leaveChannel method.
|
|
2437
|
+
*/
|
|
2438
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateDisconnected"] = 1] = "ConnectionStateDisconnected";
|
|
2439
|
+
/**
|
|
2440
|
+
* 2: The SDK is connecting to the Agora edge server. This state indicates that the SDK is establishing a connection with the specified channel after the app calls joinChannel.
|
|
2441
|
+
* If the SDK successfully joins the channel, it triggers the onConnectionStateChanged callback and the connection state switches to ConnectionStateConnected.
|
|
2442
|
+
* After the connection is established, the SDK also initializes the media and triggers onJoinChannelSuccess when everything is ready.
|
|
2443
|
+
*/
|
|
2444
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateConnecting"] = 2] = "ConnectionStateConnecting";
|
|
2445
|
+
/**
|
|
2446
|
+
* 3: The SDK is connected to the Agora edge server. This state also indicates that the user has joined a channel and can now publish or subscribe to a media stream in the channel. If the connection to the channel is lost because, for example, if the network is down or switched, the SDK automatically tries to reconnect and triggers onConnectionStateChanged callback, notifying that the current network state becomes ConnectionStateReconnecting.
|
|
2447
|
+
*/
|
|
2448
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateConnected"] = 3] = "ConnectionStateConnected";
|
|
2449
|
+
/**
|
|
2450
|
+
* 4: The SDK keeps reconnecting to the Agora edge server. The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
|
|
2451
|
+
* If the SDK cannot rejoin the channel within 10 seconds, it triggers onConnectionLost, stays in the ConnectionStateReconnecting state, and keeps rejoining the channel.
|
|
2452
|
+
* If the SDK fails to rejoin the channel 20 minutes after being disconnected from the Agora edge server, the SDK triggers the onConnectionStateChanged callback, switches to the ConnectionStateFailed state, and stops rejoining the channel.
|
|
2453
|
+
*/
|
|
2454
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateReconnecting"] = 4] = "ConnectionStateReconnecting";
|
|
2455
|
+
/**
|
|
2456
|
+
* 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates that the SDK stops trying to rejoin the channel. You must call leaveChannel to leave the channel.
|
|
2457
|
+
* You can call joinChannel to rejoin the channel.
|
|
2458
|
+
* If the SDK is banned from joining the channel by the Agora edge server through the RESTful API, the SDK triggers the onConnectionStateChanged callback.
|
|
2459
|
+
*/
|
|
2460
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateFailed"] = 5] = "ConnectionStateFailed";
|
|
2461
|
+
})(ConnectionStateType = exports.ConnectionStateType || (exports.ConnectionStateType = {}));
|
|
2462
|
+
/**
|
|
2463
|
+
* Transcoding configurations of each host.
|
|
2464
|
+
*/
|
|
2465
|
+
class TranscodingUser {
|
|
2466
|
+
}
|
|
2467
|
+
exports.TranscodingUser = TranscodingUser;
|
|
2468
|
+
/**
|
|
2469
|
+
* Transcoding configurations for Media Push.
|
|
2470
|
+
*/
|
|
2471
|
+
class LiveTranscoding {
|
|
2472
|
+
}
|
|
2473
|
+
exports.LiveTranscoding = LiveTranscoding;
|
|
2474
|
+
/**
|
|
2475
|
+
* The video streams for local video mixing.
|
|
2476
|
+
*/
|
|
2477
|
+
class TranscodingVideoStream {
|
|
2478
|
+
}
|
|
2479
|
+
exports.TranscodingVideoStream = TranscodingVideoStream;
|
|
2480
|
+
/**
|
|
2481
|
+
* The configuration of the video mixing on the local client.
|
|
2482
|
+
*/
|
|
2483
|
+
class LocalTranscoderConfiguration {
|
|
2484
|
+
}
|
|
2485
|
+
exports.LocalTranscoderConfiguration = LocalTranscoderConfiguration;
|
|
2486
|
+
/**
|
|
2487
|
+
* The error code of the local video mixing failure.
|
|
2488
|
+
*/
|
|
2489
|
+
var VideoTranscoderError;
|
|
2490
|
+
(function (VideoTranscoderError) {
|
|
2491
|
+
/**
|
|
2492
|
+
* 1: The selected video source has not started video capture. You need to create a video track for it and start video capture.
|
|
2493
|
+
*/
|
|
2494
|
+
VideoTranscoderError[VideoTranscoderError["VtErrVideoSourceNotReady"] = 1] = "VtErrVideoSourceNotReady";
|
|
2495
|
+
/**
|
|
2496
|
+
* 2: The video source type is invalid. You need to re-specify the supported video source type.
|
|
2497
|
+
*/
|
|
2498
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidVideoSourceType"] = 2] = "VtErrInvalidVideoSourceType";
|
|
2499
|
+
/**
|
|
2500
|
+
* 3: The image path is invalid. You need to re-specify the correct image path.
|
|
2501
|
+
*/
|
|
2502
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidImagePath"] = 3] = "VtErrInvalidImagePath";
|
|
2503
|
+
/**
|
|
2504
|
+
* 4: The image format is invalid. Make sure the image format is one of PNG, JPEG, or GIF.
|
|
2505
|
+
*/
|
|
2506
|
+
VideoTranscoderError[VideoTranscoderError["VtErrUnsupportImageFormat"] = 4] = "VtErrUnsupportImageFormat";
|
|
2507
|
+
/**
|
|
2508
|
+
* 5: The video encoding resolution after video mixing is invalid.
|
|
2509
|
+
*/
|
|
2510
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidLayout"] = 5] = "VtErrInvalidLayout";
|
|
2511
|
+
/**
|
|
2512
|
+
* 20: Unknown internal error.
|
|
2513
|
+
*/
|
|
2514
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInternal"] = 20] = "VtErrInternal";
|
|
2515
|
+
})(VideoTranscoderError = exports.VideoTranscoderError || (exports.VideoTranscoderError = {}));
|
|
2516
|
+
/**
|
|
2517
|
+
* The source of the audio streams that are mixed locally.
|
|
2518
|
+
*/
|
|
2519
|
+
class MixedAudioStream {
|
|
2520
|
+
}
|
|
2521
|
+
exports.MixedAudioStream = MixedAudioStream;
|
|
2522
|
+
/**
|
|
2523
|
+
* The configurations for mixing the lcoal audio.
|
|
2524
|
+
*/
|
|
2525
|
+
class LocalAudioMixerConfiguration {
|
|
2526
|
+
}
|
|
2527
|
+
exports.LocalAudioMixerConfiguration = LocalAudioMixerConfiguration;
|
|
2528
|
+
/**
|
|
2529
|
+
* Configurations of the last-mile network test.
|
|
2530
|
+
*/
|
|
2531
|
+
class LastmileProbeConfig {
|
|
2532
|
+
}
|
|
2533
|
+
exports.LastmileProbeConfig = LastmileProbeConfig;
|
|
2534
|
+
/**
|
|
2535
|
+
* The status of the last-mile probe test.
|
|
2536
|
+
*/
|
|
2537
|
+
var LastmileProbeResultState;
|
|
2538
|
+
(function (LastmileProbeResultState) {
|
|
2539
|
+
/**
|
|
2540
|
+
* 1: The last-mile network probe test is complete.
|
|
2541
|
+
*/
|
|
2542
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultComplete"] = 1] = "LastmileProbeResultComplete";
|
|
2543
|
+
/**
|
|
2544
|
+
* 2: The last-mile network probe test is incomplete because the bandwidth estimation is not available due to limited test resources. One possible reason is that testing resources are temporarily limited.
|
|
2545
|
+
*/
|
|
2546
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultIncompleteNoBwe"] = 2] = "LastmileProbeResultIncompleteNoBwe";
|
|
2547
|
+
/**
|
|
2548
|
+
* 3: The last-mile network probe test is not carried out. Probably due to poor network conditions.
|
|
2549
|
+
*/
|
|
2550
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultUnavailable"] = 3] = "LastmileProbeResultUnavailable";
|
|
2551
|
+
})(LastmileProbeResultState = exports.LastmileProbeResultState || (exports.LastmileProbeResultState = {}));
|
|
2552
|
+
/**
|
|
2553
|
+
* Results of the uplink or downlink last-mile network test.
|
|
2554
|
+
*/
|
|
2555
|
+
class LastmileProbeOneWayResult {
|
|
2556
|
+
}
|
|
2557
|
+
exports.LastmileProbeOneWayResult = LastmileProbeOneWayResult;
|
|
2558
|
+
/**
|
|
2559
|
+
* Results of the uplink and downlink last-mile network tests.
|
|
2560
|
+
*/
|
|
2561
|
+
class LastmileProbeResult {
|
|
2562
|
+
}
|
|
2563
|
+
exports.LastmileProbeResult = LastmileProbeResult;
|
|
2564
|
+
/**
|
|
2565
|
+
* Reasons causing the change of the connection state.
|
|
2566
|
+
*/
|
|
2567
|
+
var ConnectionChangedReasonType;
|
|
2568
|
+
(function (ConnectionChangedReasonType) {
|
|
2569
|
+
/**
|
|
2570
|
+
* 0: The SDK is connecting to the Agora edge server.
|
|
2571
|
+
*/
|
|
2572
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedConnecting"] = 0] = "ConnectionChangedConnecting";
|
|
2573
|
+
/**
|
|
2574
|
+
* 1: The SDK has joined the channel successfully.
|
|
2575
|
+
*/
|
|
2576
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedJoinSuccess"] = 1] = "ConnectionChangedJoinSuccess";
|
|
2577
|
+
/**
|
|
2578
|
+
* 2: The connection between the SDK and the Agora edge server is interrupted.
|
|
2579
|
+
*/
|
|
2580
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInterrupted"] = 2] = "ConnectionChangedInterrupted";
|
|
2581
|
+
/**
|
|
2582
|
+
* 3: The connection between the SDK and the Agora edge server is banned by the Agora edge server. For example, when a user is kicked out of the channel, this status will be returned.
|
|
2583
|
+
*/
|
|
2584
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedBannedByServer"] = 3] = "ConnectionChangedBannedByServer";
|
|
2585
|
+
/**
|
|
2586
|
+
* 4: The SDK fails to join the channel. When the SDK fails to join the channel for more than 20 minutes, this code will be returned and the SDK stops reconnecting to the channel. You need to prompt the user to try to switch to another network and rejoin the channel.
|
|
2587
|
+
*/
|
|
2588
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedJoinFailed"] = 4] = "ConnectionChangedJoinFailed";
|
|
2589
|
+
/**
|
|
2590
|
+
* 5: The SDK has left the channel.
|
|
2591
|
+
*/
|
|
2592
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLeaveChannel"] = 5] = "ConnectionChangedLeaveChannel";
|
|
2593
|
+
/**
|
|
2594
|
+
* 6: The App ID is invalid. You need to rejoin the channel with a valid APP ID and make sure the App ID you are using is consistent with the one generated in the Agora Console.
|
|
2595
|
+
*/
|
|
2596
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidAppId"] = 6] = "ConnectionChangedInvalidAppId";
|
|
2597
|
+
/**
|
|
2598
|
+
* 7: Invalid channel name. Rejoin the channel with a valid channel name. A valid channel name is a string of up to 64 bytes in length. Supported characters (89 characters in total):
|
|
2599
|
+
* All lowercase English letters: a to z.
|
|
2600
|
+
* All uppercase English letters: A to Z.
|
|
2601
|
+
* All numeric characters: 0 to 9.
|
|
2602
|
+
* "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
|
|
2603
|
+
*/
|
|
2604
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidChannelName"] = 7] = "ConnectionChangedInvalidChannelName";
|
|
2605
|
+
/**
|
|
2606
|
+
* 8: Invalid token. Possible reasons are as follows:
|
|
2607
|
+
* The App Certificate for the project is enabled in Agora Console, but you do not pass in a token when joining a channel.
|
|
2608
|
+
* The uid specified when calling joinChannel to join the channel is inconsistent with the uid passed in when generating the token.
|
|
2609
|
+
* The generated token and the token used to join the channel are not consistent. Ensure the following:
|
|
2610
|
+
* When your project enables App Certificate, you need to pass in a token to join a channel.
|
|
2611
|
+
* The user ID specified when generating the token is consistent with the user ID used when joining the channel.
|
|
2612
|
+
* The generated token is the same as the token passed in to join the channel.
|
|
2613
|
+
*/
|
|
2614
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidToken"] = 8] = "ConnectionChangedInvalidToken";
|
|
2615
|
+
/**
|
|
2616
|
+
* (9): The token currently being used has expired. You need to generate a new token on your server and rejoin the channel with the new token.
|
|
2617
|
+
*/
|
|
2618
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedTokenExpired"] = 9] = "ConnectionChangedTokenExpired";
|
|
2619
|
+
/**
|
|
2620
|
+
* 10: The connection is rejected by server. Possible reasons are as follows:
|
|
2621
|
+
* The user is already in the channel and still calls a method, for example, joinChannel, to join the channel. Stop calling this method to clear this error.
|
|
2622
|
+
* The user tries to join a channel while a test call is in progress. The user needs to join the channel after the call test ends.
|
|
2623
|
+
*/
|
|
2624
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRejectedByServer"] = 10] = "ConnectionChangedRejectedByServer";
|
|
2625
|
+
/**
|
|
2626
|
+
* 11: The connection state changed to reconnecting because the SDK has set a proxy server.
|
|
2627
|
+
*/
|
|
2628
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedSettingProxyServer"] = 11] = "ConnectionChangedSettingProxyServer";
|
|
2629
|
+
/**
|
|
2630
|
+
* 12: The connection state changed because the token is renewed.
|
|
2631
|
+
*/
|
|
2632
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRenewToken"] = 12] = "ConnectionChangedRenewToken";
|
|
2633
|
+
/**
|
|
2634
|
+
* (13): Client IP address changed. If you receive this code multiple times, You need to prompt the user to switch networks and try joining the channel again.
|
|
2635
|
+
*/
|
|
2636
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedClientIpAddressChanged"] = 13] = "ConnectionChangedClientIpAddressChanged";
|
|
2637
|
+
/**
|
|
2638
|
+
* 14: Timeout for the keep-alive of the connection between the SDK and the Agora edge server. The SDK tries to reconnect to the server automatically.
|
|
2639
|
+
*/
|
|
2640
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedKeepAliveTimeout"] = 14] = "ConnectionChangedKeepAliveTimeout";
|
|
2641
|
+
/**
|
|
2642
|
+
* 15: The user has rejoined the channel successfully.
|
|
2643
|
+
*/
|
|
2644
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRejoinSuccess"] = 15] = "ConnectionChangedRejoinSuccess";
|
|
2645
|
+
/**
|
|
2646
|
+
* 16: The connection between the SDK and the server is lost.
|
|
2647
|
+
*/
|
|
2648
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLost"] = 16] = "ConnectionChangedLost";
|
|
2649
|
+
/**
|
|
2650
|
+
* 17: The connection state changes due to the echo test.
|
|
2651
|
+
*/
|
|
2652
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedEchoTest"] = 17] = "ConnectionChangedEchoTest";
|
|
2653
|
+
/**
|
|
2654
|
+
* 18: The local IP address was changed by the user.
|
|
2655
|
+
*/
|
|
2656
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedClientIpAddressChangedByUser"] = 18] = "ConnectionChangedClientIpAddressChangedByUser";
|
|
2657
|
+
/**
|
|
2658
|
+
* 19: The user joined the same channel from different devices with the same UID.
|
|
2659
|
+
*/
|
|
2660
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedSameUidLogin"] = 19] = "ConnectionChangedSameUidLogin";
|
|
2661
|
+
/**
|
|
2662
|
+
* 20: The number of hosts in the channel has reached the upper limit.
|
|
2663
|
+
*/
|
|
2664
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedTooManyBroadcasters"] = 20] = "ConnectionChangedTooManyBroadcasters";
|
|
2665
|
+
/**
|
|
2666
|
+
* @ignore
|
|
2667
|
+
*/
|
|
2668
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLicenseValidationFailure"] = 21] = "ConnectionChangedLicenseValidationFailure";
|
|
2669
|
+
/**
|
|
2670
|
+
* @ignore
|
|
2671
|
+
*/
|
|
2672
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedCertificationVeryfyFailure"] = 22] = "ConnectionChangedCertificationVeryfyFailure";
|
|
2673
|
+
/**
|
|
2674
|
+
* @ignore
|
|
2675
|
+
*/
|
|
2676
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedStreamChannelNotAvailable"] = 23] = "ConnectionChangedStreamChannelNotAvailable";
|
|
2677
|
+
/**
|
|
2678
|
+
* @ignore
|
|
2679
|
+
*/
|
|
2680
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInconsistentAppid"] = 24] = "ConnectionChangedInconsistentAppid";
|
|
2681
|
+
})(ConnectionChangedReasonType = exports.ConnectionChangedReasonType || (exports.ConnectionChangedReasonType = {}));
|
|
2682
|
+
/**
|
|
2683
|
+
* The reason for a user role switch failure.
|
|
2684
|
+
*/
|
|
2685
|
+
var ClientRoleChangeFailedReason;
|
|
2686
|
+
(function (ClientRoleChangeFailedReason) {
|
|
2687
|
+
/**
|
|
2688
|
+
* 1: The number of hosts in the channel exceeds the limit. This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
|
|
2689
|
+
*/
|
|
2690
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedTooManyBroadcasters"] = 1] = "ClientRoleChangeFailedTooManyBroadcasters";
|
|
2691
|
+
/**
|
|
2692
|
+
* 2: The request is rejected by the Agora server. Agora recommends you prompt the user to try to switch their user role again.
|
|
2693
|
+
*/
|
|
2694
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedNotAuthorized"] = 2] = "ClientRoleChangeFailedNotAuthorized";
|
|
2695
|
+
/**
|
|
2696
|
+
* 3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
|
|
2697
|
+
*/
|
|
2698
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedRequestTimeOut"] = 3] = "ClientRoleChangeFailedRequestTimeOut";
|
|
2699
|
+
/**
|
|
2700
|
+
* 4: The SDK is disconnected from the Agora edge server. You can troubleshoot the failure through the reason reported by onConnectionStateChanged. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
|
|
2701
|
+
*/
|
|
2702
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedConnectionFailed"] = 4] = "ClientRoleChangeFailedConnectionFailed";
|
|
2703
|
+
})(ClientRoleChangeFailedReason = exports.ClientRoleChangeFailedReason || (exports.ClientRoleChangeFailedReason = {}));
|
|
2704
|
+
/**
|
|
2705
|
+
* @ignore
|
|
2706
|
+
*/
|
|
2707
|
+
var WlaccMessageReason;
|
|
2708
|
+
(function (WlaccMessageReason) {
|
|
2709
|
+
/**
|
|
2710
|
+
* @ignore
|
|
2711
|
+
*/
|
|
2712
|
+
WlaccMessageReason[WlaccMessageReason["WlaccMessageReasonWeakSignal"] = 0] = "WlaccMessageReasonWeakSignal";
|
|
2713
|
+
/**
|
|
2714
|
+
* @ignore
|
|
2715
|
+
*/
|
|
2716
|
+
WlaccMessageReason[WlaccMessageReason["WlaccMessageReasonChannelCongestion"] = 1] = "WlaccMessageReasonChannelCongestion";
|
|
2717
|
+
})(WlaccMessageReason = exports.WlaccMessageReason || (exports.WlaccMessageReason = {}));
|
|
2718
|
+
/**
|
|
2719
|
+
* @ignore
|
|
2720
|
+
*/
|
|
2721
|
+
var WlaccSuggestAction;
|
|
2722
|
+
(function (WlaccSuggestAction) {
|
|
2723
|
+
/**
|
|
2724
|
+
* @ignore
|
|
2725
|
+
*/
|
|
2726
|
+
WlaccSuggestAction[WlaccSuggestAction["WlaccSuggestActionCloseToWifi"] = 0] = "WlaccSuggestActionCloseToWifi";
|
|
2727
|
+
/**
|
|
2728
|
+
* @ignore
|
|
2729
|
+
*/
|
|
2730
|
+
WlaccSuggestAction[WlaccSuggestAction["WlaccSuggestActionConnectSsid"] = 1] = "WlaccSuggestActionConnectSsid";
|
|
2731
|
+
/**
|
|
2732
|
+
* @ignore
|
|
2733
|
+
*/
|
|
2734
|
+
WlaccSuggestAction[WlaccSuggestAction["WlaccSuggestActionCheck5g"] = 2] = "WlaccSuggestActionCheck5g";
|
|
2735
|
+
/**
|
|
2736
|
+
* @ignore
|
|
2737
|
+
*/
|
|
2738
|
+
WlaccSuggestAction[WlaccSuggestAction["WlaccSuggestActionModifySsid"] = 3] = "WlaccSuggestActionModifySsid";
|
|
2739
|
+
})(WlaccSuggestAction = exports.WlaccSuggestAction || (exports.WlaccSuggestAction = {}));
|
|
2740
|
+
/**
|
|
2741
|
+
* @ignore
|
|
2742
|
+
*/
|
|
2743
|
+
class WlAccStats {
|
|
2744
|
+
}
|
|
2745
|
+
exports.WlAccStats = WlAccStats;
|
|
2746
|
+
/**
|
|
2747
|
+
* Network type.
|
|
2748
|
+
*/
|
|
2749
|
+
var NetworkType;
|
|
2750
|
+
(function (NetworkType) {
|
|
2751
|
+
/**
|
|
2752
|
+
* -1: The network type is unknown.
|
|
2753
|
+
*/
|
|
2754
|
+
NetworkType[NetworkType["NetworkTypeUnknown"] = -1] = "NetworkTypeUnknown";
|
|
2755
|
+
/**
|
|
2756
|
+
* 0: The SDK disconnects from the network.
|
|
2757
|
+
*/
|
|
2758
|
+
NetworkType[NetworkType["NetworkTypeDisconnected"] = 0] = "NetworkTypeDisconnected";
|
|
2759
|
+
/**
|
|
2760
|
+
* 1: The network type is LAN.
|
|
2761
|
+
*/
|
|
2762
|
+
NetworkType[NetworkType["NetworkTypeLan"] = 1] = "NetworkTypeLan";
|
|
2763
|
+
/**
|
|
2764
|
+
* 2: The network type is Wi-Fi (including hotspots).
|
|
2765
|
+
*/
|
|
2766
|
+
NetworkType[NetworkType["NetworkTypeWifi"] = 2] = "NetworkTypeWifi";
|
|
2767
|
+
/**
|
|
2768
|
+
* 3: The network type is mobile 2G.
|
|
2769
|
+
*/
|
|
2770
|
+
NetworkType[NetworkType["NetworkTypeMobile2g"] = 3] = "NetworkTypeMobile2g";
|
|
2771
|
+
/**
|
|
2772
|
+
* 4: The network type is mobile 3G.
|
|
2773
|
+
*/
|
|
2774
|
+
NetworkType[NetworkType["NetworkTypeMobile3g"] = 4] = "NetworkTypeMobile3g";
|
|
2775
|
+
/**
|
|
2776
|
+
* 5: The network type is mobile 4G.
|
|
2777
|
+
*/
|
|
2778
|
+
NetworkType[NetworkType["NetworkTypeMobile4g"] = 5] = "NetworkTypeMobile4g";
|
|
2779
|
+
/**
|
|
2780
|
+
* 6: The network type is mobile 5G.
|
|
2781
|
+
*/
|
|
2782
|
+
NetworkType[NetworkType["NetworkTypeMobile5g"] = 6] = "NetworkTypeMobile5g";
|
|
2783
|
+
})(NetworkType = exports.NetworkType || (exports.NetworkType = {}));
|
|
2784
|
+
/**
|
|
2785
|
+
* Setting mode of the view.
|
|
2786
|
+
*/
|
|
2787
|
+
var VideoViewSetupMode;
|
|
2788
|
+
(function (VideoViewSetupMode) {
|
|
2789
|
+
/**
|
|
2790
|
+
* 0: (Default) Clear all added views and replace with a new view.
|
|
2791
|
+
*/
|
|
2792
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupReplace"] = 0] = "VideoViewSetupReplace";
|
|
2793
|
+
/**
|
|
2794
|
+
* 1: Adds a view.
|
|
2795
|
+
*/
|
|
2796
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupAdd"] = 1] = "VideoViewSetupAdd";
|
|
2797
|
+
/**
|
|
2798
|
+
* 2: Deletes a view.
|
|
2799
|
+
*/
|
|
2800
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupRemove"] = 2] = "VideoViewSetupRemove";
|
|
2801
|
+
})(VideoViewSetupMode = exports.VideoViewSetupMode || (exports.VideoViewSetupMode = {}));
|
|
2802
|
+
/**
|
|
2803
|
+
* Attributes of the video canvas object.
|
|
2804
|
+
*/
|
|
2805
|
+
class VideoCanvas {
|
|
2806
|
+
}
|
|
2807
|
+
exports.VideoCanvas = VideoCanvas;
|
|
2808
|
+
/**
|
|
2809
|
+
* The contrast level.
|
|
2810
|
+
*/
|
|
2811
|
+
var LighteningContrastLevel;
|
|
2812
|
+
(function (LighteningContrastLevel) {
|
|
2813
|
+
/**
|
|
2814
|
+
* 0: Low contrast level.
|
|
2815
|
+
*/
|
|
2816
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastLow"] = 0] = "LighteningContrastLow";
|
|
2817
|
+
/**
|
|
2818
|
+
* 1: (Default) Normal contrast level.
|
|
2819
|
+
*/
|
|
2820
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastNormal"] = 1] = "LighteningContrastNormal";
|
|
2821
|
+
/**
|
|
2822
|
+
* 2: High contrast level.
|
|
2823
|
+
*/
|
|
2824
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastHigh"] = 2] = "LighteningContrastHigh";
|
|
2825
|
+
})(LighteningContrastLevel = exports.LighteningContrastLevel || (exports.LighteningContrastLevel = {}));
|
|
2826
|
+
/**
|
|
2827
|
+
* Image enhancement options.
|
|
2828
|
+
*/
|
|
2829
|
+
class BeautyOptions {
|
|
2830
|
+
}
|
|
2831
|
+
exports.BeautyOptions = BeautyOptions;
|
|
2832
|
+
/**
|
|
2833
|
+
* @ignore
|
|
2834
|
+
*/
|
|
2835
|
+
var FaceShapeArea;
|
|
2836
|
+
(function (FaceShapeArea) {
|
|
2837
|
+
/**
|
|
2838
|
+
* @ignore
|
|
2839
|
+
*/
|
|
2840
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNone"] = -1] = "FaceShapeAreaNone";
|
|
2841
|
+
/**
|
|
2842
|
+
* @ignore
|
|
2843
|
+
*/
|
|
2844
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaHeadscale"] = 0] = "FaceShapeAreaHeadscale";
|
|
2845
|
+
/**
|
|
2846
|
+
* @ignore
|
|
2847
|
+
*/
|
|
2848
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaForehead"] = 1] = "FaceShapeAreaForehead";
|
|
2849
|
+
/**
|
|
2850
|
+
* @ignore
|
|
2851
|
+
*/
|
|
2852
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacecontour"] = 2] = "FaceShapeAreaFacecontour";
|
|
2853
|
+
/**
|
|
2854
|
+
* @ignore
|
|
2855
|
+
*/
|
|
2856
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacelength"] = 3] = "FaceShapeAreaFacelength";
|
|
2857
|
+
/**
|
|
2858
|
+
* @ignore
|
|
2859
|
+
*/
|
|
2860
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacewidth"] = 4] = "FaceShapeAreaFacewidth";
|
|
2861
|
+
/**
|
|
2862
|
+
* @ignore
|
|
2863
|
+
*/
|
|
2864
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaCheekbone"] = 5] = "FaceShapeAreaCheekbone";
|
|
2865
|
+
/**
|
|
2866
|
+
* @ignore
|
|
2867
|
+
*/
|
|
2868
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaCheek"] = 6] = "FaceShapeAreaCheek";
|
|
2869
|
+
/**
|
|
2870
|
+
* @ignore
|
|
2871
|
+
*/
|
|
2872
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaChin"] = 7] = "FaceShapeAreaChin";
|
|
2873
|
+
/**
|
|
2874
|
+
* @ignore
|
|
2875
|
+
*/
|
|
2876
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyescale"] = 8] = "FaceShapeAreaEyescale";
|
|
2877
|
+
/**
|
|
2878
|
+
* @ignore
|
|
2879
|
+
*/
|
|
2880
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNoselength"] = 9] = "FaceShapeAreaNoselength";
|
|
2881
|
+
/**
|
|
2882
|
+
* @ignore
|
|
2883
|
+
*/
|
|
2884
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosewidth"] = 10] = "FaceShapeAreaNosewidth";
|
|
2885
|
+
/**
|
|
2886
|
+
* @ignore
|
|
2887
|
+
*/
|
|
2888
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMouthscale"] = 11] = "FaceShapeAreaMouthscale";
|
|
2889
|
+
})(FaceShapeArea = exports.FaceShapeArea || (exports.FaceShapeArea = {}));
|
|
2890
|
+
/**
|
|
2891
|
+
* @ignore
|
|
2892
|
+
*/
|
|
2893
|
+
class FaceShapeAreaOptions {
|
|
2894
|
+
}
|
|
2895
|
+
exports.FaceShapeAreaOptions = FaceShapeAreaOptions;
|
|
2896
|
+
/**
|
|
2897
|
+
* @ignore
|
|
2898
|
+
*/
|
|
2899
|
+
var FaceShapeBeautyStyle;
|
|
2900
|
+
(function (FaceShapeBeautyStyle) {
|
|
2901
|
+
/**
|
|
2902
|
+
* @ignore
|
|
2903
|
+
*/
|
|
2904
|
+
FaceShapeBeautyStyle[FaceShapeBeautyStyle["FaceShapeBeautyStyleFemale"] = 0] = "FaceShapeBeautyStyleFemale";
|
|
2905
|
+
/**
|
|
2906
|
+
* @ignore
|
|
2907
|
+
*/
|
|
2908
|
+
FaceShapeBeautyStyle[FaceShapeBeautyStyle["FaceShapeBeautyStyleMale"] = 1] = "FaceShapeBeautyStyleMale";
|
|
2909
|
+
})(FaceShapeBeautyStyle = exports.FaceShapeBeautyStyle || (exports.FaceShapeBeautyStyle = {}));
|
|
2910
|
+
/**
|
|
2911
|
+
* @ignore
|
|
2912
|
+
*/
|
|
2913
|
+
class FaceShapeBeautyOptions {
|
|
2914
|
+
}
|
|
2915
|
+
exports.FaceShapeBeautyOptions = FaceShapeBeautyOptions;
|
|
2916
|
+
/**
|
|
2917
|
+
* Filter effect options.
|
|
2918
|
+
*/
|
|
2919
|
+
class FilterEffectOptions {
|
|
2920
|
+
}
|
|
2921
|
+
exports.FilterEffectOptions = FilterEffectOptions;
|
|
2922
|
+
/**
|
|
2923
|
+
* The low-light enhancement mode.
|
|
2924
|
+
*/
|
|
2925
|
+
var LowLightEnhanceMode;
|
|
2926
|
+
(function (LowLightEnhanceMode) {
|
|
2927
|
+
/**
|
|
2928
|
+
* 0: (Default) Automatic mode. The SDK automatically enables or disables the low-light enhancement feature according to the ambient light to compensate for the lighting level or prevent overexposure, as necessary.
|
|
2929
|
+
*/
|
|
2930
|
+
LowLightEnhanceMode[LowLightEnhanceMode["LowLightEnhanceAuto"] = 0] = "LowLightEnhanceAuto";
|
|
2931
|
+
/**
|
|
2932
|
+
* 1: Manual mode. Users need to enable or disable the low-light enhancement feature manually.
|
|
2933
|
+
*/
|
|
2934
|
+
LowLightEnhanceMode[LowLightEnhanceMode["LowLightEnhanceManual"] = 1] = "LowLightEnhanceManual";
|
|
2935
|
+
})(LowLightEnhanceMode = exports.LowLightEnhanceMode || (exports.LowLightEnhanceMode = {}));
|
|
2936
|
+
/**
|
|
2937
|
+
* The low-light enhancement level.
|
|
2938
|
+
*/
|
|
2939
|
+
var LowLightEnhanceLevel;
|
|
2940
|
+
(function (LowLightEnhanceLevel) {
|
|
2941
|
+
/**
|
|
2942
|
+
* 0: (Default) Promotes video quality during low-light enhancement. It processes the brightness, details, and noise of the video image. The performance consumption is moderate, the processing speed is moderate, and the overall video quality is optimal.
|
|
2943
|
+
*/
|
|
2944
|
+
LowLightEnhanceLevel[LowLightEnhanceLevel["LowLightEnhanceLevelHighQuality"] = 0] = "LowLightEnhanceLevelHighQuality";
|
|
2945
|
+
/**
|
|
2946
|
+
* 1: Promotes performance during low-light enhancement. It processes the brightness and details of the video image. The processing speed is faster.
|
|
2947
|
+
*/
|
|
2948
|
+
LowLightEnhanceLevel[LowLightEnhanceLevel["LowLightEnhanceLevelFast"] = 1] = "LowLightEnhanceLevelFast";
|
|
2949
|
+
})(LowLightEnhanceLevel = exports.LowLightEnhanceLevel || (exports.LowLightEnhanceLevel = {}));
|
|
2950
|
+
/**
|
|
2951
|
+
* The low-light enhancement options.
|
|
2952
|
+
*/
|
|
2953
|
+
class LowlightEnhanceOptions {
|
|
2954
|
+
}
|
|
2955
|
+
exports.LowlightEnhanceOptions = LowlightEnhanceOptions;
|
|
2956
|
+
/**
|
|
2957
|
+
* Video noise reduction mode.
|
|
2958
|
+
*/
|
|
2959
|
+
var VideoDenoiserMode;
|
|
2960
|
+
(function (VideoDenoiserMode) {
|
|
2961
|
+
/**
|
|
2962
|
+
* 0: (Default) Automatic mode. The SDK automatically enables or disables the video noise reduction feature according to the ambient light.
|
|
2963
|
+
*/
|
|
2964
|
+
VideoDenoiserMode[VideoDenoiserMode["VideoDenoiserAuto"] = 0] = "VideoDenoiserAuto";
|
|
2965
|
+
/**
|
|
2966
|
+
* 1: Manual mode. Users need to enable or disable the video noise reduction feature manually.
|
|
2967
|
+
*/
|
|
2968
|
+
VideoDenoiserMode[VideoDenoiserMode["VideoDenoiserManual"] = 1] = "VideoDenoiserManual";
|
|
2969
|
+
})(VideoDenoiserMode = exports.VideoDenoiserMode || (exports.VideoDenoiserMode = {}));
|
|
2970
|
+
/**
|
|
2971
|
+
* Video noise reduction level.
|
|
2972
|
+
*/
|
|
2973
|
+
var VideoDenoiserLevel;
|
|
2974
|
+
(function (VideoDenoiserLevel) {
|
|
2975
|
+
/**
|
|
2976
|
+
* 0: (Default) Promotes video quality during video noise reduction. balances performance consumption and video noise reduction quality. The performance consumption is moderate, the video noise reduction speed is moderate, and the overall video quality is optimal.
|
|
2977
|
+
*/
|
|
2978
|
+
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelHighQuality"] = 0] = "VideoDenoiserLevelHighQuality";
|
|
2979
|
+
/**
|
|
2980
|
+
* 1: Promotes reducing performance consumption during video noise reduction. It prioritizes reducing performance consumption over video noise reduction quality. The performance consumption is lower, and the video noise reduction speed is faster. To avoid a noticeable shadowing effect (shadows trailing behind moving objects) in the processed video, Agora recommends that you use this setting when the camera is fixed.
|
|
2981
|
+
*/
|
|
2982
|
+
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelFast"] = 1] = "VideoDenoiserLevelFast";
|
|
2983
|
+
})(VideoDenoiserLevel = exports.VideoDenoiserLevel || (exports.VideoDenoiserLevel = {}));
|
|
2984
|
+
/**
|
|
2985
|
+
* Video noise reduction options.
|
|
2986
|
+
*/
|
|
2987
|
+
class VideoDenoiserOptions {
|
|
2988
|
+
}
|
|
2989
|
+
exports.VideoDenoiserOptions = VideoDenoiserOptions;
|
|
2990
|
+
/**
|
|
2991
|
+
* The color enhancement options.
|
|
2992
|
+
*/
|
|
2993
|
+
class ColorEnhanceOptions {
|
|
2994
|
+
}
|
|
2995
|
+
exports.ColorEnhanceOptions = ColorEnhanceOptions;
|
|
2996
|
+
/**
|
|
2997
|
+
* The custom background.
|
|
2998
|
+
*/
|
|
2999
|
+
var BackgroundSourceType;
|
|
3000
|
+
(function (BackgroundSourceType) {
|
|
3001
|
+
/**
|
|
3002
|
+
* @ignore
|
|
3003
|
+
*/
|
|
3004
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundNone"] = 0] = "BackgroundNone";
|
|
3005
|
+
/**
|
|
3006
|
+
* 1: (Default) The background image is a solid color.
|
|
3007
|
+
*/
|
|
3008
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundColor"] = 1] = "BackgroundColor";
|
|
3009
|
+
/**
|
|
3010
|
+
* 2: The background is an image in PNG or JPG format.
|
|
3011
|
+
*/
|
|
3012
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundImg"] = 2] = "BackgroundImg";
|
|
3013
|
+
/**
|
|
3014
|
+
* 3: The background is a blurred version of the original background.
|
|
3015
|
+
*/
|
|
3016
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundBlur"] = 3] = "BackgroundBlur";
|
|
3017
|
+
/**
|
|
3018
|
+
* 4: The background is a local video in MP4, AVI, MKV, FLV, or other supported formats.
|
|
3019
|
+
*/
|
|
3020
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundVideo"] = 4] = "BackgroundVideo";
|
|
3021
|
+
})(BackgroundSourceType = exports.BackgroundSourceType || (exports.BackgroundSourceType = {}));
|
|
3022
|
+
/**
|
|
3023
|
+
* The degree of blurring applied to the custom background image.
|
|
3024
|
+
*/
|
|
3025
|
+
var BackgroundBlurDegree;
|
|
3026
|
+
(function (BackgroundBlurDegree) {
|
|
3027
|
+
/**
|
|
3028
|
+
* 1: The degree of blurring applied to the custom background image is low. The user can almost see the background clearly.
|
|
3029
|
+
*/
|
|
3030
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeLow"] = 1] = "BlurDegreeLow";
|
|
3031
|
+
/**
|
|
3032
|
+
* 2: The degree of blurring applied to the custom background image is medium. It is difficult for the user to recognize details in the background.
|
|
3033
|
+
*/
|
|
3034
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeMedium"] = 2] = "BlurDegreeMedium";
|
|
3035
|
+
/**
|
|
3036
|
+
* 3: (Default) The degree of blurring applied to the custom background image is high. The user can barely see any distinguishing features in the background.
|
|
3037
|
+
*/
|
|
3038
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeHigh"] = 3] = "BlurDegreeHigh";
|
|
3039
|
+
})(BackgroundBlurDegree = exports.BackgroundBlurDegree || (exports.BackgroundBlurDegree = {}));
|
|
3040
|
+
/**
|
|
3041
|
+
* The custom background.
|
|
3042
|
+
*/
|
|
3043
|
+
class VirtualBackgroundSource {
|
|
3044
|
+
}
|
|
3045
|
+
exports.VirtualBackgroundSource = VirtualBackgroundSource;
|
|
3046
|
+
/**
|
|
3047
|
+
* The type of algorithms to user for background processing.
|
|
3048
|
+
*/
|
|
3049
|
+
var SegModelType;
|
|
3050
|
+
(function (SegModelType) {
|
|
3051
|
+
/**
|
|
3052
|
+
* 1: (Default) Use the algorithm suitable for all scenarios.
|
|
3053
|
+
*/
|
|
3054
|
+
SegModelType[SegModelType["SegModelAi"] = 1] = "SegModelAi";
|
|
3055
|
+
/**
|
|
3056
|
+
* 2: Use the algorithm designed specifically for scenarios with a green screen background.
|
|
3057
|
+
*/
|
|
3058
|
+
SegModelType[SegModelType["SegModelGreen"] = 2] = "SegModelGreen";
|
|
3059
|
+
})(SegModelType = exports.SegModelType || (exports.SegModelType = {}));
|
|
3060
|
+
/**
|
|
3061
|
+
* Processing properties for background images.
|
|
3062
|
+
*/
|
|
3063
|
+
class SegmentationProperty {
|
|
3064
|
+
}
|
|
3065
|
+
exports.SegmentationProperty = SegmentationProperty;
|
|
3066
|
+
/**
|
|
3067
|
+
* The type of the audio track.
|
|
3068
|
+
*/
|
|
3069
|
+
var AudioTrackType;
|
|
3070
|
+
(function (AudioTrackType) {
|
|
3071
|
+
/**
|
|
3072
|
+
* @ignore
|
|
3073
|
+
*/
|
|
3074
|
+
AudioTrackType[AudioTrackType["AudioTrackInvalid"] = -1] = "AudioTrackInvalid";
|
|
3075
|
+
/**
|
|
3076
|
+
* 0: Mixable audio tracks. This type of audio track supports mixing with other audio streams (such as audio streams captured by microphone) and playing locally or publishing to channels after mixing. The latency of mixable audio tracks is higher than that of direct audio tracks.
|
|
3077
|
+
*/
|
|
3078
|
+
AudioTrackType[AudioTrackType["AudioTrackMixable"] = 0] = "AudioTrackMixable";
|
|
3079
|
+
/**
|
|
3080
|
+
* 1: Direct audio tracks. This type of audio track will replace the audio streams captured by the microphone and does not support mixing with other audio streams. The latency of direct audio tracks is lower than that of mixable audio tracks. If AudioTrackDirect is specified for this parameter, you must set publishMicrophoneTrack to false in ChannelMediaOptions when calling joinChannel to join the channel; otherwise, joining the channel fails and returns the error code -2.
|
|
3081
|
+
*/
|
|
3082
|
+
AudioTrackType[AudioTrackType["AudioTrackDirect"] = 1] = "AudioTrackDirect";
|
|
3083
|
+
})(AudioTrackType = exports.AudioTrackType || (exports.AudioTrackType = {}));
|
|
3084
|
+
/**
|
|
3085
|
+
* The configuration of custom audio tracks.
|
|
3086
|
+
*/
|
|
3087
|
+
class AudioTrackConfig {
|
|
3088
|
+
}
|
|
3089
|
+
exports.AudioTrackConfig = AudioTrackConfig;
|
|
3090
|
+
/**
|
|
3091
|
+
* The options for SDK preset voice beautifier effects.
|
|
3092
|
+
*/
|
|
3093
|
+
var VoiceBeautifierPreset;
|
|
3094
|
+
(function (VoiceBeautifierPreset) {
|
|
3095
|
+
/**
|
|
3096
|
+
* Turn off voice beautifier effects and use the original voice.
|
|
3097
|
+
*/
|
|
3098
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["VoiceBeautifierOff"] = 0] = "VoiceBeautifierOff";
|
|
3099
|
+
/**
|
|
3100
|
+
* A more magnetic voice. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may experience vocal distortion.
|
|
3101
|
+
*/
|
|
3102
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierMagnetic"] = 16843008] = "ChatBeautifierMagnetic";
|
|
3103
|
+
/**
|
|
3104
|
+
* A fresher voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3105
|
+
*/
|
|
3106
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierFresh"] = 16843264] = "ChatBeautifierFresh";
|
|
3107
|
+
/**
|
|
3108
|
+
* A more vital voice. Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may experience vocal distortion.
|
|
3109
|
+
*/
|
|
3110
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierVitality"] = 16843520] = "ChatBeautifierVitality";
|
|
3111
|
+
/**
|
|
3112
|
+
* Singing beautifier effect.
|
|
3113
|
+
* If you call setVoiceBeautifierPreset (SingingBeautifier), you can beautify a male-sounding voice and add a reverberation effect that sounds like singing in a small room. Agora recommends using this enumerator to process a male-sounding voice; otherwise, you might experience vocal distortion.
|
|
3114
|
+
* If you call setVoiceBeautifierParameters (SingingBeautifier, param1, param2), you can beautify a male or female-sounding voice and add a reverberation effect.
|
|
3115
|
+
*/
|
|
3116
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["SingingBeautifier"] = 16908544] = "SingingBeautifier";
|
|
3117
|
+
/**
|
|
3118
|
+
* A more vigorous voice.
|
|
3119
|
+
*/
|
|
3120
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationVigorous"] = 16974080] = "TimbreTransformationVigorous";
|
|
3121
|
+
/**
|
|
3122
|
+
* A deep voice.
|
|
3123
|
+
*/
|
|
3124
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationDeep"] = 16974336] = "TimbreTransformationDeep";
|
|
3125
|
+
/**
|
|
3126
|
+
* A mellower voice.
|
|
3127
|
+
*/
|
|
3128
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationMellow"] = 16974592] = "TimbreTransformationMellow";
|
|
3129
|
+
/**
|
|
3130
|
+
* Falsetto.
|
|
3131
|
+
*/
|
|
3132
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationFalsetto"] = 16974848] = "TimbreTransformationFalsetto";
|
|
3133
|
+
/**
|
|
3134
|
+
* A fuller voice.
|
|
3135
|
+
*/
|
|
3136
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationFull"] = 16975104] = "TimbreTransformationFull";
|
|
3137
|
+
/**
|
|
3138
|
+
* A clearer voice.
|
|
3139
|
+
*/
|
|
3140
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationClear"] = 16975360] = "TimbreTransformationClear";
|
|
3141
|
+
/**
|
|
3142
|
+
* A more resounding voice.
|
|
3143
|
+
*/
|
|
3144
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationResounding"] = 16975616] = "TimbreTransformationResounding";
|
|
3145
|
+
/**
|
|
3146
|
+
* A more ringing voice.
|
|
3147
|
+
*/
|
|
3148
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationRinging"] = 16975872] = "TimbreTransformationRinging";
|
|
3149
|
+
/**
|
|
3150
|
+
* A ultra-high quality voice, which makes the audio clearer and restores more details.
|
|
3151
|
+
* To achieve better audio effect quality, Agora recommends that you set the profile of to AudioProfileMusicHighQuality (4) or AudioProfileMusicHighQualityStereo (5) and scenario to AudioScenarioGameStreaming (3) before calling setVoiceBeautifierPreset.
|
|
3152
|
+
* If you have an audio capturing device that can already restore audio details to a high degree, Agora recommends that you do not enable ultra-high quality; otherwise, the SDK may over-restore audio details, and you may not hear the anticipated voice effect.
|
|
3153
|
+
*/
|
|
3154
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["UltraHighQualityVoice"] = 17039616] = "UltraHighQualityVoice";
|
|
3155
|
+
})(VoiceBeautifierPreset = exports.VoiceBeautifierPreset || (exports.VoiceBeautifierPreset = {}));
|
|
3156
|
+
/**
|
|
3157
|
+
* Preset audio effects.
|
|
3158
|
+
*
|
|
3159
|
+
* To get better audio effects, Agora recommends calling setAudioProfile and setting the profile parameter as recommended below before using the preset audio effects.
|
|
3160
|
+
*/
|
|
3161
|
+
var AudioEffectPreset;
|
|
3162
|
+
(function (AudioEffectPreset) {
|
|
3163
|
+
/**
|
|
3164
|
+
* Turn off voice effects, that is, use the original voice.
|
|
3165
|
+
*/
|
|
3166
|
+
AudioEffectPreset[AudioEffectPreset["AudioEffectOff"] = 0] = "AudioEffectOff";
|
|
3167
|
+
/**
|
|
3168
|
+
* The voice effect typical of a KTV venue.
|
|
3169
|
+
*/
|
|
3170
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsKtv"] = 33620224] = "RoomAcousticsKtv";
|
|
3171
|
+
/**
|
|
3172
|
+
* The voice effect typical of a concert hall.
|
|
3173
|
+
*/
|
|
3174
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVocalConcert"] = 33620480] = "RoomAcousticsVocalConcert";
|
|
3175
|
+
/**
|
|
3176
|
+
* The voice effect typical of a recording studio.
|
|
3177
|
+
*/
|
|
3178
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsStudio"] = 33620736] = "RoomAcousticsStudio";
|
|
3179
|
+
/**
|
|
3180
|
+
* The voice effect typical of a vintage phonograph.
|
|
3181
|
+
*/
|
|
3182
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsPhonograph"] = 33620992] = "RoomAcousticsPhonograph";
|
|
3183
|
+
/**
|
|
3184
|
+
* The virtual stereo effect, which renders monophonic audio as stereo audio.
|
|
3185
|
+
*/
|
|
3186
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVirtualStereo"] = 33621248] = "RoomAcousticsVirtualStereo";
|
|
3187
|
+
/**
|
|
3188
|
+
* A more spatial voice effect.
|
|
3189
|
+
*/
|
|
3190
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsSpacial"] = 33621504] = "RoomAcousticsSpacial";
|
|
3191
|
+
/**
|
|
3192
|
+
* A more ethereal voice effect.
|
|
3193
|
+
*/
|
|
3194
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsEthereal"] = 33621760] = "RoomAcousticsEthereal";
|
|
3195
|
+
/**
|
|
3196
|
+
* A 3D voice effect that makes the voice appear to be moving around the user. The default cycle period is 10 seconds. After setting this effect, you can call setAudioEffectParameters to modify the movement period. If the 3D voice effect is enabled, users need to use stereo audio playback devices to hear the anticipated voice effect.
|
|
3197
|
+
*/
|
|
3198
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcoustics3dVoice"] = 33622016] = "RoomAcoustics3dVoice";
|
|
3199
|
+
/**
|
|
3200
|
+
* Virtual surround sound, that is, the SDK generates a simulated surround sound field on the basis of stereo channels, thereby creating a surround sound effect. If the virtual surround sound is enabled, users need to use stereo audio playback devices to hear the anticipated audio effect.
|
|
3201
|
+
*/
|
|
3202
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVirtualSurroundSound"] = 33622272] = "RoomAcousticsVirtualSurroundSound";
|
|
3203
|
+
/**
|
|
3204
|
+
* The audio effect of chorus. Agora recommends using this effect in chorus scenarios to enhance the sense of depth and dimension in the vocals.
|
|
3205
|
+
*/
|
|
3206
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsChorus"] = 33623296] = "RoomAcousticsChorus";
|
|
3207
|
+
/**
|
|
3208
|
+
* A middle-aged man's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
|
|
3209
|
+
*/
|
|
3210
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectUncle"] = 33685760] = "VoiceChangerEffectUncle";
|
|
3211
|
+
/**
|
|
3212
|
+
* An older man's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
|
|
3213
|
+
*/
|
|
3214
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectOldman"] = 33686016] = "VoiceChangerEffectOldman";
|
|
3215
|
+
/**
|
|
3216
|
+
* A boy's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
|
|
3217
|
+
*/
|
|
3218
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectBoy"] = 33686272] = "VoiceChangerEffectBoy";
|
|
3219
|
+
/**
|
|
3220
|
+
* A young woman's voice. Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
|
|
3221
|
+
*/
|
|
3222
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectSister"] = 33686528] = "VoiceChangerEffectSister";
|
|
3223
|
+
/**
|
|
3224
|
+
* A girl's voice. Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
|
|
3225
|
+
*/
|
|
3226
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectGirl"] = 33686784] = "VoiceChangerEffectGirl";
|
|
3227
|
+
/**
|
|
3228
|
+
* The voice of Pig King, a character in Journey to the West who has a voice like a growling bear.
|
|
3229
|
+
*/
|
|
3230
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectPigking"] = 33687040] = "VoiceChangerEffectPigking";
|
|
3231
|
+
/**
|
|
3232
|
+
* The Hulk's voice.
|
|
3233
|
+
*/
|
|
3234
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectHulk"] = 33687296] = "VoiceChangerEffectHulk";
|
|
3235
|
+
/**
|
|
3236
|
+
* The voice effect typical of R&B music.
|
|
3237
|
+
*/
|
|
3238
|
+
AudioEffectPreset[AudioEffectPreset["StyleTransformationRnb"] = 33751296] = "StyleTransformationRnb";
|
|
3239
|
+
/**
|
|
3240
|
+
* The voice effect typical of popular music.
|
|
3241
|
+
*/
|
|
3242
|
+
AudioEffectPreset[AudioEffectPreset["StyleTransformationPopular"] = 33751552] = "StyleTransformationPopular";
|
|
3243
|
+
/**
|
|
3244
|
+
* A pitch correction effect that corrects the user's pitch based on the pitch of the natural C major scale. After setting this voice effect, you can call setAudioEffectParameters to adjust the basic mode of tuning and the pitch of the main tone.
|
|
3245
|
+
*/
|
|
3246
|
+
AudioEffectPreset[AudioEffectPreset["PitchCorrection"] = 33816832] = "PitchCorrection";
|
|
3247
|
+
})(AudioEffectPreset = exports.AudioEffectPreset || (exports.AudioEffectPreset = {}));
|
|
3248
|
+
/**
|
|
3249
|
+
* The options for SDK preset voice conversion effects.
|
|
3250
|
+
*/
|
|
3251
|
+
var VoiceConversionPreset;
|
|
3252
|
+
(function (VoiceConversionPreset) {
|
|
3253
|
+
/**
|
|
3254
|
+
* Turn off voice conversion effects and use the original voice.
|
|
3255
|
+
*/
|
|
3256
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceConversionOff"] = 0] = "VoiceConversionOff";
|
|
3257
|
+
/**
|
|
3258
|
+
* A gender-neutral voice. To avoid audio distortion, ensure that you use this enumerator to process a female-sounding voice.
|
|
3259
|
+
*/
|
|
3260
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerNeutral"] = 50397440] = "VoiceChangerNeutral";
|
|
3261
|
+
/**
|
|
3262
|
+
* A sweet voice. To avoid audio distortion, ensure that you use this enumerator to process a female-sounding voice.
|
|
3263
|
+
*/
|
|
3264
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerSweet"] = 50397696] = "VoiceChangerSweet";
|
|
3265
|
+
/**
|
|
3266
|
+
* A steady voice. To avoid audio distortion, ensure that you use this enumerator to process a male-sounding voice.
|
|
3267
|
+
*/
|
|
3268
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerSolid"] = 50397952] = "VoiceChangerSolid";
|
|
3269
|
+
/**
|
|
3270
|
+
* A deep voice. To avoid audio distortion, ensure that you use this enumerator to process a male-sounding voice.
|
|
3271
|
+
*/
|
|
3272
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerBass"] = 50398208] = "VoiceChangerBass";
|
|
3273
|
+
/**
|
|
3274
|
+
* @ignore
|
|
3275
|
+
*/
|
|
3276
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerCartoon"] = 50398464] = "VoiceChangerCartoon";
|
|
3277
|
+
/**
|
|
3278
|
+
* @ignore
|
|
3279
|
+
*/
|
|
3280
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerChildlike"] = 50398720] = "VoiceChangerChildlike";
|
|
3281
|
+
/**
|
|
3282
|
+
* @ignore
|
|
3283
|
+
*/
|
|
3284
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerPhoneOperator"] = 50398976] = "VoiceChangerPhoneOperator";
|
|
3285
|
+
/**
|
|
3286
|
+
* @ignore
|
|
3287
|
+
*/
|
|
3288
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerMonster"] = 50399232] = "VoiceChangerMonster";
|
|
3289
|
+
/**
|
|
3290
|
+
* @ignore
|
|
3291
|
+
*/
|
|
3292
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerTransformers"] = 50399488] = "VoiceChangerTransformers";
|
|
3293
|
+
/**
|
|
3294
|
+
* @ignore
|
|
3295
|
+
*/
|
|
3296
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerGroot"] = 50399744] = "VoiceChangerGroot";
|
|
3297
|
+
/**
|
|
3298
|
+
* @ignore
|
|
3299
|
+
*/
|
|
3300
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerDarthVader"] = 50400000] = "VoiceChangerDarthVader";
|
|
3301
|
+
/**
|
|
3302
|
+
* @ignore
|
|
3303
|
+
*/
|
|
3304
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerIronLady"] = 50400256] = "VoiceChangerIronLady";
|
|
3305
|
+
/**
|
|
3306
|
+
* @ignore
|
|
3307
|
+
*/
|
|
3308
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerShinChan"] = 50400512] = "VoiceChangerShinChan";
|
|
3309
|
+
/**
|
|
3310
|
+
* @ignore
|
|
3311
|
+
*/
|
|
3312
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerGirlishMan"] = 50400768] = "VoiceChangerGirlishMan";
|
|
3313
|
+
/**
|
|
3314
|
+
* @ignore
|
|
3315
|
+
*/
|
|
3316
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerChipmunk"] = 50401024] = "VoiceChangerChipmunk";
|
|
3317
|
+
})(VoiceConversionPreset = exports.VoiceConversionPreset || (exports.VoiceConversionPreset = {}));
|
|
3318
|
+
/**
|
|
3319
|
+
* Preset headphone equalizer types.
|
|
3320
|
+
*/
|
|
3321
|
+
var HeadphoneEqualizerPreset;
|
|
3322
|
+
(function (HeadphoneEqualizerPreset) {
|
|
3323
|
+
/**
|
|
3324
|
+
* The headphone equalizer is disabled, and the original audio is heard.
|
|
3325
|
+
*/
|
|
3326
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerOff"] = 0] = "HeadphoneEqualizerOff";
|
|
3327
|
+
/**
|
|
3328
|
+
* An equalizer is used for headphones.
|
|
3329
|
+
*/
|
|
3330
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerOverear"] = 67108865] = "HeadphoneEqualizerOverear";
|
|
3331
|
+
/**
|
|
3332
|
+
* An equalizer is used for in-ear headphones.
|
|
3333
|
+
*/
|
|
3334
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerInear"] = 67108866] = "HeadphoneEqualizerInear";
|
|
3335
|
+
})(HeadphoneEqualizerPreset = exports.HeadphoneEqualizerPreset || (exports.HeadphoneEqualizerPreset = {}));
|
|
3336
|
+
/**
|
|
3337
|
+
* Voice AI tuner sound types.
|
|
3338
|
+
*/
|
|
3339
|
+
var VoiceAiTunerType;
|
|
3340
|
+
(function (VoiceAiTunerType) {
|
|
3341
|
+
/**
|
|
3342
|
+
* 0: Mature male voice. A deep and magnetic male voice.
|
|
3343
|
+
*/
|
|
3344
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerMatureMale"] = 0] = "VoiceAiTunerMatureMale";
|
|
3345
|
+
/**
|
|
3346
|
+
* 1: Fresh male voice. A fresh and slightly sweet male voice.
|
|
3347
|
+
*/
|
|
3348
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerFreshMale"] = 1] = "VoiceAiTunerFreshMale";
|
|
3349
|
+
/**
|
|
3350
|
+
* 2: Elegant female voice. A deep and charming female voice.
|
|
3351
|
+
*/
|
|
3352
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerElegantFemale"] = 2] = "VoiceAiTunerElegantFemale";
|
|
3353
|
+
/**
|
|
3354
|
+
* 3: Sweet female voice. A high-pitched and cute female voice.
|
|
3355
|
+
*/
|
|
3356
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerSweetFemale"] = 3] = "VoiceAiTunerSweetFemale";
|
|
3357
|
+
/**
|
|
3358
|
+
* 4: Warm male singing. A warm and melodious male voice.
|
|
3359
|
+
*/
|
|
3360
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmMaleSinging"] = 4] = "VoiceAiTunerWarmMaleSinging";
|
|
3361
|
+
/**
|
|
3362
|
+
* 5: Gentle female singing. A soft and delicate female voice.
|
|
3363
|
+
*/
|
|
3364
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerGentleFemaleSinging"] = 5] = "VoiceAiTunerGentleFemaleSinging";
|
|
3365
|
+
/**
|
|
3366
|
+
* 6: Husky male singing. A unique husky male voice.
|
|
3367
|
+
*/
|
|
3368
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerHuskyMaleSinging"] = 6] = "VoiceAiTunerHuskyMaleSinging";
|
|
3369
|
+
/**
|
|
3370
|
+
* 7: Warm elegant female singing. A warm and mature female voice.
|
|
3371
|
+
*/
|
|
3372
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmElegantFemaleSinging"] = 7] = "VoiceAiTunerWarmElegantFemaleSinging";
|
|
3373
|
+
/**
|
|
3374
|
+
* 8: Powerful male singing. A strong and powerful male voice.
|
|
3375
|
+
*/
|
|
3376
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerPowerfulMaleSinging"] = 8] = "VoiceAiTunerPowerfulMaleSinging";
|
|
3377
|
+
/**
|
|
3378
|
+
* 9: Dreamy female singing. A dreamy and soft female voice.
|
|
3379
|
+
*/
|
|
3380
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerDreamyFemaleSinging"] = 9] = "VoiceAiTunerDreamyFemaleSinging";
|
|
3381
|
+
})(VoiceAiTunerType = exports.VoiceAiTunerType || (exports.VoiceAiTunerType = {}));
|
|
3382
|
+
/**
|
|
3383
|
+
* Screen sharing configurations.
|
|
3384
|
+
*/
|
|
3385
|
+
class ScreenCaptureParameters {
|
|
3386
|
+
}
|
|
3387
|
+
exports.ScreenCaptureParameters = ScreenCaptureParameters;
|
|
3388
|
+
/**
|
|
3389
|
+
* Recording quality.
|
|
3390
|
+
*/
|
|
3391
|
+
var AudioRecordingQualityType;
|
|
3392
|
+
(function (AudioRecordingQualityType) {
|
|
3393
|
+
/**
|
|
3394
|
+
* 0: Low quality. The sample rate is 32 kHz, and the file size is around 1.2 MB after 10 minutes of recording.
|
|
3395
|
+
*/
|
|
3396
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityLow"] = 0] = "AudioRecordingQualityLow";
|
|
3397
|
+
/**
|
|
3398
|
+
* 1: Medium quality. The sample rate is 32 kHz, and the file size is around 2 MB after 10 minutes of recording.
|
|
3399
|
+
*/
|
|
3400
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityMedium"] = 1] = "AudioRecordingQualityMedium";
|
|
3401
|
+
/**
|
|
3402
|
+
* 2: High quality. The sample rate is 32 kHz, and the file size is around 3.75 MB after 10 minutes of recording.
|
|
3403
|
+
*/
|
|
3404
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityHigh"] = 2] = "AudioRecordingQualityHigh";
|
|
3405
|
+
/**
|
|
3406
|
+
* 3: Ultra high quality. The sample rate is 32 kHz, and the file size is around 7.5 MB after 10 minutes of recording.
|
|
3407
|
+
*/
|
|
3408
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityUltraHigh"] = 3] = "AudioRecordingQualityUltraHigh";
|
|
3409
|
+
})(AudioRecordingQualityType = exports.AudioRecordingQualityType || (exports.AudioRecordingQualityType = {}));
|
|
3410
|
+
/**
|
|
3411
|
+
* Recording content. Set in startAudioRecording.
|
|
3412
|
+
*/
|
|
3413
|
+
var AudioFileRecordingType;
|
|
3414
|
+
(function (AudioFileRecordingType) {
|
|
3415
|
+
/**
|
|
3416
|
+
* 1: Only records the audio of the local user.
|
|
3417
|
+
*/
|
|
3418
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingMic"] = 1] = "AudioFileRecordingMic";
|
|
3419
|
+
/**
|
|
3420
|
+
* 2: Only records the audio of all remote users.
|
|
3421
|
+
*/
|
|
3422
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingPlayback"] = 2] = "AudioFileRecordingPlayback";
|
|
3423
|
+
/**
|
|
3424
|
+
* 3: Records the mixed audio of the local and all remote users.
|
|
3425
|
+
*/
|
|
3426
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingMixed"] = 3] = "AudioFileRecordingMixed";
|
|
3427
|
+
})(AudioFileRecordingType = exports.AudioFileRecordingType || (exports.AudioFileRecordingType = {}));
|
|
3428
|
+
/**
|
|
3429
|
+
* Audio profile.
|
|
3430
|
+
*/
|
|
3431
|
+
var AudioEncodedFrameObserverPosition;
|
|
3432
|
+
(function (AudioEncodedFrameObserverPosition) {
|
|
3433
|
+
/**
|
|
3434
|
+
* 1: Only records the audio of the local user.
|
|
3435
|
+
*/
|
|
3436
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionRecord"] = 1] = "AudioEncodedFrameObserverPositionRecord";
|
|
3437
|
+
/**
|
|
3438
|
+
* 2: Only records the audio of all remote users.
|
|
3439
|
+
*/
|
|
3440
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionPlayback"] = 2] = "AudioEncodedFrameObserverPositionPlayback";
|
|
3441
|
+
/**
|
|
3442
|
+
* 3: Records the mixed audio of the local and all remote users.
|
|
3443
|
+
*/
|
|
3444
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionMixed"] = 3] = "AudioEncodedFrameObserverPositionMixed";
|
|
3445
|
+
})(AudioEncodedFrameObserverPosition = exports.AudioEncodedFrameObserverPosition || (exports.AudioEncodedFrameObserverPosition = {}));
|
|
3446
|
+
/**
|
|
3447
|
+
* Recording configurations.
|
|
3448
|
+
*/
|
|
3449
|
+
class AudioRecordingConfiguration {
|
|
3450
|
+
}
|
|
3451
|
+
exports.AudioRecordingConfiguration = AudioRecordingConfiguration;
|
|
3452
|
+
/**
|
|
3453
|
+
* Observer settings for the encoded audio.
|
|
3454
|
+
*/
|
|
3455
|
+
class AudioEncodedFrameObserverConfig {
|
|
3456
|
+
}
|
|
3457
|
+
exports.AudioEncodedFrameObserverConfig = AudioEncodedFrameObserverConfig;
|
|
3458
|
+
/**
|
|
3459
|
+
* The region for connection, which is the region where the server the SDK connects to is located.
|
|
3460
|
+
*/
|
|
3461
|
+
var AreaCode;
|
|
3462
|
+
(function (AreaCode) {
|
|
3463
|
+
/**
|
|
3464
|
+
* Mainland China.
|
|
3465
|
+
*/
|
|
3466
|
+
AreaCode[AreaCode["AreaCodeCn"] = 1] = "AreaCodeCn";
|
|
3467
|
+
/**
|
|
3468
|
+
* North America.
|
|
3469
|
+
*/
|
|
3470
|
+
AreaCode[AreaCode["AreaCodeNa"] = 2] = "AreaCodeNa";
|
|
3471
|
+
/**
|
|
3472
|
+
* Europe.
|
|
3473
|
+
*/
|
|
3474
|
+
AreaCode[AreaCode["AreaCodeEu"] = 4] = "AreaCodeEu";
|
|
3475
|
+
/**
|
|
3476
|
+
* Asia, excluding Mainland China.
|
|
3477
|
+
*/
|
|
3478
|
+
AreaCode[AreaCode["AreaCodeAs"] = 8] = "AreaCodeAs";
|
|
3479
|
+
/**
|
|
3480
|
+
* Japan.
|
|
3481
|
+
*/
|
|
3482
|
+
AreaCode[AreaCode["AreaCodeJp"] = 16] = "AreaCodeJp";
|
|
3483
|
+
/**
|
|
3484
|
+
* India.
|
|
3485
|
+
*/
|
|
3486
|
+
AreaCode[AreaCode["AreaCodeIn"] = 32] = "AreaCodeIn";
|
|
3487
|
+
/**
|
|
3488
|
+
* Global.
|
|
3489
|
+
*/
|
|
3490
|
+
AreaCode[AreaCode["AreaCodeGlob"] = 4294967295] = "AreaCodeGlob";
|
|
3491
|
+
})(AreaCode = exports.AreaCode || (exports.AreaCode = {}));
|
|
3492
|
+
/**
|
|
3493
|
+
* @ignore
|
|
3494
|
+
*/
|
|
3495
|
+
var AreaCodeEx;
|
|
3496
|
+
(function (AreaCodeEx) {
|
|
3497
|
+
/**
|
|
3498
|
+
* @ignore
|
|
3499
|
+
*/
|
|
3500
|
+
AreaCodeEx[AreaCodeEx["AreaCodeOc"] = 64] = "AreaCodeOc";
|
|
3501
|
+
/**
|
|
3502
|
+
* @ignore
|
|
3503
|
+
*/
|
|
3504
|
+
AreaCodeEx[AreaCodeEx["AreaCodeSa"] = 128] = "AreaCodeSa";
|
|
3505
|
+
/**
|
|
3506
|
+
* @ignore
|
|
3507
|
+
*/
|
|
3508
|
+
AreaCodeEx[AreaCodeEx["AreaCodeAf"] = 256] = "AreaCodeAf";
|
|
3509
|
+
/**
|
|
3510
|
+
* @ignore
|
|
3511
|
+
*/
|
|
3512
|
+
AreaCodeEx[AreaCodeEx["AreaCodeKr"] = 512] = "AreaCodeKr";
|
|
3513
|
+
/**
|
|
3514
|
+
* @ignore
|
|
3515
|
+
*/
|
|
3516
|
+
AreaCodeEx[AreaCodeEx["AreaCodeHkmc"] = 1024] = "AreaCodeHkmc";
|
|
3517
|
+
/**
|
|
3518
|
+
* @ignore
|
|
3519
|
+
*/
|
|
3520
|
+
AreaCodeEx[AreaCodeEx["AreaCodeUs"] = 2048] = "AreaCodeUs";
|
|
3521
|
+
/**
|
|
3522
|
+
* @ignore
|
|
3523
|
+
*/
|
|
3524
|
+
AreaCodeEx[AreaCodeEx["AreaCodeRu"] = 4096] = "AreaCodeRu";
|
|
3525
|
+
/**
|
|
3526
|
+
* @ignore
|
|
3527
|
+
*/
|
|
3528
|
+
AreaCodeEx[AreaCodeEx["AreaCodeOvs"] = 4294967294] = "AreaCodeOvs";
|
|
3529
|
+
})(AreaCodeEx = exports.AreaCodeEx || (exports.AreaCodeEx = {}));
|
|
3530
|
+
/**
|
|
3531
|
+
* The error code of the channel media relay.
|
|
3532
|
+
*/
|
|
3533
|
+
var ChannelMediaRelayError;
|
|
3534
|
+
(function (ChannelMediaRelayError) {
|
|
3535
|
+
/**
|
|
3536
|
+
* 0: No error.
|
|
3537
|
+
*/
|
|
3538
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayOk"] = 0] = "RelayOk";
|
|
3539
|
+
/**
|
|
3540
|
+
* 1: An error occurs in the server response.
|
|
3541
|
+
*/
|
|
3542
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerErrorResponse"] = 1] = "RelayErrorServerErrorResponse";
|
|
3543
|
+
/**
|
|
3544
|
+
* 2: No server response. This error may be caused by poor network connections. If this error occurs when initiating a channel media relay, you can try again later; if this error occurs during channel media relay, you can call leaveChannel to leave the channel. This error can also occur if the channel media relay service is not enabled in the project. You can contact to enable the service.
|
|
3545
|
+
*/
|
|
3546
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerNoResponse"] = 2] = "RelayErrorServerNoResponse";
|
|
3547
|
+
/**
|
|
3548
|
+
* 3: The SDK fails to access the service, probably due to limited resources of the server.
|
|
3549
|
+
*/
|
|
3550
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorNoResourceAvailable"] = 3] = "RelayErrorNoResourceAvailable";
|
|
3551
|
+
/**
|
|
3552
|
+
* 4: Fails to send the relay request.
|
|
3553
|
+
*/
|
|
3554
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedJoinSrc"] = 4] = "RelayErrorFailedJoinSrc";
|
|
3555
|
+
/**
|
|
3556
|
+
* 5: Fails to accept the relay request.
|
|
3557
|
+
*/
|
|
3558
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedJoinDest"] = 5] = "RelayErrorFailedJoinDest";
|
|
3559
|
+
/**
|
|
3560
|
+
* 6: The server fails to receive the media stream.
|
|
3561
|
+
*/
|
|
3562
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedPacketReceivedFromSrc"] = 6] = "RelayErrorFailedPacketReceivedFromSrc";
|
|
3563
|
+
/**
|
|
3564
|
+
* 7: The server fails to send the media stream.
|
|
3565
|
+
*/
|
|
3566
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedPacketSentToDest"] = 7] = "RelayErrorFailedPacketSentToDest";
|
|
3567
|
+
/**
|
|
3568
|
+
* 8: The SDK disconnects from the server due to poor network connections. You can call leaveChannel to leave the channel.
|
|
3569
|
+
*/
|
|
3570
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerConnectionLost"] = 8] = "RelayErrorServerConnectionLost";
|
|
3571
|
+
/**
|
|
3572
|
+
* 9: An internal error occurs in the server.
|
|
3573
|
+
*/
|
|
3574
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorInternalError"] = 9] = "RelayErrorInternalError";
|
|
3575
|
+
/**
|
|
3576
|
+
* 10: The token of the source channel has expired.
|
|
3577
|
+
*/
|
|
3578
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorSrcTokenExpired"] = 10] = "RelayErrorSrcTokenExpired";
|
|
3579
|
+
/**
|
|
3580
|
+
* 11: The token of the destination channel has expired.
|
|
3581
|
+
*/
|
|
3582
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorDestTokenExpired"] = 11] = "RelayErrorDestTokenExpired";
|
|
3583
|
+
})(ChannelMediaRelayError = exports.ChannelMediaRelayError || (exports.ChannelMediaRelayError = {}));
|
|
3584
|
+
/**
|
|
3585
|
+
* The state code of the channel media relay.
|
|
3586
|
+
*/
|
|
3587
|
+
var ChannelMediaRelayState;
|
|
3588
|
+
(function (ChannelMediaRelayState) {
|
|
3589
|
+
/**
|
|
3590
|
+
* 0: The initial state. After you successfully stop the channel media relay by calling stopChannelMediaRelay, the onChannelMediaRelayStateChanged callback returns this state.
|
|
3591
|
+
*/
|
|
3592
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateIdle"] = 0] = "RelayStateIdle";
|
|
3593
|
+
/**
|
|
3594
|
+
* 1: The SDK tries to relay the media stream to the destination channel.
|
|
3595
|
+
*/
|
|
3596
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateConnecting"] = 1] = "RelayStateConnecting";
|
|
3597
|
+
/**
|
|
3598
|
+
* 2: The SDK successfully relays the media stream to the destination channel.
|
|
3599
|
+
*/
|
|
3600
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateRunning"] = 2] = "RelayStateRunning";
|
|
3601
|
+
/**
|
|
3602
|
+
* 3: An error occurs. See code in onChannelMediaRelayStateChanged for the error code.
|
|
3603
|
+
*/
|
|
3604
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateFailure"] = 3] = "RelayStateFailure";
|
|
3605
|
+
})(ChannelMediaRelayState = exports.ChannelMediaRelayState || (exports.ChannelMediaRelayState = {}));
|
|
3606
|
+
/**
|
|
3607
|
+
* Channel media information.
|
|
3608
|
+
*/
|
|
3609
|
+
class ChannelMediaInfo {
|
|
3610
|
+
}
|
|
3611
|
+
exports.ChannelMediaInfo = ChannelMediaInfo;
|
|
3612
|
+
/**
|
|
3613
|
+
* Configuration of cross channel media relay.
|
|
3614
|
+
*/
|
|
3615
|
+
class ChannelMediaRelayConfiguration {
|
|
3616
|
+
}
|
|
3617
|
+
exports.ChannelMediaRelayConfiguration = ChannelMediaRelayConfiguration;
|
|
3618
|
+
/**
|
|
3619
|
+
* The uplink network information.
|
|
3620
|
+
*/
|
|
3621
|
+
class UplinkNetworkInfo {
|
|
3622
|
+
}
|
|
3623
|
+
exports.UplinkNetworkInfo = UplinkNetworkInfo;
|
|
3624
|
+
/**
|
|
3625
|
+
* @ignore
|
|
3626
|
+
*/
|
|
3627
|
+
class PeerDownlinkInfo {
|
|
3628
|
+
}
|
|
3629
|
+
exports.PeerDownlinkInfo = PeerDownlinkInfo;
|
|
3630
|
+
/**
|
|
3631
|
+
* @ignore
|
|
3632
|
+
*/
|
|
3633
|
+
class DownlinkNetworkInfo {
|
|
3634
|
+
}
|
|
3635
|
+
exports.DownlinkNetworkInfo = DownlinkNetworkInfo;
|
|
3636
|
+
/**
|
|
3637
|
+
* The built-in encryption mode.
|
|
3638
|
+
*
|
|
3639
|
+
* Agora recommends using Aes128Gcm2 or Aes256Gcm2 encrypted mode. These two modes support the use of salt for higher security.
|
|
3640
|
+
*/
|
|
3641
|
+
var EncryptionMode;
|
|
3642
|
+
(function (EncryptionMode) {
|
|
3643
|
+
/**
|
|
3644
|
+
* 1: 128-bit AES encryption, XTS mode.
|
|
3645
|
+
*/
|
|
3646
|
+
EncryptionMode[EncryptionMode["Aes128Xts"] = 1] = "Aes128Xts";
|
|
3647
|
+
/**
|
|
3648
|
+
* 2: 128-bit AES encryption, ECB mode.
|
|
3649
|
+
*/
|
|
3650
|
+
EncryptionMode[EncryptionMode["Aes128Ecb"] = 2] = "Aes128Ecb";
|
|
3651
|
+
/**
|
|
3652
|
+
* 3: 256-bit AES encryption, XTS mode.
|
|
3653
|
+
*/
|
|
3654
|
+
EncryptionMode[EncryptionMode["Aes256Xts"] = 3] = "Aes256Xts";
|
|
3655
|
+
/**
|
|
3656
|
+
* 4: 128-bit SM4 encryption, ECB mode.
|
|
3657
|
+
*/
|
|
3658
|
+
EncryptionMode[EncryptionMode["Sm4128Ecb"] = 4] = "Sm4128Ecb";
|
|
3659
|
+
/**
|
|
3660
|
+
* 5: 128-bit AES encryption, GCM mode.
|
|
3661
|
+
*/
|
|
3662
|
+
EncryptionMode[EncryptionMode["Aes128Gcm"] = 5] = "Aes128Gcm";
|
|
3663
|
+
/**
|
|
3664
|
+
* 6: 256-bit AES encryption, GCM mode.
|
|
3665
|
+
*/
|
|
3666
|
+
EncryptionMode[EncryptionMode["Aes256Gcm"] = 6] = "Aes256Gcm";
|
|
3667
|
+
/**
|
|
3668
|
+
* 7: (Default) 128-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
|
|
3669
|
+
*/
|
|
3670
|
+
EncryptionMode[EncryptionMode["Aes128Gcm2"] = 7] = "Aes128Gcm2";
|
|
3671
|
+
/**
|
|
3672
|
+
* 8: 256-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
|
|
3673
|
+
*/
|
|
3674
|
+
EncryptionMode[EncryptionMode["Aes256Gcm2"] = 8] = "Aes256Gcm2";
|
|
3675
|
+
/**
|
|
3676
|
+
* Enumerator boundary.
|
|
3677
|
+
*/
|
|
3678
|
+
EncryptionMode[EncryptionMode["ModeEnd"] = 9] = "ModeEnd";
|
|
3679
|
+
})(EncryptionMode = exports.EncryptionMode || (exports.EncryptionMode = {}));
|
|
3680
|
+
/**
|
|
3681
|
+
* Built-in encryption configurations.
|
|
3682
|
+
*/
|
|
3683
|
+
class EncryptionConfig {
|
|
3684
|
+
}
|
|
3685
|
+
exports.EncryptionConfig = EncryptionConfig;
|
|
3686
|
+
/**
|
|
3687
|
+
* Encryption error type.
|
|
3688
|
+
*/
|
|
3689
|
+
var EncryptionErrorType;
|
|
3690
|
+
(function (EncryptionErrorType) {
|
|
3691
|
+
/**
|
|
3692
|
+
* 0: Internal reason.
|
|
3693
|
+
*/
|
|
3694
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorInternalFailure"] = 0] = "EncryptionErrorInternalFailure";
|
|
3695
|
+
/**
|
|
3696
|
+
* 1: Media stream decryption error. Ensure that the receiver and the sender use the same encryption mode and key.
|
|
3697
|
+
*/
|
|
3698
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDecryptionFailure"] = 1] = "EncryptionErrorDecryptionFailure";
|
|
3699
|
+
/**
|
|
3700
|
+
* 2: Media stream encryption error.
|
|
3701
|
+
*/
|
|
3702
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorEncryptionFailure"] = 2] = "EncryptionErrorEncryptionFailure";
|
|
3703
|
+
/**
|
|
3704
|
+
* 3: Data stream decryption error. Ensure that the receiver and the sender use the same encryption mode and key.
|
|
3705
|
+
*/
|
|
3706
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamDecryptionFailure"] = 3] = "EncryptionErrorDatastreamDecryptionFailure";
|
|
3707
|
+
/**
|
|
3708
|
+
* 4: Data stream encryption error.
|
|
3709
|
+
*/
|
|
3710
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamEncryptionFailure"] = 4] = "EncryptionErrorDatastreamEncryptionFailure";
|
|
3711
|
+
})(EncryptionErrorType = exports.EncryptionErrorType || (exports.EncryptionErrorType = {}));
|
|
3712
|
+
/**
|
|
3713
|
+
* @ignore
|
|
3714
|
+
*/
|
|
3715
|
+
var UploadErrorReason;
|
|
3716
|
+
(function (UploadErrorReason) {
|
|
3717
|
+
/**
|
|
3718
|
+
* @ignore
|
|
3719
|
+
*/
|
|
3720
|
+
UploadErrorReason[UploadErrorReason["UploadSuccess"] = 0] = "UploadSuccess";
|
|
3721
|
+
/**
|
|
3722
|
+
* @ignore
|
|
3723
|
+
*/
|
|
3724
|
+
UploadErrorReason[UploadErrorReason["UploadNetError"] = 1] = "UploadNetError";
|
|
3725
|
+
/**
|
|
3726
|
+
* @ignore
|
|
3727
|
+
*/
|
|
3728
|
+
UploadErrorReason[UploadErrorReason["UploadServerError"] = 2] = "UploadServerError";
|
|
3729
|
+
})(UploadErrorReason = exports.UploadErrorReason || (exports.UploadErrorReason = {}));
|
|
3730
|
+
/**
|
|
3731
|
+
* The type of the device permission.
|
|
3732
|
+
*/
|
|
3733
|
+
var PermissionType;
|
|
3734
|
+
(function (PermissionType) {
|
|
3735
|
+
/**
|
|
3736
|
+
* 0: Permission for the audio capture device.
|
|
3737
|
+
*/
|
|
3738
|
+
PermissionType[PermissionType["RecordAudio"] = 0] = "RecordAudio";
|
|
3739
|
+
/**
|
|
3740
|
+
* 1: Permission for the camera.
|
|
3741
|
+
*/
|
|
3742
|
+
PermissionType[PermissionType["Camera"] = 1] = "Camera";
|
|
3743
|
+
/**
|
|
3744
|
+
* @ignore
|
|
3745
|
+
*/
|
|
3746
|
+
PermissionType[PermissionType["ScreenCapture"] = 2] = "ScreenCapture";
|
|
3747
|
+
})(PermissionType = exports.PermissionType || (exports.PermissionType = {}));
|
|
3748
|
+
/**
|
|
3749
|
+
* The subscribing state.
|
|
3750
|
+
*/
|
|
3751
|
+
var StreamSubscribeState;
|
|
3752
|
+
(function (StreamSubscribeState) {
|
|
3753
|
+
/**
|
|
3754
|
+
* 0: The initial publishing state after joining the channel.
|
|
3755
|
+
*/
|
|
3756
|
+
StreamSubscribeState[StreamSubscribeState["SubStateIdle"] = 0] = "SubStateIdle";
|
|
3757
|
+
/**
|
|
3758
|
+
* 1: Fails to subscribe to the remote stream. Possible reasons:
|
|
3759
|
+
* The remote user:
|
|
3760
|
+
* Calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media stream.
|
|
3761
|
+
* Calls disableAudio or disableVideo to disable the local audio or video module.
|
|
3762
|
+
* Calls enableLocalAudio (false) or enableLocalVideo (false) to disable local audio or video capture.
|
|
3763
|
+
* The role of the remote user is audience.
|
|
3764
|
+
* The local user calls the following methods to stop receiving remote streams:
|
|
3765
|
+
* Call muteRemoteAudioStream (true) or muteAllRemoteAudioStreams (true) to stop receiving the remote audio stream.
|
|
3766
|
+
* Call muteRemoteVideoStream (true) or muteAllRemoteVideoStreams (true) to stop receiving the remote video stream.
|
|
3767
|
+
*/
|
|
3768
|
+
StreamSubscribeState[StreamSubscribeState["SubStateNoSubscribed"] = 1] = "SubStateNoSubscribed";
|
|
3769
|
+
/**
|
|
3770
|
+
* 2: Subscribing.
|
|
3771
|
+
*/
|
|
3772
|
+
StreamSubscribeState[StreamSubscribeState["SubStateSubscribing"] = 2] = "SubStateSubscribing";
|
|
3773
|
+
/**
|
|
3774
|
+
* 3: The remote stream is received, and the subscription is successful.
|
|
3775
|
+
*/
|
|
3776
|
+
StreamSubscribeState[StreamSubscribeState["SubStateSubscribed"] = 3] = "SubStateSubscribed";
|
|
3777
|
+
})(StreamSubscribeState = exports.StreamSubscribeState || (exports.StreamSubscribeState = {}));
|
|
3778
|
+
/**
|
|
3779
|
+
* The publishing state.
|
|
3780
|
+
*/
|
|
3781
|
+
var StreamPublishState;
|
|
3782
|
+
(function (StreamPublishState) {
|
|
3783
|
+
/**
|
|
3784
|
+
* 0: The initial publishing state after joining the channel.
|
|
3785
|
+
*/
|
|
3786
|
+
StreamPublishState[StreamPublishState["PubStateIdle"] = 0] = "PubStateIdle";
|
|
3787
|
+
/**
|
|
3788
|
+
* 1: Fails to publish the local stream. Possible reasons:
|
|
3789
|
+
* The local user calls muteLocalAudioStream (true) or muteLocalVideoStream (true) to stop sending local media streams.
|
|
3790
|
+
* The local user calls disableAudio or disableVideo to disable the local audio or video module.
|
|
3791
|
+
* The local user calls enableLocalAudio (false) or enableLocalVideo (false) to disable the local audio or video capture.
|
|
3792
|
+
* The role of the local user is audience.
|
|
3793
|
+
*/
|
|
3794
|
+
StreamPublishState[StreamPublishState["PubStateNoPublished"] = 1] = "PubStateNoPublished";
|
|
3795
|
+
/**
|
|
3796
|
+
* 2: Publishing.
|
|
3797
|
+
*/
|
|
3798
|
+
StreamPublishState[StreamPublishState["PubStatePublishing"] = 2] = "PubStatePublishing";
|
|
3799
|
+
/**
|
|
3800
|
+
* 3: Publishes successfully.
|
|
3801
|
+
*/
|
|
3802
|
+
StreamPublishState[StreamPublishState["PubStatePublished"] = 3] = "PubStatePublished";
|
|
3803
|
+
})(StreamPublishState = exports.StreamPublishState || (exports.StreamPublishState = {}));
|
|
3804
|
+
/**
|
|
3805
|
+
* The configuration of the audio and video call loop test.
|
|
3806
|
+
*/
|
|
3807
|
+
class EchoTestConfiguration {
|
|
3808
|
+
}
|
|
3809
|
+
exports.EchoTestConfiguration = EchoTestConfiguration;
|
|
3810
|
+
/**
|
|
3811
|
+
* The information of the user.
|
|
3812
|
+
*/
|
|
3813
|
+
class UserInfo {
|
|
3814
|
+
}
|
|
3815
|
+
exports.UserInfo = UserInfo;
|
|
3816
|
+
/**
|
|
3817
|
+
* The audio filter types of in-ear monitoring.
|
|
3818
|
+
*/
|
|
3819
|
+
var EarMonitoringFilterType;
|
|
3820
|
+
(function (EarMonitoringFilterType) {
|
|
3821
|
+
/**
|
|
3822
|
+
* 1<<0: No audio filter added to in-ear monitoring.
|
|
3823
|
+
*/
|
|
3824
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNone"] = 1] = "EarMonitoringFilterNone";
|
|
3825
|
+
/**
|
|
3826
|
+
* 1<<1: Add vocal effects audio filter to in-ear monitoring. If you implement functions such as voice beautifier and audio effect, users can hear the voice after adding these effects.
|
|
3827
|
+
*/
|
|
3828
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterBuiltInAudioFilters"] = 2] = "EarMonitoringFilterBuiltInAudioFilters";
|
|
3829
|
+
/**
|
|
3830
|
+
* 1<<2: Add noise suppression audio filter to in-ear monitoring.
|
|
3831
|
+
*/
|
|
3832
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNoiseSuppression"] = 4] = "EarMonitoringFilterNoiseSuppression";
|
|
3833
|
+
/**
|
|
3834
|
+
* 1<<15: Reuse the audio filter that has been processed on the sending end for in-ear monitoring. This enumerator reduces CPU usage while increasing in-ear monitoring latency, which is suitable for latency-tolerant scenarios requiring low CPU consumption.
|
|
3835
|
+
*/
|
|
3836
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterReusePostProcessingFilter"] = 32768] = "EarMonitoringFilterReusePostProcessingFilter";
|
|
3837
|
+
})(EarMonitoringFilterType = exports.EarMonitoringFilterType || (exports.EarMonitoringFilterType = {}));
|
|
3838
|
+
/**
|
|
3839
|
+
* @ignore
|
|
3840
|
+
*/
|
|
3841
|
+
var ThreadPriorityType;
|
|
3842
|
+
(function (ThreadPriorityType) {
|
|
3843
|
+
/**
|
|
3844
|
+
* @ignore
|
|
3845
|
+
*/
|
|
3846
|
+
ThreadPriorityType[ThreadPriorityType["Lowest"] = 0] = "Lowest";
|
|
3847
|
+
/**
|
|
3848
|
+
* @ignore
|
|
3849
|
+
*/
|
|
3850
|
+
ThreadPriorityType[ThreadPriorityType["Low"] = 1] = "Low";
|
|
3851
|
+
/**
|
|
3852
|
+
* @ignore
|
|
3853
|
+
*/
|
|
3854
|
+
ThreadPriorityType[ThreadPriorityType["Normal"] = 2] = "Normal";
|
|
3855
|
+
/**
|
|
3856
|
+
* @ignore
|
|
3857
|
+
*/
|
|
3858
|
+
ThreadPriorityType[ThreadPriorityType["High"] = 3] = "High";
|
|
3859
|
+
/**
|
|
3860
|
+
* @ignore
|
|
3861
|
+
*/
|
|
3862
|
+
ThreadPriorityType[ThreadPriorityType["Highest"] = 4] = "Highest";
|
|
3863
|
+
/**
|
|
3864
|
+
* @ignore
|
|
3865
|
+
*/
|
|
3866
|
+
ThreadPriorityType[ThreadPriorityType["Critical"] = 5] = "Critical";
|
|
3867
|
+
})(ThreadPriorityType = exports.ThreadPriorityType || (exports.ThreadPriorityType = {}));
|
|
3868
|
+
/**
|
|
3869
|
+
* The video configuration for the shared screen stream.
|
|
3870
|
+
*/
|
|
3871
|
+
class ScreenVideoParameters {
|
|
3872
|
+
}
|
|
3873
|
+
exports.ScreenVideoParameters = ScreenVideoParameters;
|
|
3874
|
+
/**
|
|
3875
|
+
* The audio configuration for the shared screen stream.
|
|
3876
|
+
*
|
|
3877
|
+
* Only available where captureAudio is true.
|
|
3878
|
+
*/
|
|
3879
|
+
class ScreenAudioParameters {
|
|
3880
|
+
}
|
|
3881
|
+
exports.ScreenAudioParameters = ScreenAudioParameters;
|
|
3882
|
+
/**
|
|
3883
|
+
* @ignore
|
|
3884
|
+
*/
|
|
3885
|
+
class ScreenCaptureParameters2 {
|
|
3886
|
+
}
|
|
3887
|
+
exports.ScreenCaptureParameters2 = ScreenCaptureParameters2;
|
|
3888
|
+
/**
|
|
3889
|
+
* The rendering state of the media frame.
|
|
3890
|
+
*/
|
|
3891
|
+
var MediaTraceEvent;
|
|
3892
|
+
(function (MediaTraceEvent) {
|
|
3893
|
+
/**
|
|
3894
|
+
* 0: The video frame has been rendered.
|
|
3895
|
+
*/
|
|
3896
|
+
MediaTraceEvent[MediaTraceEvent["MediaTraceEventVideoRendered"] = 0] = "MediaTraceEventVideoRendered";
|
|
3897
|
+
/**
|
|
3898
|
+
* 1: The video frame has been decoded.
|
|
3899
|
+
*/
|
|
3900
|
+
MediaTraceEvent[MediaTraceEvent["MediaTraceEventVideoDecoded"] = 1] = "MediaTraceEventVideoDecoded";
|
|
3901
|
+
})(MediaTraceEvent = exports.MediaTraceEvent || (exports.MediaTraceEvent = {}));
|
|
3902
|
+
/**
|
|
3903
|
+
* Indicators during video frame rendering progress.
|
|
3904
|
+
*/
|
|
3905
|
+
class VideoRenderingTracingInfo {
|
|
3906
|
+
}
|
|
3907
|
+
exports.VideoRenderingTracingInfo = VideoRenderingTracingInfo;
|
|
3908
|
+
/**
|
|
3909
|
+
* @ignore
|
|
3910
|
+
*/
|
|
3911
|
+
var ConfigFetchType;
|
|
3912
|
+
(function (ConfigFetchType) {
|
|
3913
|
+
/**
|
|
3914
|
+
* @ignore
|
|
3915
|
+
*/
|
|
3916
|
+
ConfigFetchType[ConfigFetchType["ConfigFetchTypeInitialize"] = 1] = "ConfigFetchTypeInitialize";
|
|
3917
|
+
/**
|
|
3918
|
+
* @ignore
|
|
3919
|
+
*/
|
|
3920
|
+
ConfigFetchType[ConfigFetchType["ConfigFetchTypeJoinChannel"] = 2] = "ConfigFetchTypeJoinChannel";
|
|
3921
|
+
})(ConfigFetchType = exports.ConfigFetchType || (exports.ConfigFetchType = {}));
|
|
3922
|
+
/**
|
|
3923
|
+
* @ignore
|
|
3924
|
+
*/
|
|
3925
|
+
var LocalProxyMode;
|
|
3926
|
+
(function (LocalProxyMode) {
|
|
3927
|
+
/**
|
|
3928
|
+
* @ignore
|
|
3929
|
+
*/
|
|
3930
|
+
LocalProxyMode[LocalProxyMode["ConnectivityFirst"] = 0] = "ConnectivityFirst";
|
|
3931
|
+
/**
|
|
3932
|
+
* @ignore
|
|
3933
|
+
*/
|
|
3934
|
+
LocalProxyMode[LocalProxyMode["LocalOnly"] = 1] = "LocalOnly";
|
|
3935
|
+
})(LocalProxyMode = exports.LocalProxyMode || (exports.LocalProxyMode = {}));
|
|
3936
|
+
/**
|
|
3937
|
+
* @ignore
|
|
3938
|
+
*/
|
|
3939
|
+
class LogUploadServerInfo {
|
|
3940
|
+
}
|
|
3941
|
+
exports.LogUploadServerInfo = LogUploadServerInfo;
|
|
3942
|
+
/**
|
|
3943
|
+
* @ignore
|
|
3944
|
+
*/
|
|
3945
|
+
class AdvancedConfigInfo {
|
|
3946
|
+
}
|
|
3947
|
+
exports.AdvancedConfigInfo = AdvancedConfigInfo;
|
|
3948
|
+
/**
|
|
3949
|
+
* @ignore
|
|
3950
|
+
*/
|
|
3951
|
+
class LocalAccessPointConfiguration {
|
|
3952
|
+
}
|
|
3953
|
+
exports.LocalAccessPointConfiguration = LocalAccessPointConfiguration;
|
|
3954
|
+
/**
|
|
3955
|
+
* @ignore
|
|
3956
|
+
*/
|
|
3957
|
+
var RecorderStreamType;
|
|
3958
|
+
(function (RecorderStreamType) {
|
|
3959
|
+
/**
|
|
3960
|
+
* @ignore
|
|
3961
|
+
*/
|
|
3962
|
+
RecorderStreamType[RecorderStreamType["Rtc"] = 0] = "Rtc";
|
|
3963
|
+
/**
|
|
3964
|
+
* @ignore
|
|
3965
|
+
*/
|
|
3966
|
+
RecorderStreamType[RecorderStreamType["Preview"] = 1] = "Preview";
|
|
3967
|
+
})(RecorderStreamType = exports.RecorderStreamType || (exports.RecorderStreamType = {}));
|
|
3968
|
+
/**
|
|
3969
|
+
* @ignore
|
|
3970
|
+
*/
|
|
3971
|
+
class RecorderStreamInfo {
|
|
3972
|
+
}
|
|
3973
|
+
exports.RecorderStreamInfo = RecorderStreamInfo;
|
|
3974
|
+
/**
|
|
3975
|
+
* The spatial audio parameters.
|
|
3976
|
+
*/
|
|
3977
|
+
class SpatialAudioParams {
|
|
3978
|
+
}
|
|
3979
|
+
exports.SpatialAudioParams = SpatialAudioParams;
|
|
3980
|
+
/**
|
|
3981
|
+
* @ignore
|
|
3982
|
+
*/
|
|
3983
|
+
class VideoLayout {
|
|
3984
|
+
}
|
|
3985
|
+
exports.VideoLayout = VideoLayout;
|