react-native-shengwang 4.6.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +755 -0
- package/LICENSE +20 -0
- package/README.md +162 -0
- package/android/build.gradle +180 -0
- package/android/consumer-rules.pro +5 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/AndroidManifestNew.xml +9 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraPIPActivity.java +107 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcNgModule.java +278 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcNgPackage.java +61 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManager.java +60 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcTextureViewManager.java +45 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcNgSpec.java +9 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManagerSpec.java +25 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcTextureViewManagerSpec.java +25 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcNgSpec.java +40 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManagerSpec.java +16 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcTextureViewManagerSpec.java +12 -0
- package/ios/AgoraRtcNg.h +20 -0
- package/ios/AgoraRtcNg.mm +475 -0
- package/ios/AgoraRtcNg.xcodeproj/project.pbxproj +278 -0
- package/ios/AgoraRtcSurfaceView.h +17 -0
- package/ios/AgoraRtcSurfaceView.mm +95 -0
- package/ios/AgoraRtcSurfaceViewManager.mm +41 -0
- package/lib/commonjs/AgoraBase.js +4298 -0
- package/lib/commonjs/AgoraBase.js.map +1 -0
- package/lib/commonjs/AgoraMediaBase.js +1057 -0
- package/lib/commonjs/AgoraMediaBase.js.map +1 -0
- package/lib/commonjs/AgoraMediaPlayerTypes.js +323 -0
- package/lib/commonjs/AgoraMediaPlayerTypes.js.map +1 -0
- package/lib/commonjs/AgoraRtcRenderView.js +55 -0
- package/lib/commonjs/AgoraRtcRenderView.js.map +1 -0
- package/lib/commonjs/IAgoraH265Transcoder.js +40 -0
- package/lib/commonjs/IAgoraH265Transcoder.js.map +1 -0
- package/lib/commonjs/IAgoraLog.js +81 -0
- package/lib/commonjs/IAgoraLog.js.map +1 -0
- package/lib/commonjs/IAgoraMediaEngine.js +35 -0
- package/lib/commonjs/IAgoraMediaEngine.js.map +1 -0
- package/lib/commonjs/IAgoraMediaPlayer.js +25 -0
- package/lib/commonjs/IAgoraMediaPlayer.js.map +1 -0
- package/lib/commonjs/IAgoraMediaPlayerSource.js +4 -0
- package/lib/commonjs/IAgoraMediaPlayerSource.js.map +1 -0
- package/lib/commonjs/IAgoraMediaRecorder.js +13 -0
- package/lib/commonjs/IAgoraMediaRecorder.js.map +1 -0
- package/lib/commonjs/IAgoraMediaStreamingSource.js +77 -0
- package/lib/commonjs/IAgoraMediaStreamingSource.js.map +1 -0
- package/lib/commonjs/IAgoraMusicContentCenter.js +166 -0
- package/lib/commonjs/IAgoraMusicContentCenter.js.map +1 -0
- package/lib/commonjs/IAgoraPip.js +55 -0
- package/lib/commonjs/IAgoraPip.js.map +1 -0
- package/lib/commonjs/IAgoraRhythmPlayer.js +65 -0
- package/lib/commonjs/IAgoraRhythmPlayer.js.map +1 -0
- package/lib/commonjs/IAgoraRtcEngine.js +1056 -0
- package/lib/commonjs/IAgoraRtcEngine.js.map +1 -0
- package/lib/commonjs/IAgoraRtcEngineEx.js +22 -0
- package/lib/commonjs/IAgoraRtcEngineEx.js.map +1 -0
- package/lib/commonjs/IAgoraSpatialAudio.js +27 -0
- package/lib/commonjs/IAgoraSpatialAudio.js.map +1 -0
- package/lib/commonjs/IAudioDeviceManager.js +23 -0
- package/lib/commonjs/IAudioDeviceManager.js.map +1 -0
- package/lib/commonjs/Utils.js +44 -0
- package/lib/commonjs/Utils.js.map +1 -0
- package/lib/commonjs/extension/AgoraBaseExtension.js +6 -0
- package/lib/commonjs/extension/AgoraBaseExtension.js.map +1 -0
- package/lib/commonjs/extension/AgoraMediaBaseExtension.js +6 -0
- package/lib/commonjs/extension/AgoraMediaBaseExtension.js.map +1 -0
- package/lib/commonjs/extension/AgoraMediaPlayerTypesExtension.js +6 -0
- package/lib/commonjs/extension/AgoraMediaPlayerTypesExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraH265TranscoderExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraH265TranscoderExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraLogExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraLogExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaEngineExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaEngineExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerSourceExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerSourceExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaRecorderExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaRecorderExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMusicContentCenterExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMusicContentCenterExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraPipExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraPipExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRhythmPlayerExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRhythmPlayerExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraSpatialAudioExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraSpatialAudioExtension.js.map +1 -0
- package/lib/commonjs/extension/IAudioDeviceManagerExtension.js +6 -0
- package/lib/commonjs/extension/IAudioDeviceManagerExtension.js.map +1 -0
- package/lib/commonjs/impl/AgoraBaseImpl.js +26 -0
- package/lib/commonjs/impl/AgoraBaseImpl.js.map +1 -0
- package/lib/commonjs/impl/AgoraMediaBaseImpl.js +153 -0
- package/lib/commonjs/impl/AgoraMediaBaseImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraH265TranscoderImpl.js +121 -0
- package/lib/commonjs/impl/IAgoraH265TranscoderImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaEngineImpl.js +341 -0
- package/lib/commonjs/impl/IAgoraMediaEngineImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerImpl.js +965 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerSourceImpl.js +76 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerSourceImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaRecorderImpl.js +51 -0
- package/lib/commonjs/impl/IAgoraMediaRecorderImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMusicContentCenterImpl.js +429 -0
- package/lib/commonjs/impl/IAgoraMusicContentCenterImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraRtcEngineExImpl.js +1182 -0
- package/lib/commonjs/impl/IAgoraRtcEngineExImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraRtcEngineImpl.js +5435 -0
- package/lib/commonjs/impl/IAgoraRtcEngineImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraSpatialAudioImpl.js +362 -0
- package/lib/commonjs/impl/IAgoraSpatialAudioImpl.js.map +1 -0
- package/lib/commonjs/impl/IAudioDeviceManagerImpl.js +379 -0
- package/lib/commonjs/impl/IAudioDeviceManagerImpl.js.map +1 -0
- package/lib/commonjs/index.js +255 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/AgoraH265TranscoderInternal.js +66 -0
- package/lib/commonjs/internal/AgoraH265TranscoderInternal.js.map +1 -0
- package/lib/commonjs/internal/AgoraMediaBaseInternal.js +20 -0
- package/lib/commonjs/internal/AgoraMediaBaseInternal.js.map +1 -0
- package/lib/commonjs/internal/AgoraPipInternal.js +101 -0
- package/lib/commonjs/internal/AgoraPipInternal.js.map +1 -0
- package/lib/commonjs/internal/IAgoraRtcRenderView.js +72 -0
- package/lib/commonjs/internal/IAgoraRtcRenderView.js.map +1 -0
- package/lib/commonjs/internal/IrisApiEngine.js +259 -0
- package/lib/commonjs/internal/IrisApiEngine.js.map +1 -0
- package/lib/commonjs/internal/LocalSpatialAudioEngineInternal.js +10 -0
- package/lib/commonjs/internal/LocalSpatialAudioEngineInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaEngineInternal.js +124 -0
- package/lib/commonjs/internal/MediaEngineInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaPlayerInternal.js +170 -0
- package/lib/commonjs/internal/MediaPlayerInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaRecorderInternal.js +75 -0
- package/lib/commonjs/internal/MediaRecorderInternal.js.map +1 -0
- package/lib/commonjs/internal/MusicContentCenterInternal.js +144 -0
- package/lib/commonjs/internal/MusicContentCenterInternal.js.map +1 -0
- package/lib/commonjs/internal/RtcEngineExInternal.js +258 -0
- package/lib/commonjs/internal/RtcEngineExInternal.js.map +1 -0
- package/lib/commonjs/internal/call.js +133 -0
- package/lib/commonjs/internal/call.js.map +1 -0
- package/lib/commonjs/internal/event.js +32 -0
- package/lib/commonjs/internal/event.js.map +1 -0
- package/lib/commonjs/specs/AgoraRtcSurfaceViewNativeComponent.js +10 -0
- package/lib/commonjs/specs/AgoraRtcSurfaceViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/AgoraRtcTextureViewNativeComponent.js +10 -0
- package/lib/commonjs/specs/AgoraRtcTextureViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/NativeAgoraRtcNg.js +9 -0
- package/lib/commonjs/specs/NativeAgoraRtcNg.js.map +1 -0
- package/lib/commonjs/specs/index.js +22 -0
- package/lib/commonjs/specs/index.js.map +1 -0
- package/lib/commonjs/ti/AgoraBase-ti.js +24 -0
- package/lib/commonjs/ti/AgoraBase-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraMediaBase-ti.js +59 -0
- package/lib/commonjs/ti/AgoraMediaBase-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraMediaPlayerTypes-ti.js +15 -0
- package/lib/commonjs/ti/AgoraMediaPlayerTypes-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraPip-ti.js +22 -0
- package/lib/commonjs/ti/AgoraPip-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraH265Transcoder-ti.js +24 -0
- package/lib/commonjs/ti/IAgoraH265Transcoder-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraLog-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraLog-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaEngine-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaEngine-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaPlayer-ti.js +22 -0
- package/lib/commonjs/ti/IAgoraMediaPlayer-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaPlayerSource-ti.js +34 -0
- package/lib/commonjs/ti/IAgoraMediaPlayerSource-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaRecorder-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaRecorder-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaStreamingSource-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaStreamingSource-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMusicContentCenter-ti.js +26 -0
- package/lib/commonjs/ti/IAgoraMusicContentCenter-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraPip-ti.js +22 -0
- package/lib/commonjs/ti/IAgoraPip-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRhythmPlayer-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraRhythmPlayer-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRtcEngine-ti.js +128 -0
- package/lib/commonjs/ti/IAgoraRtcEngine-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRtcEngineEx-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraRtcEngineEx-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraSpatialAudio-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraSpatialAudio-ti.js.map +1 -0
- package/lib/commonjs/ti/IAudioDeviceManager-ti.js +15 -0
- package/lib/commonjs/ti/IAudioDeviceManager-ti.js.map +1 -0
- package/lib/commonjs/ti/Utils-ti.js +15 -0
- package/lib/commonjs/ti/Utils-ti.js.map +1 -0
- package/lib/commonjs/ti/index-ti.js +15 -0
- package/lib/commonjs/ti/index-ti.js.map +1 -0
- package/lib/module/AgoraBase.js +4333 -0
- package/lib/module/AgoraBase.js.map +1 -0
- package/lib/module/AgoraMediaBase.js +1067 -0
- package/lib/module/AgoraMediaBase.js.map +1 -0
- package/lib/module/AgoraMediaPlayerTypes.js +318 -0
- package/lib/module/AgoraMediaPlayerTypes.js.map +1 -0
- package/lib/module/AgoraRtcRenderView.js +47 -0
- package/lib/module/AgoraRtcRenderView.js.map +1 -0
- package/lib/module/IAgoraH265Transcoder.js +36 -0
- package/lib/module/IAgoraH265Transcoder.js.map +1 -0
- package/lib/module/IAgoraLog.js +77 -0
- package/lib/module/IAgoraLog.js.map +1 -0
- package/lib/module/IAgoraMediaEngine.js +29 -0
- package/lib/module/IAgoraMediaEngine.js.map +1 -0
- package/lib/module/IAgoraMediaPlayer.js +17 -0
- package/lib/module/IAgoraMediaPlayer.js.map +1 -0
- package/lib/module/IAgoraMediaPlayerSource.js +6 -0
- package/lib/module/IAgoraMediaPlayerSource.js.map +1 -0
- package/lib/module/IAgoraMediaRecorder.js +6 -0
- package/lib/module/IAgoraMediaRecorder.js.map +1 -0
- package/lib/module/IAgoraMediaStreamingSource.js +73 -0
- package/lib/module/IAgoraMediaStreamingSource.js.map +1 -0
- package/lib/module/IAgoraMusicContentCenter.js +156 -0
- package/lib/module/IAgoraMusicContentCenter.js.map +1 -0
- package/lib/module/IAgoraPip.js +48 -0
- package/lib/module/IAgoraPip.js.map +1 -0
- package/lib/module/IAgoraRhythmPlayer.js +61 -0
- package/lib/module/IAgoraRhythmPlayer.js.map +1 -0
- package/lib/module/IAgoraRtcEngine.js +1049 -0
- package/lib/module/IAgoraRtcEngine.js.map +1 -0
- package/lib/module/IAgoraRtcEngineEx.js +15 -0
- package/lib/module/IAgoraRtcEngineEx.js.map +1 -0
- package/lib/module/IAgoraSpatialAudio.js +18 -0
- package/lib/module/IAgoraSpatialAudio.js.map +1 -0
- package/lib/module/IAudioDeviceManager.js +17 -0
- package/lib/module/IAudioDeviceManager.js.map +1 -0
- package/lib/module/Utils.js +35 -0
- package/lib/module/Utils.js.map +1 -0
- package/lib/module/extension/AgoraBaseExtension.js +2 -0
- package/lib/module/extension/AgoraBaseExtension.js.map +1 -0
- package/lib/module/extension/AgoraMediaBaseExtension.js +2 -0
- package/lib/module/extension/AgoraMediaBaseExtension.js.map +1 -0
- package/lib/module/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/lib/module/extension/AgoraMediaPlayerTypesExtension.js.map +1 -0
- package/lib/module/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/lib/module/extension/IAgoraH265TranscoderExtension.js.map +1 -0
- package/lib/module/extension/IAgoraLogExtension.js +2 -0
- package/lib/module/extension/IAgoraLogExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaEngineExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaEngineExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaPlayerExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaPlayerSourceExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaRecorderExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/lib/module/extension/IAgoraMusicContentCenterExtension.js.map +1 -0
- package/lib/module/extension/IAgoraPipExtension.js +2 -0
- package/lib/module/extension/IAgoraPipExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/lib/module/extension/IAgoraRhythmPlayerExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/lib/module/extension/IAgoraRtcEngineExExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRtcEngineExtension.js +2 -0
- package/lib/module/extension/IAgoraRtcEngineExtension.js.map +1 -0
- package/lib/module/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/lib/module/extension/IAgoraSpatialAudioExtension.js.map +1 -0
- package/lib/module/extension/IAudioDeviceManagerExtension.js +2 -0
- package/lib/module/extension/IAudioDeviceManagerExtension.js.map +1 -0
- package/lib/module/impl/AgoraBaseImpl.js +20 -0
- package/lib/module/impl/AgoraBaseImpl.js.map +1 -0
- package/lib/module/impl/AgoraMediaBaseImpl.js +139 -0
- package/lib/module/impl/AgoraMediaBaseImpl.js.map +1 -0
- package/lib/module/impl/IAgoraH265TranscoderImpl.js +113 -0
- package/lib/module/impl/IAgoraH265TranscoderImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaEngineImpl.js +335 -0
- package/lib/module/impl/IAgoraMediaEngineImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaPlayerImpl.js +957 -0
- package/lib/module/impl/IAgoraMediaPlayerImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaPlayerSourceImpl.js +70 -0
- package/lib/module/impl/IAgoraMediaPlayerSourceImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaRecorderImpl.js +45 -0
- package/lib/module/impl/IAgoraMediaRecorderImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMusicContentCenterImpl.js +419 -0
- package/lib/module/impl/IAgoraMusicContentCenterImpl.js.map +1 -0
- package/lib/module/impl/IAgoraRtcEngineExImpl.js +1176 -0
- package/lib/module/impl/IAgoraRtcEngineExImpl.js.map +1 -0
- package/lib/module/impl/IAgoraRtcEngineImpl.js +5423 -0
- package/lib/module/impl/IAgoraRtcEngineImpl.js.map +1 -0
- package/lib/module/impl/IAgoraSpatialAudioImpl.js +356 -0
- package/lib/module/impl/IAgoraSpatialAudioImpl.js.map +1 -0
- package/lib/module/impl/IAudioDeviceManagerImpl.js +373 -0
- package/lib/module/impl/IAudioDeviceManagerImpl.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/AgoraH265TranscoderInternal.js +58 -0
- package/lib/module/internal/AgoraH265TranscoderInternal.js.map +1 -0
- package/lib/module/internal/AgoraMediaBaseInternal.js +13 -0
- package/lib/module/internal/AgoraMediaBaseInternal.js.map +1 -0
- package/lib/module/internal/AgoraPipInternal.js +92 -0
- package/lib/module/internal/AgoraPipInternal.js.map +1 -0
- package/lib/module/internal/IAgoraRtcRenderView.js +62 -0
- package/lib/module/internal/IAgoraRtcRenderView.js.map +1 -0
- package/lib/module/internal/IrisApiEngine.js +251 -0
- package/lib/module/internal/IrisApiEngine.js.map +1 -0
- package/lib/module/internal/LocalSpatialAudioEngineInternal.js +3 -0
- package/lib/module/internal/LocalSpatialAudioEngineInternal.js.map +1 -0
- package/lib/module/internal/MediaEngineInternal.js +116 -0
- package/lib/module/internal/MediaEngineInternal.js.map +1 -0
- package/lib/module/internal/MediaPlayerInternal.js +162 -0
- package/lib/module/internal/MediaPlayerInternal.js.map +1 -0
- package/lib/module/internal/MediaRecorderInternal.js +67 -0
- package/lib/module/internal/MediaRecorderInternal.js.map +1 -0
- package/lib/module/internal/MusicContentCenterInternal.js +134 -0
- package/lib/module/internal/MusicContentCenterInternal.js.map +1 -0
- package/lib/module/internal/RtcEngineExInternal.js +250 -0
- package/lib/module/internal/RtcEngineExInternal.js.map +1 -0
- package/lib/module/internal/call.js +126 -0
- package/lib/module/internal/call.js.map +1 -0
- package/lib/module/internal/event.js +25 -0
- package/lib/module/internal/event.js.map +1 -0
- package/lib/module/specs/AgoraRtcSurfaceViewNativeComponent.js +3 -0
- package/lib/module/specs/AgoraRtcSurfaceViewNativeComponent.js.map +1 -0
- package/lib/module/specs/AgoraRtcTextureViewNativeComponent.js +3 -0
- package/lib/module/specs/AgoraRtcTextureViewNativeComponent.js.map +1 -0
- package/lib/module/specs/NativeAgoraRtcNg.js +3 -0
- package/lib/module/specs/NativeAgoraRtcNg.js.map +1 -0
- package/lib/module/specs/index.js +16 -0
- package/lib/module/specs/index.js.map +1 -0
- package/lib/module/ti/AgoraBase-ti.js +16 -0
- package/lib/module/ti/AgoraBase-ti.js.map +1 -0
- package/lib/module/ti/AgoraMediaBase-ti.js +51 -0
- package/lib/module/ti/AgoraMediaBase-ti.js.map +1 -0
- package/lib/module/ti/AgoraMediaPlayerTypes-ti.js +9 -0
- package/lib/module/ti/AgoraMediaPlayerTypes-ti.js.map +1 -0
- package/lib/module/ti/AgoraPip-ti.js +14 -0
- package/lib/module/ti/AgoraPip-ti.js.map +1 -0
- package/lib/module/ti/IAgoraH265Transcoder-ti.js +16 -0
- package/lib/module/ti/IAgoraH265Transcoder-ti.js.map +1 -0
- package/lib/module/ti/IAgoraLog-ti.js +9 -0
- package/lib/module/ti/IAgoraLog-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaEngine-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaEngine-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaPlayer-ti.js +14 -0
- package/lib/module/ti/IAgoraMediaPlayer-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaPlayerSource-ti.js +26 -0
- package/lib/module/ti/IAgoraMediaPlayerSource-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaRecorder-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaRecorder-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaStreamingSource-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaStreamingSource-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMusicContentCenter-ti.js +18 -0
- package/lib/module/ti/IAgoraMusicContentCenter-ti.js.map +1 -0
- package/lib/module/ti/IAgoraPip-ti.js +14 -0
- package/lib/module/ti/IAgoraPip-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRhythmPlayer-ti.js +9 -0
- package/lib/module/ti/IAgoraRhythmPlayer-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRtcEngine-ti.js +120 -0
- package/lib/module/ti/IAgoraRtcEngine-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRtcEngineEx-ti.js +9 -0
- package/lib/module/ti/IAgoraRtcEngineEx-ti.js.map +1 -0
- package/lib/module/ti/IAgoraSpatialAudio-ti.js +9 -0
- package/lib/module/ti/IAgoraSpatialAudio-ti.js.map +1 -0
- package/lib/module/ti/IAudioDeviceManager-ti.js +9 -0
- package/lib/module/ti/IAudioDeviceManager-ti.js.map +1 -0
- package/lib/module/ti/Utils-ti.js +9 -0
- package/lib/module/ti/Utils-ti.js.map +1 -0
- package/lib/module/ti/index-ti.js +9 -0
- package/lib/module/ti/index-ti.js.map +1 -0
- package/lib/typescript/src/AgoraBase.d.ts +5728 -0
- package/lib/typescript/src/AgoraBase.d.ts.map +1 -0
- package/lib/typescript/src/AgoraMediaBase.d.ts +1717 -0
- package/lib/typescript/src/AgoraMediaBase.d.ts.map +1 -0
- package/lib/typescript/src/AgoraMediaPlayerTypes.d.ts +456 -0
- package/lib/typescript/src/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/lib/typescript/src/AgoraRtcRenderView.d.ts +60 -0
- package/lib/typescript/src/AgoraRtcRenderView.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraH265Transcoder.d.ts +28 -0
- package/lib/typescript/src/IAgoraH265Transcoder.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraLog.d.ts +89 -0
- package/lib/typescript/src/IAgoraLog.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaEngine.d.ts +255 -0
- package/lib/typescript/src/IAgoraMediaEngine.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaPlayer.d.ts +656 -0
- package/lib/typescript/src/IAgoraMediaPlayer.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaPlayerSource.d.ts +109 -0
- package/lib/typescript/src/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaRecorder.d.ts +60 -0
- package/lib/typescript/src/IAgoraMediaRecorder.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaStreamingSource.d.ts +42 -0
- package/lib/typescript/src/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMusicContentCenter.d.ts +604 -0
- package/lib/typescript/src/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraPip.d.ts +257 -0
- package/lib/typescript/src/IAgoraPip.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRhythmPlayer.d.ts +65 -0
- package/lib/typescript/src/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRtcEngine.d.ts +6831 -0
- package/lib/typescript/src/IAgoraRtcEngine.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRtcEngineEx.d.ts +817 -0
- package/lib/typescript/src/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraSpatialAudio.d.ts +194 -0
- package/lib/typescript/src/IAgoraSpatialAudio.d.ts.map +1 -0
- package/lib/typescript/src/IAudioDeviceManager.d.ts +155 -0
- package/lib/typescript/src/IAudioDeviceManager.d.ts.map +1 -0
- package/lib/typescript/src/Utils.d.ts +19 -0
- package/lib/typescript/src/Utils.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraBaseExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/lib/typescript/src/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraLogExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/lib/typescript/src/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/lib/typescript/src/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/lib/typescript/src/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraPipExtension.d.ts +23 -0
- package/lib/typescript/src/extension/IAgoraPipExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExtension.d.ts +49 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/lib/typescript/src/impl/AgoraBaseImpl.d.ts +3 -0
- package/lib/typescript/src/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/lib/typescript/src/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/lib/typescript/src/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/lib/typescript/src/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerImpl.d.ts +145 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/lib/typescript/src/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/lib/typescript/src/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineExImpl.d.ts +128 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineImpl.d.ts +656 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/lib/typescript/src/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/lib/typescript/src/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +31 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/lib/typescript/src/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/lib/typescript/src/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraPipInternal.d.ts +21 -0
- package/lib/typescript/src/internal/AgoraPipInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/IAgoraRtcRenderView.d.ts +13 -0
- package/lib/typescript/src/internal/IAgoraRtcRenderView.d.ts.map +1 -0
- package/lib/typescript/src/internal/IrisApiEngine.d.ts +12 -0
- package/lib/typescript/src/internal/IrisApiEngine.d.ts.map +1 -0
- package/lib/typescript/src/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/lib/typescript/src/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaEngineInternal.d.ts +23 -0
- package/lib/typescript/src/internal/MediaEngineInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaPlayerInternal.d.ts +28 -0
- package/lib/typescript/src/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaRecorderInternal.d.ts +16 -0
- package/lib/typescript/src/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MusicContentCenterInternal.d.ts +31 -0
- package/lib/typescript/src/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/RtcEngineExInternal.d.ts +62 -0
- package/lib/typescript/src/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/call.d.ts +5 -0
- package/lib/typescript/src/internal/call.d.ts.map +1 -0
- package/lib/typescript/src/internal/event.d.ts +58 -0
- package/lib/typescript/src/internal/event.d.ts.map +1 -0
- package/lib/typescript/src/specs/AgoraRtcSurfaceViewNativeComponent.d.ts +13 -0
- package/lib/typescript/src/specs/AgoraRtcSurfaceViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/AgoraRtcTextureViewNativeComponent.d.ts +11 -0
- package/lib/typescript/src/specs/AgoraRtcTextureViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/NativeAgoraRtcNg.d.ts +23 -0
- package/lib/typescript/src/specs/NativeAgoraRtcNg.d.ts.map +1 -0
- package/lib/typescript/src/specs/index.d.ts +3 -0
- package/lib/typescript/src/specs/index.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraBase-ti.d.ts +8 -0
- package/lib/typescript/src/ti/AgoraBase-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/lib/typescript/src/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/lib/typescript/src/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraPip-ti.d.ts +8 -0
- package/lib/typescript/src/ti/AgoraPip-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraLog-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraPip-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraPip-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/lib/typescript/src/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/Utils-ti.d.ts +7 -0
- package/lib/typescript/src/ti/Utils-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/index-ti.d.ts +7 -0
- package/lib/typescript/src/ti/index-ti.d.ts.map +1 -0
- package/package.json +175 -0
- package/react-native-agora.podspec +50 -0
- package/src/AgoraBase.ts +5941 -0
- package/src/AgoraMediaBase.ts +1814 -0
- package/src/AgoraMediaPlayerTypes.ts +467 -0
- package/src/AgoraRtcRenderView.tsx +72 -0
- package/src/IAgoraH265Transcoder.ts +73 -0
- package/src/IAgoraLog.ts +91 -0
- package/src/IAgoraMediaEngine.ts +321 -0
- package/src/IAgoraMediaPlayer.ts +753 -0
- package/src/IAgoraMediaPlayerSource.ts +137 -0
- package/src/IAgoraMediaRecorder.ts +65 -0
- package/src/IAgoraMediaStreamingSource.ts +81 -0
- package/src/IAgoraMusicContentCenter.ts +678 -0
- package/src/IAgoraPip.ts +295 -0
- package/src/IAgoraRhythmPlayer.ts +67 -0
- package/src/IAgoraRtcEngine.ts +8100 -0
- package/src/IAgoraRtcEngineEx.ts +1108 -0
- package/src/IAgoraSpatialAudio.ts +248 -0
- package/src/IAudioDeviceManager.ts +185 -0
- package/src/Utils.ts +35 -0
- package/src/extension/AgoraBaseExtension.ts +1 -0
- package/src/extension/AgoraMediaBaseExtension.ts +1 -0
- package/src/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/src/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/src/extension/IAgoraLogExtension.ts +1 -0
- package/src/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/src/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/src/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/src/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/src/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/src/extension/IAgoraPipExtension.ts +37 -0
- package/src/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/src/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/src/extension/IAgoraRtcEngineExtension.ts +72 -0
- package/src/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/src/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/src/impl/AgoraBaseImpl.ts +39 -0
- package/src/impl/AgoraMediaBaseImpl.ts +238 -0
- package/src/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/src/impl/IAgoraMediaEngineImpl.ts +490 -0
- package/src/impl/IAgoraMediaPlayerImpl.ts +1180 -0
- package/src/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/src/impl/IAgoraMediaRecorderImpl.ts +58 -0
- package/src/impl/IAgoraMusicContentCenterImpl.ts +561 -0
- package/src/impl/IAgoraRtcEngineExImpl.ts +1911 -0
- package/src/impl/IAgoraRtcEngineImpl.ts +7737 -0
- package/src/impl/IAgoraSpatialAudioImpl.ts +494 -0
- package/src/impl/IAudioDeviceManagerImpl.ts +442 -0
- package/src/index.ts +53 -0
- package/src/internal/AgoraH265TranscoderInternal.ts +93 -0
- package/src/internal/AgoraMediaBaseInternal.ts +15 -0
- package/src/internal/AgoraPipInternal.ts +136 -0
- package/src/internal/IAgoraRtcRenderView.tsx +79 -0
- package/src/internal/IrisApiEngine.ts +337 -0
- package/src/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/src/internal/MediaEngineInternal.ts +187 -0
- package/src/internal/MediaPlayerInternal.ts +282 -0
- package/src/internal/MediaRecorderInternal.ts +96 -0
- package/src/internal/MusicContentCenterInternal.ts +204 -0
- package/src/internal/RtcEngineExInternal.ts +443 -0
- package/src/internal/call.ts +140 -0
- package/src/internal/event.ts +100 -0
- package/src/specs/AgoraRtcSurfaceViewNativeComponent.ts +16 -0
- package/src/specs/AgoraRtcTextureViewNativeComponent.ts +14 -0
- package/src/specs/NativeAgoraRtcNg.ts +40 -0
- package/src/specs/index.ts +26 -0
- package/src/ti/AgoraBase-ti.ts +16 -0
- package/src/ti/AgoraMediaBase-ti.ts +58 -0
- package/src/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/src/ti/AgoraPip-ti.ts +14 -0
- package/src/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/src/ti/IAgoraLog-ti.ts +11 -0
- package/src/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/src/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/src/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/src/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/src/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/src/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/src/ti/IAgoraPip-ti.ts +14 -0
- package/src/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/src/ti/IAgoraRtcEngine-ti.ts +122 -0
- package/src/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/src/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/src/ti/IAudioDeviceManager-ti.ts +11 -0
- package/src/ti/Utils-ti.ts +11 -0
- package/src/ti/index-ti.ts +11 -0
|
@@ -0,0 +1,4333 @@
|
|
|
1
|
+
import './extension/AgoraBaseExtension';
|
|
2
|
+
/**
|
|
3
|
+
* 频道场景。
|
|
4
|
+
*/
|
|
5
|
+
export let ChannelProfileType = /*#__PURE__*/function (ChannelProfileType) {
|
|
6
|
+
/**
|
|
7
|
+
* 0: 通信场景。声网推荐使用直播场景以获取更好的音视频体验。
|
|
8
|
+
*/
|
|
9
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCommunication"] = 0] = "ChannelProfileCommunication";
|
|
10
|
+
/**
|
|
11
|
+
* 1:(默认)直播场景。
|
|
12
|
+
*/
|
|
13
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileLiveBroadcasting"] = 1] = "ChannelProfileLiveBroadcasting";
|
|
14
|
+
/**
|
|
15
|
+
* 2: 游戏场景。 废弃:请改用 ChannelProfileLiveBroadcasting。
|
|
16
|
+
*/
|
|
17
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileGame"] = 2] = "ChannelProfileGame";
|
|
18
|
+
/**
|
|
19
|
+
* 3: 互动场景。该场景对延时进行了优化。如果你的场景中有用户需要频繁互动,建议使用该场景。 废弃:请改用 ChannelProfileLiveBroadcasting。
|
|
20
|
+
*/
|
|
21
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCloudGaming"] = 3] = "ChannelProfileCloudGaming";
|
|
22
|
+
/**
|
|
23
|
+
* @ignore
|
|
24
|
+
*/
|
|
25
|
+
ChannelProfileType[ChannelProfileType["ChannelProfileCommunication1v1"] = 4] = "ChannelProfileCommunication1v1";
|
|
26
|
+
return ChannelProfileType;
|
|
27
|
+
}({});
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @ignore
|
|
31
|
+
*/
|
|
32
|
+
export let WarnCodeType = /*#__PURE__*/function (WarnCodeType) {
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
WarnCodeType[WarnCodeType["WarnInvalidView"] = 8] = "WarnInvalidView";
|
|
37
|
+
/**
|
|
38
|
+
* @ignore
|
|
39
|
+
*/
|
|
40
|
+
WarnCodeType[WarnCodeType["WarnInitVideo"] = 16] = "WarnInitVideo";
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
WarnCodeType[WarnCodeType["WarnPending"] = 20] = "WarnPending";
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
WarnCodeType[WarnCodeType["WarnNoAvailableChannel"] = 103] = "WarnNoAvailableChannel";
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
WarnCodeType[WarnCodeType["WarnLookupChannelTimeout"] = 104] = "WarnLookupChannelTimeout";
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
WarnCodeType[WarnCodeType["WarnLookupChannelRejected"] = 105] = "WarnLookupChannelRejected";
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelTimeout"] = 106] = "WarnOpenChannelTimeout";
|
|
61
|
+
/**
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelRejected"] = 107] = "WarnOpenChannelRejected";
|
|
65
|
+
/**
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
WarnCodeType[WarnCodeType["WarnSwitchLiveVideoTimeout"] = 111] = "WarnSwitchLiveVideoTimeout";
|
|
69
|
+
/**
|
|
70
|
+
* @ignore
|
|
71
|
+
*/
|
|
72
|
+
WarnCodeType[WarnCodeType["WarnSetClientRoleTimeout"] = 118] = "WarnSetClientRoleTimeout";
|
|
73
|
+
/**
|
|
74
|
+
* @ignore
|
|
75
|
+
*/
|
|
76
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelInvalidTicket"] = 121] = "WarnOpenChannelInvalidTicket";
|
|
77
|
+
/**
|
|
78
|
+
* @ignore
|
|
79
|
+
*/
|
|
80
|
+
WarnCodeType[WarnCodeType["WarnOpenChannelTryNextVos"] = 122] = "WarnOpenChannelTryNextVos";
|
|
81
|
+
/**
|
|
82
|
+
* @ignore
|
|
83
|
+
*/
|
|
84
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionUnrecoverable"] = 131] = "WarnChannelConnectionUnrecoverable";
|
|
85
|
+
/**
|
|
86
|
+
* @ignore
|
|
87
|
+
*/
|
|
88
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionIpChanged"] = 132] = "WarnChannelConnectionIpChanged";
|
|
89
|
+
/**
|
|
90
|
+
* @ignore
|
|
91
|
+
*/
|
|
92
|
+
WarnCodeType[WarnCodeType["WarnChannelConnectionPortChanged"] = 133] = "WarnChannelConnectionPortChanged";
|
|
93
|
+
/**
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
WarnCodeType[WarnCodeType["WarnChannelSocketError"] = 134] = "WarnChannelSocketError";
|
|
97
|
+
/**
|
|
98
|
+
* @ignore
|
|
99
|
+
*/
|
|
100
|
+
WarnCodeType[WarnCodeType["WarnAudioMixingOpenError"] = 701] = "WarnAudioMixingOpenError";
|
|
101
|
+
/**
|
|
102
|
+
* @ignore
|
|
103
|
+
*/
|
|
104
|
+
WarnCodeType[WarnCodeType["WarnAdmRuntimePlayoutWarning"] = 1014] = "WarnAdmRuntimePlayoutWarning";
|
|
105
|
+
/**
|
|
106
|
+
* @ignore
|
|
107
|
+
*/
|
|
108
|
+
WarnCodeType[WarnCodeType["WarnAdmRuntimeRecordingWarning"] = 1016] = "WarnAdmRuntimeRecordingWarning";
|
|
109
|
+
/**
|
|
110
|
+
* @ignore
|
|
111
|
+
*/
|
|
112
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordAudioSilence"] = 1019] = "WarnAdmRecordAudioSilence";
|
|
113
|
+
/**
|
|
114
|
+
* @ignore
|
|
115
|
+
*/
|
|
116
|
+
WarnCodeType[WarnCodeType["WarnAdmPlayoutMalfunction"] = 1020] = "WarnAdmPlayoutMalfunction";
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordMalfunction"] = 1021] = "WarnAdmRecordMalfunction";
|
|
121
|
+
/**
|
|
122
|
+
* @ignore
|
|
123
|
+
*/
|
|
124
|
+
WarnCodeType[WarnCodeType["WarnAdmRecordAudioLowlevel"] = 1031] = "WarnAdmRecordAudioLowlevel";
|
|
125
|
+
/**
|
|
126
|
+
* @ignore
|
|
127
|
+
*/
|
|
128
|
+
WarnCodeType[WarnCodeType["WarnAdmPlayoutAudioLowlevel"] = 1032] = "WarnAdmPlayoutAudioLowlevel";
|
|
129
|
+
/**
|
|
130
|
+
* @ignore
|
|
131
|
+
*/
|
|
132
|
+
WarnCodeType[WarnCodeType["WarnAdmWindowsNoDataReadyEvent"] = 1040] = "WarnAdmWindowsNoDataReadyEvent";
|
|
133
|
+
/**
|
|
134
|
+
* @ignore
|
|
135
|
+
*/
|
|
136
|
+
WarnCodeType[WarnCodeType["WarnApmHowling"] = 1051] = "WarnApmHowling";
|
|
137
|
+
/**
|
|
138
|
+
* @ignore
|
|
139
|
+
*/
|
|
140
|
+
WarnCodeType[WarnCodeType["WarnAdmGlitchState"] = 1052] = "WarnAdmGlitchState";
|
|
141
|
+
/**
|
|
142
|
+
* @ignore
|
|
143
|
+
*/
|
|
144
|
+
WarnCodeType[WarnCodeType["WarnAdmImproperSettings"] = 1053] = "WarnAdmImproperSettings";
|
|
145
|
+
/**
|
|
146
|
+
* @ignore
|
|
147
|
+
*/
|
|
148
|
+
WarnCodeType[WarnCodeType["WarnAdmPopState"] = 1055] = "WarnAdmPopState";
|
|
149
|
+
/**
|
|
150
|
+
* @ignore
|
|
151
|
+
*/
|
|
152
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreNoRecordingDevice"] = 1322] = "WarnAdmWinCoreNoRecordingDevice";
|
|
153
|
+
/**
|
|
154
|
+
* @ignore
|
|
155
|
+
*/
|
|
156
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreNoPlayoutDevice"] = 1323] = "WarnAdmWinCoreNoPlayoutDevice";
|
|
157
|
+
/**
|
|
158
|
+
* @ignore
|
|
159
|
+
*/
|
|
160
|
+
WarnCodeType[WarnCodeType["WarnAdmWinCoreImproperCaptureRelease"] = 1324] = "WarnAdmWinCoreImproperCaptureRelease";
|
|
161
|
+
return WarnCodeType;
|
|
162
|
+
}({});
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* 错误代码。
|
|
166
|
+
*
|
|
167
|
+
* 错误代码意味着 SDK 遇到不可恢复的错误,需要应用程序干预。例如:打开摄像头失败时会返回错误,App 需要提示用户不能使用摄像头。
|
|
168
|
+
*/
|
|
169
|
+
export let ErrorCodeType = /*#__PURE__*/function (ErrorCodeType) {
|
|
170
|
+
/**
|
|
171
|
+
* 0:没有错误。
|
|
172
|
+
*/
|
|
173
|
+
ErrorCodeType[ErrorCodeType["ErrOk"] = 0] = "ErrOk";
|
|
174
|
+
/**
|
|
175
|
+
* 1:一般性的错误(没有明确归类的错误原因)。请重新调用方法。
|
|
176
|
+
*/
|
|
177
|
+
ErrorCodeType[ErrorCodeType["ErrFailed"] = 1] = "ErrFailed";
|
|
178
|
+
/**
|
|
179
|
+
* 2:方法中设置了无效的参数。例如指定的频道名中含有非法字符。请重新设置参数。
|
|
180
|
+
*/
|
|
181
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidArgument"] = 2] = "ErrInvalidArgument";
|
|
182
|
+
/**
|
|
183
|
+
* 3:SDK 尚未准备好。可能的原因有: IRtcEngine 初始化失败。请重新初始化 IRtcEngine 。
|
|
184
|
+
* 调用方法时用户尚未加入频道。请检查方法的调用逻辑。
|
|
185
|
+
* 调用 rate 或 complain 方法时用户尚未离开频道。请检查方法的调用逻辑。
|
|
186
|
+
* 音频模块未开启。
|
|
187
|
+
* 程序集不完整。
|
|
188
|
+
*/
|
|
189
|
+
ErrorCodeType[ErrorCodeType["ErrNotReady"] = 3] = "ErrNotReady";
|
|
190
|
+
/**
|
|
191
|
+
* 4: IRtcEngine 当前状态不支持该操作。可能的原因有:
|
|
192
|
+
* 使用内置加密时,设置的加密模式不正确,或加载外部加密库失败。请检查加密的枚举值是否正确,或重新加载外部加密库。
|
|
193
|
+
*/
|
|
194
|
+
ErrorCodeType[ErrorCodeType["ErrNotSupported"] = 4] = "ErrNotSupported";
|
|
195
|
+
/**
|
|
196
|
+
* 5:方法调用被拒绝。可能的原因有: IRtcEngine 初始化失败。请重新初始化 IRtcEngine 。
|
|
197
|
+
* 在加入频道时,将频道名设为空字符 "" 。请重新设置频道名。
|
|
198
|
+
* 多频道场景下,在调用 joinChannelEx 方法加入频道时,设置的频道名已存在。请重新设置频道名。
|
|
199
|
+
*/
|
|
200
|
+
ErrorCodeType[ErrorCodeType["ErrRefused"] = 5] = "ErrRefused";
|
|
201
|
+
/**
|
|
202
|
+
* 6:缓冲区大小不足以存放返回的数据。
|
|
203
|
+
*/
|
|
204
|
+
ErrorCodeType[ErrorCodeType["ErrBufferTooSmall"] = 6] = "ErrBufferTooSmall";
|
|
205
|
+
/**
|
|
206
|
+
* 7: IRtcEngine 尚未初始化就调用方法。请确认在调用该方法前已创建 IRtcEngine 对象并完成初始化。
|
|
207
|
+
*/
|
|
208
|
+
ErrorCodeType[ErrorCodeType["ErrNotInitialized"] = 7] = "ErrNotInitialized";
|
|
209
|
+
/**
|
|
210
|
+
* 8:当前状态无效。
|
|
211
|
+
*/
|
|
212
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidState"] = 8] = "ErrInvalidState";
|
|
213
|
+
/**
|
|
214
|
+
* 9:没有操作权限。请检查用户是否授予了 App 音视频设备的使用权限。
|
|
215
|
+
*/
|
|
216
|
+
ErrorCodeType[ErrorCodeType["ErrNoPermission"] = 9] = "ErrNoPermission";
|
|
217
|
+
/**
|
|
218
|
+
* 10: 方法调用超时。有些方法调用需要 SDK 返回结果,如果 SDK 处理事件过长,超过 10 秒没有返回,会出现此错误。
|
|
219
|
+
*/
|
|
220
|
+
ErrorCodeType[ErrorCodeType["ErrTimedout"] = 10] = "ErrTimedout";
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
ErrorCodeType[ErrorCodeType["ErrCanceled"] = 11] = "ErrCanceled";
|
|
225
|
+
/**
|
|
226
|
+
* @ignore
|
|
227
|
+
*/
|
|
228
|
+
ErrorCodeType[ErrorCodeType["ErrTooOften"] = 12] = "ErrTooOften";
|
|
229
|
+
/**
|
|
230
|
+
* @ignore
|
|
231
|
+
*/
|
|
232
|
+
ErrorCodeType[ErrorCodeType["ErrBindSocket"] = 13] = "ErrBindSocket";
|
|
233
|
+
/**
|
|
234
|
+
* @ignore
|
|
235
|
+
*/
|
|
236
|
+
ErrorCodeType[ErrorCodeType["ErrNetDown"] = 14] = "ErrNetDown";
|
|
237
|
+
/**
|
|
238
|
+
* 17:加入频道被拒绝。可能的原因有:
|
|
239
|
+
* 用户已经在频道中。建议通过 onConnectionStateChanged 回调判断用户是否在频道中。除收到 ConnectionStateDisconnected (1) 状态外,不要再次调用该方法加入频道。
|
|
240
|
+
* 用户在调用 startEchoTest 进行通话测试后,未调用 stopEchoTest 结束当前测试就尝试加入频道。开始通话测试后,需要先调用 stopEchoTest 结束当前测试,再加入频道。
|
|
241
|
+
*/
|
|
242
|
+
ErrorCodeType[ErrorCodeType["ErrJoinChannelRejected"] = 17] = "ErrJoinChannelRejected";
|
|
243
|
+
/**
|
|
244
|
+
* 18:离开频道失败。可能的原因有:
|
|
245
|
+
* 调用 leaveChannel 前,用户已离开频道。停止调用该方法即可。
|
|
246
|
+
* 用户尚未加入频道,就调用 leaveChannel 退出频道。这种情况下无需额外操作。
|
|
247
|
+
*/
|
|
248
|
+
ErrorCodeType[ErrorCodeType["ErrLeaveChannelRejected"] = 18] = "ErrLeaveChannelRejected";
|
|
249
|
+
/**
|
|
250
|
+
* 19:资源已被占用,不能重复使用。
|
|
251
|
+
*/
|
|
252
|
+
ErrorCodeType[ErrorCodeType["ErrAlreadyInUse"] = 19] = "ErrAlreadyInUse";
|
|
253
|
+
/**
|
|
254
|
+
* 20:SDK 放弃请求,可能由于请求的次数太多。
|
|
255
|
+
*/
|
|
256
|
+
ErrorCodeType[ErrorCodeType["ErrAborted"] = 20] = "ErrAborted";
|
|
257
|
+
/**
|
|
258
|
+
* 21:Windows 下特定的防火墙设置导致 IRtcEngine 初始化失败然后崩溃。
|
|
259
|
+
*/
|
|
260
|
+
ErrorCodeType[ErrorCodeType["ErrInitNetEngine"] = 21] = "ErrInitNetEngine";
|
|
261
|
+
/**
|
|
262
|
+
* 22:SDK 分配资源失败,可能由于 App 占用资源过多或系统资源耗尽。
|
|
263
|
+
*/
|
|
264
|
+
ErrorCodeType[ErrorCodeType["ErrResourceLimited"] = 22] = "ErrResourceLimited";
|
|
265
|
+
/**
|
|
266
|
+
* @ignore
|
|
267
|
+
*/
|
|
268
|
+
ErrorCodeType[ErrorCodeType["ErrFuncIsProhibited"] = 23] = "ErrFuncIsProhibited";
|
|
269
|
+
/**
|
|
270
|
+
* 101:不是有效的 App ID。请更换有效的 App ID 重新加入频道。
|
|
271
|
+
*/
|
|
272
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidAppId"] = 101] = "ErrInvalidAppId";
|
|
273
|
+
/**
|
|
274
|
+
* 102:不是有效的频道名。可能的原因是设置的参数数据类型不正确。请更换有效的频道名重新加入频道。
|
|
275
|
+
*/
|
|
276
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidChannelName"] = 102] = "ErrInvalidChannelName";
|
|
277
|
+
/**
|
|
278
|
+
* 103:无法获取当前区域的服务器资源。请在初始化 IRtcEngine 时尝试指定其他区域。
|
|
279
|
+
*/
|
|
280
|
+
ErrorCodeType[ErrorCodeType["ErrNoServerResources"] = 103] = "ErrNoServerResources";
|
|
281
|
+
/**
|
|
282
|
+
* 109:当前使用的 Token 过期,不再有效。请在服务端申请生成新的 Token,并调用 renewToken 更新 Token。 弃用:该枚举已废弃。请改用 onConnectionStateChanged 回调中的 ConnectionChangedTokenExpired (9)。
|
|
283
|
+
*/
|
|
284
|
+
ErrorCodeType[ErrorCodeType["ErrTokenExpired"] = 109] = "ErrTokenExpired";
|
|
285
|
+
/**
|
|
286
|
+
* 弃用:该枚举已废弃。请改用 onConnectionStateChanged 回调中的 ConnectionChangedInvalidToken (8)。 110:Token 无效。一般有以下原因:
|
|
287
|
+
* 在控制台中启用了 App 证书,但未使用 App ID + Token 鉴权。当项目启用了 App 证书,就必须使用 Token 鉴权。
|
|
288
|
+
* 生成 Token 时填入的 uid 字段,和用户加入频道时填入的 uid 不匹配。
|
|
289
|
+
*/
|
|
290
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidToken"] = 110] = "ErrInvalidToken";
|
|
291
|
+
/**
|
|
292
|
+
* 111:网络连接中断。SDK 在和服务器建立连接后,失去网络连接超过 4 秒。
|
|
293
|
+
*/
|
|
294
|
+
ErrorCodeType[ErrorCodeType["ErrConnectionInterrupted"] = 111] = "ErrConnectionInterrupted";
|
|
295
|
+
/**
|
|
296
|
+
* 112:网络连接丢失。网络连接中断,且 SDK 无法在 10 秒内连接服务器。
|
|
297
|
+
*/
|
|
298
|
+
ErrorCodeType[ErrorCodeType["ErrConnectionLost"] = 112] = "ErrConnectionLost";
|
|
299
|
+
/**
|
|
300
|
+
* 113:调用 sendStreamMessage 方法时用户不在频道内。
|
|
301
|
+
*/
|
|
302
|
+
ErrorCodeType[ErrorCodeType["ErrNotInChannel"] = 113] = "ErrNotInChannel";
|
|
303
|
+
/**
|
|
304
|
+
* 114:在调用 sendStreamMessage 时,发送的数据长度大于 1 KB。
|
|
305
|
+
*/
|
|
306
|
+
ErrorCodeType[ErrorCodeType["ErrSizeTooLarge"] = 114] = "ErrSizeTooLarge";
|
|
307
|
+
/**
|
|
308
|
+
* 115:在调用 sendStreamMessage 时,发送数据的频率超过限制(6 KB/s)。
|
|
309
|
+
*/
|
|
310
|
+
ErrorCodeType[ErrorCodeType["ErrBitrateLimit"] = 115] = "ErrBitrateLimit";
|
|
311
|
+
/**
|
|
312
|
+
* 116:在调用 createDataStream 时,创建的数据流超过限制(5 个)。
|
|
313
|
+
*/
|
|
314
|
+
ErrorCodeType[ErrorCodeType["ErrTooManyDataStreams"] = 116] = "ErrTooManyDataStreams";
|
|
315
|
+
/**
|
|
316
|
+
* 117:数据流发送超时。
|
|
317
|
+
*/
|
|
318
|
+
ErrorCodeType[ErrorCodeType["ErrStreamMessageTimeout"] = 117] = "ErrStreamMessageTimeout";
|
|
319
|
+
/**
|
|
320
|
+
* 119:用户切换角色失败,请尝试重新加入频道。
|
|
321
|
+
*/
|
|
322
|
+
ErrorCodeType[ErrorCodeType["ErrSetClientRoleNotAuthorized"] = 119] = "ErrSetClientRoleNotAuthorized";
|
|
323
|
+
/**
|
|
324
|
+
* 120:媒体流解密失败。可能是用户加入频道时使用了错误的密钥。请检查用户加入频道时填入的密钥,或引导用户尝试重新加入频道。
|
|
325
|
+
*/
|
|
326
|
+
ErrorCodeType[ErrorCodeType["ErrDecryptionFailed"] = 120] = "ErrDecryptionFailed";
|
|
327
|
+
/**
|
|
328
|
+
* 121:该用户 ID 无效。
|
|
329
|
+
*/
|
|
330
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidUserId"] = 121] = "ErrInvalidUserId";
|
|
331
|
+
/**
|
|
332
|
+
* 122:数据流解密失败。可能是用户加入频道时使用了错误的密钥。请检查用户加入频道时填入的密钥,或引导用户尝试重新加入频道。
|
|
333
|
+
*/
|
|
334
|
+
ErrorCodeType[ErrorCodeType["ErrDatastreamDecryptionFailed"] = 122] = "ErrDatastreamDecryptionFailed";
|
|
335
|
+
/**
|
|
336
|
+
* 123:该用户被服务器禁止。
|
|
337
|
+
*/
|
|
338
|
+
ErrorCodeType[ErrorCodeType["ErrClientIsBannedByServer"] = 123] = "ErrClientIsBannedByServer";
|
|
339
|
+
/**
|
|
340
|
+
* 130:SDK 不支持将加密过的流推到 CDN 上。
|
|
341
|
+
*/
|
|
342
|
+
ErrorCodeType[ErrorCodeType["ErrEncryptedStreamNotAllowedPublish"] = 130] = "ErrEncryptedStreamNotAllowedPublish";
|
|
343
|
+
/**
|
|
344
|
+
* @ignore
|
|
345
|
+
*/
|
|
346
|
+
ErrorCodeType[ErrorCodeType["ErrLicenseCredentialInvalid"] = 131] = "ErrLicenseCredentialInvalid";
|
|
347
|
+
/**
|
|
348
|
+
* 134:无效的 user account,可能是因为设置了无效的参数。
|
|
349
|
+
*/
|
|
350
|
+
ErrorCodeType[ErrorCodeType["ErrInvalidUserAccount"] = 134] = "ErrInvalidUserAccount";
|
|
351
|
+
/**
|
|
352
|
+
* @ignore
|
|
353
|
+
*/
|
|
354
|
+
ErrorCodeType[ErrorCodeType["ErrModuleNotFound"] = 157] = "ErrModuleNotFound";
|
|
355
|
+
/**
|
|
356
|
+
* 1001:加载媒体引擎失败。
|
|
357
|
+
*/
|
|
358
|
+
ErrorCodeType[ErrorCodeType["ErrCertRaw"] = 157] = "ErrCertRaw";
|
|
359
|
+
/**
|
|
360
|
+
* @ignore
|
|
361
|
+
*/
|
|
362
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonPart"] = 158] = "ErrCertJsonPart";
|
|
363
|
+
/**
|
|
364
|
+
* @ignore
|
|
365
|
+
*/
|
|
366
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonInval"] = 159] = "ErrCertJsonInval";
|
|
367
|
+
/**
|
|
368
|
+
* @ignore
|
|
369
|
+
*/
|
|
370
|
+
ErrorCodeType[ErrorCodeType["ErrCertJsonNomem"] = 160] = "ErrCertJsonNomem";
|
|
371
|
+
/**
|
|
372
|
+
* @ignore
|
|
373
|
+
*/
|
|
374
|
+
ErrorCodeType[ErrorCodeType["ErrCertCustom"] = 161] = "ErrCertCustom";
|
|
375
|
+
/**
|
|
376
|
+
* @ignore
|
|
377
|
+
*/
|
|
378
|
+
ErrorCodeType[ErrorCodeType["ErrCertCredential"] = 162] = "ErrCertCredential";
|
|
379
|
+
/**
|
|
380
|
+
* @ignore
|
|
381
|
+
*/
|
|
382
|
+
ErrorCodeType[ErrorCodeType["ErrCertSign"] = 163] = "ErrCertSign";
|
|
383
|
+
/**
|
|
384
|
+
* @ignore
|
|
385
|
+
*/
|
|
386
|
+
ErrorCodeType[ErrorCodeType["ErrCertFail"] = 164] = "ErrCertFail";
|
|
387
|
+
/**
|
|
388
|
+
* @ignore
|
|
389
|
+
*/
|
|
390
|
+
ErrorCodeType[ErrorCodeType["ErrCertBuf"] = 165] = "ErrCertBuf";
|
|
391
|
+
/**
|
|
392
|
+
* @ignore
|
|
393
|
+
*/
|
|
394
|
+
ErrorCodeType[ErrorCodeType["ErrCertNull"] = 166] = "ErrCertNull";
|
|
395
|
+
/**
|
|
396
|
+
* @ignore
|
|
397
|
+
*/
|
|
398
|
+
ErrorCodeType[ErrorCodeType["ErrCertDuedate"] = 167] = "ErrCertDuedate";
|
|
399
|
+
/**
|
|
400
|
+
* @ignore
|
|
401
|
+
*/
|
|
402
|
+
ErrorCodeType[ErrorCodeType["ErrCertRequest"] = 168] = "ErrCertRequest";
|
|
403
|
+
/**
|
|
404
|
+
* 200:不支持的 PCM 格式。
|
|
405
|
+
*/
|
|
406
|
+
ErrorCodeType[ErrorCodeType["ErrPcmsendFormat"] = 200] = "ErrPcmsendFormat";
|
|
407
|
+
/**
|
|
408
|
+
* 201:缓冲区溢出,PCM 发送速率过快。
|
|
409
|
+
*/
|
|
410
|
+
ErrorCodeType[ErrorCodeType["ErrPcmsendBufferoverflow"] = 201] = "ErrPcmsendBufferoverflow";
|
|
411
|
+
/**
|
|
412
|
+
* @ignore
|
|
413
|
+
*/
|
|
414
|
+
ErrorCodeType[ErrorCodeType["ErrRdtUserNotExist"] = 250] = "ErrRdtUserNotExist";
|
|
415
|
+
/**
|
|
416
|
+
* @ignore
|
|
417
|
+
*/
|
|
418
|
+
ErrorCodeType[ErrorCodeType["ErrRdtUserNotReady"] = 251] = "ErrRdtUserNotReady";
|
|
419
|
+
/**
|
|
420
|
+
* @ignore
|
|
421
|
+
*/
|
|
422
|
+
ErrorCodeType[ErrorCodeType["ErrRdtDataBlocked"] = 252] = "ErrRdtDataBlocked";
|
|
423
|
+
/**
|
|
424
|
+
* @ignore
|
|
425
|
+
*/
|
|
426
|
+
ErrorCodeType[ErrorCodeType["ErrRdtCmdExceedLimit"] = 253] = "ErrRdtCmdExceedLimit";
|
|
427
|
+
/**
|
|
428
|
+
* @ignore
|
|
429
|
+
*/
|
|
430
|
+
ErrorCodeType[ErrorCodeType["ErrRdtDataExceedLimit"] = 254] = "ErrRdtDataExceedLimit";
|
|
431
|
+
/**
|
|
432
|
+
* @ignore
|
|
433
|
+
*/
|
|
434
|
+
ErrorCodeType[ErrorCodeType["ErrRdtEncryption"] = 255] = "ErrRdtEncryption";
|
|
435
|
+
/**
|
|
436
|
+
* @ignore
|
|
437
|
+
*/
|
|
438
|
+
ErrorCodeType[ErrorCodeType["ErrLoginAlreadyLogin"] = 428] = "ErrLoginAlreadyLogin";
|
|
439
|
+
/**
|
|
440
|
+
* @ignore
|
|
441
|
+
*/
|
|
442
|
+
ErrorCodeType[ErrorCodeType["ErrLoadMediaEngine"] = 1001] = "ErrLoadMediaEngine";
|
|
443
|
+
/**
|
|
444
|
+
* 1005:音频设备出现错误(未指明何种错误)。请检查音频设备是否被其他应用占用,或者尝试重新进入频道。
|
|
445
|
+
*/
|
|
446
|
+
ErrorCodeType[ErrorCodeType["ErrAdmGeneralError"] = 1005] = "ErrAdmGeneralError";
|
|
447
|
+
/**
|
|
448
|
+
* 1008:初始化播放设备出错。请检查播放设备是否被其他应用占用,或者尝试重新进入频道。
|
|
449
|
+
*/
|
|
450
|
+
ErrorCodeType[ErrorCodeType["ErrAdmInitPlayout"] = 1008] = "ErrAdmInitPlayout";
|
|
451
|
+
/**
|
|
452
|
+
* 1009:启动播放设备出错。请检查播放设备是否正常。
|
|
453
|
+
*/
|
|
454
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStartPlayout"] = 1009] = "ErrAdmStartPlayout";
|
|
455
|
+
/**
|
|
456
|
+
* 1010:停止播放设备出错。
|
|
457
|
+
*/
|
|
458
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStopPlayout"] = 1010] = "ErrAdmStopPlayout";
|
|
459
|
+
/**
|
|
460
|
+
* 1011:初始化录音设备出错。请检查录音设备是否正常,或者尝试重新进入频道。
|
|
461
|
+
*/
|
|
462
|
+
ErrorCodeType[ErrorCodeType["ErrAdmInitRecording"] = 1011] = "ErrAdmInitRecording";
|
|
463
|
+
/**
|
|
464
|
+
* 1012:启动录音设备出错。请检查录音设备是否正常。
|
|
465
|
+
*/
|
|
466
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStartRecording"] = 1012] = "ErrAdmStartRecording";
|
|
467
|
+
/**
|
|
468
|
+
* 1013:停止录音设备出错。
|
|
469
|
+
*/
|
|
470
|
+
ErrorCodeType[ErrorCodeType["ErrAdmStopRecording"] = 1013] = "ErrAdmStopRecording";
|
|
471
|
+
/**
|
|
472
|
+
* 1501:没有摄像头使用权限。请检查是否已经打开摄像头权限。
|
|
473
|
+
*/
|
|
474
|
+
ErrorCodeType[ErrorCodeType["ErrVdmCameraNotAuthorized"] = 1501] = "ErrVdmCameraNotAuthorized";
|
|
475
|
+
return ErrorCodeType;
|
|
476
|
+
}({});
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @ignore
|
|
480
|
+
*/
|
|
481
|
+
export let LicenseErrorType = /*#__PURE__*/function (LicenseErrorType) {
|
|
482
|
+
/**
|
|
483
|
+
* @ignore
|
|
484
|
+
*/
|
|
485
|
+
LicenseErrorType[LicenseErrorType["LicenseErrInvalid"] = 1] = "LicenseErrInvalid";
|
|
486
|
+
/**
|
|
487
|
+
* @ignore
|
|
488
|
+
*/
|
|
489
|
+
LicenseErrorType[LicenseErrorType["LicenseErrExpire"] = 2] = "LicenseErrExpire";
|
|
490
|
+
/**
|
|
491
|
+
* @ignore
|
|
492
|
+
*/
|
|
493
|
+
LicenseErrorType[LicenseErrorType["LicenseErrMinutesExceed"] = 3] = "LicenseErrMinutesExceed";
|
|
494
|
+
/**
|
|
495
|
+
* @ignore
|
|
496
|
+
*/
|
|
497
|
+
LicenseErrorType[LicenseErrorType["LicenseErrLimitedPeriod"] = 4] = "LicenseErrLimitedPeriod";
|
|
498
|
+
/**
|
|
499
|
+
* @ignore
|
|
500
|
+
*/
|
|
501
|
+
LicenseErrorType[LicenseErrorType["LicenseErrDiffDevices"] = 5] = "LicenseErrDiffDevices";
|
|
502
|
+
/**
|
|
503
|
+
* @ignore
|
|
504
|
+
*/
|
|
505
|
+
LicenseErrorType[LicenseErrorType["LicenseErrInternal"] = 99] = "LicenseErrInternal";
|
|
506
|
+
return LicenseErrorType;
|
|
507
|
+
}({});
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* SDK 对 Audio Session 的操作权限。
|
|
511
|
+
*/
|
|
512
|
+
export let AudioSessionOperationRestriction = /*#__PURE__*/function (AudioSessionOperationRestriction) {
|
|
513
|
+
/**
|
|
514
|
+
* 0: 没有限制,SDK 可以对 Audio Session 进行更改。
|
|
515
|
+
*/
|
|
516
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionNone"] = 0] = "AudioSessionOperationRestrictionNone";
|
|
517
|
+
/**
|
|
518
|
+
* 1: SDK 不能更改 Audio Session 的 category。
|
|
519
|
+
*/
|
|
520
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionSetCategory"] = 1] = "AudioSessionOperationRestrictionSetCategory";
|
|
521
|
+
/**
|
|
522
|
+
* 2: SDK 不能更改 Audio Session 的 category、mode 或 categoryOptions。
|
|
523
|
+
*/
|
|
524
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionConfigureSession"] = 2] = "AudioSessionOperationRestrictionConfigureSession";
|
|
525
|
+
/**
|
|
526
|
+
* 4: 离开频道时,SDK 会保持 Audio Session 处于活动状态,例如在后台播放音频。
|
|
527
|
+
*/
|
|
528
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionDeactivateSession"] = 4] = "AudioSessionOperationRestrictionDeactivateSession";
|
|
529
|
+
/**
|
|
530
|
+
* 128: 完全限制 SDK 对 Audio Session 的操作权限,SDK 不能再对 Audio Session 进行任何更改。
|
|
531
|
+
*/
|
|
532
|
+
AudioSessionOperationRestriction[AudioSessionOperationRestriction["AudioSessionOperationRestrictionAll"] = 128] = "AudioSessionOperationRestrictionAll";
|
|
533
|
+
return AudioSessionOperationRestriction;
|
|
534
|
+
}({});
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* 用户离线原因。
|
|
538
|
+
*/
|
|
539
|
+
export let UserOfflineReasonType = /*#__PURE__*/function (UserOfflineReasonType) {
|
|
540
|
+
/**
|
|
541
|
+
* 0: 用户主动离开。
|
|
542
|
+
*/
|
|
543
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineQuit"] = 0] = "UserOfflineQuit";
|
|
544
|
+
/**
|
|
545
|
+
* 1: 因过长时间收不到对方数据包,超时掉线。 由于 SDK 使用的是不可靠通道,也有可能对方主动离开频道,但是本地没收到对方离开消息而误判为超时掉线。
|
|
546
|
+
*/
|
|
547
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineDropped"] = 1] = "UserOfflineDropped";
|
|
548
|
+
/**
|
|
549
|
+
* 2: 用户身份从主播切换为观众。
|
|
550
|
+
*/
|
|
551
|
+
UserOfflineReasonType[UserOfflineReasonType["UserOfflineBecomeAudience"] = 2] = "UserOfflineBecomeAudience";
|
|
552
|
+
return UserOfflineReasonType;
|
|
553
|
+
}({});
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* 接口类。
|
|
557
|
+
*/
|
|
558
|
+
export let InterfaceIdType = /*#__PURE__*/function (InterfaceIdType) {
|
|
559
|
+
/**
|
|
560
|
+
* 1: IAudioDeviceManager 接口类。
|
|
561
|
+
*/
|
|
562
|
+
InterfaceIdType[InterfaceIdType["AgoraIidAudioDeviceManager"] = 1] = "AgoraIidAudioDeviceManager";
|
|
563
|
+
/**
|
|
564
|
+
* 2: IVideoDeviceManager 接口类。
|
|
565
|
+
*/
|
|
566
|
+
InterfaceIdType[InterfaceIdType["AgoraIidVideoDeviceManager"] = 2] = "AgoraIidVideoDeviceManager";
|
|
567
|
+
/**
|
|
568
|
+
* @ignore
|
|
569
|
+
*/
|
|
570
|
+
InterfaceIdType[InterfaceIdType["AgoraIidParameterEngine"] = 3] = "AgoraIidParameterEngine";
|
|
571
|
+
/**
|
|
572
|
+
* 4: IMediaEngine 接口类。
|
|
573
|
+
*/
|
|
574
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMediaEngine"] = 4] = "AgoraIidMediaEngine";
|
|
575
|
+
/**
|
|
576
|
+
* @ignore
|
|
577
|
+
*/
|
|
578
|
+
InterfaceIdType[InterfaceIdType["AgoraIidAudioEngine"] = 5] = "AgoraIidAudioEngine";
|
|
579
|
+
/**
|
|
580
|
+
* @ignore
|
|
581
|
+
*/
|
|
582
|
+
InterfaceIdType[InterfaceIdType["AgoraIidVideoEngine"] = 6] = "AgoraIidVideoEngine";
|
|
583
|
+
/**
|
|
584
|
+
* @ignore
|
|
585
|
+
*/
|
|
586
|
+
InterfaceIdType[InterfaceIdType["AgoraIidRtcConnection"] = 7] = "AgoraIidRtcConnection";
|
|
587
|
+
/**
|
|
588
|
+
* 8:该接口类已废弃。
|
|
589
|
+
*/
|
|
590
|
+
InterfaceIdType[InterfaceIdType["AgoraIidSignalingEngine"] = 8] = "AgoraIidSignalingEngine";
|
|
591
|
+
/**
|
|
592
|
+
* @ignore
|
|
593
|
+
*/
|
|
594
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMediaEngineRegulator"] = 9] = "AgoraIidMediaEngineRegulator";
|
|
595
|
+
/**
|
|
596
|
+
* 11: ILocalSpatialAudioEngine 接口类。
|
|
597
|
+
*/
|
|
598
|
+
InterfaceIdType[InterfaceIdType["AgoraIidLocalSpatialAudio"] = 11] = "AgoraIidLocalSpatialAudio";
|
|
599
|
+
/**
|
|
600
|
+
* @ignore
|
|
601
|
+
*/
|
|
602
|
+
InterfaceIdType[InterfaceIdType["AgoraIidStateSync"] = 13] = "AgoraIidStateSync";
|
|
603
|
+
/**
|
|
604
|
+
* @ignore
|
|
605
|
+
*/
|
|
606
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMetaService"] = 14] = "AgoraIidMetaService";
|
|
607
|
+
/**
|
|
608
|
+
* 15: IMusicContentCenter 接口类。
|
|
609
|
+
*/
|
|
610
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMusicContentCenter"] = 15] = "AgoraIidMusicContentCenter";
|
|
611
|
+
/**
|
|
612
|
+
* @ignore
|
|
613
|
+
*/
|
|
614
|
+
InterfaceIdType[InterfaceIdType["AgoraIidH265Transcoder"] = 16] = "AgoraIidH265Transcoder";
|
|
615
|
+
return InterfaceIdType;
|
|
616
|
+
}({});
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* 网络质量。
|
|
620
|
+
*/
|
|
621
|
+
export let QualityType = /*#__PURE__*/function (QualityType) {
|
|
622
|
+
/**
|
|
623
|
+
* 0: 网络质量未知。
|
|
624
|
+
*/
|
|
625
|
+
QualityType[QualityType["QualityUnknown"] = 0] = "QualityUnknown";
|
|
626
|
+
/**
|
|
627
|
+
* 1: 网络质量极好。
|
|
628
|
+
*/
|
|
629
|
+
QualityType[QualityType["QualityExcellent"] = 1] = "QualityExcellent";
|
|
630
|
+
/**
|
|
631
|
+
* 2: 用户主观感觉和 excellent 差不多,但码率可能略低于 excellent。
|
|
632
|
+
*/
|
|
633
|
+
QualityType[QualityType["QualityGood"] = 2] = "QualityGood";
|
|
634
|
+
/**
|
|
635
|
+
* 3: 用户主观感受有瑕疵但不影响沟通。
|
|
636
|
+
*/
|
|
637
|
+
QualityType[QualityType["QualityPoor"] = 3] = "QualityPoor";
|
|
638
|
+
/**
|
|
639
|
+
* 4: 勉强能沟通但不顺畅。
|
|
640
|
+
*/
|
|
641
|
+
QualityType[QualityType["QualityBad"] = 4] = "QualityBad";
|
|
642
|
+
/**
|
|
643
|
+
* 5: 网络质量非常差,基本不能沟通。
|
|
644
|
+
*/
|
|
645
|
+
QualityType[QualityType["QualityVbad"] = 5] = "QualityVbad";
|
|
646
|
+
/**
|
|
647
|
+
* 6: 完全无法沟通。
|
|
648
|
+
*/
|
|
649
|
+
QualityType[QualityType["QualityDown"] = 6] = "QualityDown";
|
|
650
|
+
/**
|
|
651
|
+
* @ignore
|
|
652
|
+
*/
|
|
653
|
+
QualityType[QualityType["QualityUnsupported"] = 7] = "QualityUnsupported";
|
|
654
|
+
/**
|
|
655
|
+
* 8: 网络质量检测进行中。
|
|
656
|
+
*/
|
|
657
|
+
QualityType[QualityType["QualityDetecting"] = 8] = "QualityDetecting";
|
|
658
|
+
return QualityType;
|
|
659
|
+
}({});
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @ignore
|
|
663
|
+
*/
|
|
664
|
+
export let FitModeType = /*#__PURE__*/function (FitModeType) {
|
|
665
|
+
/**
|
|
666
|
+
* @ignore
|
|
667
|
+
*/
|
|
668
|
+
FitModeType[FitModeType["ModeCover"] = 1] = "ModeCover";
|
|
669
|
+
/**
|
|
670
|
+
* @ignore
|
|
671
|
+
*/
|
|
672
|
+
FitModeType[FitModeType["ModeContain"] = 2] = "ModeContain";
|
|
673
|
+
return FitModeType;
|
|
674
|
+
}({});
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* 视频顺时针旋转信息。
|
|
678
|
+
*/
|
|
679
|
+
export let VideoOrientation = /*#__PURE__*/function (VideoOrientation) {
|
|
680
|
+
/**
|
|
681
|
+
* 0:(默认)顺时针旋转 0 度。
|
|
682
|
+
*/
|
|
683
|
+
VideoOrientation[VideoOrientation["VideoOrientation0"] = 0] = "VideoOrientation0";
|
|
684
|
+
/**
|
|
685
|
+
* 90: 顺时针旋转 90 度。
|
|
686
|
+
*/
|
|
687
|
+
VideoOrientation[VideoOrientation["VideoOrientation90"] = 90] = "VideoOrientation90";
|
|
688
|
+
/**
|
|
689
|
+
* 180: 顺时针旋转 180 度。
|
|
690
|
+
*/
|
|
691
|
+
VideoOrientation[VideoOrientation["VideoOrientation180"] = 180] = "VideoOrientation180";
|
|
692
|
+
/**
|
|
693
|
+
* 270: 顺时针旋转 270 度。
|
|
694
|
+
*/
|
|
695
|
+
VideoOrientation[VideoOrientation["VideoOrientation270"] = 270] = "VideoOrientation270";
|
|
696
|
+
return VideoOrientation;
|
|
697
|
+
}({});
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* 视频帧率。
|
|
701
|
+
*/
|
|
702
|
+
export let FrameRate = /*#__PURE__*/function (FrameRate) {
|
|
703
|
+
/**
|
|
704
|
+
* 1: 1 fps。
|
|
705
|
+
*/
|
|
706
|
+
FrameRate[FrameRate["FrameRateFps1"] = 1] = "FrameRateFps1";
|
|
707
|
+
/**
|
|
708
|
+
* 7: 7 fps。
|
|
709
|
+
*/
|
|
710
|
+
FrameRate[FrameRate["FrameRateFps7"] = 7] = "FrameRateFps7";
|
|
711
|
+
/**
|
|
712
|
+
* 10: 10 fps。
|
|
713
|
+
*/
|
|
714
|
+
FrameRate[FrameRate["FrameRateFps10"] = 10] = "FrameRateFps10";
|
|
715
|
+
/**
|
|
716
|
+
* 15: 15 fps。
|
|
717
|
+
*/
|
|
718
|
+
FrameRate[FrameRate["FrameRateFps15"] = 15] = "FrameRateFps15";
|
|
719
|
+
/**
|
|
720
|
+
* 24: 24 fps。
|
|
721
|
+
*/
|
|
722
|
+
FrameRate[FrameRate["FrameRateFps24"] = 24] = "FrameRateFps24";
|
|
723
|
+
/**
|
|
724
|
+
* 30: 30 fps。
|
|
725
|
+
*/
|
|
726
|
+
FrameRate[FrameRate["FrameRateFps30"] = 30] = "FrameRateFps30";
|
|
727
|
+
/**
|
|
728
|
+
* @ignore
|
|
729
|
+
*/
|
|
730
|
+
FrameRate[FrameRate["FrameRateFps60"] = 60] = "FrameRateFps60";
|
|
731
|
+
return FrameRate;
|
|
732
|
+
}({});
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* @ignore
|
|
736
|
+
*/
|
|
737
|
+
export let FrameWidth = /*#__PURE__*/function (FrameWidth) {
|
|
738
|
+
/**
|
|
739
|
+
* @ignore
|
|
740
|
+
*/
|
|
741
|
+
FrameWidth[FrameWidth["FrameWidth960"] = 960] = "FrameWidth960";
|
|
742
|
+
return FrameWidth;
|
|
743
|
+
}({});
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* @ignore
|
|
747
|
+
*/
|
|
748
|
+
export let FrameHeight = /*#__PURE__*/function (FrameHeight) {
|
|
749
|
+
/**
|
|
750
|
+
* @ignore
|
|
751
|
+
*/
|
|
752
|
+
FrameHeight[FrameHeight["FrameHeight540"] = 540] = "FrameHeight540";
|
|
753
|
+
return FrameHeight;
|
|
754
|
+
}({});
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* 视频帧类型。
|
|
758
|
+
*/
|
|
759
|
+
export let VideoFrameType = /*#__PURE__*/function (VideoFrameType) {
|
|
760
|
+
/**
|
|
761
|
+
* 0: 黑帧。
|
|
762
|
+
*/
|
|
763
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeBlankFrame"] = 0] = "VideoFrameTypeBlankFrame";
|
|
764
|
+
/**
|
|
765
|
+
* 3: 关键帧。
|
|
766
|
+
*/
|
|
767
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeKeyFrame"] = 3] = "VideoFrameTypeKeyFrame";
|
|
768
|
+
/**
|
|
769
|
+
* 4: Delta 帧。
|
|
770
|
+
*/
|
|
771
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeDeltaFrame"] = 4] = "VideoFrameTypeDeltaFrame";
|
|
772
|
+
/**
|
|
773
|
+
* 5: B 帧。
|
|
774
|
+
*/
|
|
775
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeBFrame"] = 5] = "VideoFrameTypeBFrame";
|
|
776
|
+
/**
|
|
777
|
+
* 6: 丢弃帧。
|
|
778
|
+
*/
|
|
779
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeDroppableFrame"] = 6] = "VideoFrameTypeDroppableFrame";
|
|
780
|
+
/**
|
|
781
|
+
* 未知帧。
|
|
782
|
+
*/
|
|
783
|
+
VideoFrameType[VideoFrameType["VideoFrameTypeUnknow"] = 7] = "VideoFrameTypeUnknow";
|
|
784
|
+
return VideoFrameType;
|
|
785
|
+
}({});
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* 视频编码的方向模式。
|
|
789
|
+
*/
|
|
790
|
+
export let OrientationMode = /*#__PURE__*/function (OrientationMode) {
|
|
791
|
+
/**
|
|
792
|
+
* 0: (默认)该模式下 SDK 输出的视频方向与采集到的视频方向一致。接收端会根据收到的视频旋转信息对视频进行旋转。该模式适用于接收端可以调整视频方向的场景。
|
|
793
|
+
* 如果采集的视频是横屏模式,则输出的视频也是横屏模式。
|
|
794
|
+
* 如果采集的视频是竖屏模式,则输出的视频也是竖屏模式。
|
|
795
|
+
*/
|
|
796
|
+
OrientationMode[OrientationMode["OrientationModeAdaptive"] = 0] = "OrientationModeAdaptive";
|
|
797
|
+
/**
|
|
798
|
+
* @ignore
|
|
799
|
+
*/
|
|
800
|
+
OrientationMode[OrientationMode["OrientationModeFixedLandscape"] = 1] = "OrientationModeFixedLandscape";
|
|
801
|
+
/**
|
|
802
|
+
* @ignore
|
|
803
|
+
*/
|
|
804
|
+
OrientationMode[OrientationMode["OrientationModeFixedPortrait"] = 2] = "OrientationModeFixedPortrait";
|
|
805
|
+
return OrientationMode;
|
|
806
|
+
}({});
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* 带宽受限时的视频编码降级偏好。
|
|
810
|
+
*/
|
|
811
|
+
export let DegradationPreference = /*#__PURE__*/function (DegradationPreference) {
|
|
812
|
+
/**
|
|
813
|
+
* -1:(默认)自动模式。SDK 会根据你设置的视频场景,自动选择 MaintainFramerate、MaintainBalanced 或 MaintainResolution,以获得最优的综合质量体验 (QoE)。
|
|
814
|
+
*/
|
|
815
|
+
DegradationPreference[DegradationPreference["MaintainAuto"] = -1] = "MaintainAuto";
|
|
816
|
+
/**
|
|
817
|
+
* 0:带宽受限时,视频编码时优先降低视频帧率,维持分辨率不变。该降级偏好适用于画质优先的场景。 弃用:该枚举已废弃。请改用其他枚举。
|
|
818
|
+
*/
|
|
819
|
+
DegradationPreference[DegradationPreference["MaintainQuality"] = 0] = "MaintainQuality";
|
|
820
|
+
/**
|
|
821
|
+
* 1:带宽受限时,视频编码时优先降低视频分辨率,维持视频帧率不变。该降级偏好适用于流畅性优先且允许画质降低的场景。
|
|
822
|
+
*/
|
|
823
|
+
DegradationPreference[DegradationPreference["MaintainFramerate"] = 1] = "MaintainFramerate";
|
|
824
|
+
/**
|
|
825
|
+
* 2:带宽受限时,视频编码时同时降低视频帧率和视频分辨率。MaintainBalanced 的降幅比 MaintainQuality 和 MaintainFramerate 降幅更低,适用于流畅性和画质均有限的场景。 本地发送的视频分辨率可能改变,远端用户需能处理这种情况,详见 onVideoSizeChanged 。
|
|
826
|
+
*/
|
|
827
|
+
DegradationPreference[DegradationPreference["MaintainBalanced"] = 2] = "MaintainBalanced";
|
|
828
|
+
/**
|
|
829
|
+
* 3: 带宽受限时,视频编码时优先降低视频帧率,维持分辨率保持不变。该降级偏好适用于画质优先的场景。
|
|
830
|
+
*/
|
|
831
|
+
DegradationPreference[DegradationPreference["MaintainResolution"] = 3] = "MaintainResolution";
|
|
832
|
+
/**
|
|
833
|
+
* @ignore
|
|
834
|
+
*/
|
|
835
|
+
DegradationPreference[DegradationPreference["Disabled"] = 100] = "Disabled";
|
|
836
|
+
return DegradationPreference;
|
|
837
|
+
}({});
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* 视频尺寸。
|
|
841
|
+
*/
|
|
842
|
+
export class VideoDimensions {}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* 屏幕共享设备支持的最高帧率。
|
|
846
|
+
*/
|
|
847
|
+
export let ScreenCaptureFramerateCapability = /*#__PURE__*/function (ScreenCaptureFramerateCapability) {
|
|
848
|
+
/**
|
|
849
|
+
* 0:最高支持 15 fps。
|
|
850
|
+
*/
|
|
851
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability15Fps"] = 0] = "ScreenCaptureFramerateCapability15Fps";
|
|
852
|
+
/**
|
|
853
|
+
* 1:最高支持 30 fps。
|
|
854
|
+
*/
|
|
855
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability30Fps"] = 1] = "ScreenCaptureFramerateCapability30Fps";
|
|
856
|
+
/**
|
|
857
|
+
* 2:最高支持 60 fps。
|
|
858
|
+
*/
|
|
859
|
+
ScreenCaptureFramerateCapability[ScreenCaptureFramerateCapability["ScreenCaptureFramerateCapability60Fps"] = 2] = "ScreenCaptureFramerateCapability60Fps";
|
|
860
|
+
return ScreenCaptureFramerateCapability;
|
|
861
|
+
}({});
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @ignore
|
|
865
|
+
*/
|
|
866
|
+
export let VideoCodecCapabilityLevel = /*#__PURE__*/function (VideoCodecCapabilityLevel) {
|
|
867
|
+
/**
|
|
868
|
+
* @ignore
|
|
869
|
+
*/
|
|
870
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelUnspecified"] = -1] = "CodecCapabilityLevelUnspecified";
|
|
871
|
+
/**
|
|
872
|
+
* @ignore
|
|
873
|
+
*/
|
|
874
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevelBasicSupport"] = 5] = "CodecCapabilityLevelBasicSupport";
|
|
875
|
+
/**
|
|
876
|
+
* @ignore
|
|
877
|
+
*/
|
|
878
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p30fps"] = 10] = "CodecCapabilityLevel1080p30fps";
|
|
879
|
+
/**
|
|
880
|
+
* @ignore
|
|
881
|
+
*/
|
|
882
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel1080p60fps"] = 20] = "CodecCapabilityLevel1080p60fps";
|
|
883
|
+
/**
|
|
884
|
+
* @ignore
|
|
885
|
+
*/
|
|
886
|
+
VideoCodecCapabilityLevel[VideoCodecCapabilityLevel["CodecCapabilityLevel4k60fps"] = 30] = "CodecCapabilityLevel4k60fps";
|
|
887
|
+
return VideoCodecCapabilityLevel;
|
|
888
|
+
}({});
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* 视频编码格式。
|
|
892
|
+
*/
|
|
893
|
+
export let VideoCodecType = /*#__PURE__*/function (VideoCodecType) {
|
|
894
|
+
/**
|
|
895
|
+
* 0:(默认)不指定编解码格式。SDK 会根据当前视频流的分辨率、设备性能自动匹配适合的编解码格式。
|
|
896
|
+
*/
|
|
897
|
+
VideoCodecType[VideoCodecType["VideoCodecNone"] = 0] = "VideoCodecNone";
|
|
898
|
+
/**
|
|
899
|
+
* 1:标准 VP8。
|
|
900
|
+
*/
|
|
901
|
+
VideoCodecType[VideoCodecType["VideoCodecVp8"] = 1] = "VideoCodecVp8";
|
|
902
|
+
/**
|
|
903
|
+
* 2:标准 H.264。
|
|
904
|
+
*/
|
|
905
|
+
VideoCodecType[VideoCodecType["VideoCodecH264"] = 2] = "VideoCodecH264";
|
|
906
|
+
/**
|
|
907
|
+
* 3:标准 H.265。
|
|
908
|
+
*/
|
|
909
|
+
VideoCodecType[VideoCodecType["VideoCodecH265"] = 3] = "VideoCodecH265";
|
|
910
|
+
/**
|
|
911
|
+
* 6:Generic。本类型主要用于传输视频裸数据(比如用户已加密的视频帧),该类型视频帧以回调的形式返回给用户,需要用户自行解码与渲染。
|
|
912
|
+
*/
|
|
913
|
+
VideoCodecType[VideoCodecType["VideoCodecGeneric"] = 6] = "VideoCodecGeneric";
|
|
914
|
+
/**
|
|
915
|
+
* @ignore
|
|
916
|
+
*/
|
|
917
|
+
VideoCodecType[VideoCodecType["VideoCodecGenericH264"] = 7] = "VideoCodecGenericH264";
|
|
918
|
+
/**
|
|
919
|
+
* @ignore
|
|
920
|
+
*/
|
|
921
|
+
VideoCodecType[VideoCodecType["VideoCodecAv1"] = 12] = "VideoCodecAv1";
|
|
922
|
+
/**
|
|
923
|
+
* @ignore
|
|
924
|
+
*/
|
|
925
|
+
VideoCodecType[VideoCodecType["VideoCodecVp9"] = 13] = "VideoCodecVp9";
|
|
926
|
+
/**
|
|
927
|
+
* 20:Generic JPEG。本类型所需的算力较小,可用于算力有限的 IoT 设备。
|
|
928
|
+
*/
|
|
929
|
+
VideoCodecType[VideoCodecType["VideoCodecGenericJpeg"] = 20] = "VideoCodecGenericJpeg";
|
|
930
|
+
return VideoCodecType;
|
|
931
|
+
}({});
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* 摄像头的焦距类型。
|
|
935
|
+
*/
|
|
936
|
+
export let CameraFocalLengthType = /*#__PURE__*/function (CameraFocalLengthType) {
|
|
937
|
+
/**
|
|
938
|
+
* 0:(默认)标准镜头。
|
|
939
|
+
*/
|
|
940
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthDefault"] = 0] = "CameraFocalLengthDefault";
|
|
941
|
+
/**
|
|
942
|
+
* 1:广角镜头。
|
|
943
|
+
*/
|
|
944
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthWideAngle"] = 1] = "CameraFocalLengthWideAngle";
|
|
945
|
+
/**
|
|
946
|
+
* 2:超广角镜头。
|
|
947
|
+
*/
|
|
948
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthUltraWide"] = 2] = "CameraFocalLengthUltraWide";
|
|
949
|
+
/**
|
|
950
|
+
* 3:(仅适用于 iOS)长焦镜头。
|
|
951
|
+
*/
|
|
952
|
+
CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthTelephoto"] = 3] = "CameraFocalLengthTelephoto";
|
|
953
|
+
return CameraFocalLengthType;
|
|
954
|
+
}({});
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* @ignore
|
|
958
|
+
*/
|
|
959
|
+
export let TCcMode = /*#__PURE__*/function (TCcMode) {
|
|
960
|
+
/**
|
|
961
|
+
* @ignore
|
|
962
|
+
*/
|
|
963
|
+
TCcMode[TCcMode["CcEnabled"] = 0] = "CcEnabled";
|
|
964
|
+
/**
|
|
965
|
+
* @ignore
|
|
966
|
+
*/
|
|
967
|
+
TCcMode[TCcMode["CcDisabled"] = 1] = "CcDisabled";
|
|
968
|
+
return TCcMode;
|
|
969
|
+
}({});
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* @ignore
|
|
973
|
+
*/
|
|
974
|
+
export class SenderOptions {}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* 音频编解码格式。
|
|
978
|
+
*/
|
|
979
|
+
export let AudioCodecType = /*#__PURE__*/function (AudioCodecType) {
|
|
980
|
+
/**
|
|
981
|
+
* 1: OPUS。
|
|
982
|
+
*/
|
|
983
|
+
AudioCodecType[AudioCodecType["AudioCodecOpus"] = 1] = "AudioCodecOpus";
|
|
984
|
+
/**
|
|
985
|
+
* 3: PCMA。
|
|
986
|
+
*/
|
|
987
|
+
AudioCodecType[AudioCodecType["AudioCodecPcma"] = 3] = "AudioCodecPcma";
|
|
988
|
+
/**
|
|
989
|
+
* 4: PCMU。
|
|
990
|
+
*/
|
|
991
|
+
AudioCodecType[AudioCodecType["AudioCodecPcmu"] = 4] = "AudioCodecPcmu";
|
|
992
|
+
/**
|
|
993
|
+
* 5: G722。
|
|
994
|
+
*/
|
|
995
|
+
AudioCodecType[AudioCodecType["AudioCodecG722"] = 5] = "AudioCodecG722";
|
|
996
|
+
/**
|
|
997
|
+
* 8: LC-AAC。
|
|
998
|
+
*/
|
|
999
|
+
AudioCodecType[AudioCodecType["AudioCodecAaclc"] = 8] = "AudioCodecAaclc";
|
|
1000
|
+
/**
|
|
1001
|
+
* 9: HE-AAC。
|
|
1002
|
+
*/
|
|
1003
|
+
AudioCodecType[AudioCodecType["AudioCodecHeaac"] = 9] = "AudioCodecHeaac";
|
|
1004
|
+
/**
|
|
1005
|
+
* 10: JC1。
|
|
1006
|
+
*/
|
|
1007
|
+
AudioCodecType[AudioCodecType["AudioCodecJc1"] = 10] = "AudioCodecJc1";
|
|
1008
|
+
/**
|
|
1009
|
+
* 11: HE-AAC v2。
|
|
1010
|
+
*/
|
|
1011
|
+
AudioCodecType[AudioCodecType["AudioCodecHeaac2"] = 11] = "AudioCodecHeaac2";
|
|
1012
|
+
/**
|
|
1013
|
+
* @ignore
|
|
1014
|
+
*/
|
|
1015
|
+
AudioCodecType[AudioCodecType["AudioCodecLpcnet"] = 12] = "AudioCodecLpcnet";
|
|
1016
|
+
/**
|
|
1017
|
+
* @ignore
|
|
1018
|
+
*/
|
|
1019
|
+
AudioCodecType[AudioCodecType["AudioCodecOpusmc"] = 13] = "AudioCodecOpusmc";
|
|
1020
|
+
return AudioCodecType;
|
|
1021
|
+
}({});
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* 音频编码类型。
|
|
1025
|
+
*/
|
|
1026
|
+
export let AudioEncodingType = /*#__PURE__*/function (AudioEncodingType) {
|
|
1027
|
+
/**
|
|
1028
|
+
* 0x010101: AAC 编码格式,16000 Hz 采样率,低音质。音频时长为 10 分钟的文件编码后大小约为 1.2 MB。
|
|
1029
|
+
*/
|
|
1030
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac16000Low"] = 65793] = "AudioEncodingTypeAac16000Low";
|
|
1031
|
+
/**
|
|
1032
|
+
* 0x010102: AAC 编码格式,16000 Hz 采样率,中音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1033
|
+
*/
|
|
1034
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac16000Medium"] = 65794] = "AudioEncodingTypeAac16000Medium";
|
|
1035
|
+
/**
|
|
1036
|
+
* 0x010201: AAC 编码格式,32000 Hz 采样率,低音质。音频时长为 10 分钟的文件编码后大小约为 1.2 MB。
|
|
1037
|
+
*/
|
|
1038
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000Low"] = 66049] = "AudioEncodingTypeAac32000Low";
|
|
1039
|
+
/**
|
|
1040
|
+
* 0x010202: AAC 编码格式,32000 Hz 采样率,中音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1041
|
+
*/
|
|
1042
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000Medium"] = 66050] = "AudioEncodingTypeAac32000Medium";
|
|
1043
|
+
/**
|
|
1044
|
+
* 0x010203: AAC 编码格式,32000 Hz 采样率,高音质。音频时长为 10 分钟的文件编码后大小约为 3.5 MB。
|
|
1045
|
+
*/
|
|
1046
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac32000High"] = 66051] = "AudioEncodingTypeAac32000High";
|
|
1047
|
+
/**
|
|
1048
|
+
* 0x010302: AAC 编码格式,48000 Hz 采样率,中音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1049
|
+
*/
|
|
1050
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac48000Medium"] = 66306] = "AudioEncodingTypeAac48000Medium";
|
|
1051
|
+
/**
|
|
1052
|
+
* 0x010303: AAC 编码格式,48000 Hz 采样率,高音质。音频时长为 10 分钟的文件编码后大小约为 3.5 MB。
|
|
1053
|
+
*/
|
|
1054
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeAac48000High"] = 66307] = "AudioEncodingTypeAac48000High";
|
|
1055
|
+
/**
|
|
1056
|
+
* 0x020101: OPUS 编码格式,16000 Hz 采样率,低音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1057
|
+
*/
|
|
1058
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus16000Low"] = 131329] = "AudioEncodingTypeOpus16000Low";
|
|
1059
|
+
/**
|
|
1060
|
+
* 0x020102: OPUS 编码格式,16000 Hz 采样率,中音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1061
|
+
*/
|
|
1062
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus16000Medium"] = 131330] = "AudioEncodingTypeOpus16000Medium";
|
|
1063
|
+
/**
|
|
1064
|
+
* 0x020302: OPUS 编码格式,48000 Hz 采样率,中音质。音频时长为 10 分钟的文件编码后大小约为 2 MB。
|
|
1065
|
+
*/
|
|
1066
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus48000Medium"] = 131842] = "AudioEncodingTypeOpus48000Medium";
|
|
1067
|
+
/**
|
|
1068
|
+
* 0x020303: OPUS 编码格式,48000 Hz 采样率,高音质。音频时长为 10 分钟的文件编码后大小约为 3.5 MB。
|
|
1069
|
+
*/
|
|
1070
|
+
AudioEncodingType[AudioEncodingType["AudioEncodingTypeOpus48000High"] = 131843] = "AudioEncodingTypeOpus48000High";
|
|
1071
|
+
return AudioEncodingType;
|
|
1072
|
+
}({});
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* 水印的适配模式。
|
|
1076
|
+
*/
|
|
1077
|
+
export let WatermarkFitMode = /*#__PURE__*/function (WatermarkFitMode) {
|
|
1078
|
+
/**
|
|
1079
|
+
* 0: 使用你在 WatermarkOptions 中设置的 positionInLandscapeMode 和 positionInPortraitMode 值。此时 WatermarkRatio 中的设置无效。
|
|
1080
|
+
*/
|
|
1081
|
+
WatermarkFitMode[WatermarkFitMode["FitModeCoverPosition"] = 0] = "FitModeCoverPosition";
|
|
1082
|
+
/**
|
|
1083
|
+
* 1: 使用你在 WatermarkRatio 中设置的值。此时 WatermarkOptions 中 positionInLandscapeMode 和 positionInPortraitMode 的设置无效。
|
|
1084
|
+
*/
|
|
1085
|
+
WatermarkFitMode[WatermarkFitMode["FitModeUseImageRatio"] = 1] = "FitModeUseImageRatio";
|
|
1086
|
+
return WatermarkFitMode;
|
|
1087
|
+
}({});
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* @ignore
|
|
1091
|
+
*/
|
|
1092
|
+
export class EncodedAudioFrameAdvancedSettings {}
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* 编码后音频的信息。
|
|
1096
|
+
*/
|
|
1097
|
+
export class EncodedAudioFrameInfo {}
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* @ignore
|
|
1101
|
+
*/
|
|
1102
|
+
export class AudioPcmDataInfo {}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* @ignore
|
|
1106
|
+
*/
|
|
1107
|
+
export let H264PacketizeMode = /*#__PURE__*/function (H264PacketizeMode) {
|
|
1108
|
+
/**
|
|
1109
|
+
* @ignore
|
|
1110
|
+
*/
|
|
1111
|
+
H264PacketizeMode[H264PacketizeMode["NonInterleaved"] = 0] = "NonInterleaved";
|
|
1112
|
+
/**
|
|
1113
|
+
* @ignore
|
|
1114
|
+
*/
|
|
1115
|
+
H264PacketizeMode[H264PacketizeMode["SingleNalUnit"] = 1] = "SingleNalUnit";
|
|
1116
|
+
return H264PacketizeMode;
|
|
1117
|
+
}({});
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* 视频流类型。
|
|
1121
|
+
*/
|
|
1122
|
+
export let VideoStreamType = /*#__PURE__*/function (VideoStreamType) {
|
|
1123
|
+
/**
|
|
1124
|
+
* 0: 视频大流,即高分辨率、高码率视频流。
|
|
1125
|
+
*/
|
|
1126
|
+
VideoStreamType[VideoStreamType["VideoStreamHigh"] = 0] = "VideoStreamHigh";
|
|
1127
|
+
/**
|
|
1128
|
+
* 1: 视频小流,即低分辨率、低码率视频流。
|
|
1129
|
+
*/
|
|
1130
|
+
VideoStreamType[VideoStreamType["VideoStreamLow"] = 1] = "VideoStreamLow";
|
|
1131
|
+
/**
|
|
1132
|
+
* @ignore
|
|
1133
|
+
*/
|
|
1134
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer1"] = 4] = "VideoStreamLayer1";
|
|
1135
|
+
/**
|
|
1136
|
+
* @ignore
|
|
1137
|
+
*/
|
|
1138
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer2"] = 5] = "VideoStreamLayer2";
|
|
1139
|
+
/**
|
|
1140
|
+
* @ignore
|
|
1141
|
+
*/
|
|
1142
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer3"] = 6] = "VideoStreamLayer3";
|
|
1143
|
+
/**
|
|
1144
|
+
* @ignore
|
|
1145
|
+
*/
|
|
1146
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer4"] = 7] = "VideoStreamLayer4";
|
|
1147
|
+
/**
|
|
1148
|
+
* @ignore
|
|
1149
|
+
*/
|
|
1150
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer5"] = 8] = "VideoStreamLayer5";
|
|
1151
|
+
/**
|
|
1152
|
+
* @ignore
|
|
1153
|
+
*/
|
|
1154
|
+
VideoStreamType[VideoStreamType["VideoStreamLayer6"] = 9] = "VideoStreamLayer6";
|
|
1155
|
+
return VideoStreamType;
|
|
1156
|
+
}({});
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* 视频订阅设置。
|
|
1160
|
+
*/
|
|
1161
|
+
export class VideoSubscriptionOptions {}
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* 用户 User Account 的最大长度。
|
|
1165
|
+
*/
|
|
1166
|
+
export let MaxUserAccountLengthType = /*#__PURE__*/function (MaxUserAccountLengthType) {
|
|
1167
|
+
/**
|
|
1168
|
+
* 用户 User Account 的最大长度为 255 个字符。
|
|
1169
|
+
*/
|
|
1170
|
+
MaxUserAccountLengthType[MaxUserAccountLengthType["MaxUserAccountLength"] = 256] = "MaxUserAccountLength";
|
|
1171
|
+
return MaxUserAccountLengthType;
|
|
1172
|
+
}({});
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* 外部编码视频帧的信息。
|
|
1176
|
+
*/
|
|
1177
|
+
export class EncodedVideoFrameInfo {}
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* 视频编码的压缩偏好类型。
|
|
1181
|
+
*/
|
|
1182
|
+
export let CompressionPreference = /*#__PURE__*/function (CompressionPreference) {
|
|
1183
|
+
/**
|
|
1184
|
+
* -1:(默认)自动模式。SDK 会根据你设置的视频场景,自动选择 PreferLowLatency 或 PreferQuality,以获得最佳的用户体验。
|
|
1185
|
+
*/
|
|
1186
|
+
CompressionPreference[CompressionPreference["PreferCompressionAuto"] = -1] = "PreferCompressionAuto";
|
|
1187
|
+
/**
|
|
1188
|
+
* 0: 低延时偏好。SDK 会对视频帧进行压缩处理,以降低延时。该偏好适用于流畅性优先且允许画质降低的场景。
|
|
1189
|
+
*/
|
|
1190
|
+
CompressionPreference[CompressionPreference["PreferLowLatency"] = 0] = "PreferLowLatency";
|
|
1191
|
+
/**
|
|
1192
|
+
* 1:高质量偏好。SDK 会对视频帧进行压缩处理,同时保持视频质量。该偏好适用于画质优先的场景。
|
|
1193
|
+
*/
|
|
1194
|
+
CompressionPreference[CompressionPreference["PreferQuality"] = 1] = "PreferQuality";
|
|
1195
|
+
return CompressionPreference;
|
|
1196
|
+
}({});
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* 视频编码器偏好。
|
|
1200
|
+
*/
|
|
1201
|
+
export let EncodingPreference = /*#__PURE__*/function (EncodingPreference) {
|
|
1202
|
+
/**
|
|
1203
|
+
* -1:自适应偏好。SDK 根据平台、设备类型等因素自动选择最优的编码类型进行编码。
|
|
1204
|
+
*/
|
|
1205
|
+
EncodingPreference[EncodingPreference["PreferAuto"] = -1] = "PreferAuto";
|
|
1206
|
+
/**
|
|
1207
|
+
* 0:软件编码偏好。SDK 优先使用软件编码器进行视频编码。
|
|
1208
|
+
*/
|
|
1209
|
+
EncodingPreference[EncodingPreference["PreferSoftware"] = 0] = "PreferSoftware";
|
|
1210
|
+
/**
|
|
1211
|
+
* 1:硬件编码偏好。SDK 优先使用硬件编码器进行视频编码。当设备不支持硬件编码时,SDK 会自动使用软件编码,并通过 onLocalVideoStats 回调中的 hwEncoderAccelerating 报告当前使用的视频编码器类型。
|
|
1212
|
+
*/
|
|
1213
|
+
EncodingPreference[EncodingPreference["PreferHardware"] = 1] = "PreferHardware";
|
|
1214
|
+
return EncodingPreference;
|
|
1215
|
+
}({});
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* 视频编码的高级选项。
|
|
1219
|
+
*/
|
|
1220
|
+
export class AdvanceOptions {}
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* 镜像模式类型。
|
|
1224
|
+
*/
|
|
1225
|
+
export let VideoMirrorModeType = /*#__PURE__*/function (VideoMirrorModeType) {
|
|
1226
|
+
/**
|
|
1227
|
+
* 0:由 SDK 决定镜像模式。
|
|
1228
|
+
* 本地视图镜像模式:如果你使用前置摄像头,默认启动本地视图镜像模式;如果你使用后置摄像头,默认关闭本地视图镜像模式。
|
|
1229
|
+
* 远端用户视图镜像模式:默认关闭远端用户的镜像模式。
|
|
1230
|
+
*/
|
|
1231
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeAuto"] = 0] = "VideoMirrorModeAuto";
|
|
1232
|
+
/**
|
|
1233
|
+
* 1:启用镜像模式。
|
|
1234
|
+
*/
|
|
1235
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeEnabled"] = 1] = "VideoMirrorModeEnabled";
|
|
1236
|
+
/**
|
|
1237
|
+
* 2:关闭镜像模式。
|
|
1238
|
+
*/
|
|
1239
|
+
VideoMirrorModeType[VideoMirrorModeType["VideoMirrorModeDisabled"] = 2] = "VideoMirrorModeDisabled";
|
|
1240
|
+
return VideoMirrorModeType;
|
|
1241
|
+
}({});
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* @ignore
|
|
1245
|
+
*/
|
|
1246
|
+
export let CameraFormatType = /*#__PURE__*/function (CameraFormatType) {
|
|
1247
|
+
/**
|
|
1248
|
+
* @ignore
|
|
1249
|
+
*/
|
|
1250
|
+
CameraFormatType[CameraFormatType["CameraFormatNv12"] = 0] = "CameraFormatNv12";
|
|
1251
|
+
/**
|
|
1252
|
+
* @ignore
|
|
1253
|
+
*/
|
|
1254
|
+
CameraFormatType[CameraFormatType["CameraFormatBgra"] = 1] = "CameraFormatBgra";
|
|
1255
|
+
return CameraFormatType;
|
|
1256
|
+
}({});
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* @ignore
|
|
1260
|
+
*/
|
|
1261
|
+
export let VideoModuleType = /*#__PURE__*/function (VideoModuleType) {
|
|
1262
|
+
/**
|
|
1263
|
+
* @ignore
|
|
1264
|
+
*/
|
|
1265
|
+
VideoModuleType[VideoModuleType["VideoModuleCapturer"] = 0] = "VideoModuleCapturer";
|
|
1266
|
+
/**
|
|
1267
|
+
* @ignore
|
|
1268
|
+
*/
|
|
1269
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareEncoder"] = 1] = "VideoModuleSoftwareEncoder";
|
|
1270
|
+
/**
|
|
1271
|
+
* @ignore
|
|
1272
|
+
*/
|
|
1273
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareEncoder"] = 2] = "VideoModuleHardwareEncoder";
|
|
1274
|
+
/**
|
|
1275
|
+
* @ignore
|
|
1276
|
+
*/
|
|
1277
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareDecoder"] = 3] = "VideoModuleSoftwareDecoder";
|
|
1278
|
+
/**
|
|
1279
|
+
* @ignore
|
|
1280
|
+
*/
|
|
1281
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareDecoder"] = 4] = "VideoModuleHardwareDecoder";
|
|
1282
|
+
/**
|
|
1283
|
+
* @ignore
|
|
1284
|
+
*/
|
|
1285
|
+
VideoModuleType[VideoModuleType["VideoModuleRenderer"] = 5] = "VideoModuleRenderer";
|
|
1286
|
+
return VideoModuleType;
|
|
1287
|
+
}({});
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* @ignore
|
|
1291
|
+
*/
|
|
1292
|
+
export let HdrCapability = /*#__PURE__*/function (HdrCapability) {
|
|
1293
|
+
/**
|
|
1294
|
+
* @ignore
|
|
1295
|
+
*/
|
|
1296
|
+
HdrCapability[HdrCapability["HdrCapabilityUnknown"] = -1] = "HdrCapabilityUnknown";
|
|
1297
|
+
/**
|
|
1298
|
+
* @ignore
|
|
1299
|
+
*/
|
|
1300
|
+
HdrCapability[HdrCapability["HdrCapabilityUnsupported"] = 0] = "HdrCapabilityUnsupported";
|
|
1301
|
+
/**
|
|
1302
|
+
* @ignore
|
|
1303
|
+
*/
|
|
1304
|
+
HdrCapability[HdrCapability["HdrCapabilitySupported"] = 1] = "HdrCapabilitySupported";
|
|
1305
|
+
return HdrCapability;
|
|
1306
|
+
}({});
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* 编解码类型 bit mask。
|
|
1310
|
+
*/
|
|
1311
|
+
export let CodecCapMask = /*#__PURE__*/function (CodecCapMask) {
|
|
1312
|
+
/**
|
|
1313
|
+
* (0):不支持编解码。
|
|
1314
|
+
*/
|
|
1315
|
+
CodecCapMask[CodecCapMask["CodecCapMaskNone"] = 0] = "CodecCapMaskNone";
|
|
1316
|
+
/**
|
|
1317
|
+
* (1 << 0):支持硬件解码。
|
|
1318
|
+
*/
|
|
1319
|
+
CodecCapMask[CodecCapMask["CodecCapMaskHwDec"] = 1] = "CodecCapMaskHwDec";
|
|
1320
|
+
/**
|
|
1321
|
+
* (1 << 1):支持硬件编码。
|
|
1322
|
+
*/
|
|
1323
|
+
CodecCapMask[CodecCapMask["CodecCapMaskHwEnc"] = 2] = "CodecCapMaskHwEnc";
|
|
1324
|
+
/**
|
|
1325
|
+
* (1 << 2):支持软件解码。
|
|
1326
|
+
*/
|
|
1327
|
+
CodecCapMask[CodecCapMask["CodecCapMaskSwDec"] = 4] = "CodecCapMaskSwDec";
|
|
1328
|
+
/**
|
|
1329
|
+
* (1 << 3):支持软件编码。
|
|
1330
|
+
*/
|
|
1331
|
+
CodecCapMask[CodecCapMask["CodecCapMaskSwEnc"] = 8] = "CodecCapMaskSwEnc";
|
|
1332
|
+
return CodecCapMask;
|
|
1333
|
+
}({});
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* 编解码能力等级。
|
|
1337
|
+
*/
|
|
1338
|
+
export class CodecCapLevels {}
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* SDK 支持的编解码能力信息。
|
|
1342
|
+
*/
|
|
1343
|
+
export class CodecCapInfo {}
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* 摄像头支持的焦距信息,包含摄像头的方向以及焦距类型。
|
|
1347
|
+
*/
|
|
1348
|
+
export class FocalLengthInfo {}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* 视频编码器的配置。
|
|
1352
|
+
*/
|
|
1353
|
+
export class VideoEncoderConfiguration {}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* 数据流设置。
|
|
1357
|
+
*
|
|
1358
|
+
* 下表展示不同的参数设置下,SDK 的行为: syncWithAudio ordered
|
|
1359
|
+
* SDK 行为 false false
|
|
1360
|
+
* 接收端接收到数据包后,SDK 立刻触发 onStreamMessage 回调。 true false
|
|
1361
|
+
* 如果数据包的延迟在音频延迟的范围内,SDK 会在播放音频的同时触发与该音频包同步的 onStreamMessage 回调。如果数据包的延迟超出了音频延迟,SDK 会在接收到该数据包时立刻触发 onStreamMessage 回调;此情况会造成音频包和数据包的不同步。 false true
|
|
1362
|
+
* 如果数据包的延迟在 5 秒以内,SDK 会修正数据包的乱序问题。如果数据包的延迟超出 5 秒,SDK 会丢弃该数据包。 true true
|
|
1363
|
+
* 如果数据包的延迟在音频延迟的范围内,SDK 会修正数据包的乱序问题。如果数据包的延迟超出音频延迟,SDK 会丢弃该数据包。
|
|
1364
|
+
*/
|
|
1365
|
+
export class DataStreamConfig {}
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* 发送视频流的模式。
|
|
1369
|
+
*/
|
|
1370
|
+
export let SimulcastStreamMode = /*#__PURE__*/function (SimulcastStreamMode) {
|
|
1371
|
+
/**
|
|
1372
|
+
* -1:默认不发送小流,直至收到接收端发起的订阅小流申请时,开始自动发送小流。
|
|
1373
|
+
*/
|
|
1374
|
+
SimulcastStreamMode[SimulcastStreamMode["AutoSimulcastStream"] = -1] = "AutoSimulcastStream";
|
|
1375
|
+
/**
|
|
1376
|
+
* 0:始终不发送小流。
|
|
1377
|
+
*/
|
|
1378
|
+
SimulcastStreamMode[SimulcastStreamMode["DisableSimulcastStream"] = 0] = "DisableSimulcastStream";
|
|
1379
|
+
/**
|
|
1380
|
+
* 1:始终发送小流。
|
|
1381
|
+
*/
|
|
1382
|
+
SimulcastStreamMode[SimulcastStreamMode["EnableSimulcastStream"] = 1] = "EnableSimulcastStream";
|
|
1383
|
+
return SimulcastStreamMode;
|
|
1384
|
+
}({});
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* 视频小流的配置。
|
|
1388
|
+
*/
|
|
1389
|
+
export class SimulcastStreamConfig {}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* @ignore
|
|
1393
|
+
*/
|
|
1394
|
+
export let StreamLayerIndex = /*#__PURE__*/function (StreamLayerIndex) {
|
|
1395
|
+
/**
|
|
1396
|
+
* @ignore
|
|
1397
|
+
*/
|
|
1398
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer1"] = 0] = "StreamLayer1";
|
|
1399
|
+
/**
|
|
1400
|
+
* @ignore
|
|
1401
|
+
*/
|
|
1402
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer2"] = 1] = "StreamLayer2";
|
|
1403
|
+
/**
|
|
1404
|
+
* @ignore
|
|
1405
|
+
*/
|
|
1406
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer3"] = 2] = "StreamLayer3";
|
|
1407
|
+
/**
|
|
1408
|
+
* @ignore
|
|
1409
|
+
*/
|
|
1410
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer4"] = 3] = "StreamLayer4";
|
|
1411
|
+
/**
|
|
1412
|
+
* @ignore
|
|
1413
|
+
*/
|
|
1414
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer5"] = 4] = "StreamLayer5";
|
|
1415
|
+
/**
|
|
1416
|
+
* @ignore
|
|
1417
|
+
*/
|
|
1418
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayer6"] = 5] = "StreamLayer6";
|
|
1419
|
+
/**
|
|
1420
|
+
* @ignore
|
|
1421
|
+
*/
|
|
1422
|
+
StreamLayerIndex[StreamLayerIndex["StreamLow"] = 6] = "StreamLow";
|
|
1423
|
+
/**
|
|
1424
|
+
* @ignore
|
|
1425
|
+
*/
|
|
1426
|
+
StreamLayerIndex[StreamLayerIndex["StreamLayerCountMax"] = 7] = "StreamLayerCountMax";
|
|
1427
|
+
return StreamLayerIndex;
|
|
1428
|
+
}({});
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @ignore
|
|
1432
|
+
*/
|
|
1433
|
+
export class StreamLayerConfig {}
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* @ignore
|
|
1437
|
+
*/
|
|
1438
|
+
export class SimulcastConfig {}
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* 目标区域相对于整个屏幕或窗口的位置,如不填,则表示整个屏幕或窗口。
|
|
1442
|
+
*/
|
|
1443
|
+
export class Rectangle {}
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* 水印在屏幕中的位置和大小。
|
|
1447
|
+
*
|
|
1448
|
+
* 水印在屏幕中的位置和大小由 xRatio 、 yRatio 和 widthRatio 共同决定:
|
|
1449
|
+
* (xRatio, yRatio) 指水印左上角的坐标,决定水印左上角到屏幕左上角的距离。 widthRatio 决定水印的宽度。
|
|
1450
|
+
*/
|
|
1451
|
+
export class WatermarkRatio {}
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* 配置水印图像。
|
|
1455
|
+
*
|
|
1456
|
+
* 用于设置要添加的水印图像的相关配置项。
|
|
1457
|
+
*/
|
|
1458
|
+
export class WatermarkOptions {}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* 水印源类型。
|
|
1462
|
+
*
|
|
1463
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1464
|
+
*/
|
|
1465
|
+
export let WatermarkSourceType = /*#__PURE__*/function (WatermarkSourceType) {
|
|
1466
|
+
/**
|
|
1467
|
+
* (0):水印源为图像。
|
|
1468
|
+
*/
|
|
1469
|
+
WatermarkSourceType[WatermarkSourceType["Image"] = 0] = "Image";
|
|
1470
|
+
/**
|
|
1471
|
+
* (1):水印源为缓冲区。
|
|
1472
|
+
*/
|
|
1473
|
+
WatermarkSourceType[WatermarkSourceType["Buffer"] = 1] = "Buffer";
|
|
1474
|
+
/**
|
|
1475
|
+
* (2):水印源为文本字面量。 仅支持在 Linux 平台使用。
|
|
1476
|
+
*/
|
|
1477
|
+
WatermarkSourceType[WatermarkSourceType["Literal"] = 2] = "Literal";
|
|
1478
|
+
/**
|
|
1479
|
+
* (3):水印源为时间戳。 仅支持在 Linux 平台使用。
|
|
1480
|
+
*/
|
|
1481
|
+
WatermarkSourceType[WatermarkSourceType["Timestamps"] = 3] = "Timestamps";
|
|
1482
|
+
return WatermarkSourceType;
|
|
1483
|
+
}({});
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* 用于配置时间戳水印。
|
|
1487
|
+
*
|
|
1488
|
+
* 自从 自 v4.6.2 版本新增。 仅适用于 Linux 平台。
|
|
1489
|
+
*/
|
|
1490
|
+
export class WatermarkTimestamp {}
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* 用于配置文字水印。
|
|
1494
|
+
*
|
|
1495
|
+
* 自从 自 v4.6.2 版本新增。 仅适用于 Linux 平台。
|
|
1496
|
+
*/
|
|
1497
|
+
export class WatermarkLiteral {}
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* 用于配置水印图像的格式、尺寸和像素缓冲区。
|
|
1501
|
+
*
|
|
1502
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1503
|
+
*/
|
|
1504
|
+
export class WatermarkBuffer {}
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* 用于配置水印信息。
|
|
1508
|
+
*
|
|
1509
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1510
|
+
*/
|
|
1511
|
+
export class WatermarkConfig {}
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* 多路径数据传输的模式。
|
|
1515
|
+
*
|
|
1516
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1517
|
+
*/
|
|
1518
|
+
export let MultipathMode = /*#__PURE__*/function (MultipathMode) {
|
|
1519
|
+
/**
|
|
1520
|
+
* (0):冗余发送模式,相同的数据会通过所有可用路径进行冗余传输。
|
|
1521
|
+
*/
|
|
1522
|
+
MultipathMode[MultipathMode["Duplicate"] = 0] = "Duplicate";
|
|
1523
|
+
/**
|
|
1524
|
+
* (1):动态发送模式,SDK 会根据当前网络状况动态选择最优路径进行数据传输,以提升传输性能。
|
|
1525
|
+
*/
|
|
1526
|
+
MultipathMode[MultipathMode["Dynamic"] = 1] = "Dynamic";
|
|
1527
|
+
return MultipathMode;
|
|
1528
|
+
}({});
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* 多路径传输使用的网络路径类型。
|
|
1532
|
+
*
|
|
1533
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1534
|
+
*/
|
|
1535
|
+
export let MultipathType = /*#__PURE__*/function (MultipathType) {
|
|
1536
|
+
/**
|
|
1537
|
+
* (0):局域网(LAN)路径。
|
|
1538
|
+
*/
|
|
1539
|
+
MultipathType[MultipathType["Lan"] = 0] = "Lan";
|
|
1540
|
+
/**
|
|
1541
|
+
* (1):Wi-Fi 路径。
|
|
1542
|
+
*/
|
|
1543
|
+
MultipathType[MultipathType["Wifi"] = 1] = "Wifi";
|
|
1544
|
+
/**
|
|
1545
|
+
* (2):移动网络路径。
|
|
1546
|
+
*/
|
|
1547
|
+
MultipathType[MultipathType["Mobile"] = 2] = "Mobile";
|
|
1548
|
+
/**
|
|
1549
|
+
* (99):未知或未指定的网络路径。
|
|
1550
|
+
*/
|
|
1551
|
+
MultipathType[MultipathType["Unknown"] = 99] = "Unknown";
|
|
1552
|
+
return MultipathType;
|
|
1553
|
+
}({});
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* 用于获取特定网络路径的统计数据。
|
|
1557
|
+
*
|
|
1558
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1559
|
+
*/
|
|
1560
|
+
export class PathStats {}
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* 用于汇总多路径传输中各网络路径的统计数据。
|
|
1564
|
+
*
|
|
1565
|
+
* 自从 自 v4.6.2 版本新增。
|
|
1566
|
+
*/
|
|
1567
|
+
export class MultipathStats {}
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* 通话相关的统计信息。
|
|
1571
|
+
*/
|
|
1572
|
+
export class RtcStats {}
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* 直播场景里的用户角色。
|
|
1576
|
+
*/
|
|
1577
|
+
export let ClientRoleType = /*#__PURE__*/function (ClientRoleType) {
|
|
1578
|
+
/**
|
|
1579
|
+
* 1: 主播。主播可以发流也可以收流。
|
|
1580
|
+
*/
|
|
1581
|
+
ClientRoleType[ClientRoleType["ClientRoleBroadcaster"] = 1] = "ClientRoleBroadcaster";
|
|
1582
|
+
/**
|
|
1583
|
+
* 2:(默认)观众。观众只能收流不能发流。
|
|
1584
|
+
*/
|
|
1585
|
+
ClientRoleType[ClientRoleType["ClientRoleAudience"] = 2] = "ClientRoleAudience";
|
|
1586
|
+
return ClientRoleType;
|
|
1587
|
+
}({});
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* 自上次统计后本地视频质量的自适应情况(基于目标帧率和目标码率)。
|
|
1591
|
+
*/
|
|
1592
|
+
export let QualityAdaptIndication = /*#__PURE__*/function (QualityAdaptIndication) {
|
|
1593
|
+
/**
|
|
1594
|
+
* 0:本地视频质量不变。
|
|
1595
|
+
*/
|
|
1596
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptNone"] = 0] = "AdaptNone";
|
|
1597
|
+
/**
|
|
1598
|
+
* 1:因网络带宽增加,本地视频质量改善。
|
|
1599
|
+
*/
|
|
1600
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptUpBandwidth"] = 1] = "AdaptUpBandwidth";
|
|
1601
|
+
/**
|
|
1602
|
+
* 2:因网络带宽减少,本地视频质量变差。
|
|
1603
|
+
*/
|
|
1604
|
+
QualityAdaptIndication[QualityAdaptIndication["AdaptDownBandwidth"] = 2] = "AdaptDownBandwidth";
|
|
1605
|
+
return QualityAdaptIndication;
|
|
1606
|
+
}({});
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* 直播频道中观众的延时级别。该枚举仅在用户角色设为 ClientRoleAudience 时才生效。
|
|
1610
|
+
*/
|
|
1611
|
+
export let AudienceLatencyLevelType = /*#__PURE__*/function (AudienceLatencyLevelType) {
|
|
1612
|
+
/**
|
|
1613
|
+
* 1: 低延时。
|
|
1614
|
+
*/
|
|
1615
|
+
AudienceLatencyLevelType[AudienceLatencyLevelType["AudienceLatencyLevelLowLatency"] = 1] = "AudienceLatencyLevelLowLatency";
|
|
1616
|
+
/**
|
|
1617
|
+
* 2:(默认)超低延时。
|
|
1618
|
+
*/
|
|
1619
|
+
AudienceLatencyLevelType[AudienceLatencyLevelType["AudienceLatencyLevelUltraLowLatency"] = 2] = "AudienceLatencyLevelUltraLowLatency";
|
|
1620
|
+
return AudienceLatencyLevelType;
|
|
1621
|
+
}({});
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* 用户角色属性设置。
|
|
1625
|
+
*/
|
|
1626
|
+
export class ClientRoleOptions {}
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* 接收远端音频时,本地用户的主观体验质量。
|
|
1630
|
+
*/
|
|
1631
|
+
export let ExperienceQualityType = /*#__PURE__*/function (ExperienceQualityType) {
|
|
1632
|
+
/**
|
|
1633
|
+
* 0: 主观体验质量较好。
|
|
1634
|
+
*/
|
|
1635
|
+
ExperienceQualityType[ExperienceQualityType["ExperienceQualityGood"] = 0] = "ExperienceQualityGood";
|
|
1636
|
+
/**
|
|
1637
|
+
* 1: 主观体验质量较差。
|
|
1638
|
+
*/
|
|
1639
|
+
ExperienceQualityType[ExperienceQualityType["ExperienceQualityBad"] = 1] = "ExperienceQualityBad";
|
|
1640
|
+
return ExperienceQualityType;
|
|
1641
|
+
}({});
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* 接收远端音频时,本地用户主观体验质量较差的原因。
|
|
1645
|
+
*/
|
|
1646
|
+
export let ExperiencePoorReason = /*#__PURE__*/function (ExperiencePoorReason) {
|
|
1647
|
+
/**
|
|
1648
|
+
* 0: 无原因,说明主观体验质量较好。
|
|
1649
|
+
*/
|
|
1650
|
+
ExperiencePoorReason[ExperiencePoorReason["ExperienceReasonNone"] = 0] = "ExperienceReasonNone";
|
|
1651
|
+
/**
|
|
1652
|
+
* 1: 远端用户的网络较差。
|
|
1653
|
+
*/
|
|
1654
|
+
ExperiencePoorReason[ExperiencePoorReason["RemoteNetworkQualityPoor"] = 1] = "RemoteNetworkQualityPoor";
|
|
1655
|
+
/**
|
|
1656
|
+
* 2: 本地用户的网络较差。
|
|
1657
|
+
*/
|
|
1658
|
+
ExperiencePoorReason[ExperiencePoorReason["LocalNetworkQualityPoor"] = 2] = "LocalNetworkQualityPoor";
|
|
1659
|
+
/**
|
|
1660
|
+
* 4: 本地用户的 Wi-FI 或者移动数据网络信号弱。
|
|
1661
|
+
*/
|
|
1662
|
+
ExperiencePoorReason[ExperiencePoorReason["WirelessSignalPoor"] = 4] = "WirelessSignalPoor";
|
|
1663
|
+
/**
|
|
1664
|
+
* 8: 本地用户同时开启 Wi-Fi 和蓝牙,二者信号互相干扰,导致音频传输质量下降。
|
|
1665
|
+
*/
|
|
1666
|
+
ExperiencePoorReason[ExperiencePoorReason["WifiBluetoothCoexist"] = 8] = "WifiBluetoothCoexist";
|
|
1667
|
+
return ExperiencePoorReason;
|
|
1668
|
+
}({});
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* AI 降噪的模式。
|
|
1672
|
+
*/
|
|
1673
|
+
export let AudioAinsMode = /*#__PURE__*/function (AudioAinsMode) {
|
|
1674
|
+
/**
|
|
1675
|
+
* 0:(默认)均衡降噪模式;如果你希望实现对噪声抑制和延时都较为均衡的降噪效果,可选择该模式。
|
|
1676
|
+
*/
|
|
1677
|
+
AudioAinsMode[AudioAinsMode["AinsModeBalanced"] = 0] = "AinsModeBalanced";
|
|
1678
|
+
/**
|
|
1679
|
+
* 1:强降噪模式;适用于对噪声抑制性能要求较高的场景,如户外直播。该模式可以更大程度地减少噪声,但同时可能会对语音造成一定损伤。
|
|
1680
|
+
*/
|
|
1681
|
+
AudioAinsMode[AudioAinsMode["AinsModeAggressive"] = 1] = "AinsModeAggressive";
|
|
1682
|
+
/**
|
|
1683
|
+
* 2:低延时强降噪模式。该模式的降噪延时比弱降噪和强降噪模式大约低一半,适用于对降噪及低延时要求较高的场景,如实时合唱。
|
|
1684
|
+
*/
|
|
1685
|
+
AudioAinsMode[AudioAinsMode["AinsModeUltralowlatency"] = 2] = "AinsModeUltralowlatency";
|
|
1686
|
+
return AudioAinsMode;
|
|
1687
|
+
}({});
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* 音频编码属性。
|
|
1691
|
+
*/
|
|
1692
|
+
export let AudioProfileType = /*#__PURE__*/function (AudioProfileType) {
|
|
1693
|
+
/**
|
|
1694
|
+
* 0: 默认值。
|
|
1695
|
+
* 直播场景下:48 kHz 采样率,音乐编码,单声道,编码码率最大值为 64 Kbps。
|
|
1696
|
+
* 通信场景下:32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。
|
|
1697
|
+
*/
|
|
1698
|
+
AudioProfileType[AudioProfileType["AudioProfileDefault"] = 0] = "AudioProfileDefault";
|
|
1699
|
+
/**
|
|
1700
|
+
* 1: 指定 32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。
|
|
1701
|
+
*/
|
|
1702
|
+
AudioProfileType[AudioProfileType["AudioProfileSpeechStandard"] = 1] = "AudioProfileSpeechStandard";
|
|
1703
|
+
/**
|
|
1704
|
+
* 2: 指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 64 Kbps。
|
|
1705
|
+
*/
|
|
1706
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicStandard"] = 2] = "AudioProfileMusicStandard";
|
|
1707
|
+
/**
|
|
1708
|
+
* 3: 指定 48 kHz 采样率,音乐编码,双声道,编码码率最大值为 80 Kbps。
|
|
1709
|
+
* 如需实现立体声,你还需要调用 setAdvancedAudioOptions 并在 AdvancedAudioOptions 中设置 audioProcessingChannels 为 AudioProcessingStereo 。
|
|
1710
|
+
*/
|
|
1711
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicStandardStereo"] = 3] = "AudioProfileMusicStandardStereo";
|
|
1712
|
+
/**
|
|
1713
|
+
* 4: 指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 96 Kbps。
|
|
1714
|
+
*/
|
|
1715
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicHighQuality"] = 4] = "AudioProfileMusicHighQuality";
|
|
1716
|
+
/**
|
|
1717
|
+
* 5: 指定 48 kHz 采样率,音乐编码,双声道,编码码率最大值为 128 Kbps。
|
|
1718
|
+
* 如需实现立体声,你还需要调用 setAdvancedAudioOptions 并在 AdvancedAudioOptions 中设置 audioProcessingChannels 为 AudioProcessingStereo 。
|
|
1719
|
+
*/
|
|
1720
|
+
AudioProfileType[AudioProfileType["AudioProfileMusicHighQualityStereo"] = 5] = "AudioProfileMusicHighQualityStereo";
|
|
1721
|
+
/**
|
|
1722
|
+
* 6: 指定 16 kHz 采样率,语音编码,单声道,应用回声消除算法 AEC。
|
|
1723
|
+
*/
|
|
1724
|
+
AudioProfileType[AudioProfileType["AudioProfileIot"] = 6] = "AudioProfileIot";
|
|
1725
|
+
/**
|
|
1726
|
+
* 枚举值边界。
|
|
1727
|
+
*/
|
|
1728
|
+
AudioProfileType[AudioProfileType["AudioProfileNum"] = 7] = "AudioProfileNum";
|
|
1729
|
+
return AudioProfileType;
|
|
1730
|
+
}({});
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* 音频场景。
|
|
1734
|
+
*/
|
|
1735
|
+
export let AudioScenarioType = /*#__PURE__*/function (AudioScenarioType) {
|
|
1736
|
+
/**
|
|
1737
|
+
* 0: (默认)自动场景,根据用户角色和音频路由自动匹配合适的音质。
|
|
1738
|
+
*/
|
|
1739
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioDefault"] = 0] = "AudioScenarioDefault";
|
|
1740
|
+
/**
|
|
1741
|
+
* 3: 高音质场景,适用于音乐为主的场景。例如:乐器陪练。
|
|
1742
|
+
*/
|
|
1743
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioGameStreaming"] = 3] = "AudioScenarioGameStreaming";
|
|
1744
|
+
/**
|
|
1745
|
+
* 5: 聊天室场景,适用于用户需要频繁上下麦的场景。例如:教育场景。
|
|
1746
|
+
*/
|
|
1747
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioChatroom"] = 5] = "AudioScenarioChatroom";
|
|
1748
|
+
/**
|
|
1749
|
+
* 7: 合唱场景。适用于网络条件良好,要求极低延时的实时合唱场景。
|
|
1750
|
+
*/
|
|
1751
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioChorus"] = 7] = "AudioScenarioChorus";
|
|
1752
|
+
/**
|
|
1753
|
+
* 8: 会议场景,适用于人声为主的多人会议。
|
|
1754
|
+
*/
|
|
1755
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioMeeting"] = 8] = "AudioScenarioMeeting";
|
|
1756
|
+
/**
|
|
1757
|
+
* @ignore
|
|
1758
|
+
*/
|
|
1759
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioAiServer"] = 9] = "AudioScenarioAiServer";
|
|
1760
|
+
/**
|
|
1761
|
+
* 10: AI 对话场景,仅适用于与[声网对话式 AI 引擎](https://doc.shengwang.cn/doc/convoai/restful/landing-page)创建的智能体互动的场景。
|
|
1762
|
+
*/
|
|
1763
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioAiClient"] = 10] = "AudioScenarioAiClient";
|
|
1764
|
+
/**
|
|
1765
|
+
* 枚举的数量。
|
|
1766
|
+
*/
|
|
1767
|
+
AudioScenarioType[AudioScenarioType["AudioScenarioNum"] = 11] = "AudioScenarioNum";
|
|
1768
|
+
return AudioScenarioType;
|
|
1769
|
+
}({});
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* 视频帧格式。
|
|
1773
|
+
*/
|
|
1774
|
+
export class VideoFormat {}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* 屏幕共享的内容类型。
|
|
1778
|
+
*/
|
|
1779
|
+
export let VideoContentHint = /*#__PURE__*/function (VideoContentHint) {
|
|
1780
|
+
/**
|
|
1781
|
+
* (默认)无指定的内容类型。
|
|
1782
|
+
*/
|
|
1783
|
+
VideoContentHint[VideoContentHint["ContentHintNone"] = 0] = "ContentHintNone";
|
|
1784
|
+
/**
|
|
1785
|
+
* 内容类型为动画。当共享的内容是视频、电影或视频游戏时,推荐选择该内容类型。
|
|
1786
|
+
*/
|
|
1787
|
+
VideoContentHint[VideoContentHint["ContentHintMotion"] = 1] = "ContentHintMotion";
|
|
1788
|
+
/**
|
|
1789
|
+
* 内容类型为细节。当共享的内容是图片或文字时,推荐选择该内容类型。
|
|
1790
|
+
*/
|
|
1791
|
+
VideoContentHint[VideoContentHint["ContentHintDetails"] = 2] = "ContentHintDetails";
|
|
1792
|
+
return VideoContentHint;
|
|
1793
|
+
}({});
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* 屏幕共享的场景。
|
|
1797
|
+
*/
|
|
1798
|
+
export let ScreenScenarioType = /*#__PURE__*/function (ScreenScenarioType) {
|
|
1799
|
+
/**
|
|
1800
|
+
* 1:(默认)文档。该场景下,优先保障共享的画质,并降低了接收端看到共享视频的延时。如果你共享文档、幻灯片、表格,可以设置该场景。
|
|
1801
|
+
*/
|
|
1802
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioDocument"] = 1] = "ScreenScenarioDocument";
|
|
1803
|
+
/**
|
|
1804
|
+
* 2: 游戏。该场景下,优先保障共享的流畅性。如果你共享游戏,可以设置该场景。
|
|
1805
|
+
*/
|
|
1806
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioGaming"] = 2] = "ScreenScenarioGaming";
|
|
1807
|
+
/**
|
|
1808
|
+
* 3: 视频。该场景下,优先保障共享的流畅性。如果你共享电影、视频直播,可以设置该场景。
|
|
1809
|
+
*/
|
|
1810
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioVideo"] = 3] = "ScreenScenarioVideo";
|
|
1811
|
+
/**
|
|
1812
|
+
* 4: 远程控制。该场景下,优先保障共享的画质,并降低了接收端看到共享视频的延时。如果你共享被远程控制的设备桌面,可以设置该场景。
|
|
1813
|
+
*/
|
|
1814
|
+
ScreenScenarioType[ScreenScenarioType["ScreenScenarioRdc"] = 4] = "ScreenScenarioRdc";
|
|
1815
|
+
return ScreenScenarioType;
|
|
1816
|
+
}({});
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* 视频业务场景类型。
|
|
1820
|
+
*/
|
|
1821
|
+
export let VideoApplicationScenarioType = /*#__PURE__*/function (VideoApplicationScenarioType) {
|
|
1822
|
+
/**
|
|
1823
|
+
* 0: (默认) 通用场景。
|
|
1824
|
+
*/
|
|
1825
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioGeneral"] = 0] = "ApplicationScenarioGeneral";
|
|
1826
|
+
/**
|
|
1827
|
+
* 1: 会议场景。
|
|
1828
|
+
*/
|
|
1829
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioMeeting"] = 1] = "ApplicationScenarioMeeting";
|
|
1830
|
+
/**
|
|
1831
|
+
* 2: 1v1 视频通话
|
|
1832
|
+
*/
|
|
1833
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenario1v1"] = 2] = "ApplicationScenario1v1";
|
|
1834
|
+
/**
|
|
1835
|
+
* 3: 秀场直播
|
|
1836
|
+
*/
|
|
1837
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioLiveshow"] = 3] = "ApplicationScenarioLiveshow";
|
|
1838
|
+
return VideoApplicationScenarioType;
|
|
1839
|
+
}({});
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @ignore
|
|
1843
|
+
*/
|
|
1844
|
+
export let VideoQoePreferenceType = /*#__PURE__*/function (VideoQoePreferenceType) {
|
|
1845
|
+
/**
|
|
1846
|
+
* @ignore
|
|
1847
|
+
*/
|
|
1848
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceBalance"] = 1] = "VideoQoePreferenceBalance";
|
|
1849
|
+
/**
|
|
1850
|
+
* @ignore
|
|
1851
|
+
*/
|
|
1852
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceDelayFirst"] = 2] = "VideoQoePreferenceDelayFirst";
|
|
1853
|
+
/**
|
|
1854
|
+
* @ignore
|
|
1855
|
+
*/
|
|
1856
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferencePictureQualityFirst"] = 3] = "VideoQoePreferencePictureQualityFirst";
|
|
1857
|
+
/**
|
|
1858
|
+
* @ignore
|
|
1859
|
+
*/
|
|
1860
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceFluencyFirst"] = 4] = "VideoQoePreferenceFluencyFirst";
|
|
1861
|
+
return VideoQoePreferenceType;
|
|
1862
|
+
}({});
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* 本地采集的画质亮度级别。
|
|
1866
|
+
*/
|
|
1867
|
+
export let CaptureBrightnessLevelType = /*#__PURE__*/function (CaptureBrightnessLevelType) {
|
|
1868
|
+
/**
|
|
1869
|
+
* @ignore
|
|
1870
|
+
*/
|
|
1871
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelInvalid"] = -1] = "CaptureBrightnessLevelInvalid";
|
|
1872
|
+
/**
|
|
1873
|
+
* @ignore
|
|
1874
|
+
*/
|
|
1875
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelNormal"] = 0] = "CaptureBrightnessLevelNormal";
|
|
1876
|
+
/**
|
|
1877
|
+
* @ignore
|
|
1878
|
+
*/
|
|
1879
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelBright"] = 1] = "CaptureBrightnessLevelBright";
|
|
1880
|
+
/**
|
|
1881
|
+
* @ignore
|
|
1882
|
+
*/
|
|
1883
|
+
CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelDark"] = 2] = "CaptureBrightnessLevelDark";
|
|
1884
|
+
return CaptureBrightnessLevelType;
|
|
1885
|
+
}({});
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* 摄像头防抖模式。
|
|
1889
|
+
*
|
|
1890
|
+
* 摄像头的防抖效果按照 1 < 2 <3 的顺序依次增强,时延也会相应增大。
|
|
1891
|
+
*/
|
|
1892
|
+
export let CameraStabilizationMode = /*#__PURE__*/function (CameraStabilizationMode) {
|
|
1893
|
+
/**
|
|
1894
|
+
* -1:(默认)摄像头防抖模式关闭。
|
|
1895
|
+
*/
|
|
1896
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeOff"] = -1] = "CameraStabilizationModeOff";
|
|
1897
|
+
/**
|
|
1898
|
+
* 0:摄像头自动防抖,系统会根据摄像头的状态自动选择一种防抖模式。但是在该模式下的时延较大,建议你不要使用该枚举。
|
|
1899
|
+
*/
|
|
1900
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeAuto"] = 0] = "CameraStabilizationModeAuto";
|
|
1901
|
+
/**
|
|
1902
|
+
* 1:(推荐)摄像头 1 级防抖。
|
|
1903
|
+
*/
|
|
1904
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel1"] = 1] = "CameraStabilizationModeLevel1";
|
|
1905
|
+
/**
|
|
1906
|
+
* 2:摄像头 2 级防抖。
|
|
1907
|
+
*/
|
|
1908
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel2"] = 2] = "CameraStabilizationModeLevel2";
|
|
1909
|
+
/**
|
|
1910
|
+
* 3:摄像头 3 级防抖。
|
|
1911
|
+
*/
|
|
1912
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel3"] = 3] = "CameraStabilizationModeLevel3";
|
|
1913
|
+
/**
|
|
1914
|
+
* @ignore
|
|
1915
|
+
*/
|
|
1916
|
+
CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeMaxLevel"] = 3] = "CameraStabilizationModeMaxLevel";
|
|
1917
|
+
return CameraStabilizationMode;
|
|
1918
|
+
}({});
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* 本地音频状态。
|
|
1922
|
+
*/
|
|
1923
|
+
export let LocalAudioStreamState = /*#__PURE__*/function (LocalAudioStreamState) {
|
|
1924
|
+
/**
|
|
1925
|
+
* 0: 本地音频默认初始状态。
|
|
1926
|
+
*/
|
|
1927
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateStopped"] = 0] = "LocalAudioStreamStateStopped";
|
|
1928
|
+
/**
|
|
1929
|
+
* 1: 本地音频采集设备启动成功。
|
|
1930
|
+
*/
|
|
1931
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateRecording"] = 1] = "LocalAudioStreamStateRecording";
|
|
1932
|
+
/**
|
|
1933
|
+
* 2: 本地音频首帧编码成功。
|
|
1934
|
+
*/
|
|
1935
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateEncoding"] = 2] = "LocalAudioStreamStateEncoding";
|
|
1936
|
+
/**
|
|
1937
|
+
* 3: 本地音频启动失败。
|
|
1938
|
+
*/
|
|
1939
|
+
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateFailed"] = 3] = "LocalAudioStreamStateFailed";
|
|
1940
|
+
return LocalAudioStreamState;
|
|
1941
|
+
}({});
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* 本地音频状态改变原因。
|
|
1945
|
+
*/
|
|
1946
|
+
export let LocalAudioStreamReason = /*#__PURE__*/function (LocalAudioStreamReason) {
|
|
1947
|
+
/**
|
|
1948
|
+
* 0:本地音频状态正常。
|
|
1949
|
+
*/
|
|
1950
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonOk"] = 0] = "LocalAudioStreamReasonOk";
|
|
1951
|
+
/**
|
|
1952
|
+
* 1:本地音频出错原因不明确。建议提示用户尝试重新加入频道。
|
|
1953
|
+
*/
|
|
1954
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonFailure"] = 1] = "LocalAudioStreamReasonFailure";
|
|
1955
|
+
/**
|
|
1956
|
+
* 2:没有权限启动本地音频采集设备。请提示用户开启权限。 弃用:该枚举已废弃。请改用 onPermissionError 回调中的 RecordAudio 。
|
|
1957
|
+
*/
|
|
1958
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceNoPermission"] = 2] = "LocalAudioStreamReasonDeviceNoPermission";
|
|
1959
|
+
/**
|
|
1960
|
+
* 3:本地音频采集设备已经在使用中。请提示用户检查麦克风是否被其他应用占用。麦克风空闲约 5 秒后本地音频采集会自动恢复,你也可以在麦克风空闲后尝试重新加入频道。
|
|
1961
|
+
*/
|
|
1962
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceBusy"] = 3] = "LocalAudioStreamReasonDeviceBusy";
|
|
1963
|
+
/**
|
|
1964
|
+
* 4:本地音频采集失败。
|
|
1965
|
+
*/
|
|
1966
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordFailure"] = 4] = "LocalAudioStreamReasonRecordFailure";
|
|
1967
|
+
/**
|
|
1968
|
+
* 5:本地音频编码失败。
|
|
1969
|
+
*/
|
|
1970
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonEncodeFailure"] = 5] = "LocalAudioStreamReasonEncodeFailure";
|
|
1971
|
+
/**
|
|
1972
|
+
* @ignore
|
|
1973
|
+
*/
|
|
1974
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoRecordingDevice"] = 6] = "LocalAudioStreamReasonNoRecordingDevice";
|
|
1975
|
+
/**
|
|
1976
|
+
* @ignore
|
|
1977
|
+
*/
|
|
1978
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoPlayoutDevice"] = 7] = "LocalAudioStreamReasonNoPlayoutDevice";
|
|
1979
|
+
/**
|
|
1980
|
+
* 8:本地音频采集被系统来电、智能助手、闹钟中断。如需恢复本地音频采集,请用户中止电话、智能助手、闹钟。
|
|
1981
|
+
*/
|
|
1982
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonInterrupted"] = 8] = "LocalAudioStreamReasonInterrupted";
|
|
1983
|
+
/**
|
|
1984
|
+
* @ignore
|
|
1985
|
+
*/
|
|
1986
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordInvalidId"] = 9] = "LocalAudioStreamReasonRecordInvalidId";
|
|
1987
|
+
/**
|
|
1988
|
+
* @ignore
|
|
1989
|
+
*/
|
|
1990
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonPlayoutInvalidId"] = 10] = "LocalAudioStreamReasonPlayoutInvalidId";
|
|
1991
|
+
return LocalAudioStreamReason;
|
|
1992
|
+
}({});
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* 本地视频状态。
|
|
1996
|
+
*/
|
|
1997
|
+
export let LocalVideoStreamState = /*#__PURE__*/function (LocalVideoStreamState) {
|
|
1998
|
+
/**
|
|
1999
|
+
* 0: 本地视频默认初始状态。
|
|
2000
|
+
*/
|
|
2001
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateStopped"] = 0] = "LocalVideoStreamStateStopped";
|
|
2002
|
+
/**
|
|
2003
|
+
* 1: 本地视频采集设备启动成功。
|
|
2004
|
+
*/
|
|
2005
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateCapturing"] = 1] = "LocalVideoStreamStateCapturing";
|
|
2006
|
+
/**
|
|
2007
|
+
* 2: 本地视频首帧编码成功。
|
|
2008
|
+
*/
|
|
2009
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateEncoding"] = 2] = "LocalVideoStreamStateEncoding";
|
|
2010
|
+
/**
|
|
2011
|
+
* 3: 本地视频启动失败。
|
|
2012
|
+
*/
|
|
2013
|
+
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateFailed"] = 3] = "LocalVideoStreamStateFailed";
|
|
2014
|
+
return LocalVideoStreamState;
|
|
2015
|
+
}({});
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* 本地视频事件类型。
|
|
2019
|
+
*
|
|
2020
|
+
* 自从 自 v4.6.1 版本新增。
|
|
2021
|
+
*/
|
|
2022
|
+
export let LocalVideoEventType = /*#__PURE__*/function (LocalVideoEventType) {
|
|
2023
|
+
/**
|
|
2024
|
+
* (1):屏幕采集窗口被隐藏,仅适用于 Android 平台。
|
|
2025
|
+
*/
|
|
2026
|
+
LocalVideoEventType[LocalVideoEventType["LocalVideoEventTypeScreenCaptureWindowHidden"] = 1] = "LocalVideoEventTypeScreenCaptureWindowHidden";
|
|
2027
|
+
/**
|
|
2028
|
+
* (2):屏幕采集窗口从隐藏状态恢复,仅适用于 Android 平台。
|
|
2029
|
+
*/
|
|
2030
|
+
LocalVideoEventType[LocalVideoEventType["LocalVideoEventTypeScreenCaptureWindowRecoverFromHidden"] = 2] = "LocalVideoEventTypeScreenCaptureWindowRecoverFromHidden";
|
|
2031
|
+
/**
|
|
2032
|
+
* (3):屏幕采集被用户停止,仅适用于 Android 平台。
|
|
2033
|
+
*/
|
|
2034
|
+
LocalVideoEventType[LocalVideoEventType["LocalVideoEventTypeScreenCaptureStoppedByUser"] = 3] = "LocalVideoEventTypeScreenCaptureStoppedByUser";
|
|
2035
|
+
/**
|
|
2036
|
+
* (4):屏幕采集过程中发生系统内部错误,仅适用于 Android 平台。
|
|
2037
|
+
*/
|
|
2038
|
+
LocalVideoEventType[LocalVideoEventType["LocalVideoEventTypeScreenCaptureSystemInternalError"] = 4] = "LocalVideoEventTypeScreenCaptureSystemInternalError";
|
|
2039
|
+
return LocalVideoEventType;
|
|
2040
|
+
}({});
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* 本地视频状态改变原因。
|
|
2044
|
+
*/
|
|
2045
|
+
export let LocalVideoStreamReason = /*#__PURE__*/function (LocalVideoStreamReason) {
|
|
2046
|
+
/**
|
|
2047
|
+
* 0:本地视频状态正常。
|
|
2048
|
+
*/
|
|
2049
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonOk"] = 0] = "LocalVideoStreamReasonOk";
|
|
2050
|
+
/**
|
|
2051
|
+
* 1:出错原因不明确。
|
|
2052
|
+
*/
|
|
2053
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonFailure"] = 1] = "LocalVideoStreamReasonFailure";
|
|
2054
|
+
/**
|
|
2055
|
+
* 2:没有权限启动本地视频采集设备。请提示用户开启设备权限后再重新加入频道。 弃用:该枚举已废弃。请改用 onPermissionError 回调中的 Camera 。
|
|
2056
|
+
*/
|
|
2057
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNoPermission"] = 2] = "LocalVideoStreamReasonDeviceNoPermission";
|
|
2058
|
+
/**
|
|
2059
|
+
* 3:本地视频采集设备正在使用中。请提示用户检查摄像头是否被其他 App 占用,或者尝试重新加入频道。
|
|
2060
|
+
*/
|
|
2061
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceBusy"] = 3] = "LocalVideoStreamReasonDeviceBusy";
|
|
2062
|
+
/**
|
|
2063
|
+
* 4:本地视频采集失败。请提示用户检查视频采集设备是否正常工作,检查摄像头是否被其他 App 占用,或者尝试重新加入频道。
|
|
2064
|
+
*/
|
|
2065
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureFailure"] = 4] = "LocalVideoStreamReasonCaptureFailure";
|
|
2066
|
+
/**
|
|
2067
|
+
* 5:本地视频编码失败。
|
|
2068
|
+
*/
|
|
2069
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCodecNotSupport"] = 5] = "LocalVideoStreamReasonCodecNotSupport";
|
|
2070
|
+
/**
|
|
2071
|
+
* 6:(仅适用于 iOS)App 处于后台。请提示用户 App 处于后台时,无法正常进行视频采集。
|
|
2072
|
+
*/
|
|
2073
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureInbackground"] = 6] = "LocalVideoStreamReasonCaptureInbackground";
|
|
2074
|
+
/**
|
|
2075
|
+
* 7:(仅适用于 iOS)当前 App 窗口处于侧拉、分屏、画中画模式,且其他 App 正占用摄像头。请提示用户当 App 窗口处于侧拉、分屏、画中画模式,且其他 App 正占用摄像头时,无法正常进行视频采集。
|
|
2076
|
+
*/
|
|
2077
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureMultipleForegroundApps"] = 7] = "LocalVideoStreamReasonCaptureMultipleForegroundApps";
|
|
2078
|
+
/**
|
|
2079
|
+
* 8:找不到本地视频采集设备。需检查摄像头是否与设备正常连接、摄像头是否正常工作,或者尝试重新加入频道。
|
|
2080
|
+
*/
|
|
2081
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNotFound"] = 8] = "LocalVideoStreamReasonDeviceNotFound";
|
|
2082
|
+
/**
|
|
2083
|
+
* @ignore
|
|
2084
|
+
*/
|
|
2085
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceDisconnected"] = 9] = "LocalVideoStreamReasonDeviceDisconnected";
|
|
2086
|
+
/**
|
|
2087
|
+
* @ignore
|
|
2088
|
+
*/
|
|
2089
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInvalidId"] = 10] = "LocalVideoStreamReasonDeviceInvalidId";
|
|
2090
|
+
/**
|
|
2091
|
+
* 14:(仅适用于 Android)视频采集中断。可能的原因是:
|
|
2092
|
+
* 摄像头被其他 App 占用。请提示用户检查摄像头是否被其他 App 占用。
|
|
2093
|
+
* 当前 App 已被切换到后台。可以使用前台服务通知操作系统,确保 App 在切换到后台时仍可采集视频。详见[为什么部分 Android 版本应用锁屏或切后台后采集音视频无效?](https://doc.shengwang.cn/faq/quality-issues/android-background)。
|
|
2094
|
+
*/
|
|
2095
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInterrupt"] = 14] = "LocalVideoStreamReasonDeviceInterrupt";
|
|
2096
|
+
/**
|
|
2097
|
+
* 15:(仅适用于 Android)视频采集设备出错。请提示用户关闭并重新启动摄像头以恢复功能,如果该操作不能解决问题,请检查摄像头是否出现硬件故障。
|
|
2098
|
+
*/
|
|
2099
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceFatalError"] = 15] = "LocalVideoStreamReasonDeviceFatalError";
|
|
2100
|
+
/**
|
|
2101
|
+
* @ignore
|
|
2102
|
+
*/
|
|
2103
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceSystemPressure"] = 101] = "LocalVideoStreamReasonDeviceSystemPressure";
|
|
2104
|
+
/**
|
|
2105
|
+
* @ignore
|
|
2106
|
+
*/
|
|
2107
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowMinimized"] = 11] = "LocalVideoStreamReasonScreenCaptureWindowMinimized";
|
|
2108
|
+
/**
|
|
2109
|
+
* @ignore
|
|
2110
|
+
*/
|
|
2111
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowClosed"] = 12] = "LocalVideoStreamReasonScreenCaptureWindowClosed";
|
|
2112
|
+
/**
|
|
2113
|
+
* @ignore
|
|
2114
|
+
*/
|
|
2115
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowOccluded"] = 13] = "LocalVideoStreamReasonScreenCaptureWindowOccluded";
|
|
2116
|
+
/**
|
|
2117
|
+
* @ignore
|
|
2118
|
+
*/
|
|
2119
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowNotSupported"] = 20] = "LocalVideoStreamReasonScreenCaptureWindowNotSupported";
|
|
2120
|
+
/**
|
|
2121
|
+
* @ignore
|
|
2122
|
+
*/
|
|
2123
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureFailure"] = 21] = "LocalVideoStreamReasonScreenCaptureFailure";
|
|
2124
|
+
/**
|
|
2125
|
+
* @ignore
|
|
2126
|
+
*/
|
|
2127
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureNoPermission"] = 22] = "LocalVideoStreamReasonScreenCaptureNoPermission";
|
|
2128
|
+
/**
|
|
2129
|
+
* @ignore
|
|
2130
|
+
*/
|
|
2131
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureAutoFallback"] = 24] = "LocalVideoStreamReasonScreenCaptureAutoFallback";
|
|
2132
|
+
/**
|
|
2133
|
+
* @ignore
|
|
2134
|
+
*/
|
|
2135
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowHidden"] = 25] = "LocalVideoStreamReasonScreenCaptureWindowHidden";
|
|
2136
|
+
/**
|
|
2137
|
+
* @ignore
|
|
2138
|
+
*/
|
|
2139
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden"] = 26] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden";
|
|
2140
|
+
/**
|
|
2141
|
+
* @ignore
|
|
2142
|
+
*/
|
|
2143
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized"] = 27] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized";
|
|
2144
|
+
/**
|
|
2145
|
+
* @ignore
|
|
2146
|
+
*/
|
|
2147
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCapturePaused"] = 28] = "LocalVideoStreamReasonScreenCapturePaused";
|
|
2148
|
+
/**
|
|
2149
|
+
* @ignore
|
|
2150
|
+
*/
|
|
2151
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureResumed"] = 29] = "LocalVideoStreamReasonScreenCaptureResumed";
|
|
2152
|
+
/**
|
|
2153
|
+
* @ignore
|
|
2154
|
+
*/
|
|
2155
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureDisplayDisconnected"] = 30] = "LocalVideoStreamReasonScreenCaptureDisplayDisconnected";
|
|
2156
|
+
/**
|
|
2157
|
+
* @ignore
|
|
2158
|
+
*/
|
|
2159
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureStoppedByUser"] = 31] = "LocalVideoStreamReasonScreenCaptureStoppedByUser";
|
|
2160
|
+
/**
|
|
2161
|
+
* @ignore
|
|
2162
|
+
*/
|
|
2163
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureInterruptedByOther"] = 32] = "LocalVideoStreamReasonScreenCaptureInterruptedByOther";
|
|
2164
|
+
/**
|
|
2165
|
+
* @ignore
|
|
2166
|
+
*/
|
|
2167
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureStoppedByCall"] = 33] = "LocalVideoStreamReasonScreenCaptureStoppedByCall";
|
|
2168
|
+
/**
|
|
2169
|
+
* @ignore
|
|
2170
|
+
*/
|
|
2171
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureExcludeWindowFailed"] = 34] = "LocalVideoStreamReasonScreenCaptureExcludeWindowFailed";
|
|
2172
|
+
return LocalVideoStreamReason;
|
|
2173
|
+
}({});
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* 远端音频流状态。
|
|
2177
|
+
*/
|
|
2178
|
+
export let RemoteAudioState = /*#__PURE__*/function (RemoteAudioState) {
|
|
2179
|
+
/**
|
|
2180
|
+
* 0: 远端音频默认初始状态。在 RemoteAudioReasonLocalMuted 、 RemoteAudioReasonRemoteMuted 或 RemoteAudioReasonRemoteOffline 的情况下,会报告该状态。
|
|
2181
|
+
*/
|
|
2182
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateStopped"] = 0] = "RemoteAudioStateStopped";
|
|
2183
|
+
/**
|
|
2184
|
+
* 1: 本地用户已接收远端音频首包。
|
|
2185
|
+
*/
|
|
2186
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateStarting"] = 1] = "RemoteAudioStateStarting";
|
|
2187
|
+
/**
|
|
2188
|
+
* 2: 远端音频流正在解码,正常播放。在 RemoteAudioReasonNetworkRecovery 、 RemoteAudioReasonLocalUnmuted 或 RemoteAudioReasonRemoteUnmuted 的情况下,会报告该状态。
|
|
2189
|
+
*/
|
|
2190
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateDecoding"] = 2] = "RemoteAudioStateDecoding";
|
|
2191
|
+
/**
|
|
2192
|
+
* 3: 远端音频流卡顿。在 RemoteAudioReasonNetworkCongestion 的情况下,会报告该状态。
|
|
2193
|
+
*/
|
|
2194
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateFrozen"] = 3] = "RemoteAudioStateFrozen";
|
|
2195
|
+
/**
|
|
2196
|
+
* 4: 远端音频流播放失败。在 RemoteAudioReasonInternal 的情况下,会报告该状态。
|
|
2197
|
+
*/
|
|
2198
|
+
RemoteAudioState[RemoteAudioState["RemoteAudioStateFailed"] = 4] = "RemoteAudioStateFailed";
|
|
2199
|
+
return RemoteAudioState;
|
|
2200
|
+
}({});
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* 远端音频流状态切换原因。
|
|
2204
|
+
*/
|
|
2205
|
+
export let RemoteAudioStateReason = /*#__PURE__*/function (RemoteAudioStateReason) {
|
|
2206
|
+
/**
|
|
2207
|
+
* 0: 音频状态发生改变时,会报告该原因。
|
|
2208
|
+
*/
|
|
2209
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonInternal"] = 0] = "RemoteAudioReasonInternal";
|
|
2210
|
+
/**
|
|
2211
|
+
* 1: 网络阻塞。
|
|
2212
|
+
*/
|
|
2213
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNetworkCongestion"] = 1] = "RemoteAudioReasonNetworkCongestion";
|
|
2214
|
+
/**
|
|
2215
|
+
* 2: 网络恢复正常。
|
|
2216
|
+
*/
|
|
2217
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNetworkRecovery"] = 2] = "RemoteAudioReasonNetworkRecovery";
|
|
2218
|
+
/**
|
|
2219
|
+
* 3: 本地用户停止接收远端音频流或本地用户禁用音频模块。
|
|
2220
|
+
*/
|
|
2221
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalMuted"] = 3] = "RemoteAudioReasonLocalMuted";
|
|
2222
|
+
/**
|
|
2223
|
+
* 4: 本地用户恢复接收远端音频流或本地用户启动音频模块。
|
|
2224
|
+
*/
|
|
2225
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalUnmuted"] = 4] = "RemoteAudioReasonLocalUnmuted";
|
|
2226
|
+
/**
|
|
2227
|
+
* 5: 远端用户停止发送音频流或远端用户禁用音频模块。
|
|
2228
|
+
*/
|
|
2229
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteMuted"] = 5] = "RemoteAudioReasonRemoteMuted";
|
|
2230
|
+
/**
|
|
2231
|
+
* 6: 远端用户恢复发送音频流或远端用户启用音频模块。
|
|
2232
|
+
*/
|
|
2233
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteUnmuted"] = 6] = "RemoteAudioReasonRemoteUnmuted";
|
|
2234
|
+
/**
|
|
2235
|
+
* 7: 远端用户离开频道。
|
|
2236
|
+
*/
|
|
2237
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteOffline"] = 7] = "RemoteAudioReasonRemoteOffline";
|
|
2238
|
+
/**
|
|
2239
|
+
* @ignore
|
|
2240
|
+
*/
|
|
2241
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNoPacketReceive"] = 8] = "RemoteAudioReasonNoPacketReceive";
|
|
2242
|
+
/**
|
|
2243
|
+
* @ignore
|
|
2244
|
+
*/
|
|
2245
|
+
RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalPlayFailed"] = 9] = "RemoteAudioReasonLocalPlayFailed";
|
|
2246
|
+
return RemoteAudioStateReason;
|
|
2247
|
+
}({});
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* 远端视频流状态。
|
|
2251
|
+
*/
|
|
2252
|
+
export let RemoteVideoState = /*#__PURE__*/function (RemoteVideoState) {
|
|
2253
|
+
/**
|
|
2254
|
+
* 0: 远端视频默认初始状态。在 RemoteVideoStateReasonLocalMuted 、 RemoteVideoStateReasonRemoteMuted 或 RemoteVideoStateReasonRemoteOffline 的情况下,会报告该状态。
|
|
2255
|
+
*/
|
|
2256
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateStopped"] = 0] = "RemoteVideoStateStopped";
|
|
2257
|
+
/**
|
|
2258
|
+
* 1: 本地用户已接收远端视频首包。
|
|
2259
|
+
*/
|
|
2260
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateStarting"] = 1] = "RemoteVideoStateStarting";
|
|
2261
|
+
/**
|
|
2262
|
+
* 2: 远端视频流正在解码,正常播放。在 RemoteVideoStateReasonNetworkRecovery 、 RemoteVideoStateReasonLocalUnmuted 、 RemoteVideoStateReasonRemoteUnmuted 的情况下,会报告该状态。
|
|
2263
|
+
*/
|
|
2264
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateDecoding"] = 2] = "RemoteVideoStateDecoding";
|
|
2265
|
+
/**
|
|
2266
|
+
* 3: 远端视频流卡顿。在 RemoteVideoStateReasonNetworkCongestion 的情况下,会报告该状态。
|
|
2267
|
+
*/
|
|
2268
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateFrozen"] = 3] = "RemoteVideoStateFrozen";
|
|
2269
|
+
/**
|
|
2270
|
+
* 4: 远端视频流播放失败。在 RemoteVideoStateReasonInternal 的情况下,会报告该状态。
|
|
2271
|
+
*/
|
|
2272
|
+
RemoteVideoState[RemoteVideoState["RemoteVideoStateFailed"] = 4] = "RemoteVideoStateFailed";
|
|
2273
|
+
return RemoteVideoState;
|
|
2274
|
+
}({});
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* 远端视频流状态切换原因。
|
|
2278
|
+
*/
|
|
2279
|
+
export let RemoteVideoStateReason = /*#__PURE__*/function (RemoteVideoStateReason) {
|
|
2280
|
+
/**
|
|
2281
|
+
* 0: 视频状态发生改变时,会报告该原因。
|
|
2282
|
+
*/
|
|
2283
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonInternal"] = 0] = "RemoteVideoStateReasonInternal";
|
|
2284
|
+
/**
|
|
2285
|
+
* 1: 网络阻塞。
|
|
2286
|
+
*/
|
|
2287
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonNetworkCongestion"] = 1] = "RemoteVideoStateReasonNetworkCongestion";
|
|
2288
|
+
/**
|
|
2289
|
+
* 2: 网络恢复正常。
|
|
2290
|
+
*/
|
|
2291
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonNetworkRecovery"] = 2] = "RemoteVideoStateReasonNetworkRecovery";
|
|
2292
|
+
/**
|
|
2293
|
+
* 3: 本地用户停止接收远端视频流或本地用户禁用视频模块。
|
|
2294
|
+
*/
|
|
2295
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonLocalMuted"] = 3] = "RemoteVideoStateReasonLocalMuted";
|
|
2296
|
+
/**
|
|
2297
|
+
* 4: 本地用户恢复接收远端视频流或本地用户启动视频模块。
|
|
2298
|
+
*/
|
|
2299
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonLocalUnmuted"] = 4] = "RemoteVideoStateReasonLocalUnmuted";
|
|
2300
|
+
/**
|
|
2301
|
+
* 5: 远端用户停止发送视频流或远端用户禁用视频模块。
|
|
2302
|
+
*/
|
|
2303
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteMuted"] = 5] = "RemoteVideoStateReasonRemoteMuted";
|
|
2304
|
+
/**
|
|
2305
|
+
* 6: 远端用户恢复发送视频流或远端用户启用视频模块。
|
|
2306
|
+
*/
|
|
2307
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteUnmuted"] = 6] = "RemoteVideoStateReasonRemoteUnmuted";
|
|
2308
|
+
/**
|
|
2309
|
+
* 7: 远端用户离开频道。
|
|
2310
|
+
*/
|
|
2311
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteOffline"] = 7] = "RemoteVideoStateReasonRemoteOffline";
|
|
2312
|
+
/**
|
|
2313
|
+
* 8: 弱网情况下,远端音视频流回退为音频流。
|
|
2314
|
+
*/
|
|
2315
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallback"] = 8] = "RemoteVideoStateReasonAudioFallback";
|
|
2316
|
+
/**
|
|
2317
|
+
* 9: 网络情况改善时,远端音频流恢复为音视频流。
|
|
2318
|
+
*/
|
|
2319
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallbackRecovery"] = 9] = "RemoteVideoStateReasonAudioFallbackRecovery";
|
|
2320
|
+
/**
|
|
2321
|
+
* @ignore
|
|
2322
|
+
*/
|
|
2323
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonVideoStreamTypeChangeToLow"] = 10] = "RemoteVideoStateReasonVideoStreamTypeChangeToLow";
|
|
2324
|
+
/**
|
|
2325
|
+
* @ignore
|
|
2326
|
+
*/
|
|
2327
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonVideoStreamTypeChangeToHigh"] = 11] = "RemoteVideoStateReasonVideoStreamTypeChangeToHigh";
|
|
2328
|
+
/**
|
|
2329
|
+
* 12:(仅适用于 iOS) 远端用户的 App 已切换到后台。
|
|
2330
|
+
*/
|
|
2331
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonSdkInBackground"] = 12] = "RemoteVideoStateReasonSdkInBackground";
|
|
2332
|
+
/**
|
|
2333
|
+
* 13:本地的视频解码器不支持对收到的远端视频流进行解码。
|
|
2334
|
+
*/
|
|
2335
|
+
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonCodecNotSupport"] = 13] = "RemoteVideoStateReasonCodecNotSupport";
|
|
2336
|
+
return RemoteVideoStateReason;
|
|
2337
|
+
}({});
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* @ignore
|
|
2341
|
+
*/
|
|
2342
|
+
export let RemoteUserState = /*#__PURE__*/function (RemoteUserState) {
|
|
2343
|
+
/**
|
|
2344
|
+
* @ignore
|
|
2345
|
+
*/
|
|
2346
|
+
RemoteUserState[RemoteUserState["UserStateMuteAudio"] = 1] = "UserStateMuteAudio";
|
|
2347
|
+
/**
|
|
2348
|
+
* @ignore
|
|
2349
|
+
*/
|
|
2350
|
+
RemoteUserState[RemoteUserState["UserStateMuteVideo"] = 2] = "UserStateMuteVideo";
|
|
2351
|
+
/**
|
|
2352
|
+
* @ignore
|
|
2353
|
+
*/
|
|
2354
|
+
RemoteUserState[RemoteUserState["UserStateEnableVideo"] = 16] = "UserStateEnableVideo";
|
|
2355
|
+
/**
|
|
2356
|
+
* @ignore
|
|
2357
|
+
*/
|
|
2358
|
+
RemoteUserState[RemoteUserState["UserStateEnableLocalVideo"] = 256] = "UserStateEnableLocalVideo";
|
|
2359
|
+
return RemoteUserState;
|
|
2360
|
+
}({});
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* @ignore
|
|
2364
|
+
*/
|
|
2365
|
+
export class VideoTrackInfo {}
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* @ignore
|
|
2369
|
+
*/
|
|
2370
|
+
export let RemoteVideoDownscaleLevel = /*#__PURE__*/function (RemoteVideoDownscaleLevel) {
|
|
2371
|
+
/**
|
|
2372
|
+
* @ignore
|
|
2373
|
+
*/
|
|
2374
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevelNone"] = 0] = "RemoteVideoDownscaleLevelNone";
|
|
2375
|
+
/**
|
|
2376
|
+
* @ignore
|
|
2377
|
+
*/
|
|
2378
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel1"] = 1] = "RemoteVideoDownscaleLevel1";
|
|
2379
|
+
/**
|
|
2380
|
+
* @ignore
|
|
2381
|
+
*/
|
|
2382
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel2"] = 2] = "RemoteVideoDownscaleLevel2";
|
|
2383
|
+
/**
|
|
2384
|
+
* @ignore
|
|
2385
|
+
*/
|
|
2386
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel3"] = 3] = "RemoteVideoDownscaleLevel3";
|
|
2387
|
+
/**
|
|
2388
|
+
* @ignore
|
|
2389
|
+
*/
|
|
2390
|
+
RemoteVideoDownscaleLevel[RemoteVideoDownscaleLevel["RemoteVideoDownscaleLevel4"] = 4] = "RemoteVideoDownscaleLevel4";
|
|
2391
|
+
return RemoteVideoDownscaleLevel;
|
|
2392
|
+
}({});
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* 用户音量信息。
|
|
2396
|
+
*/
|
|
2397
|
+
export class AudioVolumeInfo {}
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* 音频设备信息。
|
|
2401
|
+
*
|
|
2402
|
+
* 该类仅适用于 Android 平台。
|
|
2403
|
+
*/
|
|
2404
|
+
export class DeviceInfo {}
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* @ignore
|
|
2408
|
+
*/
|
|
2409
|
+
export class Packet {}
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
* 推流输出音频的采样率。
|
|
2413
|
+
*/
|
|
2414
|
+
export let AudioSampleRateType = /*#__PURE__*/function (AudioSampleRateType) {
|
|
2415
|
+
/**
|
|
2416
|
+
* 32000: 32 kHz
|
|
2417
|
+
*/
|
|
2418
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate32000"] = 32000] = "AudioSampleRate32000";
|
|
2419
|
+
/**
|
|
2420
|
+
* 44100: 44.1 kHz
|
|
2421
|
+
*/
|
|
2422
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate44100"] = 44100] = "AudioSampleRate44100";
|
|
2423
|
+
/**
|
|
2424
|
+
* 48000: (默认)48 kHz
|
|
2425
|
+
*/
|
|
2426
|
+
AudioSampleRateType[AudioSampleRateType["AudioSampleRate48000"] = 48000] = "AudioSampleRate48000";
|
|
2427
|
+
return AudioSampleRateType;
|
|
2428
|
+
}({});
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* 转码输出视频流的编解码类型。
|
|
2432
|
+
*/
|
|
2433
|
+
export let VideoCodecTypeForStream = /*#__PURE__*/function (VideoCodecTypeForStream) {
|
|
2434
|
+
/**
|
|
2435
|
+
* 1:(默认)H.264。
|
|
2436
|
+
*/
|
|
2437
|
+
VideoCodecTypeForStream[VideoCodecTypeForStream["VideoCodecH264ForStream"] = 1] = "VideoCodecH264ForStream";
|
|
2438
|
+
/**
|
|
2439
|
+
* 2:H.265。
|
|
2440
|
+
*/
|
|
2441
|
+
VideoCodecTypeForStream[VideoCodecTypeForStream["VideoCodecH265ForStream"] = 2] = "VideoCodecH265ForStream";
|
|
2442
|
+
return VideoCodecTypeForStream;
|
|
2443
|
+
}({});
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* 旁路推流输出视频的编解码规格。
|
|
2447
|
+
*/
|
|
2448
|
+
export let VideoCodecProfileType = /*#__PURE__*/function (VideoCodecProfileType) {
|
|
2449
|
+
/**
|
|
2450
|
+
* 66: Baseline 级别的视频编码规格,一般用于低阶或需要额外容错的应用,比如视频通话、手机视频等。
|
|
2451
|
+
*/
|
|
2452
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileBaseline"] = 66] = "VideoCodecProfileBaseline";
|
|
2453
|
+
/**
|
|
2454
|
+
* 77: Main 级别的视频编码规格,一般用于主流消费类电子产品,如 MP4、便携的视频播放器、PSP、iPad 等。
|
|
2455
|
+
*/
|
|
2456
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileMain"] = 77] = "VideoCodecProfileMain";
|
|
2457
|
+
/**
|
|
2458
|
+
* 100: (默认)High 级别的视频编码规格,一般用于广播、视频碟片存储、高清电视。
|
|
2459
|
+
*/
|
|
2460
|
+
VideoCodecProfileType[VideoCodecProfileType["VideoCodecProfileHigh"] = 100] = "VideoCodecProfileHigh";
|
|
2461
|
+
return VideoCodecProfileType;
|
|
2462
|
+
}({});
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* 推流输出音频的编解码规格,默认为 LC-AAC。
|
|
2466
|
+
*/
|
|
2467
|
+
export let AudioCodecProfileType = /*#__PURE__*/function (AudioCodecProfileType) {
|
|
2468
|
+
/**
|
|
2469
|
+
* 0: (默认)LC-AAC 规格。
|
|
2470
|
+
*/
|
|
2471
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileLcAac"] = 0] = "AudioCodecProfileLcAac";
|
|
2472
|
+
/**
|
|
2473
|
+
* 1: HE-AAC 规格。
|
|
2474
|
+
*/
|
|
2475
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileHeAac"] = 1] = "AudioCodecProfileHeAac";
|
|
2476
|
+
/**
|
|
2477
|
+
* 2: HE-AAC v2 规格。
|
|
2478
|
+
*/
|
|
2479
|
+
AudioCodecProfileType[AudioCodecProfileType["AudioCodecProfileHeAacV2"] = 2] = "AudioCodecProfileHeAacV2";
|
|
2480
|
+
return AudioCodecProfileType;
|
|
2481
|
+
}({});
|
|
2482
|
+
|
|
2483
|
+
/**
|
|
2484
|
+
* 本地音频统计数据。
|
|
2485
|
+
*/
|
|
2486
|
+
export class LocalAudioStats {}
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* 推流状态。
|
|
2490
|
+
*/
|
|
2491
|
+
export let RtmpStreamPublishState = /*#__PURE__*/function (RtmpStreamPublishState) {
|
|
2492
|
+
/**
|
|
2493
|
+
* 0:推流未开始或已结束。
|
|
2494
|
+
*/
|
|
2495
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateIdle"] = 0] = "RtmpStreamPublishStateIdle";
|
|
2496
|
+
/**
|
|
2497
|
+
* 1:正在连接推流服务器和 CDN 服务器。
|
|
2498
|
+
*/
|
|
2499
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateConnecting"] = 1] = "RtmpStreamPublishStateConnecting";
|
|
2500
|
+
/**
|
|
2501
|
+
* 2:推流正在进行。成功推流后,会返回该状态。
|
|
2502
|
+
*/
|
|
2503
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateRunning"] = 2] = "RtmpStreamPublishStateRunning";
|
|
2504
|
+
/**
|
|
2505
|
+
* 3:正在恢复推流。当 CDN 出现异常,或推流短暂中断时,SDK 会自动尝试恢复推流,并返回该状态。
|
|
2506
|
+
* 如成功恢复推流,则进入状态 RtmpStreamPublishStateRunning(2)。
|
|
2507
|
+
* 如服务器出错或 60 秒内未成功恢复,则进入状态 RtmpStreamPublishStateFailure(4)。如果觉得 60 秒太长,也可以主动尝试重连。
|
|
2508
|
+
*/
|
|
2509
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateRecovering"] = 3] = "RtmpStreamPublishStateRecovering";
|
|
2510
|
+
/**
|
|
2511
|
+
* 4:推流失败。失败后,你可以通过返回的错误码排查错误原因。
|
|
2512
|
+
*/
|
|
2513
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateFailure"] = 4] = "RtmpStreamPublishStateFailure";
|
|
2514
|
+
/**
|
|
2515
|
+
* 5:SDK 正在与推流服务器和 CDN 服务器断开连接。当你调用 stopRtmpStream 方法正常结束推流时,SDK 会依次报告推流状态为 RtmpStreamPublishStateDisconnecting 、 RtmpStreamPublishStateIdle 。
|
|
2516
|
+
*/
|
|
2517
|
+
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateDisconnecting"] = 5] = "RtmpStreamPublishStateDisconnecting";
|
|
2518
|
+
return RtmpStreamPublishState;
|
|
2519
|
+
}({});
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* 推流状态改变的原因。
|
|
2523
|
+
*/
|
|
2524
|
+
export let RtmpStreamPublishReason = /*#__PURE__*/function (RtmpStreamPublishReason) {
|
|
2525
|
+
/**
|
|
2526
|
+
* 0:推流成功。
|
|
2527
|
+
*/
|
|
2528
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonOk"] = 0] = "RtmpStreamPublishReasonOk";
|
|
2529
|
+
/**
|
|
2530
|
+
* 1:参数无效。请检查输入参数是否正确。
|
|
2531
|
+
*/
|
|
2532
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidArgument"] = 1] = "RtmpStreamPublishReasonInvalidArgument";
|
|
2533
|
+
/**
|
|
2534
|
+
* 2:推流已加密,不能推流。
|
|
2535
|
+
*/
|
|
2536
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonEncryptedStreamNotAllowed"] = 2] = "RtmpStreamPublishReasonEncryptedStreamNotAllowed";
|
|
2537
|
+
/**
|
|
2538
|
+
* 3:推流超时未成功。
|
|
2539
|
+
*/
|
|
2540
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonConnectionTimeout"] = 3] = "RtmpStreamPublishReasonConnectionTimeout";
|
|
2541
|
+
/**
|
|
2542
|
+
* 4:推流服务器出现错误。
|
|
2543
|
+
*/
|
|
2544
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInternalServerError"] = 4] = "RtmpStreamPublishReasonInternalServerError";
|
|
2545
|
+
/**
|
|
2546
|
+
* 5:CDN 服务器出现错误。
|
|
2547
|
+
*/
|
|
2548
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonRtmpServerError"] = 5] = "RtmpStreamPublishReasonRtmpServerError";
|
|
2549
|
+
/**
|
|
2550
|
+
* 6:推流请求过于频繁。
|
|
2551
|
+
*/
|
|
2552
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTooOften"] = 6] = "RtmpStreamPublishReasonTooOften";
|
|
2553
|
+
/**
|
|
2554
|
+
* 7:单个主播的推流地址数目达到上限 10。请删掉一些不用的推流地址再增加推流地址。
|
|
2555
|
+
*/
|
|
2556
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonReachLimit"] = 7] = "RtmpStreamPublishReasonReachLimit";
|
|
2557
|
+
/**
|
|
2558
|
+
* 8:主播操作不属于自己的流。例如更新其他主播的流参数、停止其他主播的流。请检查 App 逻辑。
|
|
2559
|
+
*/
|
|
2560
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotAuthorized"] = 8] = "RtmpStreamPublishReasonNotAuthorized";
|
|
2561
|
+
/**
|
|
2562
|
+
* 9:服务器未找到这个流。
|
|
2563
|
+
*/
|
|
2564
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonStreamNotFound"] = 9] = "RtmpStreamPublishReasonStreamNotFound";
|
|
2565
|
+
/**
|
|
2566
|
+
* 10:推流地址格式有错误。请检查推流地址格式是否正确。
|
|
2567
|
+
*/
|
|
2568
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonFormatNotSupported"] = 10] = "RtmpStreamPublishReasonFormatNotSupported";
|
|
2569
|
+
/**
|
|
2570
|
+
* 11:用户角色不是主播,该用户无法使用推流功能。请检查你的应用代码逻辑。
|
|
2571
|
+
*/
|
|
2572
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotBroadcaster"] = 11] = "RtmpStreamPublishReasonNotBroadcaster";
|
|
2573
|
+
/**
|
|
2574
|
+
* 13:非转码推流情况下,调用了 updateRtmpTranscoding 方法更新转码属性。请检查你的应用代码逻辑。
|
|
2575
|
+
*/
|
|
2576
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTranscodingNoMixStream"] = 13] = "RtmpStreamPublishReasonTranscodingNoMixStream";
|
|
2577
|
+
/**
|
|
2578
|
+
* 14:主播的网络出错。
|
|
2579
|
+
*/
|
|
2580
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNetDown"] = 14] = "RtmpStreamPublishReasonNetDown";
|
|
2581
|
+
/**
|
|
2582
|
+
* @ignore
|
|
2583
|
+
*/
|
|
2584
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidAppid"] = 15] = "RtmpStreamPublishReasonInvalidAppid";
|
|
2585
|
+
/**
|
|
2586
|
+
* 16:你的项目没有使用推流服务的权限。
|
|
2587
|
+
*/
|
|
2588
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidPrivilege"] = 16] = "RtmpStreamPublishReasonInvalidPrivilege";
|
|
2589
|
+
/**
|
|
2590
|
+
* @ignore
|
|
2591
|
+
*/
|
|
2592
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamUnpublishReasonOk"] = 100] = "RtmpStreamUnpublishReasonOk";
|
|
2593
|
+
return RtmpStreamPublishReason;
|
|
2594
|
+
}({});
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* 旁路推流时发生的事件。
|
|
2598
|
+
*/
|
|
2599
|
+
export let RtmpStreamingEvent = /*#__PURE__*/function (RtmpStreamingEvent) {
|
|
2600
|
+
/**
|
|
2601
|
+
* 1: 旁路推流时,添加背景图或水印出错。
|
|
2602
|
+
*/
|
|
2603
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventFailedLoadImage"] = 1] = "RtmpStreamingEventFailedLoadImage";
|
|
2604
|
+
/**
|
|
2605
|
+
* 2: 该推流 URL 已用于推流。如果你想开始新的推流,请使用新的推流 URL。
|
|
2606
|
+
*/
|
|
2607
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventUrlAlreadyInUse"] = 2] = "RtmpStreamingEventUrlAlreadyInUse";
|
|
2608
|
+
/**
|
|
2609
|
+
* 3: 功能不支持。
|
|
2610
|
+
*/
|
|
2611
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventAdvancedFeatureNotSupport"] = 3] = "RtmpStreamingEventAdvancedFeatureNotSupport";
|
|
2612
|
+
/**
|
|
2613
|
+
* 4: 预留参数。
|
|
2614
|
+
*/
|
|
2615
|
+
RtmpStreamingEvent[RtmpStreamingEvent["RtmpStreamingEventRequestTooOften"] = 4] = "RtmpStreamingEventRequestTooOften";
|
|
2616
|
+
return RtmpStreamingEvent;
|
|
2617
|
+
}({});
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* 图像属性。
|
|
2621
|
+
*
|
|
2622
|
+
* 用于设置直播视频的水印和背景图片的属性。
|
|
2623
|
+
*/
|
|
2624
|
+
export class RtcImage {}
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* 转码推流的高级功能配置。
|
|
2628
|
+
*
|
|
2629
|
+
* 如需使用转码推流高级功能,请[联系销售](https://www.shengwang.cn/contact-sales/)。
|
|
2630
|
+
*/
|
|
2631
|
+
export class LiveStreamAdvancedFeature {}
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* 网络连接状态。
|
|
2635
|
+
*/
|
|
2636
|
+
export let ConnectionStateType = /*#__PURE__*/function (ConnectionStateType) {
|
|
2637
|
+
/**
|
|
2638
|
+
* 1: 网络连接断开。该状态表示 SDK 处于:
|
|
2639
|
+
* 调用 joinChannel 加入频道前的初始化阶段。
|
|
2640
|
+
* 或调用 leaveChannel 后的离开频道阶段。
|
|
2641
|
+
*/
|
|
2642
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateDisconnected"] = 1] = "ConnectionStateDisconnected";
|
|
2643
|
+
/**
|
|
2644
|
+
* 2: 建立网络连接中。该状态表示 SDK 在调用 joinChannel 后正在与指定的频道建立连接。
|
|
2645
|
+
* 如果成功加入频道,App 会收到 onConnectionStateChanged 回调,通知当前网络状态变成 ConnectionStateConnected。
|
|
2646
|
+
* 建立连接后,SDK 还会初始化媒体,一切就绪后会回调 onJoinChannelSuccess 。
|
|
2647
|
+
*/
|
|
2648
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateConnecting"] = 2] = "ConnectionStateConnecting";
|
|
2649
|
+
/**
|
|
2650
|
+
* 3: 网络已连接。该状态表示用户已经加入频道,可以在频道内发布或订阅媒体流。如果因网络断开或切换而导致 SDK 与频道的连接中断,SDK 会自动重连,此时 App 会收到 onConnectionStateChanged 回调,通知当前网络状态变成 ConnectionStateReconnecting。
|
|
2651
|
+
*/
|
|
2652
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateConnected"] = 3] = "ConnectionStateConnected";
|
|
2653
|
+
/**
|
|
2654
|
+
* 4: 重新建立网络连接中。该状态表示 SDK 之前曾加入过频道,但因网络等原因连接中断了,此时 SDK 会自动尝试重新接入频道。
|
|
2655
|
+
* 如果 SDK 无法在 10 秒内重新加入频道,则 onConnectionLost 会被触发,SDK 会一直保持在 ConnectionStateReconnecting 的状态,并不断尝试重新加入频道。
|
|
2656
|
+
* 如果 SDK 在断开连接后,20 分钟内还是没能重新加入频道,则应用程序会收到 onConnectionStateChanged 回调,通知 App 的网络状态进入 ConnectionStateFailed,SDK 停止尝试重连。
|
|
2657
|
+
*/
|
|
2658
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateReconnecting"] = 4] = "ConnectionStateReconnecting";
|
|
2659
|
+
/**
|
|
2660
|
+
* 5: 网络连接失败。该状态表示 SDK 已不再尝试重新加入频道,需要调用 leaveChannel 离开频道。
|
|
2661
|
+
* 如果用户还想重新加入频道,则需要再次调用 joinChannel 。
|
|
2662
|
+
* 如果 SDK 因服务器端使用 RESTful API 禁止加入频道,则 App 会收到 onConnectionStateChanged 。
|
|
2663
|
+
*/
|
|
2664
|
+
ConnectionStateType[ConnectionStateType["ConnectionStateFailed"] = 5] = "ConnectionStateFailed";
|
|
2665
|
+
return ConnectionStateType;
|
|
2666
|
+
}({});
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* 参与转码合流的每个主播的设置。
|
|
2670
|
+
*/
|
|
2671
|
+
export class TranscodingUser {}
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* 旁路推流的转码属性。
|
|
2675
|
+
*/
|
|
2676
|
+
export class LiveTranscoding {}
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* 参与本地合图的视频流。
|
|
2680
|
+
*/
|
|
2681
|
+
export class TranscodingVideoStream {}
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* 本地合图的配置。
|
|
2685
|
+
*/
|
|
2686
|
+
export class LocalTranscoderConfiguration {}
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* 本地合图错误代码。
|
|
2690
|
+
*/
|
|
2691
|
+
export let VideoTranscoderError = /*#__PURE__*/function (VideoTranscoderError) {
|
|
2692
|
+
/**
|
|
2693
|
+
* 1:指定的视频源未开始进行视频采集,你需要为其创建视频轨道并开始视频采集。
|
|
2694
|
+
*/
|
|
2695
|
+
VideoTranscoderError[VideoTranscoderError["VtErrVideoSourceNotReady"] = 1] = "VtErrVideoSourceNotReady";
|
|
2696
|
+
/**
|
|
2697
|
+
* 2:视频源类型无效,你需要重新指定支持的视频源类型。
|
|
2698
|
+
*/
|
|
2699
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidVideoSourceType"] = 2] = "VtErrInvalidVideoSourceType";
|
|
2700
|
+
/**
|
|
2701
|
+
* 3:图片路径无效,你需要重新指定正确的图片路径。
|
|
2702
|
+
*/
|
|
2703
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidImagePath"] = 3] = "VtErrInvalidImagePath";
|
|
2704
|
+
/**
|
|
2705
|
+
* 4:图片格式无效,需确保图片格式为 PNG、JPEG 或 GIF 中的一种。
|
|
2706
|
+
*/
|
|
2707
|
+
VideoTranscoderError[VideoTranscoderError["VtErrUnsupportImageFormat"] = 4] = "VtErrUnsupportImageFormat";
|
|
2708
|
+
/**
|
|
2709
|
+
* 5:合图后的视频编码分辨率无效。
|
|
2710
|
+
*/
|
|
2711
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInvalidLayout"] = 5] = "VtErrInvalidLayout";
|
|
2712
|
+
/**
|
|
2713
|
+
* 20:内部未知错误。
|
|
2714
|
+
*/
|
|
2715
|
+
VideoTranscoderError[VideoTranscoderError["VtErrInternal"] = 20] = "VtErrInternal";
|
|
2716
|
+
return VideoTranscoderError;
|
|
2717
|
+
}({});
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* 在本地进行合流的音频源。
|
|
2721
|
+
*/
|
|
2722
|
+
export class MixedAudioStream {}
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* 本地音频合流配置。
|
|
2726
|
+
*/
|
|
2727
|
+
export class LocalAudioMixerConfiguration {}
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Last mile 网络探测配置。
|
|
2731
|
+
*/
|
|
2732
|
+
export class LastmileProbeConfig {}
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Last mile 质量探测结果的状态。
|
|
2736
|
+
*/
|
|
2737
|
+
export let LastmileProbeResultState = /*#__PURE__*/function (LastmileProbeResultState) {
|
|
2738
|
+
/**
|
|
2739
|
+
* 1: 表示本次 last mile 质量探测的结果是完整的。
|
|
2740
|
+
*/
|
|
2741
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultComplete"] = 1] = "LastmileProbeResultComplete";
|
|
2742
|
+
/**
|
|
2743
|
+
* 2: 表示本次 last mile 质量探测未进行带宽预测,因此结果不完整。一个可能的原因是测试资源暂时受限。
|
|
2744
|
+
*/
|
|
2745
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultIncompleteNoBwe"] = 2] = "LastmileProbeResultIncompleteNoBwe";
|
|
2746
|
+
/**
|
|
2747
|
+
* 3: 未进行 last mile 质量探测。一个可能的原因是网络连接中断。
|
|
2748
|
+
*/
|
|
2749
|
+
LastmileProbeResultState[LastmileProbeResultState["LastmileProbeResultUnavailable"] = 3] = "LastmileProbeResultUnavailable";
|
|
2750
|
+
return LastmileProbeResultState;
|
|
2751
|
+
}({});
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* 上行或下行 Last mile 网络质量探测结果。
|
|
2755
|
+
*/
|
|
2756
|
+
export class LastmileProbeOneWayResult {}
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* 上下行 Last mile 网络质量探测结果。
|
|
2760
|
+
*/
|
|
2761
|
+
export class LastmileProbeResult {}
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* 网络连接状态发生变化的原因。
|
|
2765
|
+
*/
|
|
2766
|
+
export let ConnectionChangedReasonType = /*#__PURE__*/function (ConnectionChangedReasonType) {
|
|
2767
|
+
/**
|
|
2768
|
+
* 0: 建立网络连接中。
|
|
2769
|
+
*/
|
|
2770
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedConnecting"] = 0] = "ConnectionChangedConnecting";
|
|
2771
|
+
/**
|
|
2772
|
+
* 1: 成功加入频道。
|
|
2773
|
+
*/
|
|
2774
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedJoinSuccess"] = 1] = "ConnectionChangedJoinSuccess";
|
|
2775
|
+
/**
|
|
2776
|
+
* 2: 网络连接中断。
|
|
2777
|
+
*/
|
|
2778
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInterrupted"] = 2] = "ConnectionChangedInterrupted";
|
|
2779
|
+
/**
|
|
2780
|
+
* 3: 网络连接被服务器禁止。例如,当用户被踢出频道时,会返回该状态。
|
|
2781
|
+
*/
|
|
2782
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedBannedByServer"] = 3] = "ConnectionChangedBannedByServer";
|
|
2783
|
+
/**
|
|
2784
|
+
* 4: 加入频道失败。SDK 在尝试加入频道 20 分钟后仍未能加入频道,会返回该状态并不再尝试重连。请提示用户尝试切换网络后重新加入频道。
|
|
2785
|
+
*/
|
|
2786
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedJoinFailed"] = 4] = "ConnectionChangedJoinFailed";
|
|
2787
|
+
/**
|
|
2788
|
+
* 5: 离开频道。
|
|
2789
|
+
*/
|
|
2790
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLeaveChannel"] = 5] = "ConnectionChangedLeaveChannel";
|
|
2791
|
+
/**
|
|
2792
|
+
* 6: App ID 无效。请使用有效的 APP ID 重新加入频道,并确保你使用的 App ID 与在声网控制台生成的一致。
|
|
2793
|
+
*/
|
|
2794
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidAppId"] = 6] = "ConnectionChangedInvalidAppId";
|
|
2795
|
+
/**
|
|
2796
|
+
* 7: 频道名无效。请更换有效的频道名重新加入频道。有效的频道名为长度在 64 字节以内的字符串。以下为支持的字符集范围(共 89 个字符):
|
|
2797
|
+
*/
|
|
2798
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidChannelName"] = 7] = "ConnectionChangedInvalidChannelName";
|
|
2799
|
+
/**
|
|
2800
|
+
* 8: Token 无效。一般有以下原因:
|
|
2801
|
+
* 你的项目启用了 App Certificate,但加入频道未使用 Token。
|
|
2802
|
+
* 在调用 joinChannel 加入频道时指定的用户 ID 与生成 Token 时传入的用户 ID 不一致。
|
|
2803
|
+
* 生成的 Token 和加入频道使用的 Token 不一致。 请确保:
|
|
2804
|
+
* 当你的项目启用了 App Certificate 时,使用 Token 加入频道。
|
|
2805
|
+
* 生成 Token 时指定的用户 ID 与加入频道时使用的用户 ID 一致,
|
|
2806
|
+
* 生成的 Token 和加入频道使用的 Token 一致。
|
|
2807
|
+
*/
|
|
2808
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInvalidToken"] = 8] = "ConnectionChangedInvalidToken";
|
|
2809
|
+
/**
|
|
2810
|
+
* 9: 当前使用的 Token 已过期。请重新在你的服务端生成 Token,然后用新的 Token 重新加入频道。
|
|
2811
|
+
*/
|
|
2812
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedTokenExpired"] = 9] = "ConnectionChangedTokenExpired";
|
|
2813
|
+
/**
|
|
2814
|
+
* 10: 此用户被服务器禁止。一般有以下原因:
|
|
2815
|
+
* 用户已进入频道,再次调用加入频道的 API,例如 joinChannel ,会返回此状态。停止调用该方法即可。
|
|
2816
|
+
* 用户在进行通话测试时尝试加入频道。等待通话测试结束后再加入频道即可。
|
|
2817
|
+
*/
|
|
2818
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRejectedByServer"] = 10] = "ConnectionChangedRejectedByServer";
|
|
2819
|
+
/**
|
|
2820
|
+
* 11: 由于设置了代理服务器,SDK 尝试重连。
|
|
2821
|
+
*/
|
|
2822
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedSettingProxyServer"] = 11] = "ConnectionChangedSettingProxyServer";
|
|
2823
|
+
/**
|
|
2824
|
+
* 12: 更新 Token 引起网络连接状态改变。
|
|
2825
|
+
*/
|
|
2826
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRenewToken"] = 12] = "ConnectionChangedRenewToken";
|
|
2827
|
+
/**
|
|
2828
|
+
* 13: 客户端 IP 地址变更。如多次收到该状态码,请提示用户更换网络后尝试重新加入频道。
|
|
2829
|
+
*/
|
|
2830
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedClientIpAddressChanged"] = 13] = "ConnectionChangedClientIpAddressChanged";
|
|
2831
|
+
/**
|
|
2832
|
+
* 14: SDK 和服务器连接保活超时,进入自动重连状态。
|
|
2833
|
+
*/
|
|
2834
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedKeepAliveTimeout"] = 14] = "ConnectionChangedKeepAliveTimeout";
|
|
2835
|
+
/**
|
|
2836
|
+
* 15: 重新加入频道成功。
|
|
2837
|
+
*/
|
|
2838
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedRejoinSuccess"] = 15] = "ConnectionChangedRejoinSuccess";
|
|
2839
|
+
/**
|
|
2840
|
+
* 16: SDK 和服务器失去连接。
|
|
2841
|
+
*/
|
|
2842
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLost"] = 16] = "ConnectionChangedLost";
|
|
2843
|
+
/**
|
|
2844
|
+
* 17: 连接状态变化由回声测试引起。
|
|
2845
|
+
*/
|
|
2846
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedEchoTest"] = 17] = "ConnectionChangedEchoTest";
|
|
2847
|
+
/**
|
|
2848
|
+
* 18: 本地 IP 地址被用户更改。
|
|
2849
|
+
*/
|
|
2850
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedClientIpAddressChangedByUser"] = 18] = "ConnectionChangedClientIpAddressChangedByUser";
|
|
2851
|
+
/**
|
|
2852
|
+
* 19: 使用相同的 UID 从不同的设备加入同一频道。
|
|
2853
|
+
*/
|
|
2854
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedSameUidLogin"] = 19] = "ConnectionChangedSameUidLogin";
|
|
2855
|
+
/**
|
|
2856
|
+
* 20: 频道内主播人数已达上限。
|
|
2857
|
+
*/
|
|
2858
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedTooManyBroadcasters"] = 20] = "ConnectionChangedTooManyBroadcasters";
|
|
2859
|
+
/**
|
|
2860
|
+
* @ignore
|
|
2861
|
+
*/
|
|
2862
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedLicenseValidationFailure"] = 21] = "ConnectionChangedLicenseValidationFailure";
|
|
2863
|
+
/**
|
|
2864
|
+
* @ignore
|
|
2865
|
+
*/
|
|
2866
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedCertificationVeryfyFailure"] = 22] = "ConnectionChangedCertificationVeryfyFailure";
|
|
2867
|
+
/**
|
|
2868
|
+
* @ignore
|
|
2869
|
+
*/
|
|
2870
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedStreamChannelNotAvailable"] = 23] = "ConnectionChangedStreamChannelNotAvailable";
|
|
2871
|
+
/**
|
|
2872
|
+
* @ignore
|
|
2873
|
+
*/
|
|
2874
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInconsistentAppid"] = 24] = "ConnectionChangedInconsistentAppid";
|
|
2875
|
+
return ConnectionChangedReasonType;
|
|
2876
|
+
}({});
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* 切换用户角色失败的原因。
|
|
2880
|
+
*/
|
|
2881
|
+
export let ClientRoleChangeFailedReason = /*#__PURE__*/function (ClientRoleChangeFailedReason) {
|
|
2882
|
+
/**
|
|
2883
|
+
* 1: 频道内主播人数达到上限。 该枚举仅在开启 128 人功能后报告。主播人数的上限根据开启 128 人功能时实际配置的人数而定。
|
|
2884
|
+
*/
|
|
2885
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedTooManyBroadcasters"] = 1] = "ClientRoleChangeFailedTooManyBroadcasters";
|
|
2886
|
+
/**
|
|
2887
|
+
* 2: 请求被服务端拒绝。建议提示用户重新尝试切换用户角色。
|
|
2888
|
+
*/
|
|
2889
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedNotAuthorized"] = 2] = "ClientRoleChangeFailedNotAuthorized";
|
|
2890
|
+
/**
|
|
2891
|
+
* 3: 请求超时。建议提示用户检查网络连接状况后重新尝试切换用户角色。 废弃:该枚举值自 v4.4.0 起废弃,不建议使用。
|
|
2892
|
+
*/
|
|
2893
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedRequestTimeOut"] = 3] = "ClientRoleChangeFailedRequestTimeOut";
|
|
2894
|
+
/**
|
|
2895
|
+
* 4: 网络连接断开。可根据 onConnectionStateChanged 报告的 reason ,排查网络连接失败的具体原因。 废弃:该枚举值自 v4.4.0 起废弃,不建议使用。
|
|
2896
|
+
*/
|
|
2897
|
+
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedConnectionFailed"] = 4] = "ClientRoleChangeFailedConnectionFailed";
|
|
2898
|
+
return ClientRoleChangeFailedReason;
|
|
2899
|
+
}({});
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* 网络连接类型。
|
|
2903
|
+
*/
|
|
2904
|
+
export let NetworkType = /*#__PURE__*/function (NetworkType) {
|
|
2905
|
+
/**
|
|
2906
|
+
* -1: 网络连接类型未知。
|
|
2907
|
+
*/
|
|
2908
|
+
NetworkType[NetworkType["NetworkTypeUnknown"] = -1] = "NetworkTypeUnknown";
|
|
2909
|
+
/**
|
|
2910
|
+
* 0: 网络连接已断开。
|
|
2911
|
+
*/
|
|
2912
|
+
NetworkType[NetworkType["NetworkTypeDisconnected"] = 0] = "NetworkTypeDisconnected";
|
|
2913
|
+
/**
|
|
2914
|
+
* 1: 网络类型为 LAN。
|
|
2915
|
+
*/
|
|
2916
|
+
NetworkType[NetworkType["NetworkTypeLan"] = 1] = "NetworkTypeLan";
|
|
2917
|
+
/**
|
|
2918
|
+
* 2: 网络类型为 Wi-Fi(包含热点)。
|
|
2919
|
+
*/
|
|
2920
|
+
NetworkType[NetworkType["NetworkTypeWifi"] = 2] = "NetworkTypeWifi";
|
|
2921
|
+
/**
|
|
2922
|
+
* 3: 网络类型为 2G 移动网络。
|
|
2923
|
+
*/
|
|
2924
|
+
NetworkType[NetworkType["NetworkTypeMobile2g"] = 3] = "NetworkTypeMobile2g";
|
|
2925
|
+
/**
|
|
2926
|
+
* 4: 网络类型为 3G 移动网络。
|
|
2927
|
+
*/
|
|
2928
|
+
NetworkType[NetworkType["NetworkTypeMobile3g"] = 4] = "NetworkTypeMobile3g";
|
|
2929
|
+
/**
|
|
2930
|
+
* 5: 网络类型为 4G 移动网络。
|
|
2931
|
+
*/
|
|
2932
|
+
NetworkType[NetworkType["NetworkTypeMobile4g"] = 5] = "NetworkTypeMobile4g";
|
|
2933
|
+
/**
|
|
2934
|
+
* 6: 网络类型为 5G 移动网络。
|
|
2935
|
+
*/
|
|
2936
|
+
NetworkType[NetworkType["NetworkTypeMobile5g"] = 6] = "NetworkTypeMobile5g";
|
|
2937
|
+
return NetworkType;
|
|
2938
|
+
}({});
|
|
2939
|
+
|
|
2940
|
+
/**
|
|
2941
|
+
* 视图设置模式。
|
|
2942
|
+
*/
|
|
2943
|
+
export let VideoViewSetupMode = /*#__PURE__*/function (VideoViewSetupMode) {
|
|
2944
|
+
/**
|
|
2945
|
+
* 0:(默认) 清除已添加的所有视图、替换为新的视图。
|
|
2946
|
+
*/
|
|
2947
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupReplace"] = 0] = "VideoViewSetupReplace";
|
|
2948
|
+
/**
|
|
2949
|
+
* 1:增加一个视图。
|
|
2950
|
+
*/
|
|
2951
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupAdd"] = 1] = "VideoViewSetupAdd";
|
|
2952
|
+
/**
|
|
2953
|
+
* 2:删除一个视图。 当你不再需要使用某个视图时,建议及时设置 setupMode 为 VideoViewSetupRemove 删除视图,否则可能会导致渲染资源泄漏。
|
|
2954
|
+
*/
|
|
2955
|
+
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupRemove"] = 2] = "VideoViewSetupRemove";
|
|
2956
|
+
return VideoViewSetupMode;
|
|
2957
|
+
}({});
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* 视频画布对象的属性。
|
|
2961
|
+
*/
|
|
2962
|
+
export class VideoCanvas {}
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* 亮度明暗对比度。
|
|
2966
|
+
*/
|
|
2967
|
+
export let LighteningContrastLevel = /*#__PURE__*/function (LighteningContrastLevel) {
|
|
2968
|
+
/**
|
|
2969
|
+
* 0:低对比度。
|
|
2970
|
+
*/
|
|
2971
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastLow"] = 0] = "LighteningContrastLow";
|
|
2972
|
+
/**
|
|
2973
|
+
* 1:正常对比度。
|
|
2974
|
+
*/
|
|
2975
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastNormal"] = 1] = "LighteningContrastNormal";
|
|
2976
|
+
/**
|
|
2977
|
+
* 2:高对比度。
|
|
2978
|
+
*/
|
|
2979
|
+
LighteningContrastLevel[LighteningContrastLevel["LighteningContrastHigh"] = 2] = "LighteningContrastHigh";
|
|
2980
|
+
return LighteningContrastLevel;
|
|
2981
|
+
}({});
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* 美颜选项。
|
|
2985
|
+
*/
|
|
2986
|
+
export class BeautyOptions {}
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* 选择需要调整的具体美型区域。
|
|
2990
|
+
*
|
|
2991
|
+
* 自从 自 v4.4.0 版本新增。
|
|
2992
|
+
*/
|
|
2993
|
+
export let FaceShapeArea = /*#__PURE__*/function (FaceShapeArea) {
|
|
2994
|
+
/**
|
|
2995
|
+
* (-1):默认值,表示无效区域,美型效果不生效。
|
|
2996
|
+
*/
|
|
2997
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNone"] = -1] = "FaceShapeAreaNone";
|
|
2998
|
+
/**
|
|
2999
|
+
* (100):头部区域,用于实现小头效果。取值范围为 [0, 100],默认值为 50。数值越大,调整越明显。
|
|
3000
|
+
*/
|
|
3001
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaHeadscale"] = 100] = "FaceShapeAreaHeadscale";
|
|
3002
|
+
/**
|
|
3003
|
+
* (101):额头区域,用于调整发际线高度。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3004
|
+
*/
|
|
3005
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaForehead"] = 101] = "FaceShapeAreaForehead";
|
|
3006
|
+
/**
|
|
3007
|
+
* (102):脸部轮廓区域,用于实现瘦脸效果。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3008
|
+
*/
|
|
3009
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacecontour"] = 102] = "FaceShapeAreaFacecontour";
|
|
3010
|
+
/**
|
|
3011
|
+
* (103):脸部长度区域,用于拉长脸部。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3012
|
+
*/
|
|
3013
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacelength"] = 103] = "FaceShapeAreaFacelength";
|
|
3014
|
+
/**
|
|
3015
|
+
* (104):脸部宽度区域,用于实现窄脸效果。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3016
|
+
*/
|
|
3017
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaFacewidth"] = 104] = "FaceShapeAreaFacewidth";
|
|
3018
|
+
/**
|
|
3019
|
+
* (105):颧骨区域,用于调整颧骨宽度。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3020
|
+
*/
|
|
3021
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaCheekbone"] = 105] = "FaceShapeAreaCheekbone";
|
|
3022
|
+
/**
|
|
3023
|
+
* (106):面颊区域,用于调整面颊宽度。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3024
|
+
*/
|
|
3025
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaCheek"] = 106] = "FaceShapeAreaCheek";
|
|
3026
|
+
/**
|
|
3027
|
+
* (107):下颌骨区域,用于调整下颌骨宽度。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3028
|
+
*/
|
|
3029
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMandible"] = 107] = "FaceShapeAreaMandible";
|
|
3030
|
+
/**
|
|
3031
|
+
* (108):下巴区域,用于调整下巴长度。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3032
|
+
*/
|
|
3033
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaChin"] = 108] = "FaceShapeAreaChin";
|
|
3034
|
+
/**
|
|
3035
|
+
* (200):眼睛区域,用于实现大眼效果。取值范围为 [0, 100],默认值为 50。数值越大,调整越明显。
|
|
3036
|
+
*/
|
|
3037
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyescale"] = 200] = "FaceShapeAreaEyescale";
|
|
3038
|
+
/**
|
|
3039
|
+
* (201):眼距区域,用于调整两眼间距。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3040
|
+
*/
|
|
3041
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyedistance"] = 201] = "FaceShapeAreaEyedistance";
|
|
3042
|
+
/**
|
|
3043
|
+
* (202):眼睛位置区域,用于调整眼睛整体位置。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3044
|
+
*/
|
|
3045
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyeposition"] = 202] = "FaceShapeAreaEyeposition";
|
|
3046
|
+
/**
|
|
3047
|
+
* (203):下眼睑区域,用于调整下眼睑形态。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3048
|
+
*/
|
|
3049
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaLowereyelid"] = 203] = "FaceShapeAreaLowereyelid";
|
|
3050
|
+
/**
|
|
3051
|
+
* (204):瞳孔区域,用于调整瞳孔大小。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3052
|
+
*/
|
|
3053
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyepupils"] = 204] = "FaceShapeAreaEyepupils";
|
|
3054
|
+
/**
|
|
3055
|
+
* (205):内眼角区域,用于调整内眼角形态。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3056
|
+
*/
|
|
3057
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyeinnercorner"] = 205] = "FaceShapeAreaEyeinnercorner";
|
|
3058
|
+
/**
|
|
3059
|
+
* (206):外眼角区域,用于调整外眼角形态。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3060
|
+
*/
|
|
3061
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyeoutercorner"] = 206] = "FaceShapeAreaEyeoutercorner";
|
|
3062
|
+
/**
|
|
3063
|
+
* (300):鼻子长度区域,用于拉长鼻子。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3064
|
+
*/
|
|
3065
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNoselength"] = 300] = "FaceShapeAreaNoselength";
|
|
3066
|
+
/**
|
|
3067
|
+
* (301):鼻子宽度区域,用于实现瘦鼻效果。取值范围为 [0, 100],默认值为 0。数值越大,瘦鼻效果越明显。
|
|
3068
|
+
*/
|
|
3069
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosewidth"] = 301] = "FaceShapeAreaNosewidth";
|
|
3070
|
+
/**
|
|
3071
|
+
* (302):鼻翼区域,用于调整鼻翼宽度。取值范围为 [0, 100],默认值为 10。数值越大,调整越明显。
|
|
3072
|
+
*/
|
|
3073
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosewing"] = 302] = "FaceShapeAreaNosewing";
|
|
3074
|
+
/**
|
|
3075
|
+
* (303):鼻根区域,用于调整鼻根高度。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3076
|
+
*/
|
|
3077
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNoseroot"] = 303] = "FaceShapeAreaNoseroot";
|
|
3078
|
+
/**
|
|
3079
|
+
* (304):鼻梁区域,用于调整鼻梁高度。取值范围为 [0, 100],默认值为 50。数值越大,调整越明显。
|
|
3080
|
+
*/
|
|
3081
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosebridge"] = 304] = "FaceShapeAreaNosebridge";
|
|
3082
|
+
/**
|
|
3083
|
+
* (305):鼻尖区域,用于调整鼻尖形态。取值范围为 [0, 100],默认值为 50。数值越大,调整越明显。
|
|
3084
|
+
*/
|
|
3085
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosetip"] = 305] = "FaceShapeAreaNosetip";
|
|
3086
|
+
/**
|
|
3087
|
+
* (306):整体鼻子区域,用于统一调整鼻部形态。取值范围为 [-100, 100],默认值为 50。绝对值越大,调整越明显,负值表示相反方向。
|
|
3088
|
+
*/
|
|
3089
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaNosegeneral"] = 306] = "FaceShapeAreaNosegeneral";
|
|
3090
|
+
/**
|
|
3091
|
+
* (400):嘴巴区域,用于实现大嘴效果。取值范围为 [-100, 100],默认值为 20。绝对值越大,调整越明显,负值表示相反方向。
|
|
3092
|
+
*/
|
|
3093
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMouthscale"] = 400] = "FaceShapeAreaMouthscale";
|
|
3094
|
+
/**
|
|
3095
|
+
* (401):嘴巴位置区域,用于调整嘴巴整体位置。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3096
|
+
*/
|
|
3097
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMouthposition"] = 401] = "FaceShapeAreaMouthposition";
|
|
3098
|
+
/**
|
|
3099
|
+
* (402):嘴角微笑区域,用于调整嘴角上扬程度。取值范围为 [0, 1],默认值为 0。数值越大,调整越明显。
|
|
3100
|
+
*/
|
|
3101
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMouthsmile"] = 402] = "FaceShapeAreaMouthsmile";
|
|
3102
|
+
/**
|
|
3103
|
+
* (403):唇形区域,用于调整唇部形态。取值范围为 [0, 100],默认值为 0。数值越大,调整越明显。
|
|
3104
|
+
*/
|
|
3105
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaMouthlip"] = 403] = "FaceShapeAreaMouthlip";
|
|
3106
|
+
/**
|
|
3107
|
+
* (500):眉毛位置区域,用于调整眉毛整体位置。取值范围为 [-100, 100],默认值为 0。绝对值越大,调整越明显,负值表示相反方向。
|
|
3108
|
+
*/
|
|
3109
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyebrowposition"] = 500] = "FaceShapeAreaEyebrowposition";
|
|
3110
|
+
/**
|
|
3111
|
+
* (501):眉毛粗细区域,用于调整眉毛粗细。取值范围为 [-100, 100],默认值为 0。数值越大,调整越明显。
|
|
3112
|
+
*/
|
|
3113
|
+
FaceShapeArea[FaceShapeArea["FaceShapeAreaEyebrowthickness"] = 501] = "FaceShapeAreaEyebrowthickness";
|
|
3114
|
+
return FaceShapeArea;
|
|
3115
|
+
}({});
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* 滤镜效果选项。
|
|
3119
|
+
*/
|
|
3120
|
+
export class FaceShapeAreaOptions {}
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* 美型风格妆特效选项。
|
|
3124
|
+
*
|
|
3125
|
+
* 自从 自 v4.4.0 版本新增。
|
|
3126
|
+
*/
|
|
3127
|
+
export let FaceShapeBeautyStyle = /*#__PURE__*/function (FaceShapeBeautyStyle) {
|
|
3128
|
+
/**
|
|
3129
|
+
* (0):(默认)女性风格妆特效。
|
|
3130
|
+
*/
|
|
3131
|
+
FaceShapeBeautyStyle[FaceShapeBeautyStyle["FaceShapeBeautyStyleFemale"] = 0] = "FaceShapeBeautyStyleFemale";
|
|
3132
|
+
/**
|
|
3133
|
+
* (1):男性风格妆特效。
|
|
3134
|
+
*/
|
|
3135
|
+
FaceShapeBeautyStyle[FaceShapeBeautyStyle["FaceShapeBeautyStyleMale"] = 1] = "FaceShapeBeautyStyleMale";
|
|
3136
|
+
/**
|
|
3137
|
+
* (2):自然风格妆特效,仅对面部特征进行最小调整。
|
|
3138
|
+
*/
|
|
3139
|
+
FaceShapeBeautyStyle[FaceShapeBeautyStyle["FaceShapeBeautyStyleNatural"] = 2] = "FaceShapeBeautyStyleNatural";
|
|
3140
|
+
return FaceShapeBeautyStyle;
|
|
3141
|
+
}({});
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* 美型风格选项。
|
|
3145
|
+
*/
|
|
3146
|
+
export class FaceShapeBeautyOptions {}
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* 滤镜效果选项。
|
|
3150
|
+
*/
|
|
3151
|
+
export class FilterEffectOptions {}
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* 暗光增强模式。
|
|
3155
|
+
*/
|
|
3156
|
+
export let LowLightEnhanceMode = /*#__PURE__*/function (LowLightEnhanceMode) {
|
|
3157
|
+
/**
|
|
3158
|
+
* 0:(默认)自动模式。SDK 会根据环境光亮度自动开启或关闭暗光增强功能,以适时补光和防止过曝。
|
|
3159
|
+
*/
|
|
3160
|
+
LowLightEnhanceMode[LowLightEnhanceMode["LowLightEnhanceAuto"] = 0] = "LowLightEnhanceAuto";
|
|
3161
|
+
/**
|
|
3162
|
+
* 1:手动模式。用户需手动开启或关闭暗光增强功能。
|
|
3163
|
+
*/
|
|
3164
|
+
LowLightEnhanceMode[LowLightEnhanceMode["LowLightEnhanceManual"] = 1] = "LowLightEnhanceManual";
|
|
3165
|
+
return LowLightEnhanceMode;
|
|
3166
|
+
}({});
|
|
3167
|
+
|
|
3168
|
+
/**
|
|
3169
|
+
* 暗光增强等级。
|
|
3170
|
+
*/
|
|
3171
|
+
export let LowLightEnhanceLevel = /*#__PURE__*/function (LowLightEnhanceLevel) {
|
|
3172
|
+
/**
|
|
3173
|
+
* 0:(默认)优先画质的暗光增强,会处理视频图像的亮度、细节、噪声,消耗的性能适中,处理速度适中,综合画质最优。
|
|
3174
|
+
*/
|
|
3175
|
+
LowLightEnhanceLevel[LowLightEnhanceLevel["LowLightEnhanceLevelHighQuality"] = 0] = "LowLightEnhanceLevelHighQuality";
|
|
3176
|
+
/**
|
|
3177
|
+
* 1:优先性能的暗光增强,会处理视频图像的亮度、细节,消耗的性能较少,处理速度较快。
|
|
3178
|
+
*/
|
|
3179
|
+
LowLightEnhanceLevel[LowLightEnhanceLevel["LowLightEnhanceLevelFast"] = 1] = "LowLightEnhanceLevelFast";
|
|
3180
|
+
return LowLightEnhanceLevel;
|
|
3181
|
+
}({});
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* 暗光增强选项。
|
|
3185
|
+
*/
|
|
3186
|
+
export class LowlightEnhanceOptions {}
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* 视频降噪模式。
|
|
3190
|
+
*/
|
|
3191
|
+
export let VideoDenoiserMode = /*#__PURE__*/function (VideoDenoiserMode) {
|
|
3192
|
+
/**
|
|
3193
|
+
* 0:(默认)自动模式。SDK 会根据环境光亮度自动开启或关闭视频降噪功能。
|
|
3194
|
+
*/
|
|
3195
|
+
VideoDenoiserMode[VideoDenoiserMode["VideoDenoiserAuto"] = 0] = "VideoDenoiserAuto";
|
|
3196
|
+
/**
|
|
3197
|
+
* 1:手动模式。用户需手动开启或关闭视频降噪功能。
|
|
3198
|
+
*/
|
|
3199
|
+
VideoDenoiserMode[VideoDenoiserMode["VideoDenoiserManual"] = 1] = "VideoDenoiserManual";
|
|
3200
|
+
return VideoDenoiserMode;
|
|
3201
|
+
}({});
|
|
3202
|
+
|
|
3203
|
+
/**
|
|
3204
|
+
* 视频降噪等级。
|
|
3205
|
+
*/
|
|
3206
|
+
export let VideoDenoiserLevel = /*#__PURE__*/function (VideoDenoiserLevel) {
|
|
3207
|
+
/**
|
|
3208
|
+
* 0:(默认)优先画质的视频降噪。是在性能消耗和视频降噪效果中取平衡的等级。性能消耗适中,视频降噪速度适中,综合画质最优。
|
|
3209
|
+
*/
|
|
3210
|
+
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelHighQuality"] = 0] = "VideoDenoiserLevelHighQuality";
|
|
3211
|
+
/**
|
|
3212
|
+
* 1:优先性能的视频降噪。是在性能消耗和视频降噪效果中侧重于节省性能的等级。性能消耗较少,视频降噪速度较快。为避免处理后的视频有明显的拖影效果,建议你在摄像头固定的情况下使用该设置。
|
|
3213
|
+
*/
|
|
3214
|
+
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelFast"] = 1] = "VideoDenoiserLevelFast";
|
|
3215
|
+
return VideoDenoiserLevel;
|
|
3216
|
+
}({});
|
|
3217
|
+
|
|
3218
|
+
/**
|
|
3219
|
+
* 视频降噪选项。
|
|
3220
|
+
*/
|
|
3221
|
+
export class VideoDenoiserOptions {}
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* 色彩增强选项。
|
|
3225
|
+
*/
|
|
3226
|
+
export class ColorEnhanceOptions {}
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* 自定义的背景。
|
|
3230
|
+
*/
|
|
3231
|
+
export let BackgroundSourceType = /*#__PURE__*/function (BackgroundSourceType) {
|
|
3232
|
+
/**
|
|
3233
|
+
* @ignore
|
|
3234
|
+
*/
|
|
3235
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundNone"] = 0] = "BackgroundNone";
|
|
3236
|
+
/**
|
|
3237
|
+
* 1:(默认)背景为纯色。
|
|
3238
|
+
*/
|
|
3239
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundColor"] = 1] = "BackgroundColor";
|
|
3240
|
+
/**
|
|
3241
|
+
* 2: 背景为 PNG、JPG 格式的图片。
|
|
3242
|
+
*/
|
|
3243
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundImg"] = 2] = "BackgroundImg";
|
|
3244
|
+
/**
|
|
3245
|
+
* 3: 背景为虚化处理后的背景。
|
|
3246
|
+
*/
|
|
3247
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundBlur"] = 3] = "BackgroundBlur";
|
|
3248
|
+
/**
|
|
3249
|
+
* 4: 背景为 MP4、AVI、MKV、FLV 等格式的本地视频。
|
|
3250
|
+
*/
|
|
3251
|
+
BackgroundSourceType[BackgroundSourceType["BackgroundVideo"] = 4] = "BackgroundVideo";
|
|
3252
|
+
return BackgroundSourceType;
|
|
3253
|
+
}({});
|
|
3254
|
+
|
|
3255
|
+
/**
|
|
3256
|
+
* 自定义背景图的虚化程度。
|
|
3257
|
+
*/
|
|
3258
|
+
export let BackgroundBlurDegree = /*#__PURE__*/function (BackgroundBlurDegree) {
|
|
3259
|
+
/**
|
|
3260
|
+
* 1: 自定义背景图的虚化程度为低。用户差不多能看清背景。
|
|
3261
|
+
*/
|
|
3262
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeLow"] = 1] = "BlurDegreeLow";
|
|
3263
|
+
/**
|
|
3264
|
+
* 2: 自定义背景图的虚化程度为中。用户较难看清背景。
|
|
3265
|
+
*/
|
|
3266
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeMedium"] = 2] = "BlurDegreeMedium";
|
|
3267
|
+
/**
|
|
3268
|
+
* 3:(默认)自定义背景图的虚化程度为高。用户很难看清背景。
|
|
3269
|
+
*/
|
|
3270
|
+
BackgroundBlurDegree[BackgroundBlurDegree["BlurDegreeHigh"] = 3] = "BlurDegreeHigh";
|
|
3271
|
+
return BackgroundBlurDegree;
|
|
3272
|
+
}({});
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* 自定义的背景。
|
|
3276
|
+
*/
|
|
3277
|
+
export class VirtualBackgroundSource {}
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* 进行背景处理的算法。
|
|
3281
|
+
*/
|
|
3282
|
+
export let SegModelType = /*#__PURE__*/function (SegModelType) {
|
|
3283
|
+
/**
|
|
3284
|
+
* 1: (默认) 适用于所有场景下的背景处理算法。
|
|
3285
|
+
*/
|
|
3286
|
+
SegModelType[SegModelType["SegModelAi"] = 1] = "SegModelAi";
|
|
3287
|
+
/**
|
|
3288
|
+
* 2: 仅适用于绿幕背景下的背景处理算法。
|
|
3289
|
+
*/
|
|
3290
|
+
SegModelType[SegModelType["SegModelGreen"] = 2] = "SegModelGreen";
|
|
3291
|
+
return SegModelType;
|
|
3292
|
+
}({});
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* 屏幕颜色类型。
|
|
3296
|
+
*/
|
|
3297
|
+
export let ScreenColorType = /*#__PURE__*/function (ScreenColorType) {
|
|
3298
|
+
/**
|
|
3299
|
+
* (0):自动选择屏幕颜色。
|
|
3300
|
+
*/
|
|
3301
|
+
ScreenColorType[ScreenColorType["ScreenColorAuto"] = 0] = "ScreenColorAuto";
|
|
3302
|
+
/**
|
|
3303
|
+
* (1):绿色屏幕颜色。
|
|
3304
|
+
*/
|
|
3305
|
+
ScreenColorType[ScreenColorType["ScreenColorGreen"] = 1] = "ScreenColorGreen";
|
|
3306
|
+
/**
|
|
3307
|
+
* (2):蓝色屏幕颜色。
|
|
3308
|
+
*/
|
|
3309
|
+
ScreenColorType[ScreenColorType["ScreenColorBlue"] = 2] = "ScreenColorBlue";
|
|
3310
|
+
return ScreenColorType;
|
|
3311
|
+
}({});
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* 背景图像的处理属性。
|
|
3315
|
+
*/
|
|
3316
|
+
export class SegmentationProperty {}
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* 自定义音频采集轨道的类型。
|
|
3320
|
+
*/
|
|
3321
|
+
export let AudioTrackType = /*#__PURE__*/function (AudioTrackType) {
|
|
3322
|
+
/**
|
|
3323
|
+
* @ignore
|
|
3324
|
+
*/
|
|
3325
|
+
AudioTrackType[AudioTrackType["AudioTrackInvalid"] = -1] = "AudioTrackInvalid";
|
|
3326
|
+
/**
|
|
3327
|
+
* 0:可混流的音频轨道。支持与其他音频流 (例如:麦克风采集的音频流) 混音后,再在本地播放或发布到频道中。与非混流的音频轨道相比,延迟更高。
|
|
3328
|
+
*/
|
|
3329
|
+
AudioTrackType[AudioTrackType["AudioTrackMixable"] = 0] = "AudioTrackMixable";
|
|
3330
|
+
/**
|
|
3331
|
+
* 1:非混流的音频轨道。会替代麦克风采集,且不支持与其他音频流混音。与可混流的音频轨道相比,延迟更低。 如指定 AudioTrackDirect ,则必须在调用 joinChannel 加入频道时,将 ChannelMediaOptions 中的 publishMicrophoneTrack 设为 false ,否则加入频道失败并返回错误码 -2.
|
|
3332
|
+
*/
|
|
3333
|
+
AudioTrackType[AudioTrackType["AudioTrackDirect"] = 1] = "AudioTrackDirect";
|
|
3334
|
+
return AudioTrackType;
|
|
3335
|
+
}({});
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* 自定义音频轨道的配置选项。
|
|
3339
|
+
*/
|
|
3340
|
+
export class AudioTrackConfig {}
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* 预设的美声效果选项。
|
|
3344
|
+
*/
|
|
3345
|
+
export let VoiceBeautifierPreset = /*#__PURE__*/function (VoiceBeautifierPreset) {
|
|
3346
|
+
/**
|
|
3347
|
+
* 原声,即关闭美声效果。
|
|
3348
|
+
*/
|
|
3349
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["VoiceBeautifierOff"] = 0] = "VoiceBeautifierOff";
|
|
3350
|
+
/**
|
|
3351
|
+
* 磁性(男)。 该设置仅对男声有效,请勿用于设置女声,否则音频会失真。
|
|
3352
|
+
*/
|
|
3353
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierMagnetic"] = 16843008] = "ChatBeautifierMagnetic";
|
|
3354
|
+
/**
|
|
3355
|
+
* 清新(女)。 该设置仅对女声有效,请勿用于设置男声,否则音频会失真。
|
|
3356
|
+
*/
|
|
3357
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierFresh"] = 16843264] = "ChatBeautifierFresh";
|
|
3358
|
+
/**
|
|
3359
|
+
* 活力(女)。 该设置仅对女声有效,请勿用于设置男声,否则音频会失真。
|
|
3360
|
+
*/
|
|
3361
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["ChatBeautifierVitality"] = 16843520] = "ChatBeautifierVitality";
|
|
3362
|
+
/**
|
|
3363
|
+
* 歌唱美声。
|
|
3364
|
+
* 如果调用 setVoiceBeautifierPreset (SingingBeautifier),你可以美化男声并添加歌声在小房间的混响效果。请勿用于设置女声,否则音频会失真。
|
|
3365
|
+
* 如果调用 setVoiceBeautifierParameters (SingingBeautifier, param1, param2),你可以美化男声或女声并添加混响效果。
|
|
3366
|
+
*/
|
|
3367
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["SingingBeautifier"] = 16908544] = "SingingBeautifier";
|
|
3368
|
+
/**
|
|
3369
|
+
* 浑厚。
|
|
3370
|
+
*/
|
|
3371
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationVigorous"] = 16974080] = "TimbreTransformationVigorous";
|
|
3372
|
+
/**
|
|
3373
|
+
* 低沉。
|
|
3374
|
+
*/
|
|
3375
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationDeep"] = 16974336] = "TimbreTransformationDeep";
|
|
3376
|
+
/**
|
|
3377
|
+
* 圆润。
|
|
3378
|
+
*/
|
|
3379
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationMellow"] = 16974592] = "TimbreTransformationMellow";
|
|
3380
|
+
/**
|
|
3381
|
+
* 假音。
|
|
3382
|
+
*/
|
|
3383
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationFalsetto"] = 16974848] = "TimbreTransformationFalsetto";
|
|
3384
|
+
/**
|
|
3385
|
+
* 饱满。
|
|
3386
|
+
*/
|
|
3387
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationFull"] = 16975104] = "TimbreTransformationFull";
|
|
3388
|
+
/**
|
|
3389
|
+
* 清澈。
|
|
3390
|
+
*/
|
|
3391
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationClear"] = 16975360] = "TimbreTransformationClear";
|
|
3392
|
+
/**
|
|
3393
|
+
* 高亢。
|
|
3394
|
+
*/
|
|
3395
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationResounding"] = 16975616] = "TimbreTransformationResounding";
|
|
3396
|
+
/**
|
|
3397
|
+
* 嘹亮。
|
|
3398
|
+
*/
|
|
3399
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["TimbreTransformationRinging"] = 16975872] = "TimbreTransformationRinging";
|
|
3400
|
+
/**
|
|
3401
|
+
* 超高音质,即让音频更清晰、细节更丰富。
|
|
3402
|
+
* 为达到更好的效果,建议在调用 setVoiceBeautifierPreset 前将 setAudioProfile2 的 profile 参数设置为 AudioProfileMusicHighQuality (4) 或 AudioProfileMusicHighQualityStereo (5),且 scenario 参数设置为 AudioScenarioGameStreaming (3)。
|
|
3403
|
+
* 如果用户的音频采集设备可以高度还原音频细节,建议你不要开启超高音质,否则 SDK 会过度还原音频细节,达不到预期效果。
|
|
3404
|
+
*/
|
|
3405
|
+
VoiceBeautifierPreset[VoiceBeautifierPreset["UltraHighQualityVoice"] = 17039616] = "UltraHighQualityVoice";
|
|
3406
|
+
return VoiceBeautifierPreset;
|
|
3407
|
+
}({});
|
|
3408
|
+
|
|
3409
|
+
/**
|
|
3410
|
+
* 预设的音效选项。
|
|
3411
|
+
*
|
|
3412
|
+
* setAudioProfile profile
|
|
3413
|
+
* 预设音效 profile
|
|
3414
|
+
* RoomAcousticsVirtualStereo
|
|
3415
|
+
* RoomAcoustics3dVoice
|
|
3416
|
+
* RoomAcousticsVirtualSurroundSound AudioProfileMusicHighQualityStereo 或 AudioProfileMusicStandardStereo 其他预设音效(除 AudioEffectOff 以外) AudioProfileMusicHighQuality 或 AudioProfileMusicHighQualityStereo
|
|
3417
|
+
*/
|
|
3418
|
+
export let AudioEffectPreset = /*#__PURE__*/function (AudioEffectPreset) {
|
|
3419
|
+
/**
|
|
3420
|
+
* 原声,即关闭人声音效。
|
|
3421
|
+
*/
|
|
3422
|
+
AudioEffectPreset[AudioEffectPreset["AudioEffectOff"] = 0] = "AudioEffectOff";
|
|
3423
|
+
/**
|
|
3424
|
+
* KTV。
|
|
3425
|
+
*/
|
|
3426
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsKtv"] = 33620224] = "RoomAcousticsKtv";
|
|
3427
|
+
/**
|
|
3428
|
+
* 演唱会。
|
|
3429
|
+
*/
|
|
3430
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVocalConcert"] = 33620480] = "RoomAcousticsVocalConcert";
|
|
3431
|
+
/**
|
|
3432
|
+
* 录音棚。
|
|
3433
|
+
*/
|
|
3434
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsStudio"] = 33620736] = "RoomAcousticsStudio";
|
|
3435
|
+
/**
|
|
3436
|
+
* 留声机。
|
|
3437
|
+
*/
|
|
3438
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsPhonograph"] = 33620992] = "RoomAcousticsPhonograph";
|
|
3439
|
+
/**
|
|
3440
|
+
* 虚拟立体声,即 SDK 将单声道的音频渲染出双声道的音效。
|
|
3441
|
+
*/
|
|
3442
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVirtualStereo"] = 33621248] = "RoomAcousticsVirtualStereo";
|
|
3443
|
+
/**
|
|
3444
|
+
* 空旷。
|
|
3445
|
+
*/
|
|
3446
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsSpacial"] = 33621504] = "RoomAcousticsSpacial";
|
|
3447
|
+
/**
|
|
3448
|
+
* 空灵。
|
|
3449
|
+
*/
|
|
3450
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsEthereal"] = 33621760] = "RoomAcousticsEthereal";
|
|
3451
|
+
/**
|
|
3452
|
+
* 3D 人声,即 SDK 将音频渲染出在用户周围环绕的效果。环绕周期默认为 10 秒。设置该音效后,你还可以调用 setAudioEffectParameters 修改环绕周期。 启用 3D 人声后,用户需要使用支持双声道的音频播放设备才能听到预期效果。
|
|
3453
|
+
*/
|
|
3454
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcoustics3dVoice"] = 33622016] = "RoomAcoustics3dVoice";
|
|
3455
|
+
/**
|
|
3456
|
+
* 虚拟环绕声,即 SDK 在双声道的基础上产生仿真的环绕声场,从而营造出具有环绕感的音效。 启用虚拟环绕声后,用户需要使用支持双声道的音频播放设备才能听到预期效果。
|
|
3457
|
+
*/
|
|
3458
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsVirtualSurroundSound"] = 33622272] = "RoomAcousticsVirtualSurroundSound";
|
|
3459
|
+
/**
|
|
3460
|
+
* 合唱。声网推荐你在合唱场景下使用,使人声更具空间立体感。
|
|
3461
|
+
*/
|
|
3462
|
+
AudioEffectPreset[AudioEffectPreset["RoomAcousticsChorus"] = 33623296] = "RoomAcousticsChorus";
|
|
3463
|
+
/**
|
|
3464
|
+
* 大叔。 建议用于处理男声,否则无法达到预期效果。
|
|
3465
|
+
*/
|
|
3466
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectUncle"] = 33685760] = "VoiceChangerEffectUncle";
|
|
3467
|
+
/**
|
|
3468
|
+
* 老年男性。 建议用于处理男声,否则无法达到预期效果。
|
|
3469
|
+
*/
|
|
3470
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectOldman"] = 33686016] = "VoiceChangerEffectOldman";
|
|
3471
|
+
/**
|
|
3472
|
+
* 男孩。 建议用于处理男声,否则无法达到预期效果。
|
|
3473
|
+
*/
|
|
3474
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectBoy"] = 33686272] = "VoiceChangerEffectBoy";
|
|
3475
|
+
/**
|
|
3476
|
+
* 少女。 建议用于处理女声,否则无法达到预期效果。
|
|
3477
|
+
*/
|
|
3478
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectSister"] = 33686528] = "VoiceChangerEffectSister";
|
|
3479
|
+
/**
|
|
3480
|
+
* 女孩。 建议用于处理女声,否则无法达到预期效果。
|
|
3481
|
+
*/
|
|
3482
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectGirl"] = 33686784] = "VoiceChangerEffectGirl";
|
|
3483
|
+
/**
|
|
3484
|
+
* 猪八戒。
|
|
3485
|
+
*/
|
|
3486
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectPigking"] = 33687040] = "VoiceChangerEffectPigking";
|
|
3487
|
+
/**
|
|
3488
|
+
* 绿巨人。
|
|
3489
|
+
*/
|
|
3490
|
+
AudioEffectPreset[AudioEffectPreset["VoiceChangerEffectHulk"] = 33687296] = "VoiceChangerEffectHulk";
|
|
3491
|
+
/**
|
|
3492
|
+
* R&B。
|
|
3493
|
+
*/
|
|
3494
|
+
AudioEffectPreset[AudioEffectPreset["StyleTransformationRnb"] = 33751296] = "StyleTransformationRnb";
|
|
3495
|
+
/**
|
|
3496
|
+
* 流行。
|
|
3497
|
+
*/
|
|
3498
|
+
AudioEffectPreset[AudioEffectPreset["StyleTransformationPopular"] = 33751552] = "StyleTransformationPopular";
|
|
3499
|
+
/**
|
|
3500
|
+
* 电音,即 SDK 以主音音高为 C 的自然大调为基础修正音频的实际音高。设置该音效后,你还可以调用 setAudioEffectParameters 调整修音的基础调式和主音音高。
|
|
3501
|
+
*/
|
|
3502
|
+
AudioEffectPreset[AudioEffectPreset["PitchCorrection"] = 33816832] = "PitchCorrection";
|
|
3503
|
+
return AudioEffectPreset;
|
|
3504
|
+
}({});
|
|
3505
|
+
|
|
3506
|
+
/**
|
|
3507
|
+
* 预设的变声效果选项。
|
|
3508
|
+
*/
|
|
3509
|
+
export let VoiceConversionPreset = /*#__PURE__*/function (VoiceConversionPreset) {
|
|
3510
|
+
/**
|
|
3511
|
+
* 原声,即关闭变声效果。
|
|
3512
|
+
*/
|
|
3513
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceConversionOff"] = 0] = "VoiceConversionOff";
|
|
3514
|
+
/**
|
|
3515
|
+
* 中性。为避免音频失真,请确保仅对女声设置该效果。
|
|
3516
|
+
*/
|
|
3517
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerNeutral"] = 50397440] = "VoiceChangerNeutral";
|
|
3518
|
+
/**
|
|
3519
|
+
* 甜美。为避免音频失真,请确保仅对女声设置该效果。
|
|
3520
|
+
*/
|
|
3521
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerSweet"] = 50397696] = "VoiceChangerSweet";
|
|
3522
|
+
/**
|
|
3523
|
+
* 稳重。为避免音频失真,请确保仅对男声设置该效果。
|
|
3524
|
+
*/
|
|
3525
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerSolid"] = 50397952] = "VoiceChangerSolid";
|
|
3526
|
+
/**
|
|
3527
|
+
* 低沉。为避免音频失真,请确保仅对男声设置该效果。
|
|
3528
|
+
*/
|
|
3529
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerBass"] = 50398208] = "VoiceChangerBass";
|
|
3530
|
+
/**
|
|
3531
|
+
* @ignore
|
|
3532
|
+
*/
|
|
3533
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerCartoon"] = 50398464] = "VoiceChangerCartoon";
|
|
3534
|
+
/**
|
|
3535
|
+
* @ignore
|
|
3536
|
+
*/
|
|
3537
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerChildlike"] = 50398720] = "VoiceChangerChildlike";
|
|
3538
|
+
/**
|
|
3539
|
+
* @ignore
|
|
3540
|
+
*/
|
|
3541
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerPhoneOperator"] = 50398976] = "VoiceChangerPhoneOperator";
|
|
3542
|
+
/**
|
|
3543
|
+
* @ignore
|
|
3544
|
+
*/
|
|
3545
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerMonster"] = 50399232] = "VoiceChangerMonster";
|
|
3546
|
+
/**
|
|
3547
|
+
* @ignore
|
|
3548
|
+
*/
|
|
3549
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerTransformers"] = 50399488] = "VoiceChangerTransformers";
|
|
3550
|
+
/**
|
|
3551
|
+
* @ignore
|
|
3552
|
+
*/
|
|
3553
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerGroot"] = 50399744] = "VoiceChangerGroot";
|
|
3554
|
+
/**
|
|
3555
|
+
* @ignore
|
|
3556
|
+
*/
|
|
3557
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerDarthVader"] = 50400000] = "VoiceChangerDarthVader";
|
|
3558
|
+
/**
|
|
3559
|
+
* @ignore
|
|
3560
|
+
*/
|
|
3561
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerIronLady"] = 50400256] = "VoiceChangerIronLady";
|
|
3562
|
+
/**
|
|
3563
|
+
* @ignore
|
|
3564
|
+
*/
|
|
3565
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerShinChan"] = 50400512] = "VoiceChangerShinChan";
|
|
3566
|
+
/**
|
|
3567
|
+
* @ignore
|
|
3568
|
+
*/
|
|
3569
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerGirlishMan"] = 50400768] = "VoiceChangerGirlishMan";
|
|
3570
|
+
/**
|
|
3571
|
+
* @ignore
|
|
3572
|
+
*/
|
|
3573
|
+
VoiceConversionPreset[VoiceConversionPreset["VoiceChangerChipmunk"] = 50401024] = "VoiceChangerChipmunk";
|
|
3574
|
+
return VoiceConversionPreset;
|
|
3575
|
+
}({});
|
|
3576
|
+
|
|
3577
|
+
/**
|
|
3578
|
+
* 预设的耳机均衡器类型。
|
|
3579
|
+
*/
|
|
3580
|
+
export let HeadphoneEqualizerPreset = /*#__PURE__*/function (HeadphoneEqualizerPreset) {
|
|
3581
|
+
/**
|
|
3582
|
+
* 关闭耳机均衡器,收听原始音频。
|
|
3583
|
+
*/
|
|
3584
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerOff"] = 0] = "HeadphoneEqualizerOff";
|
|
3585
|
+
/**
|
|
3586
|
+
* 使用头戴式耳机的均衡器。
|
|
3587
|
+
*/
|
|
3588
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerOverear"] = 67108865] = "HeadphoneEqualizerOverear";
|
|
3589
|
+
/**
|
|
3590
|
+
* 使用入耳式耳机的均衡器。
|
|
3591
|
+
*/
|
|
3592
|
+
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerInear"] = 67108866] = "HeadphoneEqualizerInear";
|
|
3593
|
+
return HeadphoneEqualizerPreset;
|
|
3594
|
+
}({});
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* AI 调音器音效类型。
|
|
3598
|
+
*/
|
|
3599
|
+
export let VoiceAiTunerType = /*#__PURE__*/function (VoiceAiTunerType) {
|
|
3600
|
+
/**
|
|
3601
|
+
* 0:大叔音。低沉而有磁性的男声。
|
|
3602
|
+
*/
|
|
3603
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerMatureMale"] = 0] = "VoiceAiTunerMatureMale";
|
|
3604
|
+
/**
|
|
3605
|
+
* 1:清新男音。清新而略带甜美的男声。
|
|
3606
|
+
*/
|
|
3607
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerFreshMale"] = 1] = "VoiceAiTunerFreshMale";
|
|
3608
|
+
/**
|
|
3609
|
+
* 2:御姐音。深沉而富有魅力的女声。
|
|
3610
|
+
*/
|
|
3611
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerElegantFemale"] = 2] = "VoiceAiTunerElegantFemale";
|
|
3612
|
+
/**
|
|
3613
|
+
* 3:萝莉音。高亢而可爱的女声。
|
|
3614
|
+
*/
|
|
3615
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerSweetFemale"] = 3] = "VoiceAiTunerSweetFemale";
|
|
3616
|
+
/**
|
|
3617
|
+
* 4:暖男歌声。温暖而悠扬的男声。
|
|
3618
|
+
*/
|
|
3619
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmMaleSinging"] = 4] = "VoiceAiTunerWarmMaleSinging";
|
|
3620
|
+
/**
|
|
3621
|
+
* 5:温柔女歌声。柔和而细腻的女声。
|
|
3622
|
+
*/
|
|
3623
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerGentleFemaleSinging"] = 5] = "VoiceAiTunerGentleFemaleSinging";
|
|
3624
|
+
/**
|
|
3625
|
+
* 6:烟嗓叔音歌声。独特的沙哑男声。
|
|
3626
|
+
*/
|
|
3627
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerHuskyMaleSinging"] = 6] = "VoiceAiTunerHuskyMaleSinging";
|
|
3628
|
+
/**
|
|
3629
|
+
* 7:温暖御姐歌声。温暖而成熟的女声。
|
|
3630
|
+
*/
|
|
3631
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmElegantFemaleSinging"] = 7] = "VoiceAiTunerWarmElegantFemaleSinging";
|
|
3632
|
+
/**
|
|
3633
|
+
* 8:力量男歌声。强劲而有力的男声。
|
|
3634
|
+
*/
|
|
3635
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerPowerfulMaleSinging"] = 8] = "VoiceAiTunerPowerfulMaleSinging";
|
|
3636
|
+
/**
|
|
3637
|
+
* 9:梦幻女歌声。梦幻而柔美的女声。
|
|
3638
|
+
*/
|
|
3639
|
+
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerDreamyFemaleSinging"] = 9] = "VoiceAiTunerDreamyFemaleSinging";
|
|
3640
|
+
return VoiceAiTunerType;
|
|
3641
|
+
}({});
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* 共享屏幕流的音频配置。
|
|
3645
|
+
*
|
|
3646
|
+
* 仅适用于 captureAudio 为 true 的场景。
|
|
3647
|
+
*/
|
|
3648
|
+
export class ScreenAudioParameters {}
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* @ignore
|
|
3652
|
+
*/
|
|
3653
|
+
export class ScreenCaptureParameters {}
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* 录音音质。
|
|
3657
|
+
*/
|
|
3658
|
+
export let AudioRecordingQualityType = /*#__PURE__*/function (AudioRecordingQualityType) {
|
|
3659
|
+
/**
|
|
3660
|
+
* 0: 低音质。采样率为 32 kHz,录制 10 分钟的文件大小为 1.2 M 左右。
|
|
3661
|
+
*/
|
|
3662
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityLow"] = 0] = "AudioRecordingQualityLow";
|
|
3663
|
+
/**
|
|
3664
|
+
* 1: 中音质。采样率为 32 kHz,录制 10 分钟的文件大小为 2 M 左右。
|
|
3665
|
+
*/
|
|
3666
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityMedium"] = 1] = "AudioRecordingQualityMedium";
|
|
3667
|
+
/**
|
|
3668
|
+
* 2: 高音质。采样率为 32 kHz,录制 10 分钟的文件大小为 3.75 M 左右。
|
|
3669
|
+
*/
|
|
3670
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityHigh"] = 2] = "AudioRecordingQualityHigh";
|
|
3671
|
+
/**
|
|
3672
|
+
* 3: 超高音质。采样率为 32 KHz,录制 10 分钟的文件大小约为 7.5 M 左右。
|
|
3673
|
+
*/
|
|
3674
|
+
AudioRecordingQualityType[AudioRecordingQualityType["AudioRecordingQualityUltraHigh"] = 3] = "AudioRecordingQualityUltraHigh";
|
|
3675
|
+
return AudioRecordingQualityType;
|
|
3676
|
+
}({});
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* 录音内容。在 startAudioRecording 中设置。
|
|
3680
|
+
*/
|
|
3681
|
+
export let AudioFileRecordingType = /*#__PURE__*/function (AudioFileRecordingType) {
|
|
3682
|
+
/**
|
|
3683
|
+
* 1: 仅录制本地用户的音频。
|
|
3684
|
+
*/
|
|
3685
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingMic"] = 1] = "AudioFileRecordingMic";
|
|
3686
|
+
/**
|
|
3687
|
+
* 2: 仅录制所有远端用户的音频。
|
|
3688
|
+
*/
|
|
3689
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingPlayback"] = 2] = "AudioFileRecordingPlayback";
|
|
3690
|
+
/**
|
|
3691
|
+
* 3: 录制本地和所有远端用户混音后的音频。
|
|
3692
|
+
*/
|
|
3693
|
+
AudioFileRecordingType[AudioFileRecordingType["AudioFileRecordingMixed"] = 3] = "AudioFileRecordingMixed";
|
|
3694
|
+
return AudioFileRecordingType;
|
|
3695
|
+
}({});
|
|
3696
|
+
|
|
3697
|
+
/**
|
|
3698
|
+
* 音频编码内容。
|
|
3699
|
+
*/
|
|
3700
|
+
export let AudioEncodedFrameObserverPosition = /*#__PURE__*/function (AudioEncodedFrameObserverPosition) {
|
|
3701
|
+
/**
|
|
3702
|
+
* 1: 仅编码本地用户的音频。
|
|
3703
|
+
*/
|
|
3704
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionRecord"] = 1] = "AudioEncodedFrameObserverPositionRecord";
|
|
3705
|
+
/**
|
|
3706
|
+
* 2: 仅编码所有远端用户的音频。
|
|
3707
|
+
*/
|
|
3708
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionPlayback"] = 2] = "AudioEncodedFrameObserverPositionPlayback";
|
|
3709
|
+
/**
|
|
3710
|
+
* 3: 编码本地和所有远端用户混音后的音频。
|
|
3711
|
+
*/
|
|
3712
|
+
AudioEncodedFrameObserverPosition[AudioEncodedFrameObserverPosition["AudioEncodedFrameObserverPositionMixed"] = 3] = "AudioEncodedFrameObserverPositionMixed";
|
|
3713
|
+
return AudioEncodedFrameObserverPosition;
|
|
3714
|
+
}({});
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* 录音配置。
|
|
3718
|
+
*/
|
|
3719
|
+
export class AudioRecordingConfiguration {}
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* 编码后音频的观测器设置。
|
|
3723
|
+
*/
|
|
3724
|
+
export class AudioEncodedFrameObserverConfig {}
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* 编码后音频的观测器。
|
|
3728
|
+
*/
|
|
3729
|
+
|
|
3730
|
+
/**
|
|
3731
|
+
* 访问区域,即 SDK 连接的服务器所在的区域。
|
|
3732
|
+
*/
|
|
3733
|
+
export let AreaCode = /*#__PURE__*/function (AreaCode) {
|
|
3734
|
+
/**
|
|
3735
|
+
* 中国大陆。
|
|
3736
|
+
*/
|
|
3737
|
+
AreaCode[AreaCode["AreaCodeCn"] = 1] = "AreaCodeCn";
|
|
3738
|
+
/**
|
|
3739
|
+
* 北美区域。
|
|
3740
|
+
*/
|
|
3741
|
+
AreaCode[AreaCode["AreaCodeNa"] = 2] = "AreaCodeNa";
|
|
3742
|
+
/**
|
|
3743
|
+
* 欧洲区域。
|
|
3744
|
+
*/
|
|
3745
|
+
AreaCode[AreaCode["AreaCodeEu"] = 4] = "AreaCodeEu";
|
|
3746
|
+
/**
|
|
3747
|
+
* 除中国以外的亚洲区域。
|
|
3748
|
+
*/
|
|
3749
|
+
AreaCode[AreaCode["AreaCodeAs"] = 8] = "AreaCodeAs";
|
|
3750
|
+
/**
|
|
3751
|
+
* 日本。
|
|
3752
|
+
*/
|
|
3753
|
+
AreaCode[AreaCode["AreaCodeJp"] = 16] = "AreaCodeJp";
|
|
3754
|
+
/**
|
|
3755
|
+
* 印度。
|
|
3756
|
+
*/
|
|
3757
|
+
AreaCode[AreaCode["AreaCodeIn"] = 32] = "AreaCodeIn";
|
|
3758
|
+
/**
|
|
3759
|
+
* 全球。
|
|
3760
|
+
*/
|
|
3761
|
+
AreaCode[AreaCode["AreaCodeGlob"] = 4294967295] = "AreaCodeGlob";
|
|
3762
|
+
return AreaCode;
|
|
3763
|
+
}({});
|
|
3764
|
+
|
|
3765
|
+
/**
|
|
3766
|
+
* @ignore
|
|
3767
|
+
*/
|
|
3768
|
+
export let AreaCodeEx = /*#__PURE__*/function (AreaCodeEx) {
|
|
3769
|
+
/**
|
|
3770
|
+
* @ignore
|
|
3771
|
+
*/
|
|
3772
|
+
AreaCodeEx[AreaCodeEx["AreaCodeOc"] = 64] = "AreaCodeOc";
|
|
3773
|
+
/**
|
|
3774
|
+
* @ignore
|
|
3775
|
+
*/
|
|
3776
|
+
AreaCodeEx[AreaCodeEx["AreaCodeSa"] = 128] = "AreaCodeSa";
|
|
3777
|
+
/**
|
|
3778
|
+
* @ignore
|
|
3779
|
+
*/
|
|
3780
|
+
AreaCodeEx[AreaCodeEx["AreaCodeAf"] = 256] = "AreaCodeAf";
|
|
3781
|
+
/**
|
|
3782
|
+
* @ignore
|
|
3783
|
+
*/
|
|
3784
|
+
AreaCodeEx[AreaCodeEx["AreaCodeKr"] = 512] = "AreaCodeKr";
|
|
3785
|
+
/**
|
|
3786
|
+
* @ignore
|
|
3787
|
+
*/
|
|
3788
|
+
AreaCodeEx[AreaCodeEx["AreaCodeHkmc"] = 1024] = "AreaCodeHkmc";
|
|
3789
|
+
/**
|
|
3790
|
+
* @ignore
|
|
3791
|
+
*/
|
|
3792
|
+
AreaCodeEx[AreaCodeEx["AreaCodeUs"] = 2048] = "AreaCodeUs";
|
|
3793
|
+
/**
|
|
3794
|
+
* @ignore
|
|
3795
|
+
*/
|
|
3796
|
+
AreaCodeEx[AreaCodeEx["AreaCodeRu"] = 4096] = "AreaCodeRu";
|
|
3797
|
+
/**
|
|
3798
|
+
* @ignore
|
|
3799
|
+
*/
|
|
3800
|
+
AreaCodeEx[AreaCodeEx["AreaCodeOvs"] = 4294967294] = "AreaCodeOvs";
|
|
3801
|
+
return AreaCodeEx;
|
|
3802
|
+
}({});
|
|
3803
|
+
|
|
3804
|
+
/**
|
|
3805
|
+
* 跨频道媒体流转发出错的错误码。
|
|
3806
|
+
*/
|
|
3807
|
+
export let ChannelMediaRelayError = /*#__PURE__*/function (ChannelMediaRelayError) {
|
|
3808
|
+
/**
|
|
3809
|
+
* 0: 一切正常。
|
|
3810
|
+
*/
|
|
3811
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayOk"] = 0] = "RelayOk";
|
|
3812
|
+
/**
|
|
3813
|
+
* 1: 服务器回应出错。
|
|
3814
|
+
*/
|
|
3815
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerErrorResponse"] = 1] = "RelayErrorServerErrorResponse";
|
|
3816
|
+
/**
|
|
3817
|
+
* 2: 服务器无回应。
|
|
3818
|
+
* 该错误可能是网络状况不佳导致的。如果在发起跨频道连麦时报告该错误,你可以稍后重试;如果在跨频道连麦过程中报告该错误,你可以调用 leaveChannel 方法离开频道。
|
|
3819
|
+
* 该错误也可能是由于当前的 App ID 未开启跨频道连麦导致的。你可以[联系技术支持](https://ticket.shengwang.cn/)申请开通跨频道连麦。
|
|
3820
|
+
*/
|
|
3821
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerNoResponse"] = 2] = "RelayErrorServerNoResponse";
|
|
3822
|
+
/**
|
|
3823
|
+
* 3: SDK 无法获取服务,可能是因为服务器资源有限导致。
|
|
3824
|
+
*/
|
|
3825
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorNoResourceAvailable"] = 3] = "RelayErrorNoResourceAvailable";
|
|
3826
|
+
/**
|
|
3827
|
+
* 4: 发起跨频道转发媒体流请求失败。
|
|
3828
|
+
*/
|
|
3829
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedJoinSrc"] = 4] = "RelayErrorFailedJoinSrc";
|
|
3830
|
+
/**
|
|
3831
|
+
* 5: 接受跨频道转发媒体流请求失败。
|
|
3832
|
+
*/
|
|
3833
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedJoinDest"] = 5] = "RelayErrorFailedJoinDest";
|
|
3834
|
+
/**
|
|
3835
|
+
* 6: 服务器接收跨频道转发媒体流失败。
|
|
3836
|
+
*/
|
|
3837
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedPacketReceivedFromSrc"] = 6] = "RelayErrorFailedPacketReceivedFromSrc";
|
|
3838
|
+
/**
|
|
3839
|
+
* 7: 服务器发送跨频道转发媒体流失败。
|
|
3840
|
+
*/
|
|
3841
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorFailedPacketSentToDest"] = 7] = "RelayErrorFailedPacketSentToDest";
|
|
3842
|
+
/**
|
|
3843
|
+
* 8: SDK 因网络质量不佳与服务器断开。你可以调用 leaveChannel 方法离开当前频道。
|
|
3844
|
+
*/
|
|
3845
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerConnectionLost"] = 8] = "RelayErrorServerConnectionLost";
|
|
3846
|
+
/**
|
|
3847
|
+
* 9: 服务器内部出错。
|
|
3848
|
+
*/
|
|
3849
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorInternalError"] = 9] = "RelayErrorInternalError";
|
|
3850
|
+
/**
|
|
3851
|
+
* 10: 源频道的 Token 已过期。
|
|
3852
|
+
*/
|
|
3853
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorSrcTokenExpired"] = 10] = "RelayErrorSrcTokenExpired";
|
|
3854
|
+
/**
|
|
3855
|
+
* 11: 目标频道的 Token 已过期。
|
|
3856
|
+
*/
|
|
3857
|
+
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorDestTokenExpired"] = 11] = "RelayErrorDestTokenExpired";
|
|
3858
|
+
return ChannelMediaRelayError;
|
|
3859
|
+
}({});
|
|
3860
|
+
|
|
3861
|
+
/**
|
|
3862
|
+
* 跨频道媒体流转发状态码。
|
|
3863
|
+
*/
|
|
3864
|
+
export let ChannelMediaRelayState = /*#__PURE__*/function (ChannelMediaRelayState) {
|
|
3865
|
+
/**
|
|
3866
|
+
* 0: 初始状态。在成功调用 stopChannelMediaRelay 停止跨频道媒体流转发后, onChannelMediaRelayStateChanged 会回调该状态。
|
|
3867
|
+
*/
|
|
3868
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateIdle"] = 0] = "RelayStateIdle";
|
|
3869
|
+
/**
|
|
3870
|
+
* 1: SDK 尝试跨频道。
|
|
3871
|
+
*/
|
|
3872
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateConnecting"] = 1] = "RelayStateConnecting";
|
|
3873
|
+
/**
|
|
3874
|
+
* 2: 源频道主播成功加入目标频道。
|
|
3875
|
+
*/
|
|
3876
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateRunning"] = 2] = "RelayStateRunning";
|
|
3877
|
+
/**
|
|
3878
|
+
* 3: 发生异常,详见 onChannelMediaRelayStateChanged 的 code 参数提示的错误信息。
|
|
3879
|
+
*/
|
|
3880
|
+
ChannelMediaRelayState[ChannelMediaRelayState["RelayStateFailure"] = 3] = "RelayStateFailure";
|
|
3881
|
+
return ChannelMediaRelayState;
|
|
3882
|
+
}({});
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* 频道媒体信息。
|
|
3886
|
+
*/
|
|
3887
|
+
export class ChannelMediaInfo {}
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* 跨频道媒体流转发配置信息。
|
|
3891
|
+
*/
|
|
3892
|
+
export class ChannelMediaRelayConfiguration {}
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* 上行网络信息。
|
|
3896
|
+
*/
|
|
3897
|
+
export class UplinkNetworkInfo {}
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* @ignore
|
|
3901
|
+
*/
|
|
3902
|
+
export class PeerDownlinkInfo {}
|
|
3903
|
+
|
|
3904
|
+
/**
|
|
3905
|
+
* @ignore
|
|
3906
|
+
*/
|
|
3907
|
+
export class DownlinkNetworkInfo {}
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* 内置加密模式。
|
|
3911
|
+
*
|
|
3912
|
+
* 建议使用 Aes128Gcm2 或 Aes256Gcm2 加密模式。这两种模式支持使用盐,安全性更高。
|
|
3913
|
+
*/
|
|
3914
|
+
export let EncryptionMode = /*#__PURE__*/function (EncryptionMode) {
|
|
3915
|
+
/**
|
|
3916
|
+
* 1: 128 位 AES 加密,XTS 模式。
|
|
3917
|
+
*/
|
|
3918
|
+
EncryptionMode[EncryptionMode["Aes128Xts"] = 1] = "Aes128Xts";
|
|
3919
|
+
/**
|
|
3920
|
+
* 2: 128 位 AES 加密,ECB 模式。
|
|
3921
|
+
*/
|
|
3922
|
+
EncryptionMode[EncryptionMode["Aes128Ecb"] = 2] = "Aes128Ecb";
|
|
3923
|
+
/**
|
|
3924
|
+
* 3: 256 位 AES 加密,XTS 模式。
|
|
3925
|
+
*/
|
|
3926
|
+
EncryptionMode[EncryptionMode["Aes256Xts"] = 3] = "Aes256Xts";
|
|
3927
|
+
/**
|
|
3928
|
+
* 4: 128 位 SM4 加密,ECB 模式。
|
|
3929
|
+
*/
|
|
3930
|
+
EncryptionMode[EncryptionMode["Sm4128Ecb"] = 4] = "Sm4128Ecb";
|
|
3931
|
+
/**
|
|
3932
|
+
* 5: 128 位 AES 加密,GCM 模式。
|
|
3933
|
+
*/
|
|
3934
|
+
EncryptionMode[EncryptionMode["Aes128Gcm"] = 5] = "Aes128Gcm";
|
|
3935
|
+
/**
|
|
3936
|
+
* 6: 256 位 AES 加密,GCM 模式。
|
|
3937
|
+
*/
|
|
3938
|
+
EncryptionMode[EncryptionMode["Aes256Gcm"] = 6] = "Aes256Gcm";
|
|
3939
|
+
/**
|
|
3940
|
+
* 7:(默认)128 位 AES 加密,GCM 模式。该加密模式需要设置盐( encryptionKdfSalt )。
|
|
3941
|
+
*/
|
|
3942
|
+
EncryptionMode[EncryptionMode["Aes128Gcm2"] = 7] = "Aes128Gcm2";
|
|
3943
|
+
/**
|
|
3944
|
+
* 8: 256 位 AES 加密,GCM 模式。该加密模式需要设置盐( encryptionKdfSalt )。
|
|
3945
|
+
*/
|
|
3946
|
+
EncryptionMode[EncryptionMode["Aes256Gcm2"] = 8] = "Aes256Gcm2";
|
|
3947
|
+
/**
|
|
3948
|
+
* 枚举值边界。
|
|
3949
|
+
*/
|
|
3950
|
+
EncryptionMode[EncryptionMode["ModeEnd"] = 9] = "ModeEnd";
|
|
3951
|
+
return EncryptionMode;
|
|
3952
|
+
}({});
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* 配置内置加密模式和密钥。
|
|
3956
|
+
*/
|
|
3957
|
+
export class EncryptionConfig {}
|
|
3958
|
+
|
|
3959
|
+
/**
|
|
3960
|
+
* 内置加密的错误类型。
|
|
3961
|
+
*/
|
|
3962
|
+
export let EncryptionErrorType = /*#__PURE__*/function (EncryptionErrorType) {
|
|
3963
|
+
/**
|
|
3964
|
+
* 0: 内部原因。
|
|
3965
|
+
*/
|
|
3966
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorInternalFailure"] = 0] = "EncryptionErrorInternalFailure";
|
|
3967
|
+
/**
|
|
3968
|
+
* 1: 媒体流解密错误。请确保接收端和发送端使用的加密模式或密钥一致。
|
|
3969
|
+
*/
|
|
3970
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDecryptionFailure"] = 1] = "EncryptionErrorDecryptionFailure";
|
|
3971
|
+
/**
|
|
3972
|
+
* 2: 媒体流加密错误。
|
|
3973
|
+
*/
|
|
3974
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorEncryptionFailure"] = 2] = "EncryptionErrorEncryptionFailure";
|
|
3975
|
+
/**
|
|
3976
|
+
* 3: 数据流解密错误。请确保接收端和发送端使用的加密模式或密钥一致。
|
|
3977
|
+
*/
|
|
3978
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamDecryptionFailure"] = 3] = "EncryptionErrorDatastreamDecryptionFailure";
|
|
3979
|
+
/**
|
|
3980
|
+
* 4: 数据流加密错误。
|
|
3981
|
+
*/
|
|
3982
|
+
EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamEncryptionFailure"] = 4] = "EncryptionErrorDatastreamEncryptionFailure";
|
|
3983
|
+
return EncryptionErrorType;
|
|
3984
|
+
}({});
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* @ignore
|
|
3988
|
+
*/
|
|
3989
|
+
export let UploadErrorReason = /*#__PURE__*/function (UploadErrorReason) {
|
|
3990
|
+
/**
|
|
3991
|
+
* @ignore
|
|
3992
|
+
*/
|
|
3993
|
+
UploadErrorReason[UploadErrorReason["UploadSuccess"] = 0] = "UploadSuccess";
|
|
3994
|
+
/**
|
|
3995
|
+
* @ignore
|
|
3996
|
+
*/
|
|
3997
|
+
UploadErrorReason[UploadErrorReason["UploadNetError"] = 1] = "UploadNetError";
|
|
3998
|
+
/**
|
|
3999
|
+
* @ignore
|
|
4000
|
+
*/
|
|
4001
|
+
UploadErrorReason[UploadErrorReason["UploadServerError"] = 2] = "UploadServerError";
|
|
4002
|
+
return UploadErrorReason;
|
|
4003
|
+
}({});
|
|
4004
|
+
|
|
4005
|
+
/**
|
|
4006
|
+
* 调用 renewToken 后的错误码。
|
|
4007
|
+
*
|
|
4008
|
+
* 自从 自 4.6.0 版本新增。
|
|
4009
|
+
*/
|
|
4010
|
+
export let RenewTokenErrorCode = /*#__PURE__*/function (RenewTokenErrorCode) {
|
|
4011
|
+
/**
|
|
4012
|
+
* (0):Token 更新成功。
|
|
4013
|
+
*/
|
|
4014
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenSuccess"] = 0] = "RenewTokenSuccess";
|
|
4015
|
+
/**
|
|
4016
|
+
* (1):由于未知的服务器错误,Token 更新失败。建议检查用于生成 Token 的参数,重新生成 Token,并重试 renewToken 。
|
|
4017
|
+
*/
|
|
4018
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenFailure"] = 1] = "RenewTokenFailure";
|
|
4019
|
+
/**
|
|
4020
|
+
* (2):由于提供的 Token 已过期,Token 更新失败。建议生成一个过期时间更长的新 Token,并重试 renewToken 。
|
|
4021
|
+
*/
|
|
4022
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenTokenExpired"] = 2] = "RenewTokenTokenExpired";
|
|
4023
|
+
/**
|
|
4024
|
+
* (3):由于提供的 Token 无效,Token 更新失败。常见原因包括:项目在声网控制台启用了 App 证书但加入频道时未使用 Token; joinChannel 中指定的 uid 与生成 Token 时使用的 uid 不一致; joinChannel 中指定的频道名与生成 Token 时使用的频道名不一致。建议检查 Token 的生成流程,重新生成 Token,并重试 renewToken 。
|
|
4025
|
+
*/
|
|
4026
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenInvalidToken"] = 3] = "RenewTokenInvalidToken";
|
|
4027
|
+
/**
|
|
4028
|
+
* (4):由于 Token 中的频道名与当前频道不一致,Token 更新失败。建议检查频道名,重新生成 Token,并重试 renewToken 。
|
|
4029
|
+
*/
|
|
4030
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenInvalidChannelName"] = 4] = "RenewTokenInvalidChannelName";
|
|
4031
|
+
/**
|
|
4032
|
+
* (5):由于 Token 中的 App ID 与当前 App ID 不一致,Token 更新失败。建议检查 App ID,重新生成 Token,并重试 renewToken 。
|
|
4033
|
+
*/
|
|
4034
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenInconsistentAppid"] = 5] = "RenewTokenInconsistentAppid";
|
|
4035
|
+
/**
|
|
4036
|
+
* (6):由于发起了新的请求,之前的 Token 更新请求被取消。
|
|
4037
|
+
*/
|
|
4038
|
+
RenewTokenErrorCode[RenewTokenErrorCode["RenewTokenCanceledByNewRequest"] = 6] = "RenewTokenCanceledByNewRequest";
|
|
4039
|
+
return RenewTokenErrorCode;
|
|
4040
|
+
}({});
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* 设备权限类型。
|
|
4044
|
+
*/
|
|
4045
|
+
export let PermissionType = /*#__PURE__*/function (PermissionType) {
|
|
4046
|
+
/**
|
|
4047
|
+
* 0: 音频采集设备的权限。
|
|
4048
|
+
*/
|
|
4049
|
+
PermissionType[PermissionType["RecordAudio"] = 0] = "RecordAudio";
|
|
4050
|
+
/**
|
|
4051
|
+
* 1: 摄像头权限。
|
|
4052
|
+
*/
|
|
4053
|
+
PermissionType[PermissionType["Camera"] = 1] = "Camera";
|
|
4054
|
+
/**
|
|
4055
|
+
* (仅适用于 Android) 2: 屏幕共享权限。
|
|
4056
|
+
*/
|
|
4057
|
+
PermissionType[PermissionType["ScreenCapture"] = 2] = "ScreenCapture";
|
|
4058
|
+
return PermissionType;
|
|
4059
|
+
}({});
|
|
4060
|
+
|
|
4061
|
+
/**
|
|
4062
|
+
* 订阅状态。
|
|
4063
|
+
*/
|
|
4064
|
+
export let StreamSubscribeState = /*#__PURE__*/function (StreamSubscribeState) {
|
|
4065
|
+
/**
|
|
4066
|
+
* 0: 加入频道后的初始订阅状态。
|
|
4067
|
+
*/
|
|
4068
|
+
StreamSubscribeState[StreamSubscribeState["SubStateIdle"] = 0] = "SubStateIdle";
|
|
4069
|
+
/**
|
|
4070
|
+
* 1: 订阅失败。可能是因为:
|
|
4071
|
+
* 远端用户:
|
|
4072
|
+
* 调用 muteLocalAudioStream (true) 或 muteLocalVideoStream (true) 停止发送本地媒体流。
|
|
4073
|
+
* 调用 disableAudio 或 disableVideo 关闭本地音频或视频模块。
|
|
4074
|
+
* 调用 enableLocalAudio (false) 或 enableLocalVideo (false) 关闭本地音频或视频采集。
|
|
4075
|
+
* 用户角色为观众。
|
|
4076
|
+
* 本地用户调用以下方法停止接收远端媒体流:
|
|
4077
|
+
* 调用 muteRemoteAudioStream (true)、 muteAllRemoteAudioStreams (true) 停止接收远端音频流。
|
|
4078
|
+
* 调用 muteRemoteVideoStream (true)、 muteAllRemoteVideoStreams (true) 停止接收远端视频流。
|
|
4079
|
+
*/
|
|
4080
|
+
StreamSubscribeState[StreamSubscribeState["SubStateNoSubscribed"] = 1] = "SubStateNoSubscribed";
|
|
4081
|
+
/**
|
|
4082
|
+
* 2: 正在订阅。
|
|
4083
|
+
*/
|
|
4084
|
+
StreamSubscribeState[StreamSubscribeState["SubStateSubscribing"] = 2] = "SubStateSubscribing";
|
|
4085
|
+
/**
|
|
4086
|
+
* 3: 收到了远端流,订阅成功。
|
|
4087
|
+
*/
|
|
4088
|
+
StreamSubscribeState[StreamSubscribeState["SubStateSubscribed"] = 3] = "SubStateSubscribed";
|
|
4089
|
+
return StreamSubscribeState;
|
|
4090
|
+
}({});
|
|
4091
|
+
|
|
4092
|
+
/**
|
|
4093
|
+
* 发布状态。
|
|
4094
|
+
*/
|
|
4095
|
+
export let StreamPublishState = /*#__PURE__*/function (StreamPublishState) {
|
|
4096
|
+
/**
|
|
4097
|
+
* 0: 加入频道后的初始发布状态。
|
|
4098
|
+
*/
|
|
4099
|
+
StreamPublishState[StreamPublishState["PubStateIdle"] = 0] = "PubStateIdle";
|
|
4100
|
+
/**
|
|
4101
|
+
* 1: 发布失败。可能是因为:
|
|
4102
|
+
* 本地用户调用 muteLocalAudioStream (true) 或 muteLocalVideoStream (true) 停止发送本地媒体流。
|
|
4103
|
+
* 本地用户调用 disableAudio 或 disableVideo 关闭本地音频或视频模块。
|
|
4104
|
+
* 本地用户调用 enableLocalAudio (false) 或 enableLocalVideo (false) 关闭本地音频或视频采集。
|
|
4105
|
+
* 本地用户角色为观众。
|
|
4106
|
+
*/
|
|
4107
|
+
StreamPublishState[StreamPublishState["PubStateNoPublished"] = 1] = "PubStateNoPublished";
|
|
4108
|
+
/**
|
|
4109
|
+
* 2: 正在发布。
|
|
4110
|
+
*/
|
|
4111
|
+
StreamPublishState[StreamPublishState["PubStatePublishing"] = 2] = "PubStatePublishing";
|
|
4112
|
+
/**
|
|
4113
|
+
* 3: 发布成功。
|
|
4114
|
+
*/
|
|
4115
|
+
StreamPublishState[StreamPublishState["PubStatePublished"] = 3] = "PubStatePublished";
|
|
4116
|
+
return StreamPublishState;
|
|
4117
|
+
}({});
|
|
4118
|
+
|
|
4119
|
+
/**
|
|
4120
|
+
* 音视频通话回路测试的配置。
|
|
4121
|
+
*/
|
|
4122
|
+
export class EchoTestConfiguration {}
|
|
4123
|
+
|
|
4124
|
+
/**
|
|
4125
|
+
* 用户的信息。
|
|
4126
|
+
*/
|
|
4127
|
+
export class UserInfo {}
|
|
4128
|
+
|
|
4129
|
+
/**
|
|
4130
|
+
* 耳返 Audio filter 类型。
|
|
4131
|
+
*/
|
|
4132
|
+
export let EarMonitoringFilterType = /*#__PURE__*/function (EarMonitoringFilterType) {
|
|
4133
|
+
/**
|
|
4134
|
+
* 1<<0: 不在耳返中添加 Audio filter。
|
|
4135
|
+
*/
|
|
4136
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNone"] = 1] = "EarMonitoringFilterNone";
|
|
4137
|
+
/**
|
|
4138
|
+
* 1<<1: 在耳返中添加人声效果 Audio filter。如果你实现了美声、音效等功能,用户可以在耳返中听到添加效果后的声音。
|
|
4139
|
+
*/
|
|
4140
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterBuiltInAudioFilters"] = 2] = "EarMonitoringFilterBuiltInAudioFilters";
|
|
4141
|
+
/**
|
|
4142
|
+
* 1<<2: 在耳返中添加降噪 Audio filter。
|
|
4143
|
+
*/
|
|
4144
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNoiseSuppression"] = 4] = "EarMonitoringFilterNoiseSuppression";
|
|
4145
|
+
/**
|
|
4146
|
+
* 1<<15: 复用发送端已进行过音效处理的 Audio filter。通过复用 Audio filter 降低耳返对 CPU 的占用率,但会增加耳返延迟,适用于需要降低 CPU 消耗且对耳返延迟不敏感的场景。
|
|
4147
|
+
*/
|
|
4148
|
+
EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterReusePostProcessingFilter"] = 32768] = "EarMonitoringFilterReusePostProcessingFilter";
|
|
4149
|
+
return EarMonitoringFilterType;
|
|
4150
|
+
}({});
|
|
4151
|
+
|
|
4152
|
+
/**
|
|
4153
|
+
* @ignore
|
|
4154
|
+
*/
|
|
4155
|
+
export let ThreadPriorityType = /*#__PURE__*/function (ThreadPriorityType) {
|
|
4156
|
+
/**
|
|
4157
|
+
* @ignore
|
|
4158
|
+
*/
|
|
4159
|
+
ThreadPriorityType[ThreadPriorityType["Lowest"] = 0] = "Lowest";
|
|
4160
|
+
/**
|
|
4161
|
+
* @ignore
|
|
4162
|
+
*/
|
|
4163
|
+
ThreadPriorityType[ThreadPriorityType["Low"] = 1] = "Low";
|
|
4164
|
+
/**
|
|
4165
|
+
* @ignore
|
|
4166
|
+
*/
|
|
4167
|
+
ThreadPriorityType[ThreadPriorityType["Normal"] = 2] = "Normal";
|
|
4168
|
+
/**
|
|
4169
|
+
* @ignore
|
|
4170
|
+
*/
|
|
4171
|
+
ThreadPriorityType[ThreadPriorityType["High"] = 3] = "High";
|
|
4172
|
+
/**
|
|
4173
|
+
* @ignore
|
|
4174
|
+
*/
|
|
4175
|
+
ThreadPriorityType[ThreadPriorityType["Highest"] = 4] = "Highest";
|
|
4176
|
+
/**
|
|
4177
|
+
* @ignore
|
|
4178
|
+
*/
|
|
4179
|
+
ThreadPriorityType[ThreadPriorityType["Critical"] = 5] = "Critical";
|
|
4180
|
+
return ThreadPriorityType;
|
|
4181
|
+
}({});
|
|
4182
|
+
|
|
4183
|
+
/**
|
|
4184
|
+
* 共享屏幕流的视频编码配置。
|
|
4185
|
+
*/
|
|
4186
|
+
export class ScreenVideoParameters {}
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* 屏幕共享的参数配置。
|
|
4190
|
+
*/
|
|
4191
|
+
export class ScreenCaptureParameters2 {}
|
|
4192
|
+
|
|
4193
|
+
/**
|
|
4194
|
+
* 媒体帧的渲染状态。
|
|
4195
|
+
*/
|
|
4196
|
+
export let MediaTraceEvent = /*#__PURE__*/function (MediaTraceEvent) {
|
|
4197
|
+
/**
|
|
4198
|
+
* 0:视频帧已被渲染。
|
|
4199
|
+
*/
|
|
4200
|
+
MediaTraceEvent[MediaTraceEvent["MediaTraceEventVideoRendered"] = 0] = "MediaTraceEventVideoRendered";
|
|
4201
|
+
/**
|
|
4202
|
+
* 1:视频帧已被解码。
|
|
4203
|
+
*/
|
|
4204
|
+
MediaTraceEvent[MediaTraceEvent["MediaTraceEventVideoDecoded"] = 1] = "MediaTraceEventVideoDecoded";
|
|
4205
|
+
return MediaTraceEvent;
|
|
4206
|
+
}({});
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* 视频帧渲染过程中的指标信息。
|
|
4210
|
+
*/
|
|
4211
|
+
export class VideoRenderingTracingInfo {}
|
|
4212
|
+
|
|
4213
|
+
/**
|
|
4214
|
+
* @ignore
|
|
4215
|
+
*/
|
|
4216
|
+
export let ConfigFetchType = /*#__PURE__*/function (ConfigFetchType) {
|
|
4217
|
+
/**
|
|
4218
|
+
* @ignore
|
|
4219
|
+
*/
|
|
4220
|
+
ConfigFetchType[ConfigFetchType["ConfigFetchTypeInitialize"] = 1] = "ConfigFetchTypeInitialize";
|
|
4221
|
+
/**
|
|
4222
|
+
* @ignore
|
|
4223
|
+
*/
|
|
4224
|
+
ConfigFetchType[ConfigFetchType["ConfigFetchTypeJoinChannel"] = 2] = "ConfigFetchTypeJoinChannel";
|
|
4225
|
+
return ConfigFetchType;
|
|
4226
|
+
}({});
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* 与声网私有媒体服务器的连接模式。
|
|
4230
|
+
*/
|
|
4231
|
+
export let LocalProxyMode = /*#__PURE__*/function (LocalProxyMode) {
|
|
4232
|
+
/**
|
|
4233
|
+
* 0:SDK 优先尝试连接指定的声网私有媒体服务器;如果无法连接到指定的声网私有媒体服务器,则连接声网 SD-RTN™。
|
|
4234
|
+
*/
|
|
4235
|
+
LocalProxyMode[LocalProxyMode["ConnectivityFirst"] = 0] = "ConnectivityFirst";
|
|
4236
|
+
/**
|
|
4237
|
+
* 1:SDK 只尝试连接指定的声网私有媒体服务器。
|
|
4238
|
+
*/
|
|
4239
|
+
LocalProxyMode[LocalProxyMode["LocalOnly"] = 1] = "LocalOnly";
|
|
4240
|
+
return LocalProxyMode;
|
|
4241
|
+
}({});
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* 日志服务器的配置信息。
|
|
4245
|
+
*/
|
|
4246
|
+
export class LogUploadServerInfo {}
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* Local Access Point 的高级选项。
|
|
4250
|
+
*/
|
|
4251
|
+
export class AdvancedConfigInfo {}
|
|
4252
|
+
|
|
4253
|
+
/**
|
|
4254
|
+
* Local Access Point 配置。
|
|
4255
|
+
*/
|
|
4256
|
+
export class LocalAccessPointConfiguration {}
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* 需录制的视频流类型。
|
|
4260
|
+
*/
|
|
4261
|
+
export let RecorderStreamType = /*#__PURE__*/function (RecorderStreamType) {
|
|
4262
|
+
/**
|
|
4263
|
+
* 0: (默认)频道内的视频流。
|
|
4264
|
+
*/
|
|
4265
|
+
RecorderStreamType[RecorderStreamType["Rtc"] = 0] = "Rtc";
|
|
4266
|
+
/**
|
|
4267
|
+
* 1: 加入频道前,在本地预览的视频流。
|
|
4268
|
+
*/
|
|
4269
|
+
RecorderStreamType[RecorderStreamType["Preview"] = 1] = "Preview";
|
|
4270
|
+
return RecorderStreamType;
|
|
4271
|
+
}({});
|
|
4272
|
+
|
|
4273
|
+
/**
|
|
4274
|
+
* 需录制的音视频流的相关信息。
|
|
4275
|
+
*/
|
|
4276
|
+
export class RecorderStreamInfo {}
|
|
4277
|
+
|
|
4278
|
+
/**
|
|
4279
|
+
* @ignore
|
|
4280
|
+
*/
|
|
4281
|
+
export let RdtStreamType = /*#__PURE__*/function (RdtStreamType) {
|
|
4282
|
+
/**
|
|
4283
|
+
* @ignore
|
|
4284
|
+
*/
|
|
4285
|
+
RdtStreamType[RdtStreamType["RdtStreamCmd"] = 0] = "RdtStreamCmd";
|
|
4286
|
+
/**
|
|
4287
|
+
* @ignore
|
|
4288
|
+
*/
|
|
4289
|
+
RdtStreamType[RdtStreamType["RdtStreamData"] = 1] = "RdtStreamData";
|
|
4290
|
+
/**
|
|
4291
|
+
* @ignore
|
|
4292
|
+
*/
|
|
4293
|
+
RdtStreamType[RdtStreamType["RdtStreamCount"] = 2] = "RdtStreamCount";
|
|
4294
|
+
return RdtStreamType;
|
|
4295
|
+
}({});
|
|
4296
|
+
|
|
4297
|
+
/**
|
|
4298
|
+
* @ignore
|
|
4299
|
+
*/
|
|
4300
|
+
export let RdtState = /*#__PURE__*/function (RdtState) {
|
|
4301
|
+
/**
|
|
4302
|
+
* @ignore
|
|
4303
|
+
*/
|
|
4304
|
+
RdtState[RdtState["RdtStateClosed"] = 0] = "RdtStateClosed";
|
|
4305
|
+
/**
|
|
4306
|
+
* @ignore
|
|
4307
|
+
*/
|
|
4308
|
+
RdtState[RdtState["RdtStateOpened"] = 1] = "RdtStateOpened";
|
|
4309
|
+
/**
|
|
4310
|
+
* @ignore
|
|
4311
|
+
*/
|
|
4312
|
+
RdtState[RdtState["RdtStateBlocked"] = 2] = "RdtStateBlocked";
|
|
4313
|
+
/**
|
|
4314
|
+
* @ignore
|
|
4315
|
+
*/
|
|
4316
|
+
RdtState[RdtState["RdtStatePending"] = 3] = "RdtStatePending";
|
|
4317
|
+
/**
|
|
4318
|
+
* @ignore
|
|
4319
|
+
*/
|
|
4320
|
+
RdtState[RdtState["RdtStateBroken"] = 4] = "RdtStateBroken";
|
|
4321
|
+
return RdtState;
|
|
4322
|
+
}({});
|
|
4323
|
+
|
|
4324
|
+
/**
|
|
4325
|
+
* 空间音频参数。
|
|
4326
|
+
*/
|
|
4327
|
+
export class SpatialAudioParams {}
|
|
4328
|
+
|
|
4329
|
+
/**
|
|
4330
|
+
* 某一路合图子视频流的布局信息。
|
|
4331
|
+
*/
|
|
4332
|
+
export class VideoLayout {}
|
|
4333
|
+
//# sourceMappingURL=AgoraBase.js.map
|