shengwang-electron-sdk 4.6.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +391 -0
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/gulpfile.js +52 -0
- package/js/AgoraSdk.js +54 -0
- package/js/Decoder/gpu-utils.js +74 -0
- package/js/Decoder/index.js +172 -0
- package/js/Private/AgoraBase.js +4292 -0
- package/js/Private/AgoraMediaBase.js +1017 -0
- package/js/Private/AgoraMediaPlayerTypes.js +320 -0
- package/js/Private/IAgoraH265Transcoder.js +36 -0
- package/js/Private/IAgoraLog.js +78 -0
- package/js/Private/IAgoraMediaEngine.js +32 -0
- package/js/Private/IAgoraMediaPlayer.js +16 -0
- package/js/Private/IAgoraMediaPlayerSource.js +3 -0
- package/js/Private/IAgoraMediaRecorder.js +10 -0
- package/js/Private/IAgoraMediaStreamingSource.js +74 -0
- package/js/Private/IAgoraMusicContentCenter.js +160 -0
- package/js/Private/IAgoraRhythmPlayer.js +62 -0
- package/js/Private/IAgoraRtcEngine.js +1042 -0
- package/js/Private/IAgoraRtcEngineEx.js +19 -0
- package/js/Private/IAgoraSpatialAudio.js +24 -0
- package/js/Private/IAudioDeviceManager.js +20 -0
- package/js/Private/extension/AgoraBaseExtension.js +3 -0
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/extension/IAgoraLogExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
- package/js/Private/impl/AgoraBaseImpl.js +23 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +960 -0
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +1178 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +5428 -0
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
- package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
- package/js/Private/internal/IrisApiEngine.js +451 -0
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
- package/js/Private/internal/MediaEngineInternal.js +122 -0
- package/js/Private/internal/MediaPlayerInternal.js +194 -0
- package/js/Private/internal/MediaRecorderInternal.js +70 -0
- package/js/Private/internal/MusicContentCenterInternal.js +139 -0
- package/js/Private/internal/RtcEngineExInternal.js +488 -0
- package/js/Private/ipc/main.js +21 -0
- package/js/Private/ipc/renderer.js +21 -0
- package/js/Private/ti/AgoraBase-ti.js +40 -0
- package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraLog-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
- package/js/Private/ti/IAgoraRtcEngine-ti.js +144 -0
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
- package/js/Renderer/AgoraView.js +178 -0
- package/js/Renderer/CapabilityManager.js +99 -0
- package/js/Renderer/IRenderer.js +139 -0
- package/js/Renderer/IRendererCache.js +91 -0
- package/js/Renderer/RendererCache.js +252 -0
- package/js/Renderer/RendererManager.js +250 -0
- package/js/Renderer/WebCodecsRenderer/index.js +109 -0
- package/js/Renderer/WebCodecsRendererCache.js +127 -0
- package/js/Renderer/WebGLRenderer/index.js +467 -0
- package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
- package/js/Renderer/YUVCanvasRenderer/index.js +53 -0
- package/js/Renderer/index.js +17 -0
- package/js/Types.js +67 -0
- package/js/Utils.js +187 -0
- package/package.json +168 -0
- package/scripts/bootstrap.js +29 -0
- package/scripts/build.js +37 -0
- package/scripts/buildJS.js +14 -0
- package/scripts/checkElectron.js +43 -0
- package/scripts/clean.js +16 -0
- package/scripts/download.js +102 -0
- package/scripts/downloadPrebuild.js +199 -0
- package/scripts/getConfig.js +73 -0
- package/scripts/logger.js +32 -0
- package/scripts/synclib.js +69 -0
- package/scripts/util.js +47 -0
- package/scripts/zipBuild.js +40 -0
- package/ts/AgoraSdk.ts +44 -0
- package/ts/Decoder/gpu-utils.ts +92 -0
- package/ts/Decoder/index.ts +210 -0
- package/ts/Private/AgoraBase.ts +5941 -0
- package/ts/Private/AgoraMediaBase.ts +1814 -0
- package/ts/Private/AgoraMediaPlayerTypes.ts +467 -0
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +93 -0
- package/ts/Private/IAgoraMediaEngine.ts +321 -0
- package/ts/Private/IAgoraMediaPlayer.ts +759 -0
- package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
- package/ts/Private/IAgoraMediaRecorder.ts +65 -0
- package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +676 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
- package/ts/Private/IAgoraRtcEngine.ts +7909 -0
- package/ts/Private/IAgoraRtcEngineEx.ts +1138 -0
- package/ts/Private/IAgoraSpatialAudio.ts +248 -0
- package/ts/Private/IAudioDeviceManager.ts +351 -0
- package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
- package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
- package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
- package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +238 -0
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1181 -0
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1912 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7738 -0
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
- package/ts/Private/internal/IrisApiEngine.ts +627 -0
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/ts/Private/internal/MediaEngineInternal.ts +190 -0
- package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
- package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +720 -0
- package/ts/Private/ipc/main.ts +22 -0
- package/ts/Private/ipc/renderer.ts +21 -0
- package/ts/Private/ti/AgoraBase-ti.ts +16 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
- package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +122 -0
- package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
- package/ts/Renderer/AgoraView.ts +264 -0
- package/ts/Renderer/CapabilityManager.ts +126 -0
- package/ts/Renderer/IRenderer.ts +163 -0
- package/ts/Renderer/IRendererCache.ts +130 -0
- package/ts/Renderer/RendererCache.ts +323 -0
- package/ts/Renderer/RendererManager.ts +322 -0
- package/ts/Renderer/WebCodecsRenderer/index.ts +148 -0
- package/ts/Renderer/WebCodecsRendererCache.ts +153 -0
- package/ts/Renderer/WebGLRenderer/index.ts +695 -0
- package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
- package/ts/Renderer/YUVCanvasRenderer/index.ts +80 -0
- package/ts/Renderer/index.ts +1 -0
- package/ts/Types.ts +254 -0
- package/ts/Utils.ts +198 -0
- package/types/AgoraSdk.d.ts +30 -0
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Decoder/gpu-utils.d.ts +21 -0
- package/types/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/Decoder/index.d.ts +26 -0
- package/types/Decoder/index.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +5728 -0
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1717 -0
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +456 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +91 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +255 -0
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +662 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +60 -0
- package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts +602 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +6640 -0
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +847 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +194 -0
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +321 -0
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +145 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +128 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +656 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +69 -0
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +77 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/Private/ipc/main.d.ts +2 -0
- package/types/Private/ipc/main.d.ts.map +1 -0
- package/types/Private/ipc/renderer.d.ts +3 -0
- package/types/Private/ipc/renderer.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +82 -0
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/CapabilityManager.d.ts +20 -0
- package/types/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +20 -0
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererCache.d.ts +47 -0
- package/types/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererCache.d.ts +51 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +53 -0
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts +22 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/index.d.ts +37 -0
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +10 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +2 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +182 -0
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +50 -0
- package/types/Utils.d.ts.map +1 -0
|
@@ -0,0 +1,1017 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.SnapshotConfig = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.AlphaStitchMode = exports.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.AudioSourceType = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
4
|
+
require("./extension/AgoraMediaBaseExtension");
|
|
5
|
+
/**
|
|
6
|
+
* 插件上下文信息。
|
|
7
|
+
*/
|
|
8
|
+
class ExtensionContext {
|
|
9
|
+
}
|
|
10
|
+
exports.ExtensionContext = ExtensionContext;
|
|
11
|
+
/**
|
|
12
|
+
* 视频源的类型。
|
|
13
|
+
*/
|
|
14
|
+
var VideoSourceType;
|
|
15
|
+
(function (VideoSourceType) {
|
|
16
|
+
/**
|
|
17
|
+
* 0:(默认)视频源为第一个摄像头。
|
|
18
|
+
*/
|
|
19
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraPrimary"] = 0] = "VideoSourceCameraPrimary";
|
|
20
|
+
/**
|
|
21
|
+
* 0:(默认)视频源为第一个摄像头。
|
|
22
|
+
*/
|
|
23
|
+
VideoSourceType[VideoSourceType["VideoSourceCamera"] = 0] = "VideoSourceCamera";
|
|
24
|
+
/**
|
|
25
|
+
* 1:视频源为第二个摄像头。
|
|
26
|
+
*/
|
|
27
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraSecondary"] = 1] = "VideoSourceCameraSecondary";
|
|
28
|
+
/**
|
|
29
|
+
* 2:视频源为第一个屏幕。
|
|
30
|
+
*/
|
|
31
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenPrimary"] = 2] = "VideoSourceScreenPrimary";
|
|
32
|
+
/**
|
|
33
|
+
* 2:视频源为第一个屏幕。
|
|
34
|
+
*/
|
|
35
|
+
VideoSourceType[VideoSourceType["VideoSourceScreen"] = 2] = "VideoSourceScreen";
|
|
36
|
+
/**
|
|
37
|
+
* 3:视频源为第二个屏幕。
|
|
38
|
+
*/
|
|
39
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenSecondary"] = 3] = "VideoSourceScreenSecondary";
|
|
40
|
+
/**
|
|
41
|
+
* 4:自定义的视频源。
|
|
42
|
+
*/
|
|
43
|
+
VideoSourceType[VideoSourceType["VideoSourceCustom"] = 4] = "VideoSourceCustom";
|
|
44
|
+
/**
|
|
45
|
+
* 5:视频源为媒体播放器。
|
|
46
|
+
*/
|
|
47
|
+
VideoSourceType[VideoSourceType["VideoSourceMediaPlayer"] = 5] = "VideoSourceMediaPlayer";
|
|
48
|
+
/**
|
|
49
|
+
* 6:视频源为 PNG 图片。
|
|
50
|
+
*/
|
|
51
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImagePng"] = 6] = "VideoSourceRtcImagePng";
|
|
52
|
+
/**
|
|
53
|
+
* 7:视频源为 JPEG 图片。
|
|
54
|
+
*/
|
|
55
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImageJpeg"] = 7] = "VideoSourceRtcImageJpeg";
|
|
56
|
+
/**
|
|
57
|
+
* 8:视频源为 GIF 图片。
|
|
58
|
+
*/
|
|
59
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImageGif"] = 8] = "VideoSourceRtcImageGif";
|
|
60
|
+
/**
|
|
61
|
+
* 9:视频源为网络获取的远端视频。
|
|
62
|
+
*/
|
|
63
|
+
VideoSourceType[VideoSourceType["VideoSourceRemote"] = 9] = "VideoSourceRemote";
|
|
64
|
+
/**
|
|
65
|
+
* 10:转码后的视频源。
|
|
66
|
+
*/
|
|
67
|
+
VideoSourceType[VideoSourceType["VideoSourceTranscoded"] = 10] = "VideoSourceTranscoded";
|
|
68
|
+
/**
|
|
69
|
+
* 11:视频源为第三个摄像头。
|
|
70
|
+
*/
|
|
71
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraThird"] = 11] = "VideoSourceCameraThird";
|
|
72
|
+
/**
|
|
73
|
+
* 12:视频源为第四个摄像头。
|
|
74
|
+
*/
|
|
75
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraFourth"] = 12] = "VideoSourceCameraFourth";
|
|
76
|
+
/**
|
|
77
|
+
* 13:视频源为第三个屏幕。
|
|
78
|
+
*/
|
|
79
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenThird"] = 13] = "VideoSourceScreenThird";
|
|
80
|
+
/**
|
|
81
|
+
* 14:视频源为第四个屏幕。
|
|
82
|
+
*/
|
|
83
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenFourth"] = 14] = "VideoSourceScreenFourth";
|
|
84
|
+
/**
|
|
85
|
+
* 15:视频源为语音驱动插件处理后的视频。
|
|
86
|
+
*/
|
|
87
|
+
VideoSourceType[VideoSourceType["VideoSourceSpeechDriven"] = 15] = "VideoSourceSpeechDriven";
|
|
88
|
+
/**
|
|
89
|
+
* 100:未知的视频源。
|
|
90
|
+
*/
|
|
91
|
+
VideoSourceType[VideoSourceType["VideoSourceUnknown"] = 100] = "VideoSourceUnknown";
|
|
92
|
+
})(VideoSourceType = exports.VideoSourceType || (exports.VideoSourceType = {}));
|
|
93
|
+
/**
|
|
94
|
+
* 音频源类型。
|
|
95
|
+
*/
|
|
96
|
+
var AudioSourceType;
|
|
97
|
+
(function (AudioSourceType) {
|
|
98
|
+
/**
|
|
99
|
+
* 0:(默认)麦克风。
|
|
100
|
+
*/
|
|
101
|
+
AudioSourceType[AudioSourceType["AudioSourceMicrophone"] = 0] = "AudioSourceMicrophone";
|
|
102
|
+
/**
|
|
103
|
+
* 1:自定义采集到的音频流。
|
|
104
|
+
*/
|
|
105
|
+
AudioSourceType[AudioSourceType["AudioSourceCustom"] = 1] = "AudioSourceCustom";
|
|
106
|
+
/**
|
|
107
|
+
* 2:媒体播放器。
|
|
108
|
+
*/
|
|
109
|
+
AudioSourceType[AudioSourceType["AudioSourceMediaPlayer"] = 2] = "AudioSourceMediaPlayer";
|
|
110
|
+
/**
|
|
111
|
+
* 3:在屏幕共享时采集的系统音频流。
|
|
112
|
+
*/
|
|
113
|
+
AudioSourceType[AudioSourceType["AudioSourceLoopbackRecording"] = 3] = "AudioSourceLoopbackRecording";
|
|
114
|
+
/**
|
|
115
|
+
* @ignore
|
|
116
|
+
*/
|
|
117
|
+
AudioSourceType[AudioSourceType["AudioSourceMixedStream"] = 4] = "AudioSourceMixedStream";
|
|
118
|
+
/**
|
|
119
|
+
* 5:指定远端用户的音频流。
|
|
120
|
+
*/
|
|
121
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteUser"] = 5] = "AudioSourceRemoteUser";
|
|
122
|
+
/**
|
|
123
|
+
* 6:当前频道内所有音频流的合流。
|
|
124
|
+
*/
|
|
125
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteChannel"] = 6] = "AudioSourceRemoteChannel";
|
|
126
|
+
/**
|
|
127
|
+
* 100:未知的音频源。
|
|
128
|
+
*/
|
|
129
|
+
AudioSourceType[AudioSourceType["AudioSourceUnknown"] = 100] = "AudioSourceUnknown";
|
|
130
|
+
})(AudioSourceType = exports.AudioSourceType || (exports.AudioSourceType = {}));
|
|
131
|
+
/**
|
|
132
|
+
* 音频路由的类型。
|
|
133
|
+
*/
|
|
134
|
+
var AudioRoute;
|
|
135
|
+
(function (AudioRoute) {
|
|
136
|
+
/**
|
|
137
|
+
* -1: 使用默认的音频路由。
|
|
138
|
+
*/
|
|
139
|
+
AudioRoute[AudioRoute["RouteDefault"] = -1] = "RouteDefault";
|
|
140
|
+
/**
|
|
141
|
+
* 0: 音频路由为带麦克风的耳机。
|
|
142
|
+
*/
|
|
143
|
+
AudioRoute[AudioRoute["RouteHeadset"] = 0] = "RouteHeadset";
|
|
144
|
+
/**
|
|
145
|
+
* 1: 音频路由为听筒。
|
|
146
|
+
*/
|
|
147
|
+
AudioRoute[AudioRoute["RouteEarpiece"] = 1] = "RouteEarpiece";
|
|
148
|
+
/**
|
|
149
|
+
* 2: 音频路由为不带麦克风的耳机。
|
|
150
|
+
*/
|
|
151
|
+
AudioRoute[AudioRoute["RouteHeadsetnomic"] = 2] = "RouteHeadsetnomic";
|
|
152
|
+
/**
|
|
153
|
+
* 3: 音频路由为设备自带的扬声器。
|
|
154
|
+
*/
|
|
155
|
+
AudioRoute[AudioRoute["RouteSpeakerphone"] = 3] = "RouteSpeakerphone";
|
|
156
|
+
/**
|
|
157
|
+
* 4: 音频路由为外接的扬声器。(仅适用于 macOS)
|
|
158
|
+
*/
|
|
159
|
+
AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
|
|
160
|
+
/**
|
|
161
|
+
* 5: 音频路由为使用 HFP 协议的蓝牙设备。
|
|
162
|
+
*/
|
|
163
|
+
AudioRoute[AudioRoute["RouteBluetoothDeviceHfp"] = 5] = "RouteBluetoothDeviceHfp";
|
|
164
|
+
/**
|
|
165
|
+
* 6: 音频路由为 USB 外围设备。(仅适用于 macOS)
|
|
166
|
+
*/
|
|
167
|
+
AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
|
|
168
|
+
/**
|
|
169
|
+
* 7: 音频路由为 HDMI 外围设备。(仅适用于 macOS)
|
|
170
|
+
*/
|
|
171
|
+
AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
|
|
172
|
+
/**
|
|
173
|
+
* 8: 音频路由为 DisplayPort 外围设备。(仅适用于 macOS)
|
|
174
|
+
*/
|
|
175
|
+
AudioRoute[AudioRoute["RouteDisplayport"] = 8] = "RouteDisplayport";
|
|
176
|
+
/**
|
|
177
|
+
* 9: 音频路由为 Apple AirPlay。(仅适用于 macOS)
|
|
178
|
+
*/
|
|
179
|
+
AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
|
|
180
|
+
/**
|
|
181
|
+
* 10: 音频路由为使用 A2DP 协议的蓝牙设备。
|
|
182
|
+
*/
|
|
183
|
+
AudioRoute[AudioRoute["RouteBluetoothDeviceA2dp"] = 10] = "RouteBluetoothDeviceA2dp";
|
|
184
|
+
})(AudioRoute = exports.AudioRoute || (exports.AudioRoute = {}));
|
|
185
|
+
/**
|
|
186
|
+
* @ignore
|
|
187
|
+
*/
|
|
188
|
+
var BytesPerSample;
|
|
189
|
+
(function (BytesPerSample) {
|
|
190
|
+
/**
|
|
191
|
+
* @ignore
|
|
192
|
+
*/
|
|
193
|
+
BytesPerSample[BytesPerSample["TwoBytesPerSample"] = 2] = "TwoBytesPerSample";
|
|
194
|
+
})(BytesPerSample = exports.BytesPerSample || (exports.BytesPerSample = {}));
|
|
195
|
+
/**
|
|
196
|
+
* @ignore
|
|
197
|
+
*/
|
|
198
|
+
class AudioParameters {
|
|
199
|
+
}
|
|
200
|
+
exports.AudioParameters = AudioParameters;
|
|
201
|
+
/**
|
|
202
|
+
* 音频数据的使用模式。
|
|
203
|
+
*/
|
|
204
|
+
var RawAudioFrameOpModeType;
|
|
205
|
+
(function (RawAudioFrameOpModeType) {
|
|
206
|
+
/**
|
|
207
|
+
* 0: (默认) 只读模式,用户仅获取 SDK 返回的原始数据,不作任何修改。例如: 若用户通过 SDK 采集数据,自己进行旁路推流,则可以选择该模式。
|
|
208
|
+
*/
|
|
209
|
+
RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadOnly"] = 0] = "RawAudioFrameOpModeReadOnly";
|
|
210
|
+
/**
|
|
211
|
+
* 2: 读写模式, 用户修改 SDK 返回的原始视频,并返回给 SDK 进行编码传输。例如: 若用户自己有音效处理模块,且想要根据实际需要对数据进行前处理(例如变声),则可以选择该模式。
|
|
212
|
+
*/
|
|
213
|
+
RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadWrite"] = 2] = "RawAudioFrameOpModeReadWrite";
|
|
214
|
+
})(RawAudioFrameOpModeType = exports.RawAudioFrameOpModeType || (exports.RawAudioFrameOpModeType = {}));
|
|
215
|
+
/**
|
|
216
|
+
* 媒体源类型。
|
|
217
|
+
*/
|
|
218
|
+
var MediaSourceType;
|
|
219
|
+
(function (MediaSourceType) {
|
|
220
|
+
/**
|
|
221
|
+
* 0: 音频播放设备。
|
|
222
|
+
*/
|
|
223
|
+
MediaSourceType[MediaSourceType["AudioPlayoutSource"] = 0] = "AudioPlayoutSource";
|
|
224
|
+
/**
|
|
225
|
+
* 1: 音频采集设备。
|
|
226
|
+
*/
|
|
227
|
+
MediaSourceType[MediaSourceType["AudioRecordingSource"] = 1] = "AudioRecordingSource";
|
|
228
|
+
/**
|
|
229
|
+
* 2: 第一个摄像头
|
|
230
|
+
*/
|
|
231
|
+
MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
|
|
232
|
+
/**
|
|
233
|
+
* 3: 第二个摄像头。
|
|
234
|
+
*/
|
|
235
|
+
MediaSourceType[MediaSourceType["SecondaryCameraSource"] = 3] = "SecondaryCameraSource";
|
|
236
|
+
/**
|
|
237
|
+
* @ignore
|
|
238
|
+
*/
|
|
239
|
+
MediaSourceType[MediaSourceType["PrimaryScreenSource"] = 4] = "PrimaryScreenSource";
|
|
240
|
+
/**
|
|
241
|
+
* @ignore
|
|
242
|
+
*/
|
|
243
|
+
MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
|
|
244
|
+
/**
|
|
245
|
+
* 6: 自定义采集的视频源。
|
|
246
|
+
*/
|
|
247
|
+
MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
|
|
248
|
+
/**
|
|
249
|
+
* @ignore
|
|
250
|
+
*/
|
|
251
|
+
MediaSourceType[MediaSourceType["MediaPlayerSource"] = 7] = "MediaPlayerSource";
|
|
252
|
+
/**
|
|
253
|
+
* @ignore
|
|
254
|
+
*/
|
|
255
|
+
MediaSourceType[MediaSourceType["RtcImagePngSource"] = 8] = "RtcImagePngSource";
|
|
256
|
+
/**
|
|
257
|
+
* @ignore
|
|
258
|
+
*/
|
|
259
|
+
MediaSourceType[MediaSourceType["RtcImageJpegSource"] = 9] = "RtcImageJpegSource";
|
|
260
|
+
/**
|
|
261
|
+
* @ignore
|
|
262
|
+
*/
|
|
263
|
+
MediaSourceType[MediaSourceType["RtcImageGifSource"] = 10] = "RtcImageGifSource";
|
|
264
|
+
/**
|
|
265
|
+
* @ignore
|
|
266
|
+
*/
|
|
267
|
+
MediaSourceType[MediaSourceType["RemoteVideoSource"] = 11] = "RemoteVideoSource";
|
|
268
|
+
/**
|
|
269
|
+
* @ignore
|
|
270
|
+
*/
|
|
271
|
+
MediaSourceType[MediaSourceType["TranscodedVideoSource"] = 12] = "TranscodedVideoSource";
|
|
272
|
+
/**
|
|
273
|
+
* 13: 视频源为语音驱动插件处理后的视频。
|
|
274
|
+
*/
|
|
275
|
+
MediaSourceType[MediaSourceType["SpeechDrivenVideoSource"] = 13] = "SpeechDrivenVideoSource";
|
|
276
|
+
/**
|
|
277
|
+
* 100: 未知媒体源。
|
|
278
|
+
*/
|
|
279
|
+
MediaSourceType[MediaSourceType["UnknownMediaSource"] = 100] = "UnknownMediaSource";
|
|
280
|
+
})(MediaSourceType = exports.MediaSourceType || (exports.MediaSourceType = {}));
|
|
281
|
+
/**
|
|
282
|
+
* @ignore
|
|
283
|
+
*/
|
|
284
|
+
class PacketOptions {
|
|
285
|
+
}
|
|
286
|
+
exports.PacketOptions = PacketOptions;
|
|
287
|
+
/**
|
|
288
|
+
* @ignore
|
|
289
|
+
*/
|
|
290
|
+
class AudioEncodedFrameInfo {
|
|
291
|
+
}
|
|
292
|
+
exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
|
|
293
|
+
/**
|
|
294
|
+
* 外部 PCM 格式音频帧的信息。
|
|
295
|
+
*/
|
|
296
|
+
class AudioPcmFrame {
|
|
297
|
+
}
|
|
298
|
+
exports.AudioPcmFrame = AudioPcmFrame;
|
|
299
|
+
/**
|
|
300
|
+
* 声道模式。
|
|
301
|
+
*/
|
|
302
|
+
var AudioDualMonoMode;
|
|
303
|
+
(function (AudioDualMonoMode) {
|
|
304
|
+
/**
|
|
305
|
+
* 0: 原始模式。
|
|
306
|
+
*/
|
|
307
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoStereo"] = 0] = "AudioDualMonoStereo";
|
|
308
|
+
/**
|
|
309
|
+
* 1: 左声道模式。该模式用左声道的音频替换右声道的音频,即用户只能听到左声道的音频。
|
|
310
|
+
*/
|
|
311
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoL"] = 1] = "AudioDualMonoL";
|
|
312
|
+
/**
|
|
313
|
+
* 2: 右声道模式。该模式用右声道的音频替换左声道的音频,即用户只能听到右声道的音频。
|
|
314
|
+
*/
|
|
315
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoR"] = 2] = "AudioDualMonoR";
|
|
316
|
+
/**
|
|
317
|
+
* 3: 混合模式。该模式将左右声道的数据叠加,即用户能同时听到左声道和右声道的音频。
|
|
318
|
+
*/
|
|
319
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoMix"] = 3] = "AudioDualMonoMix";
|
|
320
|
+
})(AudioDualMonoMode = exports.AudioDualMonoMode || (exports.AudioDualMonoMode = {}));
|
|
321
|
+
/**
|
|
322
|
+
* 视频像素格式。
|
|
323
|
+
*/
|
|
324
|
+
var VideoPixelFormat;
|
|
325
|
+
(function (VideoPixelFormat) {
|
|
326
|
+
/**
|
|
327
|
+
* 0: 原始视频像素格式。
|
|
328
|
+
*/
|
|
329
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelDefault"] = 0] = "VideoPixelDefault";
|
|
330
|
+
/**
|
|
331
|
+
* 1: I420 格式。
|
|
332
|
+
*/
|
|
333
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI420"] = 1] = "VideoPixelI420";
|
|
334
|
+
/**
|
|
335
|
+
* @ignore
|
|
336
|
+
*/
|
|
337
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelBgra"] = 2] = "VideoPixelBgra";
|
|
338
|
+
/**
|
|
339
|
+
* @ignore
|
|
340
|
+
*/
|
|
341
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelNv21"] = 3] = "VideoPixelNv21";
|
|
342
|
+
/**
|
|
343
|
+
* 4: RGBA 格式。
|
|
344
|
+
*/
|
|
345
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelRgba"] = 4] = "VideoPixelRgba";
|
|
346
|
+
/**
|
|
347
|
+
* @ignore
|
|
348
|
+
*/
|
|
349
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelNv12"] = 8] = "VideoPixelNv12";
|
|
350
|
+
/**
|
|
351
|
+
* @ignore
|
|
352
|
+
*/
|
|
353
|
+
VideoPixelFormat[VideoPixelFormat["VideoTexture2d"] = 10] = "VideoTexture2d";
|
|
354
|
+
/**
|
|
355
|
+
* @ignore
|
|
356
|
+
*/
|
|
357
|
+
VideoPixelFormat[VideoPixelFormat["VideoTextureOes"] = 11] = "VideoTextureOes";
|
|
358
|
+
/**
|
|
359
|
+
* @ignore
|
|
360
|
+
*/
|
|
361
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelNv12"] = 12] = "VideoCvpixelNv12";
|
|
362
|
+
/**
|
|
363
|
+
* @ignore
|
|
364
|
+
*/
|
|
365
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelI420"] = 13] = "VideoCvpixelI420";
|
|
366
|
+
/**
|
|
367
|
+
* @ignore
|
|
368
|
+
*/
|
|
369
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
|
|
370
|
+
/**
|
|
371
|
+
* @ignore
|
|
372
|
+
*/
|
|
373
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelP010"] = 15] = "VideoCvpixelP010";
|
|
374
|
+
/**
|
|
375
|
+
* 16: I422 格式。
|
|
376
|
+
*/
|
|
377
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI422"] = 16] = "VideoPixelI422";
|
|
378
|
+
/**
|
|
379
|
+
* @ignore
|
|
380
|
+
*/
|
|
381
|
+
VideoPixelFormat[VideoPixelFormat["VideoTextureId3d11texture2d"] = 17] = "VideoTextureId3d11texture2d";
|
|
382
|
+
/**
|
|
383
|
+
* @ignore
|
|
384
|
+
*/
|
|
385
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI010"] = 18] = "VideoPixelI010";
|
|
386
|
+
})(VideoPixelFormat = exports.VideoPixelFormat || (exports.VideoPixelFormat = {}));
|
|
387
|
+
/**
|
|
388
|
+
* 视频显示模式。
|
|
389
|
+
*/
|
|
390
|
+
var RenderModeType;
|
|
391
|
+
(function (RenderModeType) {
|
|
392
|
+
/**
|
|
393
|
+
* 1: 视频尺寸等比缩放。优先保证视窗被填满。因视频尺寸与显示视窗尺寸不一致而多出的视频将被截掉。
|
|
394
|
+
*/
|
|
395
|
+
RenderModeType[RenderModeType["RenderModeHidden"] = 1] = "RenderModeHidden";
|
|
396
|
+
/**
|
|
397
|
+
* 2: 视频尺寸等比缩放。优先保证视频内容全部显示。因视频尺寸与显示视窗尺寸不一致造成的视窗未被填满的区域填充黑色。
|
|
398
|
+
*/
|
|
399
|
+
RenderModeType[RenderModeType["RenderModeFit"] = 2] = "RenderModeFit";
|
|
400
|
+
/**
|
|
401
|
+
* @ignore
|
|
402
|
+
*/
|
|
403
|
+
RenderModeType[RenderModeType["RenderModeAdaptive"] = 3] = "RenderModeAdaptive";
|
|
404
|
+
})(RenderModeType = exports.RenderModeType || (exports.RenderModeType = {}));
|
|
405
|
+
/**
|
|
406
|
+
* @ignore
|
|
407
|
+
*/
|
|
408
|
+
var CameraVideoSourceType;
|
|
409
|
+
(function (CameraVideoSourceType) {
|
|
410
|
+
/**
|
|
411
|
+
* @ignore
|
|
412
|
+
*/
|
|
413
|
+
CameraVideoSourceType[CameraVideoSourceType["CameraSourceFront"] = 0] = "CameraSourceFront";
|
|
414
|
+
/**
|
|
415
|
+
* @ignore
|
|
416
|
+
*/
|
|
417
|
+
CameraVideoSourceType[CameraVideoSourceType["CameraSourceBack"] = 1] = "CameraSourceBack";
|
|
418
|
+
/**
|
|
419
|
+
* @ignore
|
|
420
|
+
*/
|
|
421
|
+
CameraVideoSourceType[CameraVideoSourceType["VideoSourceUnspecified"] = 2] = "VideoSourceUnspecified";
|
|
422
|
+
})(CameraVideoSourceType = exports.CameraVideoSourceType || (exports.CameraVideoSourceType = {}));
|
|
423
|
+
/**
|
|
424
|
+
* @ignore
|
|
425
|
+
*/
|
|
426
|
+
var MetaInfoKey;
|
|
427
|
+
(function (MetaInfoKey) {
|
|
428
|
+
/**
|
|
429
|
+
* @ignore
|
|
430
|
+
*/
|
|
431
|
+
MetaInfoKey[MetaInfoKey["KeyFaceCapture"] = 0] = "KeyFaceCapture";
|
|
432
|
+
})(MetaInfoKey = exports.MetaInfoKey || (exports.MetaInfoKey = {}));
|
|
433
|
+
/**
|
|
434
|
+
* @ignore
|
|
435
|
+
*/
|
|
436
|
+
class IVideoFrameMetaInfo {
|
|
437
|
+
}
|
|
438
|
+
exports.IVideoFrameMetaInfo = IVideoFrameMetaInfo;
|
|
439
|
+
/**
|
|
440
|
+
* @ignore
|
|
441
|
+
*/
|
|
442
|
+
var PrimaryID;
|
|
443
|
+
(function (PrimaryID) {
|
|
444
|
+
/**
|
|
445
|
+
* @ignore
|
|
446
|
+
*/
|
|
447
|
+
PrimaryID[PrimaryID["PrimaryidBt709"] = 1] = "PrimaryidBt709";
|
|
448
|
+
/**
|
|
449
|
+
* @ignore
|
|
450
|
+
*/
|
|
451
|
+
PrimaryID[PrimaryID["PrimaryidUnspecified"] = 2] = "PrimaryidUnspecified";
|
|
452
|
+
/**
|
|
453
|
+
* @ignore
|
|
454
|
+
*/
|
|
455
|
+
PrimaryID[PrimaryID["PrimaryidBt470m"] = 4] = "PrimaryidBt470m";
|
|
456
|
+
/**
|
|
457
|
+
* @ignore
|
|
458
|
+
*/
|
|
459
|
+
PrimaryID[PrimaryID["PrimaryidBt470bg"] = 5] = "PrimaryidBt470bg";
|
|
460
|
+
/**
|
|
461
|
+
* @ignore
|
|
462
|
+
*/
|
|
463
|
+
PrimaryID[PrimaryID["PrimaryidSmpte170m"] = 6] = "PrimaryidSmpte170m";
|
|
464
|
+
/**
|
|
465
|
+
* @ignore
|
|
466
|
+
*/
|
|
467
|
+
PrimaryID[PrimaryID["PrimaryidSmpte240m"] = 7] = "PrimaryidSmpte240m";
|
|
468
|
+
/**
|
|
469
|
+
* @ignore
|
|
470
|
+
*/
|
|
471
|
+
PrimaryID[PrimaryID["PrimaryidFilm"] = 8] = "PrimaryidFilm";
|
|
472
|
+
/**
|
|
473
|
+
* @ignore
|
|
474
|
+
*/
|
|
475
|
+
PrimaryID[PrimaryID["PrimaryidBt2020"] = 9] = "PrimaryidBt2020";
|
|
476
|
+
/**
|
|
477
|
+
* @ignore
|
|
478
|
+
*/
|
|
479
|
+
PrimaryID[PrimaryID["PrimaryidSmptest428"] = 10] = "PrimaryidSmptest428";
|
|
480
|
+
/**
|
|
481
|
+
* @ignore
|
|
482
|
+
*/
|
|
483
|
+
PrimaryID[PrimaryID["PrimaryidSmptest431"] = 11] = "PrimaryidSmptest431";
|
|
484
|
+
/**
|
|
485
|
+
* @ignore
|
|
486
|
+
*/
|
|
487
|
+
PrimaryID[PrimaryID["PrimaryidSmptest432"] = 12] = "PrimaryidSmptest432";
|
|
488
|
+
/**
|
|
489
|
+
* @ignore
|
|
490
|
+
*/
|
|
491
|
+
PrimaryID[PrimaryID["PrimaryidJedecp22"] = 22] = "PrimaryidJedecp22";
|
|
492
|
+
})(PrimaryID = exports.PrimaryID || (exports.PrimaryID = {}));
|
|
493
|
+
/**
|
|
494
|
+
* @ignore
|
|
495
|
+
*/
|
|
496
|
+
var RangeID;
|
|
497
|
+
(function (RangeID) {
|
|
498
|
+
/**
|
|
499
|
+
* @ignore
|
|
500
|
+
*/
|
|
501
|
+
RangeID[RangeID["RangeidInvalid"] = 0] = "RangeidInvalid";
|
|
502
|
+
/**
|
|
503
|
+
* @ignore
|
|
504
|
+
*/
|
|
505
|
+
RangeID[RangeID["RangeidLimited"] = 1] = "RangeidLimited";
|
|
506
|
+
/**
|
|
507
|
+
* @ignore
|
|
508
|
+
*/
|
|
509
|
+
RangeID[RangeID["RangeidFull"] = 2] = "RangeidFull";
|
|
510
|
+
/**
|
|
511
|
+
* @ignore
|
|
512
|
+
*/
|
|
513
|
+
RangeID[RangeID["RangeidDerived"] = 3] = "RangeidDerived";
|
|
514
|
+
})(RangeID = exports.RangeID || (exports.RangeID = {}));
|
|
515
|
+
/**
|
|
516
|
+
* @ignore
|
|
517
|
+
*/
|
|
518
|
+
var MatrixID;
|
|
519
|
+
(function (MatrixID) {
|
|
520
|
+
/**
|
|
521
|
+
* @ignore
|
|
522
|
+
*/
|
|
523
|
+
MatrixID[MatrixID["MatrixidRgb"] = 0] = "MatrixidRgb";
|
|
524
|
+
/**
|
|
525
|
+
* @ignore
|
|
526
|
+
*/
|
|
527
|
+
MatrixID[MatrixID["MatrixidBt709"] = 1] = "MatrixidBt709";
|
|
528
|
+
/**
|
|
529
|
+
* @ignore
|
|
530
|
+
*/
|
|
531
|
+
MatrixID[MatrixID["MatrixidUnspecified"] = 2] = "MatrixidUnspecified";
|
|
532
|
+
/**
|
|
533
|
+
* @ignore
|
|
534
|
+
*/
|
|
535
|
+
MatrixID[MatrixID["MatrixidFcc"] = 4] = "MatrixidFcc";
|
|
536
|
+
/**
|
|
537
|
+
* @ignore
|
|
538
|
+
*/
|
|
539
|
+
MatrixID[MatrixID["MatrixidBt470bg"] = 5] = "MatrixidBt470bg";
|
|
540
|
+
/**
|
|
541
|
+
* @ignore
|
|
542
|
+
*/
|
|
543
|
+
MatrixID[MatrixID["MatrixidSmpte170m"] = 6] = "MatrixidSmpte170m";
|
|
544
|
+
/**
|
|
545
|
+
* @ignore
|
|
546
|
+
*/
|
|
547
|
+
MatrixID[MatrixID["MatrixidSmpte240m"] = 7] = "MatrixidSmpte240m";
|
|
548
|
+
/**
|
|
549
|
+
* @ignore
|
|
550
|
+
*/
|
|
551
|
+
MatrixID[MatrixID["MatrixidYcocg"] = 8] = "MatrixidYcocg";
|
|
552
|
+
/**
|
|
553
|
+
* @ignore
|
|
554
|
+
*/
|
|
555
|
+
MatrixID[MatrixID["MatrixidBt2020Ncl"] = 9] = "MatrixidBt2020Ncl";
|
|
556
|
+
/**
|
|
557
|
+
* @ignore
|
|
558
|
+
*/
|
|
559
|
+
MatrixID[MatrixID["MatrixidBt2020Cl"] = 10] = "MatrixidBt2020Cl";
|
|
560
|
+
/**
|
|
561
|
+
* @ignore
|
|
562
|
+
*/
|
|
563
|
+
MatrixID[MatrixID["MatrixidSmpte2085"] = 11] = "MatrixidSmpte2085";
|
|
564
|
+
/**
|
|
565
|
+
* @ignore
|
|
566
|
+
*/
|
|
567
|
+
MatrixID[MatrixID["MatrixidCdncls"] = 12] = "MatrixidCdncls";
|
|
568
|
+
/**
|
|
569
|
+
* @ignore
|
|
570
|
+
*/
|
|
571
|
+
MatrixID[MatrixID["MatrixidCdcls"] = 13] = "MatrixidCdcls";
|
|
572
|
+
/**
|
|
573
|
+
* @ignore
|
|
574
|
+
*/
|
|
575
|
+
MatrixID[MatrixID["MatrixidBt2100Ictcp"] = 14] = "MatrixidBt2100Ictcp";
|
|
576
|
+
})(MatrixID = exports.MatrixID || (exports.MatrixID = {}));
|
|
577
|
+
/**
|
|
578
|
+
* @ignore
|
|
579
|
+
*/
|
|
580
|
+
var TransferID;
|
|
581
|
+
(function (TransferID) {
|
|
582
|
+
/**
|
|
583
|
+
* @ignore
|
|
584
|
+
*/
|
|
585
|
+
TransferID[TransferID["TransferidBt709"] = 1] = "TransferidBt709";
|
|
586
|
+
/**
|
|
587
|
+
* @ignore
|
|
588
|
+
*/
|
|
589
|
+
TransferID[TransferID["TransferidUnspecified"] = 2] = "TransferidUnspecified";
|
|
590
|
+
/**
|
|
591
|
+
* @ignore
|
|
592
|
+
*/
|
|
593
|
+
TransferID[TransferID["TransferidGamma22"] = 4] = "TransferidGamma22";
|
|
594
|
+
/**
|
|
595
|
+
* @ignore
|
|
596
|
+
*/
|
|
597
|
+
TransferID[TransferID["TransferidGamma28"] = 5] = "TransferidGamma28";
|
|
598
|
+
/**
|
|
599
|
+
* @ignore
|
|
600
|
+
*/
|
|
601
|
+
TransferID[TransferID["TransferidSmpte170m"] = 6] = "TransferidSmpte170m";
|
|
602
|
+
/**
|
|
603
|
+
* @ignore
|
|
604
|
+
*/
|
|
605
|
+
TransferID[TransferID["TransferidSmpte240m"] = 7] = "TransferidSmpte240m";
|
|
606
|
+
/**
|
|
607
|
+
* @ignore
|
|
608
|
+
*/
|
|
609
|
+
TransferID[TransferID["TransferidLinear"] = 8] = "TransferidLinear";
|
|
610
|
+
/**
|
|
611
|
+
* @ignore
|
|
612
|
+
*/
|
|
613
|
+
TransferID[TransferID["TransferidLog"] = 9] = "TransferidLog";
|
|
614
|
+
/**
|
|
615
|
+
* @ignore
|
|
616
|
+
*/
|
|
617
|
+
TransferID[TransferID["TransferidLogSqrt"] = 10] = "TransferidLogSqrt";
|
|
618
|
+
/**
|
|
619
|
+
* @ignore
|
|
620
|
+
*/
|
|
621
|
+
TransferID[TransferID["TransferidIec6196624"] = 11] = "TransferidIec6196624";
|
|
622
|
+
/**
|
|
623
|
+
* @ignore
|
|
624
|
+
*/
|
|
625
|
+
TransferID[TransferID["TransferidBt1361Ecg"] = 12] = "TransferidBt1361Ecg";
|
|
626
|
+
/**
|
|
627
|
+
* @ignore
|
|
628
|
+
*/
|
|
629
|
+
TransferID[TransferID["TransferidIec6196621"] = 13] = "TransferidIec6196621";
|
|
630
|
+
/**
|
|
631
|
+
* @ignore
|
|
632
|
+
*/
|
|
633
|
+
TransferID[TransferID["TransferidBt202010"] = 14] = "TransferidBt202010";
|
|
634
|
+
/**
|
|
635
|
+
* @ignore
|
|
636
|
+
*/
|
|
637
|
+
TransferID[TransferID["TransferidBt202012"] = 15] = "TransferidBt202012";
|
|
638
|
+
/**
|
|
639
|
+
* @ignore
|
|
640
|
+
*/
|
|
641
|
+
TransferID[TransferID["TransferidSmptest2084"] = 16] = "TransferidSmptest2084";
|
|
642
|
+
/**
|
|
643
|
+
* @ignore
|
|
644
|
+
*/
|
|
645
|
+
TransferID[TransferID["TransferidSmptest428"] = 17] = "TransferidSmptest428";
|
|
646
|
+
/**
|
|
647
|
+
* @ignore
|
|
648
|
+
*/
|
|
649
|
+
TransferID[TransferID["TransferidAribStdB67"] = 18] = "TransferidAribStdB67";
|
|
650
|
+
})(TransferID = exports.TransferID || (exports.TransferID = {}));
|
|
651
|
+
/**
|
|
652
|
+
* @ignore
|
|
653
|
+
*/
|
|
654
|
+
class ColorSpace {
|
|
655
|
+
}
|
|
656
|
+
exports.ColorSpace = ColorSpace;
|
|
657
|
+
/**
|
|
658
|
+
* @ignore
|
|
659
|
+
*/
|
|
660
|
+
class Hdr10MetadataInfo {
|
|
661
|
+
}
|
|
662
|
+
exports.Hdr10MetadataInfo = Hdr10MetadataInfo;
|
|
663
|
+
/**
|
|
664
|
+
* alphaBuffer 和视频帧的相对位置。
|
|
665
|
+
*/
|
|
666
|
+
var AlphaStitchMode;
|
|
667
|
+
(function (AlphaStitchMode) {
|
|
668
|
+
/**
|
|
669
|
+
* 0:(默认)仅视频帧,即 alphaBuffer 不和视频帧拼接。
|
|
670
|
+
*/
|
|
671
|
+
AlphaStitchMode[AlphaStitchMode["NoAlphaStitch"] = 0] = "NoAlphaStitch";
|
|
672
|
+
/**
|
|
673
|
+
* 1: alphaBuffer 位于视频帧的上方。
|
|
674
|
+
*/
|
|
675
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchUp"] = 1] = "AlphaStitchUp";
|
|
676
|
+
/**
|
|
677
|
+
* 2: alphaBuffer 位于视频帧的下方。
|
|
678
|
+
*/
|
|
679
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchBelow"] = 2] = "AlphaStitchBelow";
|
|
680
|
+
/**
|
|
681
|
+
* 3: alphaBuffer 位于视频帧的左侧。
|
|
682
|
+
*/
|
|
683
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchLeft"] = 3] = "AlphaStitchLeft";
|
|
684
|
+
/**
|
|
685
|
+
* 4: alphaBuffer 位于视频帧的右侧。
|
|
686
|
+
*/
|
|
687
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchRight"] = 4] = "AlphaStitchRight";
|
|
688
|
+
})(AlphaStitchMode = exports.AlphaStitchMode || (exports.AlphaStitchMode = {}));
|
|
689
|
+
/**
|
|
690
|
+
* @ignore
|
|
691
|
+
*/
|
|
692
|
+
var EglContextType;
|
|
693
|
+
(function (EglContextType) {
|
|
694
|
+
/**
|
|
695
|
+
* @ignore
|
|
696
|
+
*/
|
|
697
|
+
EglContextType[EglContextType["EglContext10"] = 0] = "EglContext10";
|
|
698
|
+
/**
|
|
699
|
+
* @ignore
|
|
700
|
+
*/
|
|
701
|
+
EglContextType[EglContextType["EglContext14"] = 1] = "EglContext14";
|
|
702
|
+
})(EglContextType = exports.EglContextType || (exports.EglContextType = {}));
|
|
703
|
+
/**
|
|
704
|
+
* 视频 buffer 类型。
|
|
705
|
+
*/
|
|
706
|
+
var VideoBufferType;
|
|
707
|
+
(function (VideoBufferType) {
|
|
708
|
+
/**
|
|
709
|
+
* 1: 类型为原始数据。
|
|
710
|
+
*/
|
|
711
|
+
VideoBufferType[VideoBufferType["VideoBufferRawData"] = 1] = "VideoBufferRawData";
|
|
712
|
+
/**
|
|
713
|
+
* 2: 类型为原始数据。
|
|
714
|
+
*/
|
|
715
|
+
VideoBufferType[VideoBufferType["VideoBufferArray"] = 2] = "VideoBufferArray";
|
|
716
|
+
/**
|
|
717
|
+
* 3: 类型为 Texture 。
|
|
718
|
+
*/
|
|
719
|
+
VideoBufferType[VideoBufferType["VideoBufferTexture"] = 3] = "VideoBufferTexture";
|
|
720
|
+
})(VideoBufferType = exports.VideoBufferType || (exports.VideoBufferType = {}));
|
|
721
|
+
/**
|
|
722
|
+
* 外部视频帧。
|
|
723
|
+
*/
|
|
724
|
+
class ExternalVideoFrame {
|
|
725
|
+
}
|
|
726
|
+
exports.ExternalVideoFrame = ExternalVideoFrame;
|
|
727
|
+
/**
|
|
728
|
+
* 视频帧的属性设置。
|
|
729
|
+
*
|
|
730
|
+
* 缓冲区给出的是指向指针的指针,该接口不能修改缓冲区的指针,只能修改缓冲区的内容。
|
|
731
|
+
*/
|
|
732
|
+
class VideoFrame {
|
|
733
|
+
}
|
|
734
|
+
exports.VideoFrame = VideoFrame;
|
|
735
|
+
/**
|
|
736
|
+
* @ignore
|
|
737
|
+
*/
|
|
738
|
+
var MediaPlayerSourceType;
|
|
739
|
+
(function (MediaPlayerSourceType) {
|
|
740
|
+
/**
|
|
741
|
+
* @ignore
|
|
742
|
+
*/
|
|
743
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceDefault"] = 0] = "MediaPlayerSourceDefault";
|
|
744
|
+
/**
|
|
745
|
+
* @ignore
|
|
746
|
+
*/
|
|
747
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceFullFeatured"] = 1] = "MediaPlayerSourceFullFeatured";
|
|
748
|
+
/**
|
|
749
|
+
* @ignore
|
|
750
|
+
*/
|
|
751
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceSimple"] = 2] = "MediaPlayerSourceSimple";
|
|
752
|
+
})(MediaPlayerSourceType = exports.MediaPlayerSourceType || (exports.MediaPlayerSourceType = {}));
|
|
753
|
+
/**
|
|
754
|
+
* 视频观测位置。
|
|
755
|
+
*/
|
|
756
|
+
var VideoModulePosition;
|
|
757
|
+
(function (VideoModulePosition) {
|
|
758
|
+
/**
|
|
759
|
+
* 1: 本地采集视频数据并且经过前处理之后的位置,对应 onCaptureVideoFrame 回调。此处观测到的视频具备视频前处理的效果,可通过开启美颜、虚拟背景或水印等方式验证。
|
|
760
|
+
*/
|
|
761
|
+
VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
|
|
762
|
+
/**
|
|
763
|
+
* 2: 接收远端发送的视频在渲染前的位置,对应 onRenderVideoFrame 回调。
|
|
764
|
+
*/
|
|
765
|
+
VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
|
|
766
|
+
/**
|
|
767
|
+
* 4: 本地视频编码前的位置,对应 onPreEncodeVideoFrame 回调。此处观测到的视频具备视频前处理和编码前处理的效果:
|
|
768
|
+
* 对于视频前处理效果,可通过开启美颜、虚拟背景或水印等方式验证。
|
|
769
|
+
* 对于编码前处理效果,可通过设置一个较低的帧率(例如 5 fps)验证。
|
|
770
|
+
*/
|
|
771
|
+
VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
|
|
772
|
+
/**
|
|
773
|
+
* 8: 本地采集视频之后、前处理之前的位置。此处观测到的视频不具备前处理的效果,可通过开启美颜、虚拟背景或设置水印等方式验证。
|
|
774
|
+
*/
|
|
775
|
+
VideoModulePosition[VideoModulePosition["PositionPostCapturerOrigin"] = 8] = "PositionPostCapturerOrigin";
|
|
776
|
+
})(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
|
|
777
|
+
/**
|
|
778
|
+
* @ignore
|
|
779
|
+
*/
|
|
780
|
+
var ContentInspectResult;
|
|
781
|
+
(function (ContentInspectResult) {
|
|
782
|
+
/**
|
|
783
|
+
* @ignore
|
|
784
|
+
*/
|
|
785
|
+
ContentInspectResult[ContentInspectResult["ContentInspectNeutral"] = 1] = "ContentInspectNeutral";
|
|
786
|
+
/**
|
|
787
|
+
* @ignore
|
|
788
|
+
*/
|
|
789
|
+
ContentInspectResult[ContentInspectResult["ContentInspectSexy"] = 2] = "ContentInspectSexy";
|
|
790
|
+
/**
|
|
791
|
+
* @ignore
|
|
792
|
+
*/
|
|
793
|
+
ContentInspectResult[ContentInspectResult["ContentInspectPorn"] = 3] = "ContentInspectPorn";
|
|
794
|
+
})(ContentInspectResult = exports.ContentInspectResult || (exports.ContentInspectResult = {}));
|
|
795
|
+
/**
|
|
796
|
+
* 视频内容审核模块的类型。
|
|
797
|
+
*/
|
|
798
|
+
var ContentInspectType;
|
|
799
|
+
(function (ContentInspectType) {
|
|
800
|
+
/**
|
|
801
|
+
* 0:(默认)该功能模块无实际功能。请不要将 type 设为该值。
|
|
802
|
+
*/
|
|
803
|
+
ContentInspectType[ContentInspectType["ContentInspectInvalid"] = 0] = "ContentInspectInvalid";
|
|
804
|
+
/**
|
|
805
|
+
* @ignore
|
|
806
|
+
*/
|
|
807
|
+
ContentInspectType[ContentInspectType["ContentInspectModeration"] = 1] = "ContentInspectModeration";
|
|
808
|
+
/**
|
|
809
|
+
* 2:使用声网自研插件截图上传。SDK 会对视频流进行截图并上传。
|
|
810
|
+
*/
|
|
811
|
+
ContentInspectType[ContentInspectType["ContentInspectSupervision"] = 2] = "ContentInspectSupervision";
|
|
812
|
+
/**
|
|
813
|
+
* 3:使用云市场插件截图上传。SDK 会使用云市场视频审核插件对视频流进行截图并上传。
|
|
814
|
+
*/
|
|
815
|
+
ContentInspectType[ContentInspectType["ContentInspectImageModeration"] = 3] = "ContentInspectImageModeration";
|
|
816
|
+
})(ContentInspectType = exports.ContentInspectType || (exports.ContentInspectType = {}));
|
|
817
|
+
/**
|
|
818
|
+
* ContentInspectModule 结构体,用于配置本地截图上传的频率。
|
|
819
|
+
*/
|
|
820
|
+
class ContentInspectModule {
|
|
821
|
+
}
|
|
822
|
+
exports.ContentInspectModule = ContentInspectModule;
|
|
823
|
+
/**
|
|
824
|
+
* 本地截图上传配置。
|
|
825
|
+
*/
|
|
826
|
+
class ContentInspectConfig {
|
|
827
|
+
}
|
|
828
|
+
exports.ContentInspectConfig = ContentInspectConfig;
|
|
829
|
+
/**
|
|
830
|
+
* 视频截图设置。
|
|
831
|
+
*/
|
|
832
|
+
class SnapshotConfig {
|
|
833
|
+
}
|
|
834
|
+
exports.SnapshotConfig = SnapshotConfig;
|
|
835
|
+
/**
|
|
836
|
+
* 音频帧类型。
|
|
837
|
+
*/
|
|
838
|
+
var AudioFrameType;
|
|
839
|
+
(function (AudioFrameType) {
|
|
840
|
+
/**
|
|
841
|
+
* 0: PCM 16
|
|
842
|
+
*/
|
|
843
|
+
AudioFrameType[AudioFrameType["FrameTypePcm16"] = 0] = "FrameTypePcm16";
|
|
844
|
+
})(AudioFrameType = exports.AudioFrameType || (exports.AudioFrameType = {}));
|
|
845
|
+
/**
|
|
846
|
+
* 原始音频数据。
|
|
847
|
+
*/
|
|
848
|
+
class AudioFrame {
|
|
849
|
+
}
|
|
850
|
+
exports.AudioFrame = AudioFrame;
|
|
851
|
+
/**
|
|
852
|
+
* @ignore
|
|
853
|
+
*/
|
|
854
|
+
var AudioFramePosition;
|
|
855
|
+
(function (AudioFramePosition) {
|
|
856
|
+
/**
|
|
857
|
+
* @ignore
|
|
858
|
+
*/
|
|
859
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionNone"] = 0] = "AudioFramePositionNone";
|
|
860
|
+
/**
|
|
861
|
+
* @ignore
|
|
862
|
+
*/
|
|
863
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionPlayback"] = 1] = "AudioFramePositionPlayback";
|
|
864
|
+
/**
|
|
865
|
+
* @ignore
|
|
866
|
+
*/
|
|
867
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionRecord"] = 2] = "AudioFramePositionRecord";
|
|
868
|
+
/**
|
|
869
|
+
* @ignore
|
|
870
|
+
*/
|
|
871
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionMixed"] = 4] = "AudioFramePositionMixed";
|
|
872
|
+
/**
|
|
873
|
+
* @ignore
|
|
874
|
+
*/
|
|
875
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionBeforeMixing"] = 8] = "AudioFramePositionBeforeMixing";
|
|
876
|
+
/**
|
|
877
|
+
* @ignore
|
|
878
|
+
*/
|
|
879
|
+
AudioFramePosition[AudioFramePosition["AudioFramePositionEarMonitoring"] = 16] = "AudioFramePositionEarMonitoring";
|
|
880
|
+
})(AudioFramePosition = exports.AudioFramePosition || (exports.AudioFramePosition = {}));
|
|
881
|
+
/**
|
|
882
|
+
* 音频数据格式。
|
|
883
|
+
*
|
|
884
|
+
* SDK 会根据 AudioParams 设置以下回调中的音频数据格式: onRecordAudioFrame onPlaybackAudioFrame onMixedAudioFrame
|
|
885
|
+
* SDK 会通过 AudioParams 中的 samplesPerCall 、 sampleRate 和 channel 参数计算采样间隔,并根据该采样间隔触发 onRecordAudioFrame 、 onPlaybackAudioFrame 、 onMixedAudioFrame 和 onEarMonitoringAudioFrame 回调。
|
|
886
|
+
* 采样间隔 = samplesPerCall /(sampleRate × channel)。
|
|
887
|
+
* 请确保采样间隔不得小于 0.01 (s)。
|
|
888
|
+
*/
|
|
889
|
+
class AudioParams {
|
|
890
|
+
}
|
|
891
|
+
exports.AudioParams = AudioParams;
|
|
892
|
+
/**
|
|
893
|
+
* 音频频谱数据。
|
|
894
|
+
*/
|
|
895
|
+
class AudioSpectrumData {
|
|
896
|
+
}
|
|
897
|
+
exports.AudioSpectrumData = AudioSpectrumData;
|
|
898
|
+
/**
|
|
899
|
+
* 远端用户的音频频谱信息。
|
|
900
|
+
*/
|
|
901
|
+
class UserAudioSpectrumInfo {
|
|
902
|
+
}
|
|
903
|
+
exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
|
|
904
|
+
/**
|
|
905
|
+
* 视频帧处理模式。
|
|
906
|
+
*/
|
|
907
|
+
var VideoFrameProcessMode;
|
|
908
|
+
(function (VideoFrameProcessMode) {
|
|
909
|
+
/**
|
|
910
|
+
* 只读模式。
|
|
911
|
+
* 只读模式下,你不修改视频帧,视频观测器相当于渲染器。
|
|
912
|
+
*/
|
|
913
|
+
VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadOnly"] = 0] = "ProcessModeReadOnly";
|
|
914
|
+
/**
|
|
915
|
+
* 读写模式。
|
|
916
|
+
* 读写模式下,你会修改视频帧,视频观测器相当于视频 filter。
|
|
917
|
+
*/
|
|
918
|
+
VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadWrite"] = 1] = "ProcessModeReadWrite";
|
|
919
|
+
})(VideoFrameProcessMode = exports.VideoFrameProcessMode || (exports.VideoFrameProcessMode = {}));
|
|
920
|
+
/**
|
|
921
|
+
* 外部视频帧编码类型。
|
|
922
|
+
*/
|
|
923
|
+
var ExternalVideoSourceType;
|
|
924
|
+
(function (ExternalVideoSourceType) {
|
|
925
|
+
/**
|
|
926
|
+
* 0:未编码视频帧。
|
|
927
|
+
*/
|
|
928
|
+
ExternalVideoSourceType[ExternalVideoSourceType["VideoFrame"] = 0] = "VideoFrame";
|
|
929
|
+
/**
|
|
930
|
+
* 1:已编码视频帧。
|
|
931
|
+
*/
|
|
932
|
+
ExternalVideoSourceType[ExternalVideoSourceType["EncodedVideoFrame"] = 1] = "EncodedVideoFrame";
|
|
933
|
+
})(ExternalVideoSourceType = exports.ExternalVideoSourceType || (exports.ExternalVideoSourceType = {}));
|
|
934
|
+
/**
|
|
935
|
+
* 录制文件的格式。
|
|
936
|
+
*/
|
|
937
|
+
var MediaRecorderContainerFormat;
|
|
938
|
+
(function (MediaRecorderContainerFormat) {
|
|
939
|
+
/**
|
|
940
|
+
* 1:(默认)MP4。
|
|
941
|
+
*/
|
|
942
|
+
MediaRecorderContainerFormat[MediaRecorderContainerFormat["FormatMp4"] = 1] = "FormatMp4";
|
|
943
|
+
})(MediaRecorderContainerFormat = exports.MediaRecorderContainerFormat || (exports.MediaRecorderContainerFormat = {}));
|
|
944
|
+
/**
|
|
945
|
+
* 录制内容。
|
|
946
|
+
*/
|
|
947
|
+
var MediaRecorderStreamType;
|
|
948
|
+
(function (MediaRecorderStreamType) {
|
|
949
|
+
/**
|
|
950
|
+
* 1: 仅音频。
|
|
951
|
+
*/
|
|
952
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeAudio"] = 1] = "StreamTypeAudio";
|
|
953
|
+
/**
|
|
954
|
+
* 2: 仅视频。
|
|
955
|
+
*/
|
|
956
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeVideo"] = 2] = "StreamTypeVideo";
|
|
957
|
+
/**
|
|
958
|
+
* 3: (默认)音视频。
|
|
959
|
+
*/
|
|
960
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeBoth"] = 3] = "StreamTypeBoth";
|
|
961
|
+
})(MediaRecorderStreamType = exports.MediaRecorderStreamType || (exports.MediaRecorderStreamType = {}));
|
|
962
|
+
/**
|
|
963
|
+
* 当前的录制状态。
|
|
964
|
+
*/
|
|
965
|
+
var RecorderState;
|
|
966
|
+
(function (RecorderState) {
|
|
967
|
+
/**
|
|
968
|
+
* -1: 音视频流录制出错,错误原因详见 RecorderReasonCode 。
|
|
969
|
+
*/
|
|
970
|
+
RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
|
|
971
|
+
/**
|
|
972
|
+
* 2: 音视频流录制开始。
|
|
973
|
+
*/
|
|
974
|
+
RecorderState[RecorderState["RecorderStateStart"] = 2] = "RecorderStateStart";
|
|
975
|
+
/**
|
|
976
|
+
* 3: 音视频流录制停止。
|
|
977
|
+
*/
|
|
978
|
+
RecorderState[RecorderState["RecorderStateStop"] = 3] = "RecorderStateStop";
|
|
979
|
+
})(RecorderState = exports.RecorderState || (exports.RecorderState = {}));
|
|
980
|
+
/**
|
|
981
|
+
* 录制状态出错的原因。
|
|
982
|
+
*/
|
|
983
|
+
var RecorderReasonCode;
|
|
984
|
+
(function (RecorderReasonCode) {
|
|
985
|
+
/**
|
|
986
|
+
* 0: 一切正常。
|
|
987
|
+
*/
|
|
988
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNone"] = 0] = "RecorderReasonNone";
|
|
989
|
+
/**
|
|
990
|
+
* @ignore
|
|
991
|
+
*/
|
|
992
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonWriteFailed"] = 1] = "RecorderReasonWriteFailed";
|
|
993
|
+
/**
|
|
994
|
+
* @ignore
|
|
995
|
+
*/
|
|
996
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNoStream"] = 2] = "RecorderReasonNoStream";
|
|
997
|
+
/**
|
|
998
|
+
* @ignore
|
|
999
|
+
*/
|
|
1000
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonOverMaxDuration"] = 3] = "RecorderReasonOverMaxDuration";
|
|
1001
|
+
/**
|
|
1002
|
+
* @ignore
|
|
1003
|
+
*/
|
|
1004
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonConfigChanged"] = 4] = "RecorderReasonConfigChanged";
|
|
1005
|
+
})(RecorderReasonCode = exports.RecorderReasonCode || (exports.RecorderReasonCode = {}));
|
|
1006
|
+
/**
|
|
1007
|
+
* 音视频流录制配置。
|
|
1008
|
+
*/
|
|
1009
|
+
class MediaRecorderConfiguration {
|
|
1010
|
+
}
|
|
1011
|
+
exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
|
|
1012
|
+
/**
|
|
1013
|
+
* 录制文件信息。
|
|
1014
|
+
*/
|
|
1015
|
+
class RecorderInfo {
|
|
1016
|
+
}
|
|
1017
|
+
exports.RecorderInfo = RecorderInfo;
|