agora-electron-sdk 0.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +315 -0
- package/LICENSE +21 -0
- package/README.md +143 -0
- package/gulpfile.js +52 -0
- package/js/AgoraSdk.js +64 -0
- package/js/Decoder/gpu-utils.js +74 -0
- package/js/Decoder/index.js +172 -0
- package/js/Private/AgoraBase.js +3985 -0
- package/js/Private/AgoraMediaBase.js +1014 -0
- package/js/Private/AgoraMediaPlayerTypes.js +316 -0
- package/js/Private/IAgoraH265Transcoder.js +36 -0
- package/js/Private/IAgoraLog.js +78 -0
- package/js/Private/IAgoraMediaEngine.js +32 -0
- package/js/Private/IAgoraMediaPlayer.js +16 -0
- package/js/Private/IAgoraMediaPlayerSource.js +3 -0
- package/js/Private/IAgoraMediaRecorder.js +10 -0
- package/js/Private/IAgoraMediaStreamingSource.js +74 -0
- package/js/Private/IAgoraMusicContentCenter.js +157 -0
- package/js/Private/IAgoraRhythmPlayer.js +62 -0
- package/js/Private/IAgoraRtcEngine.js +982 -0
- package/js/Private/IAgoraRtcEngineEx.js +19 -0
- package/js/Private/IAgoraSpatialAudio.js +24 -0
- package/js/Private/IAudioDeviceManager.js +20 -0
- package/js/Private/extension/AgoraBaseExtension.js +3 -0
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/extension/IAgoraLogExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
- package/js/Private/impl/AgoraBaseImpl.js +23 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +950 -0
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +1042 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +5167 -0
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
- package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
- package/js/Private/internal/IrisApiEngine.js +424 -0
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
- package/js/Private/internal/MediaEngineInternal.js +122 -0
- package/js/Private/internal/MediaPlayerInternal.js +194 -0
- package/js/Private/internal/MediaRecorderInternal.js +70 -0
- package/js/Private/internal/MusicContentCenterInternal.js +139 -0
- package/js/Private/internal/RtcEngineExInternal.js +430 -0
- package/js/Private/ipc/main.js +21 -0
- package/js/Private/ipc/renderer.js +21 -0
- package/js/Private/ti/AgoraBase-ti.js +40 -0
- package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraLog-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
- package/js/Private/ti/IAgoraRtcEngine-ti.js +141 -0
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
- package/js/Renderer/AgoraView.js +161 -0
- package/js/Renderer/CapabilityManager.js +99 -0
- package/js/Renderer/IRenderer.js +136 -0
- package/js/Renderer/IRendererCache.js +75 -0
- package/js/Renderer/RendererCache.js +100 -0
- package/js/Renderer/RendererManager.js +301 -0
- package/js/Renderer/WebCodecsRenderer/index.js +109 -0
- package/js/Renderer/WebCodecsRendererCache.js +115 -0
- package/js/Renderer/WebGLRenderer/index.js +314 -0
- package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
- package/js/Renderer/YUVCanvasRenderer/index.js +46 -0
- package/js/Renderer/index.js +17 -0
- package/js/Types.js +67 -0
- package/js/Utils.js +187 -0
- package/package.json +167 -0
- package/scripts/bootstrap.js +29 -0
- package/scripts/build.js +37 -0
- package/scripts/buildJS.js +14 -0
- package/scripts/checkElectron.js +43 -0
- package/scripts/clean.js +16 -0
- package/scripts/download.js +105 -0
- package/scripts/downloadPrebuild.js +199 -0
- package/scripts/getConfig.js +73 -0
- package/scripts/logger.js +32 -0
- package/scripts/synclib.js +69 -0
- package/scripts/util.js +47 -0
- package/scripts/zipBuild.js +40 -0
- package/ts/AgoraSdk.ts +54 -0
- package/ts/Decoder/gpu-utils.ts +92 -0
- package/ts/Decoder/index.ts +206 -0
- package/ts/Private/AgoraBase.ts +5511 -0
- package/ts/Private/AgoraMediaBase.ts +1764 -0
- package/ts/Private/AgoraMediaPlayerTypes.ts +464 -0
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +91 -0
- package/ts/Private/IAgoraMediaEngine.ts +316 -0
- package/ts/Private/IAgoraMediaPlayer.ts +744 -0
- package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
- package/ts/Private/IAgoraMediaRecorder.ts +25 -0
- package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +455 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
- package/ts/Private/IAgoraRtcEngine.ts +7306 -0
- package/ts/Private/IAgoraRtcEngineEx.ts +992 -0
- package/ts/Private/IAgoraSpatialAudio.ts +250 -0
- package/ts/Private/IAudioDeviceManager.ts +342 -0
- package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
- package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
- package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
- package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +237 -0
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1169 -0
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1672 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7352 -0
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
- package/ts/Private/internal/IrisApiEngine.ts +598 -0
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/ts/Private/internal/MediaEngineInternal.ts +190 -0
- package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
- package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +647 -0
- package/ts/Private/ipc/main.ts +22 -0
- package/ts/Private/ipc/renderer.ts +21 -0
- package/ts/Private/ti/AgoraBase-ti.ts +16 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
- package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +119 -0
- package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
- package/ts/Renderer/AgoraView.ts +235 -0
- package/ts/Renderer/CapabilityManager.ts +126 -0
- package/ts/Renderer/IRenderer.ts +158 -0
- package/ts/Renderer/IRendererCache.ts +96 -0
- package/ts/Renderer/RendererCache.ts +124 -0
- package/ts/Renderer/RendererManager.ts +400 -0
- package/ts/Renderer/WebCodecsRenderer/index.ts +145 -0
- package/ts/Renderer/WebCodecsRendererCache.ts +137 -0
- package/ts/Renderer/WebGLRenderer/index.ts +489 -0
- package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
- package/ts/Renderer/YUVCanvasRenderer/index.ts +67 -0
- package/ts/Renderer/index.ts +1 -0
- package/ts/Types.ts +249 -0
- package/ts/Utils.ts +197 -0
- package/types/AgoraSdk.d.ts +40 -0
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Decoder/gpu-utils.d.ts +21 -0
- package/types/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/Decoder/index.d.ts +26 -0
- package/types/Decoder/index.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +5310 -0
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1668 -0
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +453 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +89 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +250 -0
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +648 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +20 -0
- package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts +381 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +6103 -0
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +741 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +196 -0
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +312 -0
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +143 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +116 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +628 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +69 -0
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +73 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/Private/ipc/main.d.ts +2 -0
- package/types/Private/ipc/main.d.ts.map +1 -0
- package/types/Private/ipc/renderer.d.ts +3 -0
- package/types/Private/ipc/renderer.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +76 -0
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/CapabilityManager.d.ts +20 -0
- package/types/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +20 -0
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererCache.d.ts +26 -0
- package/types/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererCache.d.ts +24 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +66 -0
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts +15 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/index.d.ts +27 -0
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +9 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +2 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +177 -0
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +50 -0
- package/types/Utils.d.ts.map +1 -0
|
@@ -0,0 +1,1014 @@
|
|
|
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.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.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.AudioSourceType = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
4
|
+
require("./extension/AgoraMediaBaseExtension");
|
|
5
|
+
/**
|
|
6
|
+
* The context information of the extension.
|
|
7
|
+
*/
|
|
8
|
+
class ExtensionContext {
|
|
9
|
+
}
|
|
10
|
+
exports.ExtensionContext = ExtensionContext;
|
|
11
|
+
/**
|
|
12
|
+
* The type of the video source.
|
|
13
|
+
*/
|
|
14
|
+
var VideoSourceType;
|
|
15
|
+
(function (VideoSourceType) {
|
|
16
|
+
/**
|
|
17
|
+
* 0: (Default) The primary camera.
|
|
18
|
+
*/
|
|
19
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraPrimary"] = 0] = "VideoSourceCameraPrimary";
|
|
20
|
+
/**
|
|
21
|
+
* 0: (Default) The primary camera.
|
|
22
|
+
*/
|
|
23
|
+
VideoSourceType[VideoSourceType["VideoSourceCamera"] = 0] = "VideoSourceCamera";
|
|
24
|
+
/**
|
|
25
|
+
* 1: The secondary camera.
|
|
26
|
+
*/
|
|
27
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraSecondary"] = 1] = "VideoSourceCameraSecondary";
|
|
28
|
+
/**
|
|
29
|
+
* 2: The primary screen.
|
|
30
|
+
*/
|
|
31
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenPrimary"] = 2] = "VideoSourceScreenPrimary";
|
|
32
|
+
/**
|
|
33
|
+
* 2: The primary screen.
|
|
34
|
+
*/
|
|
35
|
+
VideoSourceType[VideoSourceType["VideoSourceScreen"] = 2] = "VideoSourceScreen";
|
|
36
|
+
/**
|
|
37
|
+
* 3: The secondary screen.
|
|
38
|
+
*/
|
|
39
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenSecondary"] = 3] = "VideoSourceScreenSecondary";
|
|
40
|
+
/**
|
|
41
|
+
* 4: A custom video source.
|
|
42
|
+
*/
|
|
43
|
+
VideoSourceType[VideoSourceType["VideoSourceCustom"] = 4] = "VideoSourceCustom";
|
|
44
|
+
/**
|
|
45
|
+
* 5: The media player.
|
|
46
|
+
*/
|
|
47
|
+
VideoSourceType[VideoSourceType["VideoSourceMediaPlayer"] = 5] = "VideoSourceMediaPlayer";
|
|
48
|
+
/**
|
|
49
|
+
* 6: One PNG image.
|
|
50
|
+
*/
|
|
51
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImagePng"] = 6] = "VideoSourceRtcImagePng";
|
|
52
|
+
/**
|
|
53
|
+
* 7: One JPEG image.
|
|
54
|
+
*/
|
|
55
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImageJpeg"] = 7] = "VideoSourceRtcImageJpeg";
|
|
56
|
+
/**
|
|
57
|
+
* 8: One GIF image.
|
|
58
|
+
*/
|
|
59
|
+
VideoSourceType[VideoSourceType["VideoSourceRtcImageGif"] = 8] = "VideoSourceRtcImageGif";
|
|
60
|
+
/**
|
|
61
|
+
* 9: One remote video acquired by the network.
|
|
62
|
+
*/
|
|
63
|
+
VideoSourceType[VideoSourceType["VideoSourceRemote"] = 9] = "VideoSourceRemote";
|
|
64
|
+
/**
|
|
65
|
+
* 10: One transcoded video source.
|
|
66
|
+
*/
|
|
67
|
+
VideoSourceType[VideoSourceType["VideoSourceTranscoded"] = 10] = "VideoSourceTranscoded";
|
|
68
|
+
/**
|
|
69
|
+
* 11: The third camera.
|
|
70
|
+
*/
|
|
71
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraThird"] = 11] = "VideoSourceCameraThird";
|
|
72
|
+
/**
|
|
73
|
+
* 12: The fourth camera.
|
|
74
|
+
*/
|
|
75
|
+
VideoSourceType[VideoSourceType["VideoSourceCameraFourth"] = 12] = "VideoSourceCameraFourth";
|
|
76
|
+
/**
|
|
77
|
+
* 13: The third screen.
|
|
78
|
+
*/
|
|
79
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenThird"] = 13] = "VideoSourceScreenThird";
|
|
80
|
+
/**
|
|
81
|
+
* 14: The fourth screen.
|
|
82
|
+
*/
|
|
83
|
+
VideoSourceType[VideoSourceType["VideoSourceScreenFourth"] = 14] = "VideoSourceScreenFourth";
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
VideoSourceType[VideoSourceType["VideoSourceSpeechDriven"] = 15] = "VideoSourceSpeechDriven";
|
|
88
|
+
/**
|
|
89
|
+
* 100: An unknown video source.
|
|
90
|
+
*/
|
|
91
|
+
VideoSourceType[VideoSourceType["VideoSourceUnknown"] = 100] = "VideoSourceUnknown";
|
|
92
|
+
})(VideoSourceType = exports.VideoSourceType || (exports.VideoSourceType = {}));
|
|
93
|
+
/**
|
|
94
|
+
* The audio source type.
|
|
95
|
+
*/
|
|
96
|
+
var AudioSourceType;
|
|
97
|
+
(function (AudioSourceType) {
|
|
98
|
+
/**
|
|
99
|
+
* 0: (Default) Microphone.
|
|
100
|
+
*/
|
|
101
|
+
AudioSourceType[AudioSourceType["AudioSourceMicrophone"] = 0] = "AudioSourceMicrophone";
|
|
102
|
+
/**
|
|
103
|
+
* 1: Custom audio stream.
|
|
104
|
+
*/
|
|
105
|
+
AudioSourceType[AudioSourceType["AudioSourceCustom"] = 1] = "AudioSourceCustom";
|
|
106
|
+
/**
|
|
107
|
+
* 2: Media player.
|
|
108
|
+
*/
|
|
109
|
+
AudioSourceType[AudioSourceType["AudioSourceMediaPlayer"] = 2] = "AudioSourceMediaPlayer";
|
|
110
|
+
/**
|
|
111
|
+
* 3: System audio stream captured during screen sharing.
|
|
112
|
+
*/
|
|
113
|
+
AudioSourceType[AudioSourceType["AudioSourceLoopbackRecording"] = 3] = "AudioSourceLoopbackRecording";
|
|
114
|
+
/**
|
|
115
|
+
* @ignore
|
|
116
|
+
*/
|
|
117
|
+
AudioSourceType[AudioSourceType["AudioSourceMixedStream"] = 4] = "AudioSourceMixedStream";
|
|
118
|
+
/**
|
|
119
|
+
* 5: Audio stream from a specified remote user.
|
|
120
|
+
*/
|
|
121
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteUser"] = 5] = "AudioSourceRemoteUser";
|
|
122
|
+
/**
|
|
123
|
+
* 6: Mixed audio streams from all users in the current channel.
|
|
124
|
+
*/
|
|
125
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteChannel"] = 6] = "AudioSourceRemoteChannel";
|
|
126
|
+
/**
|
|
127
|
+
* 100: An unknown audio source.
|
|
128
|
+
*/
|
|
129
|
+
AudioSourceType[AudioSourceType["AudioSourceUnknown"] = 100] = "AudioSourceUnknown";
|
|
130
|
+
})(AudioSourceType = exports.AudioSourceType || (exports.AudioSourceType = {}));
|
|
131
|
+
/**
|
|
132
|
+
* The type of the audio route.
|
|
133
|
+
*/
|
|
134
|
+
var AudioRoute;
|
|
135
|
+
(function (AudioRoute) {
|
|
136
|
+
/**
|
|
137
|
+
* -1: The default audio route.
|
|
138
|
+
*/
|
|
139
|
+
AudioRoute[AudioRoute["RouteDefault"] = -1] = "RouteDefault";
|
|
140
|
+
/**
|
|
141
|
+
* 0: Audio output routing is a headset with microphone.
|
|
142
|
+
*/
|
|
143
|
+
AudioRoute[AudioRoute["RouteHeadset"] = 0] = "RouteHeadset";
|
|
144
|
+
/**
|
|
145
|
+
* 1: The audio route is an earpiece.
|
|
146
|
+
*/
|
|
147
|
+
AudioRoute[AudioRoute["RouteEarpiece"] = 1] = "RouteEarpiece";
|
|
148
|
+
/**
|
|
149
|
+
* 2: The audio route is a headset without a microphone.
|
|
150
|
+
*/
|
|
151
|
+
AudioRoute[AudioRoute["RouteHeadsetnomic"] = 2] = "RouteHeadsetnomic";
|
|
152
|
+
/**
|
|
153
|
+
* 3: The audio route is the speaker that comes with the device.
|
|
154
|
+
*/
|
|
155
|
+
AudioRoute[AudioRoute["RouteSpeakerphone"] = 3] = "RouteSpeakerphone";
|
|
156
|
+
/**
|
|
157
|
+
* 4: The audio route is an external speaker. (macOS only)
|
|
158
|
+
*/
|
|
159
|
+
AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
|
|
160
|
+
/**
|
|
161
|
+
* 5: The audio route is a Bluetooth device using the HFP protocol.
|
|
162
|
+
*/
|
|
163
|
+
AudioRoute[AudioRoute["RouteBluetoothDeviceHfp"] = 5] = "RouteBluetoothDeviceHfp";
|
|
164
|
+
/**
|
|
165
|
+
* 6: The audio route is a USB peripheral device. (For macOS only)
|
|
166
|
+
*/
|
|
167
|
+
AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
|
|
168
|
+
/**
|
|
169
|
+
* 7: The audio route is an HDMI peripheral device. (For macOS only)
|
|
170
|
+
*/
|
|
171
|
+
AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
|
|
172
|
+
/**
|
|
173
|
+
* 8: The audio route is a DisplayPort peripheral device. (For macOS only)
|
|
174
|
+
*/
|
|
175
|
+
AudioRoute[AudioRoute["RouteDisplayport"] = 8] = "RouteDisplayport";
|
|
176
|
+
/**
|
|
177
|
+
* 9: The audio route is Apple AirPlay. (For macOS only)
|
|
178
|
+
*/
|
|
179
|
+
AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
|
|
180
|
+
/**
|
|
181
|
+
* 10: The audio route is a Bluetooth device using the A2DP protocol.
|
|
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
|
+
* The use mode of the audio data.
|
|
203
|
+
*/
|
|
204
|
+
var RawAudioFrameOpModeType;
|
|
205
|
+
(function (RawAudioFrameOpModeType) {
|
|
206
|
+
/**
|
|
207
|
+
* 0: Read-only mode, Users only read the data returned by the SDK without modifying anything. For example, when users acquire the data with the Agora SDK, then start the media push.
|
|
208
|
+
*/
|
|
209
|
+
RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadOnly"] = 0] = "RawAudioFrameOpModeReadOnly";
|
|
210
|
+
/**
|
|
211
|
+
* 2: Read and write mode, Users read the data returned by the SDK, modify it, and then play it. For example, when users have their own audio-effect processing module and perform some voice preprocessing, such as a voice change.
|
|
212
|
+
*/
|
|
213
|
+
RawAudioFrameOpModeType[RawAudioFrameOpModeType["RawAudioFrameOpModeReadWrite"] = 2] = "RawAudioFrameOpModeReadWrite";
|
|
214
|
+
})(RawAudioFrameOpModeType = exports.RawAudioFrameOpModeType || (exports.RawAudioFrameOpModeType = {}));
|
|
215
|
+
/**
|
|
216
|
+
* Media source type.
|
|
217
|
+
*/
|
|
218
|
+
var MediaSourceType;
|
|
219
|
+
(function (MediaSourceType) {
|
|
220
|
+
/**
|
|
221
|
+
* 0: Audio playback device.
|
|
222
|
+
*/
|
|
223
|
+
MediaSourceType[MediaSourceType["AudioPlayoutSource"] = 0] = "AudioPlayoutSource";
|
|
224
|
+
/**
|
|
225
|
+
* 1: Audio capturing device.
|
|
226
|
+
*/
|
|
227
|
+
MediaSourceType[MediaSourceType["AudioRecordingSource"] = 1] = "AudioRecordingSource";
|
|
228
|
+
/**
|
|
229
|
+
* 2: The primary camera.
|
|
230
|
+
*/
|
|
231
|
+
MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
|
|
232
|
+
/**
|
|
233
|
+
* 3: A secondary camera.
|
|
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: Custom video source.
|
|
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
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
MediaSourceType[MediaSourceType["SpeechDrivenVideoSource"] = 13] = "SpeechDrivenVideoSource";
|
|
276
|
+
/**
|
|
277
|
+
* 100: Unknown media source.
|
|
278
|
+
*/
|
|
279
|
+
MediaSourceType[MediaSourceType["UnknownMediaSource"] = 100] = "UnknownMediaSource";
|
|
280
|
+
})(MediaSourceType = exports.MediaSourceType || (exports.MediaSourceType = {}));
|
|
281
|
+
/**
|
|
282
|
+
* @ignore
|
|
283
|
+
*/
|
|
284
|
+
var ContentInspectResult;
|
|
285
|
+
(function (ContentInspectResult) {
|
|
286
|
+
/**
|
|
287
|
+
* @ignore
|
|
288
|
+
*/
|
|
289
|
+
ContentInspectResult[ContentInspectResult["ContentInspectNeutral"] = 1] = "ContentInspectNeutral";
|
|
290
|
+
/**
|
|
291
|
+
* @ignore
|
|
292
|
+
*/
|
|
293
|
+
ContentInspectResult[ContentInspectResult["ContentInspectSexy"] = 2] = "ContentInspectSexy";
|
|
294
|
+
/**
|
|
295
|
+
* @ignore
|
|
296
|
+
*/
|
|
297
|
+
ContentInspectResult[ContentInspectResult["ContentInspectPorn"] = 3] = "ContentInspectPorn";
|
|
298
|
+
})(ContentInspectResult = exports.ContentInspectResult || (exports.ContentInspectResult = {}));
|
|
299
|
+
/**
|
|
300
|
+
* The type of video content moderation module.
|
|
301
|
+
*/
|
|
302
|
+
var ContentInspectType;
|
|
303
|
+
(function (ContentInspectType) {
|
|
304
|
+
/**
|
|
305
|
+
* 0: (Default) This module has no actual function. Do not set type to this value.
|
|
306
|
+
*/
|
|
307
|
+
ContentInspectType[ContentInspectType["ContentInspectInvalid"] = 0] = "ContentInspectInvalid";
|
|
308
|
+
/**
|
|
309
|
+
* @ignore
|
|
310
|
+
*/
|
|
311
|
+
ContentInspectType[ContentInspectType["ContentInspectModeration"] = 1] = "ContentInspectModeration";
|
|
312
|
+
/**
|
|
313
|
+
* 2: Video screenshot and upload via Agora self-developed extension. SDK takes screenshots of the video stream in the channel and uploads them.
|
|
314
|
+
*/
|
|
315
|
+
ContentInspectType[ContentInspectType["ContentInspectSupervision"] = 2] = "ContentInspectSupervision";
|
|
316
|
+
/**
|
|
317
|
+
* 3: Video screenshot and upload via extensions from Agora Extensions Marketplace. SDK uses video moderation extensions from Agora Extensions Marketplace to take screenshots of the video stream in the channel and uploads them.
|
|
318
|
+
*/
|
|
319
|
+
ContentInspectType[ContentInspectType["ContentInspectImageModeration"] = 3] = "ContentInspectImageModeration";
|
|
320
|
+
})(ContentInspectType = exports.ContentInspectType || (exports.ContentInspectType = {}));
|
|
321
|
+
/**
|
|
322
|
+
* ContentInspectModule A structure used to configure the frequency of video screenshot and upload.
|
|
323
|
+
*/
|
|
324
|
+
class ContentInspectModule {
|
|
325
|
+
}
|
|
326
|
+
exports.ContentInspectModule = ContentInspectModule;
|
|
327
|
+
/**
|
|
328
|
+
* Screenshot and upload configuration.
|
|
329
|
+
*/
|
|
330
|
+
class ContentInspectConfig {
|
|
331
|
+
}
|
|
332
|
+
exports.ContentInspectConfig = ContentInspectConfig;
|
|
333
|
+
/**
|
|
334
|
+
* @ignore
|
|
335
|
+
*/
|
|
336
|
+
class PacketOptions {
|
|
337
|
+
}
|
|
338
|
+
exports.PacketOptions = PacketOptions;
|
|
339
|
+
/**
|
|
340
|
+
* @ignore
|
|
341
|
+
*/
|
|
342
|
+
class AudioEncodedFrameInfo {
|
|
343
|
+
}
|
|
344
|
+
exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
|
|
345
|
+
/**
|
|
346
|
+
* The parameters of the audio frame in PCM format.
|
|
347
|
+
*/
|
|
348
|
+
class AudioPcmFrame {
|
|
349
|
+
}
|
|
350
|
+
exports.AudioPcmFrame = AudioPcmFrame;
|
|
351
|
+
/**
|
|
352
|
+
* The channel mode.
|
|
353
|
+
*/
|
|
354
|
+
var AudioDualMonoMode;
|
|
355
|
+
(function (AudioDualMonoMode) {
|
|
356
|
+
/**
|
|
357
|
+
* 0: Original mode.
|
|
358
|
+
*/
|
|
359
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoStereo"] = 0] = "AudioDualMonoStereo";
|
|
360
|
+
/**
|
|
361
|
+
* 1: Left channel mode. This mode replaces the audio of the right channel with the audio of the left channel, which means the user can only hear the audio of the left channel.
|
|
362
|
+
*/
|
|
363
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoL"] = 1] = "AudioDualMonoL";
|
|
364
|
+
/**
|
|
365
|
+
* 2: Right channel mode. This mode replaces the audio of the left channel with the audio of the right channel, which means the user can only hear the audio of the right channel.
|
|
366
|
+
*/
|
|
367
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoR"] = 2] = "AudioDualMonoR";
|
|
368
|
+
/**
|
|
369
|
+
* 3: Mixed channel mode. This mode mixes the audio of the left channel and the right channel, which means the user can hear the audio of the left channel and the right channel at the same time.
|
|
370
|
+
*/
|
|
371
|
+
AudioDualMonoMode[AudioDualMonoMode["AudioDualMonoMix"] = 3] = "AudioDualMonoMix";
|
|
372
|
+
})(AudioDualMonoMode = exports.AudioDualMonoMode || (exports.AudioDualMonoMode = {}));
|
|
373
|
+
/**
|
|
374
|
+
* The video pixel format.
|
|
375
|
+
*/
|
|
376
|
+
var VideoPixelFormat;
|
|
377
|
+
(function (VideoPixelFormat) {
|
|
378
|
+
/**
|
|
379
|
+
* 0: Raw video pixel format.
|
|
380
|
+
*/
|
|
381
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelDefault"] = 0] = "VideoPixelDefault";
|
|
382
|
+
/**
|
|
383
|
+
* 1: The format is I420.
|
|
384
|
+
*/
|
|
385
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI420"] = 1] = "VideoPixelI420";
|
|
386
|
+
/**
|
|
387
|
+
* @ignore
|
|
388
|
+
*/
|
|
389
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelBgra"] = 2] = "VideoPixelBgra";
|
|
390
|
+
/**
|
|
391
|
+
* @ignore
|
|
392
|
+
*/
|
|
393
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelNv21"] = 3] = "VideoPixelNv21";
|
|
394
|
+
/**
|
|
395
|
+
* 4: The format is RGBA.
|
|
396
|
+
*/
|
|
397
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelRgba"] = 4] = "VideoPixelRgba";
|
|
398
|
+
/**
|
|
399
|
+
* @ignore
|
|
400
|
+
*/
|
|
401
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelNv12"] = 8] = "VideoPixelNv12";
|
|
402
|
+
/**
|
|
403
|
+
* @ignore
|
|
404
|
+
*/
|
|
405
|
+
VideoPixelFormat[VideoPixelFormat["VideoTexture2d"] = 10] = "VideoTexture2d";
|
|
406
|
+
/**
|
|
407
|
+
* @ignore
|
|
408
|
+
*/
|
|
409
|
+
VideoPixelFormat[VideoPixelFormat["VideoTextureOes"] = 11] = "VideoTextureOes";
|
|
410
|
+
/**
|
|
411
|
+
* @ignore
|
|
412
|
+
*/
|
|
413
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelNv12"] = 12] = "VideoCvpixelNv12";
|
|
414
|
+
/**
|
|
415
|
+
* @ignore
|
|
416
|
+
*/
|
|
417
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelI420"] = 13] = "VideoCvpixelI420";
|
|
418
|
+
/**
|
|
419
|
+
* @ignore
|
|
420
|
+
*/
|
|
421
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
|
|
422
|
+
/**
|
|
423
|
+
* @ignore
|
|
424
|
+
*/
|
|
425
|
+
VideoPixelFormat[VideoPixelFormat["VideoCvpixelP010"] = 15] = "VideoCvpixelP010";
|
|
426
|
+
/**
|
|
427
|
+
* 16: The format is I422.
|
|
428
|
+
*/
|
|
429
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI422"] = 16] = "VideoPixelI422";
|
|
430
|
+
/**
|
|
431
|
+
* @ignore
|
|
432
|
+
*/
|
|
433
|
+
VideoPixelFormat[VideoPixelFormat["VideoTextureId3d11texture2d"] = 17] = "VideoTextureId3d11texture2d";
|
|
434
|
+
/**
|
|
435
|
+
* @ignore
|
|
436
|
+
*/
|
|
437
|
+
VideoPixelFormat[VideoPixelFormat["VideoPixelI010"] = 18] = "VideoPixelI010";
|
|
438
|
+
})(VideoPixelFormat = exports.VideoPixelFormat || (exports.VideoPixelFormat = {}));
|
|
439
|
+
/**
|
|
440
|
+
* Video display modes.
|
|
441
|
+
*/
|
|
442
|
+
var RenderModeType;
|
|
443
|
+
(function (RenderModeType) {
|
|
444
|
+
/**
|
|
445
|
+
* 1: Hidden mode. The priority is to fill the window. Any excess video that does not match the window size will be cropped.
|
|
446
|
+
*/
|
|
447
|
+
RenderModeType[RenderModeType["RenderModeHidden"] = 1] = "RenderModeHidden";
|
|
448
|
+
/**
|
|
449
|
+
* 2: Fit mode. The priority is to ensure that all video content is displayed. Any areas of the window that are not filled due to the mismatch between video size and window size will be filled with black.
|
|
450
|
+
*/
|
|
451
|
+
RenderModeType[RenderModeType["RenderModeFit"] = 2] = "RenderModeFit";
|
|
452
|
+
/**
|
|
453
|
+
* @ignore
|
|
454
|
+
*/
|
|
455
|
+
RenderModeType[RenderModeType["RenderModeAdaptive"] = 3] = "RenderModeAdaptive";
|
|
456
|
+
})(RenderModeType = exports.RenderModeType || (exports.RenderModeType = {}));
|
|
457
|
+
/**
|
|
458
|
+
* @ignore
|
|
459
|
+
*/
|
|
460
|
+
var CameraVideoSourceType;
|
|
461
|
+
(function (CameraVideoSourceType) {
|
|
462
|
+
/**
|
|
463
|
+
* @ignore
|
|
464
|
+
*/
|
|
465
|
+
CameraVideoSourceType[CameraVideoSourceType["CameraSourceFront"] = 0] = "CameraSourceFront";
|
|
466
|
+
/**
|
|
467
|
+
* @ignore
|
|
468
|
+
*/
|
|
469
|
+
CameraVideoSourceType[CameraVideoSourceType["CameraSourceBack"] = 1] = "CameraSourceBack";
|
|
470
|
+
/**
|
|
471
|
+
* @ignore
|
|
472
|
+
*/
|
|
473
|
+
CameraVideoSourceType[CameraVideoSourceType["VideoSourceUnspecified"] = 2] = "VideoSourceUnspecified";
|
|
474
|
+
})(CameraVideoSourceType = exports.CameraVideoSourceType || (exports.CameraVideoSourceType = {}));
|
|
475
|
+
/**
|
|
476
|
+
* @ignore
|
|
477
|
+
*/
|
|
478
|
+
var MetaInfoKey;
|
|
479
|
+
(function (MetaInfoKey) {
|
|
480
|
+
/**
|
|
481
|
+
* @ignore
|
|
482
|
+
*/
|
|
483
|
+
MetaInfoKey[MetaInfoKey["KeyFaceCapture"] = 0] = "KeyFaceCapture";
|
|
484
|
+
})(MetaInfoKey = exports.MetaInfoKey || (exports.MetaInfoKey = {}));
|
|
485
|
+
/**
|
|
486
|
+
* @ignore
|
|
487
|
+
*/
|
|
488
|
+
class IVideoFrameMetaInfo {
|
|
489
|
+
}
|
|
490
|
+
exports.IVideoFrameMetaInfo = IVideoFrameMetaInfo;
|
|
491
|
+
/**
|
|
492
|
+
* @ignore
|
|
493
|
+
*/
|
|
494
|
+
var PrimaryID;
|
|
495
|
+
(function (PrimaryID) {
|
|
496
|
+
/**
|
|
497
|
+
* @ignore
|
|
498
|
+
*/
|
|
499
|
+
PrimaryID[PrimaryID["PrimaryidBt709"] = 1] = "PrimaryidBt709";
|
|
500
|
+
/**
|
|
501
|
+
* @ignore
|
|
502
|
+
*/
|
|
503
|
+
PrimaryID[PrimaryID["PrimaryidUnspecified"] = 2] = "PrimaryidUnspecified";
|
|
504
|
+
/**
|
|
505
|
+
* @ignore
|
|
506
|
+
*/
|
|
507
|
+
PrimaryID[PrimaryID["PrimaryidBt470m"] = 4] = "PrimaryidBt470m";
|
|
508
|
+
/**
|
|
509
|
+
* @ignore
|
|
510
|
+
*/
|
|
511
|
+
PrimaryID[PrimaryID["PrimaryidBt470bg"] = 5] = "PrimaryidBt470bg";
|
|
512
|
+
/**
|
|
513
|
+
* @ignore
|
|
514
|
+
*/
|
|
515
|
+
PrimaryID[PrimaryID["PrimaryidSmpte170m"] = 6] = "PrimaryidSmpte170m";
|
|
516
|
+
/**
|
|
517
|
+
* @ignore
|
|
518
|
+
*/
|
|
519
|
+
PrimaryID[PrimaryID["PrimaryidSmpte240m"] = 7] = "PrimaryidSmpte240m";
|
|
520
|
+
/**
|
|
521
|
+
* @ignore
|
|
522
|
+
*/
|
|
523
|
+
PrimaryID[PrimaryID["PrimaryidFilm"] = 8] = "PrimaryidFilm";
|
|
524
|
+
/**
|
|
525
|
+
* @ignore
|
|
526
|
+
*/
|
|
527
|
+
PrimaryID[PrimaryID["PrimaryidBt2020"] = 9] = "PrimaryidBt2020";
|
|
528
|
+
/**
|
|
529
|
+
* @ignore
|
|
530
|
+
*/
|
|
531
|
+
PrimaryID[PrimaryID["PrimaryidSmptest428"] = 10] = "PrimaryidSmptest428";
|
|
532
|
+
/**
|
|
533
|
+
* @ignore
|
|
534
|
+
*/
|
|
535
|
+
PrimaryID[PrimaryID["PrimaryidSmptest431"] = 11] = "PrimaryidSmptest431";
|
|
536
|
+
/**
|
|
537
|
+
* @ignore
|
|
538
|
+
*/
|
|
539
|
+
PrimaryID[PrimaryID["PrimaryidSmptest432"] = 12] = "PrimaryidSmptest432";
|
|
540
|
+
/**
|
|
541
|
+
* @ignore
|
|
542
|
+
*/
|
|
543
|
+
PrimaryID[PrimaryID["PrimaryidJedecp22"] = 22] = "PrimaryidJedecp22";
|
|
544
|
+
})(PrimaryID = exports.PrimaryID || (exports.PrimaryID = {}));
|
|
545
|
+
/**
|
|
546
|
+
* @ignore
|
|
547
|
+
*/
|
|
548
|
+
var RangeID;
|
|
549
|
+
(function (RangeID) {
|
|
550
|
+
/**
|
|
551
|
+
* @ignore
|
|
552
|
+
*/
|
|
553
|
+
RangeID[RangeID["RangeidInvalid"] = 0] = "RangeidInvalid";
|
|
554
|
+
/**
|
|
555
|
+
* @ignore
|
|
556
|
+
*/
|
|
557
|
+
RangeID[RangeID["RangeidLimited"] = 1] = "RangeidLimited";
|
|
558
|
+
/**
|
|
559
|
+
* @ignore
|
|
560
|
+
*/
|
|
561
|
+
RangeID[RangeID["RangeidFull"] = 2] = "RangeidFull";
|
|
562
|
+
/**
|
|
563
|
+
* @ignore
|
|
564
|
+
*/
|
|
565
|
+
RangeID[RangeID["RangeidDerived"] = 3] = "RangeidDerived";
|
|
566
|
+
})(RangeID = exports.RangeID || (exports.RangeID = {}));
|
|
567
|
+
/**
|
|
568
|
+
* @ignore
|
|
569
|
+
*/
|
|
570
|
+
var MatrixID;
|
|
571
|
+
(function (MatrixID) {
|
|
572
|
+
/**
|
|
573
|
+
* @ignore
|
|
574
|
+
*/
|
|
575
|
+
MatrixID[MatrixID["MatrixidRgb"] = 0] = "MatrixidRgb";
|
|
576
|
+
/**
|
|
577
|
+
* @ignore
|
|
578
|
+
*/
|
|
579
|
+
MatrixID[MatrixID["MatrixidBt709"] = 1] = "MatrixidBt709";
|
|
580
|
+
/**
|
|
581
|
+
* @ignore
|
|
582
|
+
*/
|
|
583
|
+
MatrixID[MatrixID["MatrixidUnspecified"] = 2] = "MatrixidUnspecified";
|
|
584
|
+
/**
|
|
585
|
+
* @ignore
|
|
586
|
+
*/
|
|
587
|
+
MatrixID[MatrixID["MatrixidFcc"] = 4] = "MatrixidFcc";
|
|
588
|
+
/**
|
|
589
|
+
* @ignore
|
|
590
|
+
*/
|
|
591
|
+
MatrixID[MatrixID["MatrixidBt470bg"] = 5] = "MatrixidBt470bg";
|
|
592
|
+
/**
|
|
593
|
+
* @ignore
|
|
594
|
+
*/
|
|
595
|
+
MatrixID[MatrixID["MatrixidSmpte170m"] = 6] = "MatrixidSmpte170m";
|
|
596
|
+
/**
|
|
597
|
+
* @ignore
|
|
598
|
+
*/
|
|
599
|
+
MatrixID[MatrixID["MatrixidSmpte240m"] = 7] = "MatrixidSmpte240m";
|
|
600
|
+
/**
|
|
601
|
+
* @ignore
|
|
602
|
+
*/
|
|
603
|
+
MatrixID[MatrixID["MatrixidYcocg"] = 8] = "MatrixidYcocg";
|
|
604
|
+
/**
|
|
605
|
+
* @ignore
|
|
606
|
+
*/
|
|
607
|
+
MatrixID[MatrixID["MatrixidBt2020Ncl"] = 9] = "MatrixidBt2020Ncl";
|
|
608
|
+
/**
|
|
609
|
+
* @ignore
|
|
610
|
+
*/
|
|
611
|
+
MatrixID[MatrixID["MatrixidBt2020Cl"] = 10] = "MatrixidBt2020Cl";
|
|
612
|
+
/**
|
|
613
|
+
* @ignore
|
|
614
|
+
*/
|
|
615
|
+
MatrixID[MatrixID["MatrixidSmpte2085"] = 11] = "MatrixidSmpte2085";
|
|
616
|
+
/**
|
|
617
|
+
* @ignore
|
|
618
|
+
*/
|
|
619
|
+
MatrixID[MatrixID["MatrixidCdncls"] = 12] = "MatrixidCdncls";
|
|
620
|
+
/**
|
|
621
|
+
* @ignore
|
|
622
|
+
*/
|
|
623
|
+
MatrixID[MatrixID["MatrixidCdcls"] = 13] = "MatrixidCdcls";
|
|
624
|
+
/**
|
|
625
|
+
* @ignore
|
|
626
|
+
*/
|
|
627
|
+
MatrixID[MatrixID["MatrixidBt2100Ictcp"] = 14] = "MatrixidBt2100Ictcp";
|
|
628
|
+
})(MatrixID = exports.MatrixID || (exports.MatrixID = {}));
|
|
629
|
+
/**
|
|
630
|
+
* @ignore
|
|
631
|
+
*/
|
|
632
|
+
var TransferID;
|
|
633
|
+
(function (TransferID) {
|
|
634
|
+
/**
|
|
635
|
+
* @ignore
|
|
636
|
+
*/
|
|
637
|
+
TransferID[TransferID["TransferidBt709"] = 1] = "TransferidBt709";
|
|
638
|
+
/**
|
|
639
|
+
* @ignore
|
|
640
|
+
*/
|
|
641
|
+
TransferID[TransferID["TransferidUnspecified"] = 2] = "TransferidUnspecified";
|
|
642
|
+
/**
|
|
643
|
+
* @ignore
|
|
644
|
+
*/
|
|
645
|
+
TransferID[TransferID["TransferidGamma22"] = 4] = "TransferidGamma22";
|
|
646
|
+
/**
|
|
647
|
+
* @ignore
|
|
648
|
+
*/
|
|
649
|
+
TransferID[TransferID["TransferidGamma28"] = 5] = "TransferidGamma28";
|
|
650
|
+
/**
|
|
651
|
+
* @ignore
|
|
652
|
+
*/
|
|
653
|
+
TransferID[TransferID["TransferidSmpte170m"] = 6] = "TransferidSmpte170m";
|
|
654
|
+
/**
|
|
655
|
+
* @ignore
|
|
656
|
+
*/
|
|
657
|
+
TransferID[TransferID["TransferidSmpte240m"] = 7] = "TransferidSmpte240m";
|
|
658
|
+
/**
|
|
659
|
+
* @ignore
|
|
660
|
+
*/
|
|
661
|
+
TransferID[TransferID["TransferidLinear"] = 8] = "TransferidLinear";
|
|
662
|
+
/**
|
|
663
|
+
* @ignore
|
|
664
|
+
*/
|
|
665
|
+
TransferID[TransferID["TransferidLog"] = 9] = "TransferidLog";
|
|
666
|
+
/**
|
|
667
|
+
* @ignore
|
|
668
|
+
*/
|
|
669
|
+
TransferID[TransferID["TransferidLogSqrt"] = 10] = "TransferidLogSqrt";
|
|
670
|
+
/**
|
|
671
|
+
* @ignore
|
|
672
|
+
*/
|
|
673
|
+
TransferID[TransferID["TransferidIec6196624"] = 11] = "TransferidIec6196624";
|
|
674
|
+
/**
|
|
675
|
+
* @ignore
|
|
676
|
+
*/
|
|
677
|
+
TransferID[TransferID["TransferidBt1361Ecg"] = 12] = "TransferidBt1361Ecg";
|
|
678
|
+
/**
|
|
679
|
+
* @ignore
|
|
680
|
+
*/
|
|
681
|
+
TransferID[TransferID["TransferidIec6196621"] = 13] = "TransferidIec6196621";
|
|
682
|
+
/**
|
|
683
|
+
* @ignore
|
|
684
|
+
*/
|
|
685
|
+
TransferID[TransferID["TransferidBt202010"] = 14] = "TransferidBt202010";
|
|
686
|
+
/**
|
|
687
|
+
* @ignore
|
|
688
|
+
*/
|
|
689
|
+
TransferID[TransferID["TransferidBt202012"] = 15] = "TransferidBt202012";
|
|
690
|
+
/**
|
|
691
|
+
* @ignore
|
|
692
|
+
*/
|
|
693
|
+
TransferID[TransferID["TransferidSmptest2084"] = 16] = "TransferidSmptest2084";
|
|
694
|
+
/**
|
|
695
|
+
* @ignore
|
|
696
|
+
*/
|
|
697
|
+
TransferID[TransferID["TransferidSmptest428"] = 17] = "TransferidSmptest428";
|
|
698
|
+
/**
|
|
699
|
+
* @ignore
|
|
700
|
+
*/
|
|
701
|
+
TransferID[TransferID["TransferidAribStdB67"] = 18] = "TransferidAribStdB67";
|
|
702
|
+
})(TransferID = exports.TransferID || (exports.TransferID = {}));
|
|
703
|
+
/**
|
|
704
|
+
* @ignore
|
|
705
|
+
*/
|
|
706
|
+
class ColorSpace {
|
|
707
|
+
}
|
|
708
|
+
exports.ColorSpace = ColorSpace;
|
|
709
|
+
/**
|
|
710
|
+
* @ignore
|
|
711
|
+
*/
|
|
712
|
+
class Hdr10MetadataInfo {
|
|
713
|
+
}
|
|
714
|
+
exports.Hdr10MetadataInfo = Hdr10MetadataInfo;
|
|
715
|
+
/**
|
|
716
|
+
* The relative position of alphaBuffer and video frames.
|
|
717
|
+
*/
|
|
718
|
+
var AlphaStitchMode;
|
|
719
|
+
(function (AlphaStitchMode) {
|
|
720
|
+
/**
|
|
721
|
+
* 0: (Default) Only video frame, that is, alphaBuffer is not stitched with the video frame.
|
|
722
|
+
*/
|
|
723
|
+
AlphaStitchMode[AlphaStitchMode["NoAlphaStitch"] = 0] = "NoAlphaStitch";
|
|
724
|
+
/**
|
|
725
|
+
* 1: alphaBuffer is above the video frame.
|
|
726
|
+
*/
|
|
727
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchUp"] = 1] = "AlphaStitchUp";
|
|
728
|
+
/**
|
|
729
|
+
* 2: alphaBuffer is below the video frame.
|
|
730
|
+
*/
|
|
731
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchBelow"] = 2] = "AlphaStitchBelow";
|
|
732
|
+
/**
|
|
733
|
+
* 3: alphaBuffer is to the left of the video frame.
|
|
734
|
+
*/
|
|
735
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchLeft"] = 3] = "AlphaStitchLeft";
|
|
736
|
+
/**
|
|
737
|
+
* 4: alphaBuffer is to the right of the video frame.
|
|
738
|
+
*/
|
|
739
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchRight"] = 4] = "AlphaStitchRight";
|
|
740
|
+
})(AlphaStitchMode = exports.AlphaStitchMode || (exports.AlphaStitchMode = {}));
|
|
741
|
+
/**
|
|
742
|
+
* @ignore
|
|
743
|
+
*/
|
|
744
|
+
var EglContextType;
|
|
745
|
+
(function (EglContextType) {
|
|
746
|
+
/**
|
|
747
|
+
* @ignore
|
|
748
|
+
*/
|
|
749
|
+
EglContextType[EglContextType["EglContext10"] = 0] = "EglContext10";
|
|
750
|
+
/**
|
|
751
|
+
* @ignore
|
|
752
|
+
*/
|
|
753
|
+
EglContextType[EglContextType["EglContext14"] = 1] = "EglContext14";
|
|
754
|
+
})(EglContextType = exports.EglContextType || (exports.EglContextType = {}));
|
|
755
|
+
/**
|
|
756
|
+
* The video buffer type.
|
|
757
|
+
*/
|
|
758
|
+
var VideoBufferType;
|
|
759
|
+
(function (VideoBufferType) {
|
|
760
|
+
/**
|
|
761
|
+
* 1: The video buffer in the format of raw data.
|
|
762
|
+
*/
|
|
763
|
+
VideoBufferType[VideoBufferType["VideoBufferRawData"] = 1] = "VideoBufferRawData";
|
|
764
|
+
/**
|
|
765
|
+
* 2: The video buffer in the format of raw data.
|
|
766
|
+
*/
|
|
767
|
+
VideoBufferType[VideoBufferType["VideoBufferArray"] = 2] = "VideoBufferArray";
|
|
768
|
+
/**
|
|
769
|
+
* 3: The video buffer in the format of Texture.
|
|
770
|
+
*/
|
|
771
|
+
VideoBufferType[VideoBufferType["VideoBufferTexture"] = 3] = "VideoBufferTexture";
|
|
772
|
+
})(VideoBufferType = exports.VideoBufferType || (exports.VideoBufferType = {}));
|
|
773
|
+
/**
|
|
774
|
+
* The external video frame.
|
|
775
|
+
*/
|
|
776
|
+
class ExternalVideoFrame {
|
|
777
|
+
}
|
|
778
|
+
exports.ExternalVideoFrame = ExternalVideoFrame;
|
|
779
|
+
/**
|
|
780
|
+
* Configurations of the video frame.
|
|
781
|
+
*
|
|
782
|
+
* Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
|
|
783
|
+
*/
|
|
784
|
+
class VideoFrame {
|
|
785
|
+
}
|
|
786
|
+
exports.VideoFrame = VideoFrame;
|
|
787
|
+
/**
|
|
788
|
+
* @ignore
|
|
789
|
+
*/
|
|
790
|
+
var MediaPlayerSourceType;
|
|
791
|
+
(function (MediaPlayerSourceType) {
|
|
792
|
+
/**
|
|
793
|
+
* @ignore
|
|
794
|
+
*/
|
|
795
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceDefault"] = 0] = "MediaPlayerSourceDefault";
|
|
796
|
+
/**
|
|
797
|
+
* @ignore
|
|
798
|
+
*/
|
|
799
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceFullFeatured"] = 1] = "MediaPlayerSourceFullFeatured";
|
|
800
|
+
/**
|
|
801
|
+
* @ignore
|
|
802
|
+
*/
|
|
803
|
+
MediaPlayerSourceType[MediaPlayerSourceType["MediaPlayerSourceSimple"] = 2] = "MediaPlayerSourceSimple";
|
|
804
|
+
})(MediaPlayerSourceType = exports.MediaPlayerSourceType || (exports.MediaPlayerSourceType = {}));
|
|
805
|
+
/**
|
|
806
|
+
* The frame position of the video observer.
|
|
807
|
+
*/
|
|
808
|
+
var VideoModulePosition;
|
|
809
|
+
(function (VideoModulePosition) {
|
|
810
|
+
/**
|
|
811
|
+
* 1: The location of the locally collected video data after preprocessing corresponds to the onCaptureVideoFrame callback. The observed video here has the effect of video pre-processing, which can be verified by enabling image enhancement, virtual background, or watermark.
|
|
812
|
+
*/
|
|
813
|
+
VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
|
|
814
|
+
/**
|
|
815
|
+
* 2: The pre-renderer position, which corresponds to the video data in the onRenderVideoFrame callback.
|
|
816
|
+
*/
|
|
817
|
+
VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
|
|
818
|
+
/**
|
|
819
|
+
* 4: The pre-encoder position, which corresponds to the video data in the onPreEncodeVideoFrame callback. The observed video here has the effects of video pre-processing and encoding pre-processing.
|
|
820
|
+
* To verify the pre-processing effects of the video, you can enable image enhancement, virtual background, or watermark.
|
|
821
|
+
* To verify the pre-encoding processing effect, you can set a lower frame rate (for example, 5 fps).
|
|
822
|
+
*/
|
|
823
|
+
VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
|
|
824
|
+
/**
|
|
825
|
+
* 8: The position after local video capture and before pre-processing. The observed video here does not have pre-processing effects, which can be verified by enabling image enhancement, virtual background, or watermarks.
|
|
826
|
+
*/
|
|
827
|
+
VideoModulePosition[VideoModulePosition["PositionPostCapturerOrigin"] = 8] = "PositionPostCapturerOrigin";
|
|
828
|
+
})(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
|
|
829
|
+
/**
|
|
830
|
+
* The snapshot configuration.
|
|
831
|
+
*/
|
|
832
|
+
class SnapshotConfig {
|
|
833
|
+
}
|
|
834
|
+
exports.SnapshotConfig = SnapshotConfig;
|
|
835
|
+
/**
|
|
836
|
+
* Audio frame type.
|
|
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
|
+
* Raw audio data.
|
|
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
|
+
* Audio data format.
|
|
883
|
+
*
|
|
884
|
+
* The SDK sets the audio data format in the following callbacks according to AudioParams. onRecordAudioFrame onPlaybackAudioFrame onMixedAudioFrame
|
|
885
|
+
* The SDK calculates the sampling interval through the samplesPerCall, sampleRate, and channel parameters in AudioParams, and triggers the onRecordAudioFrame, onPlaybackAudioFrame, onMixedAudioFrame, and onEarMonitoringAudioFrame callbacks according to the sampling interval. Sample interval (sec) = samplePerCall /(sampleRate × channel).
|
|
886
|
+
* Ensure that the sample interval ≥ 0.01 (s).
|
|
887
|
+
*/
|
|
888
|
+
class AudioParams {
|
|
889
|
+
}
|
|
890
|
+
exports.AudioParams = AudioParams;
|
|
891
|
+
/**
|
|
892
|
+
* The audio spectrum data.
|
|
893
|
+
*/
|
|
894
|
+
class AudioSpectrumData {
|
|
895
|
+
}
|
|
896
|
+
exports.AudioSpectrumData = AudioSpectrumData;
|
|
897
|
+
/**
|
|
898
|
+
* Audio spectrum information of the remote user.
|
|
899
|
+
*/
|
|
900
|
+
class UserAudioSpectrumInfo {
|
|
901
|
+
}
|
|
902
|
+
exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
|
|
903
|
+
/**
|
|
904
|
+
* The process mode of the video frame:
|
|
905
|
+
*/
|
|
906
|
+
var VideoFrameProcessMode;
|
|
907
|
+
(function (VideoFrameProcessMode) {
|
|
908
|
+
/**
|
|
909
|
+
* Read-only mode. In this mode, you do not modify the video frame. The video frame observer is a renderer.
|
|
910
|
+
*/
|
|
911
|
+
VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadOnly"] = 0] = "ProcessModeReadOnly";
|
|
912
|
+
/**
|
|
913
|
+
* Read and write mode. In this mode, you modify the video frame. The video frame observer is a video filter.
|
|
914
|
+
*/
|
|
915
|
+
VideoFrameProcessMode[VideoFrameProcessMode["ProcessModeReadWrite"] = 1] = "ProcessModeReadWrite";
|
|
916
|
+
})(VideoFrameProcessMode = exports.VideoFrameProcessMode || (exports.VideoFrameProcessMode = {}));
|
|
917
|
+
/**
|
|
918
|
+
* The external video frame encoding type.
|
|
919
|
+
*/
|
|
920
|
+
var ExternalVideoSourceType;
|
|
921
|
+
(function (ExternalVideoSourceType) {
|
|
922
|
+
/**
|
|
923
|
+
* 0: The video frame is not encoded.
|
|
924
|
+
*/
|
|
925
|
+
ExternalVideoSourceType[ExternalVideoSourceType["VideoFrame"] = 0] = "VideoFrame";
|
|
926
|
+
/**
|
|
927
|
+
* 1: The video frame is encoded.
|
|
928
|
+
*/
|
|
929
|
+
ExternalVideoSourceType[ExternalVideoSourceType["EncodedVideoFrame"] = 1] = "EncodedVideoFrame";
|
|
930
|
+
})(ExternalVideoSourceType = exports.ExternalVideoSourceType || (exports.ExternalVideoSourceType = {}));
|
|
931
|
+
/**
|
|
932
|
+
* @ignore
|
|
933
|
+
*/
|
|
934
|
+
var MediaRecorderContainerFormat;
|
|
935
|
+
(function (MediaRecorderContainerFormat) {
|
|
936
|
+
/**
|
|
937
|
+
* @ignore
|
|
938
|
+
*/
|
|
939
|
+
MediaRecorderContainerFormat[MediaRecorderContainerFormat["FormatMp4"] = 1] = "FormatMp4";
|
|
940
|
+
})(MediaRecorderContainerFormat = exports.MediaRecorderContainerFormat || (exports.MediaRecorderContainerFormat = {}));
|
|
941
|
+
/**
|
|
942
|
+
* The recording content.
|
|
943
|
+
*/
|
|
944
|
+
var MediaRecorderStreamType;
|
|
945
|
+
(function (MediaRecorderStreamType) {
|
|
946
|
+
/**
|
|
947
|
+
* Only audio.
|
|
948
|
+
*/
|
|
949
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeAudio"] = 1] = "StreamTypeAudio";
|
|
950
|
+
/**
|
|
951
|
+
* Only video.
|
|
952
|
+
*/
|
|
953
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeVideo"] = 2] = "StreamTypeVideo";
|
|
954
|
+
/**
|
|
955
|
+
* (Default) Audio and video.
|
|
956
|
+
*/
|
|
957
|
+
MediaRecorderStreamType[MediaRecorderStreamType["StreamTypeBoth"] = 3] = "StreamTypeBoth";
|
|
958
|
+
})(MediaRecorderStreamType = exports.MediaRecorderStreamType || (exports.MediaRecorderStreamType = {}));
|
|
959
|
+
/**
|
|
960
|
+
* The current recording state.
|
|
961
|
+
*/
|
|
962
|
+
var RecorderState;
|
|
963
|
+
(function (RecorderState) {
|
|
964
|
+
/**
|
|
965
|
+
* -1: An error occurs during the recording. See RecorderReasonCode for the reason.
|
|
966
|
+
*/
|
|
967
|
+
RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
|
|
968
|
+
/**
|
|
969
|
+
* 2: The audio and video recording starts.
|
|
970
|
+
*/
|
|
971
|
+
RecorderState[RecorderState["RecorderStateStart"] = 2] = "RecorderStateStart";
|
|
972
|
+
/**
|
|
973
|
+
* 3: The audio and video recording stops.
|
|
974
|
+
*/
|
|
975
|
+
RecorderState[RecorderState["RecorderStateStop"] = 3] = "RecorderStateStop";
|
|
976
|
+
})(RecorderState = exports.RecorderState || (exports.RecorderState = {}));
|
|
977
|
+
/**
|
|
978
|
+
* The reason for the state change.
|
|
979
|
+
*/
|
|
980
|
+
var RecorderReasonCode;
|
|
981
|
+
(function (RecorderReasonCode) {
|
|
982
|
+
/**
|
|
983
|
+
* 0: No error.
|
|
984
|
+
*/
|
|
985
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNone"] = 0] = "RecorderReasonNone";
|
|
986
|
+
/**
|
|
987
|
+
* @ignore
|
|
988
|
+
*/
|
|
989
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonWriteFailed"] = 1] = "RecorderReasonWriteFailed";
|
|
990
|
+
/**
|
|
991
|
+
* @ignore
|
|
992
|
+
*/
|
|
993
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNoStream"] = 2] = "RecorderReasonNoStream";
|
|
994
|
+
/**
|
|
995
|
+
* @ignore
|
|
996
|
+
*/
|
|
997
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonOverMaxDuration"] = 3] = "RecorderReasonOverMaxDuration";
|
|
998
|
+
/**
|
|
999
|
+
* @ignore
|
|
1000
|
+
*/
|
|
1001
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonConfigChanged"] = 4] = "RecorderReasonConfigChanged";
|
|
1002
|
+
})(RecorderReasonCode = exports.RecorderReasonCode || (exports.RecorderReasonCode = {}));
|
|
1003
|
+
/**
|
|
1004
|
+
* @ignore
|
|
1005
|
+
*/
|
|
1006
|
+
class MediaRecorderConfiguration {
|
|
1007
|
+
}
|
|
1008
|
+
exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
|
|
1009
|
+
/**
|
|
1010
|
+
* @ignore
|
|
1011
|
+
*/
|
|
1012
|
+
class RecorderInfo {
|
|
1013
|
+
}
|
|
1014
|
+
exports.RecorderInfo = RecorderInfo;
|