agora-electron-sdk 4.5.2 → 4.5.3-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/README.md +6 -3
- package/js/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.js +395 -0
- package/js/{AgoraSdk.js → ts/AgoraSdk.js} +2 -12
- package/js/{Decoder → ts/Decoder}/index.js +1 -1
- package/js/{Private → ts/Private}/AgoraBase.js +829 -674
- package/js/{Private → ts/Private}/AgoraMediaBase.js +154 -151
- package/js/{Private → ts/Private}/AgoraMediaPlayerTypes.js +58 -54
- package/js/{Private → ts/Private}/IAgoraLog.js +13 -13
- package/js/{Private → ts/Private}/IAgoraMediaEngine.js +4 -4
- package/js/{Private → ts/Private}/IAgoraMediaPlayer.js +2 -2
- package/js/{Private → ts/Private}/IAgoraMusicContentCenter.js +1 -1
- package/js/{Private → ts/Private}/IAgoraRhythmPlayer.js +13 -13
- package/js/{Private → ts/Private}/IAgoraRtcEngine.js +150 -94
- package/js/{Private → ts/Private}/IAgoraRtcEngineEx.js +3 -3
- package/js/{Private → ts/Private}/IAgoraSpatialAudio.js +4 -4
- package/js/{Private → ts/Private}/IAudioDeviceManager.js +2 -2
- package/js/{Private → ts/Private}/impl/IAgoraMediaPlayerImpl.js +10 -0
- package/js/{Private → ts/Private}/impl/IAgoraRtcEngineExImpl.js +74 -0
- package/js/{Private → ts/Private}/impl/IAgoraRtcEngineImpl.js +233 -1
- package/js/{Private → ts/Private}/internal/IrisApiEngine.js +45 -0
- package/js/{Private → ts/Private}/internal/RtcEngineExInternal.js +74 -4
- package/js/ts/Private/internal/VideoEffectObjectInternal.js +14 -0
- package/js/{Private → ts/Private}/ti/IAgoraRtcEngine-ti.js +2 -0
- package/js/{Renderer → ts/Renderer}/AgoraView.js +19 -2
- package/js/{Renderer → ts/Renderer}/IRenderer.js +7 -4
- package/js/{Renderer → ts/Renderer}/IRendererCache.js +17 -1
- package/js/ts/Renderer/RendererCache.js +252 -0
- package/js/{Renderer → ts/Renderer}/RendererManager.js +13 -64
- package/js/{Renderer → ts/Renderer}/WebCodecsRenderer/index.js +5 -5
- package/js/{Renderer → ts/Renderer}/WebCodecsRendererCache.js +13 -1
- package/js/{Renderer → ts/Renderer}/WebGLRenderer/index.js +179 -26
- package/js/{Renderer → ts/Renderer}/YUVCanvasRenderer/index.js +12 -5
- package/js/{Utils.js → ts/Utils.js} +7 -7
- package/package.json +25 -12
- package/scripts/checkElectron.js +4 -2
- package/scripts/download.js +102 -0
- package/scripts/downloadPrebuild.js +2 -1
- package/scripts/synclib.js +2 -2
- package/ts/AgoraSdk.ts +2 -12
- package/ts/Decoder/index.ts +5 -1
- package/ts/Private/AgoraBase.ts +1259 -1060
- package/ts/Private/AgoraMediaBase.ts +351 -324
- package/ts/Private/AgoraMediaPlayerTypes.ts +94 -91
- package/ts/Private/IAgoraLog.ts +20 -18
- package/ts/Private/IAgoraMediaEngine.ts +86 -81
- package/ts/Private/IAgoraMediaPlayer.ts +196 -181
- package/ts/Private/IAgoraMediaPlayerSource.ts +40 -40
- package/ts/Private/IAgoraMusicContentCenter.ts +3 -3
- package/ts/Private/IAgoraRhythmPlayer.ts +15 -15
- package/ts/Private/IAgoraRtcEngine.ts +2492 -2047
- package/ts/Private/IAgoraRtcEngineEx.ts +434 -335
- package/ts/Private/IAgoraSpatialAudio.ts +43 -45
- package/ts/Private/IAudioDeviceManager.ts +106 -97
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +12 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +138 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +331 -0
- package/ts/Private/internal/IrisApiEngine.ts +47 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +106 -9
- package/ts/Private/internal/VideoEffectObjectInternal.ts +14 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +2 -0
- package/ts/Renderer/AgoraView.ts +32 -3
- package/ts/Renderer/IRenderer.ts +8 -3
- package/ts/Renderer/IRendererCache.ts +33 -0
- package/ts/Renderer/RendererCache.ts +211 -12
- package/ts/Renderer/RendererManager.ts +21 -99
- package/ts/Renderer/WebCodecsRenderer/index.ts +9 -6
- package/ts/Renderer/WebCodecsRendererCache.ts +17 -1
- package/ts/Renderer/WebGLRenderer/index.ts +246 -40
- package/ts/Renderer/YUVCanvasRenderer/index.ts +29 -16
- package/ts/Types.ts +14 -9
- package/ts/Utils.ts +8 -7
- package/types/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.d.ts +168 -0
- package/types/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.d.ts.map +1 -0
- package/types/{AgoraSdk.d.ts → ts/AgoraSdk.d.ts} +2 -12
- package/types/ts/AgoraSdk.d.ts.map +1 -0
- package/types/ts/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/ts/Decoder/index.d.ts.map +1 -0
- package/types/ts/Private/AgoraBase.d.ts +5504 -0
- package/types/ts/Private/AgoraBase.d.ts.map +1 -0
- package/types/ts/Private/AgoraMediaBase.d.ts +1695 -0
- package/types/ts/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/ts/Private/AgoraMediaPlayerTypes.d.ts +456 -0
- package/types/ts/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/ts/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/ts/Private/IAgoraLog.d.ts +91 -0
- package/types/ts/Private/IAgoraLog.d.ts.map +1 -0
- package/types/ts/Private/IAgoraMediaEngine.d.ts +255 -0
- package/types/ts/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/ts/Private/IAgoraMediaPlayer.d.ts +662 -0
- package/types/ts/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/ts/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/ts/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/ts/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/ts/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/{Private → ts/Private}/IAgoraMusicContentCenter.d.ts +3 -3
- package/types/ts/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/ts/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/ts/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/ts/Private/IAgoraRtcEngine.d.ts +6504 -0
- package/types/ts/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/ts/Private/IAgoraRtcEngineEx.d.ts +817 -0
- package/types/ts/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/ts/Private/IAgoraSpatialAudio.d.ts +194 -0
- package/types/ts/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/ts/Private/IAudioDeviceManager.d.ts +321 -0
- package/types/ts/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/ts/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/ts/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/ts/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/{Private → ts/Private}/impl/IAgoraMediaPlayerImpl.d.ts +2 -0
- package/types/ts/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/{Private → ts/Private}/impl/IAgoraRtcEngineExImpl.d.ts +7 -1
- package/types/ts/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/{Private → ts/Private}/impl/IAgoraRtcEngineImpl.d.ts +27 -1
- package/types/ts/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/ts/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/ts/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/ts/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/{Private → ts/Private}/internal/RtcEngineExInternal.d.ts +10 -4
- package/types/ts/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/ts/Private/internal/VideoEffectObjectInternal.d.ts +7 -0
- package/types/ts/Private/internal/VideoEffectObjectInternal.d.ts.map +1 -0
- package/types/{Private → ts/Private}/ipc/main.d.ts.map +1 -1
- package/types/ts/Private/ipc/renderer.d.ts.map +1 -0
- package/types/ts/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/ts/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/AgoraView.d.ts +6 -0
- package/types/ts/Renderer/AgoraView.d.ts.map +1 -0
- package/types/ts/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/IRenderer.d.ts +2 -2
- package/types/ts/Renderer/IRenderer.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/IRendererCache.d.ts +21 -1
- package/types/ts/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/RendererCache.d.ts +27 -0
- package/types/ts/Renderer/RendererCache.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/RendererManager.d.ts +4 -17
- package/types/ts/Renderer/RendererManager.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/WebCodecsRenderer/index.d.ts +3 -3
- package/types/ts/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/WebCodecsRendererCache.d.ts +7 -0
- package/types/ts/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/{Renderer → ts/Renderer}/WebGLRenderer/index.d.ts +12 -2
- package/types/ts/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/ts/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/ts/Renderer/YUVCanvasRenderer/index.d.ts +10 -0
- package/types/ts/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/ts/Renderer/index.d.ts.map +1 -0
- package/types/{Types.d.ts → ts/Types.d.ts} +11 -6
- package/types/ts/Types.d.ts.map +1 -0
- package/types/{Utils.d.ts → ts/Utils.d.ts} +1 -1
- package/types/ts/Utils.d.ts.map +1 -0
- package/js/Renderer/RendererCache.js +0 -100
- package/types/AgoraSdk.d.ts.map +0 -1
- package/types/Decoder/gpu-utils.d.ts.map +0 -1
- package/types/Decoder/index.d.ts.map +0 -1
- package/types/Private/AgoraBase.d.ts +0 -5310
- package/types/Private/AgoraBase.d.ts.map +0 -1
- package/types/Private/AgoraMediaBase.d.ts +0 -1668
- package/types/Private/AgoraMediaBase.d.ts.map +0 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +0 -453
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +0 -1
- package/types/Private/IAgoraH265Transcoder.d.ts.map +0 -1
- package/types/Private/IAgoraLog.d.ts +0 -89
- package/types/Private/IAgoraLog.d.ts.map +0 -1
- package/types/Private/IAgoraMediaEngine.d.ts +0 -250
- package/types/Private/IAgoraMediaEngine.d.ts.map +0 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +0 -648
- package/types/Private/IAgoraMediaPlayer.d.ts.map +0 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +0 -109
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +0 -1
- package/types/Private/IAgoraMediaRecorder.d.ts.map +0 -1
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +0 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +0 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +0 -65
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +0 -1
- package/types/Private/IAgoraRtcEngine.d.ts +0 -6103
- package/types/Private/IAgoraRtcEngine.d.ts.map +0 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +0 -741
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +0 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +0 -196
- package/types/Private/IAgoraSpatialAudio.d.ts.map +0 -1
- package/types/Private/IAudioDeviceManager.d.ts +0 -312
- package/types/Private/IAudioDeviceManager.d.ts.map +0 -1
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +0 -1
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +0 -1
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +0 -1
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +0 -1
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +0 -1
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +0 -1
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +0 -1
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +0 -1
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +0 -1
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +0 -1
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +0 -1
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +0 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +0 -1
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +0 -1
- package/types/Private/internal/MediaEngineInternal.d.ts.map +0 -1
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +0 -1
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +0 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +0 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +0 -1
- package/types/Private/ipc/renderer.d.ts.map +0 -1
- package/types/Private/ti/AgoraBase-ti.d.ts.map +0 -1
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +0 -1
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +0 -1
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +0 -1
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +0 -1
- package/types/Renderer/AgoraView.d.ts.map +0 -1
- package/types/Renderer/CapabilityManager.d.ts.map +0 -1
- package/types/Renderer/IRenderer.d.ts.map +0 -1
- package/types/Renderer/IRendererCache.d.ts.map +0 -1
- package/types/Renderer/RendererCache.d.ts.map +0 -1
- package/types/Renderer/RendererManager.d.ts.map +0 -1
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +0 -1
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +0 -1
- package/types/Renderer/WebGLRenderer/index.d.ts.map +0 -1
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +0 -1
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +0 -9
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +0 -1
- package/types/Renderer/index.d.ts.map +0 -1
- package/types/Types.d.ts.map +0 -1
- package/types/Utils.d.ts.map +0 -1
- /package/js/{Decoder → ts/Decoder}/gpu-utils.js +0 -0
- /package/js/{Private → ts/Private}/IAgoraH265Transcoder.js +0 -0
- /package/js/{Private → ts/Private}/IAgoraMediaPlayerSource.js +0 -0
- /package/js/{Private → ts/Private}/IAgoraMediaRecorder.js +0 -0
- /package/js/{Private → ts/Private}/IAgoraMediaStreamingSource.js +0 -0
- /package/js/{Private → ts/Private}/extension/AgoraBaseExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/AgoraMediaBaseExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/AgoraMediaPlayerTypesExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraH265TranscoderExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraLogExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraMediaEngineExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraMediaPlayerExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraMediaPlayerSourceExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraMediaRecorderExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraMusicContentCenterExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraRhythmPlayerExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraRtcEngineExExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraRtcEngineExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAgoraSpatialAudioExtension.js +0 -0
- /package/js/{Private → ts/Private}/extension/IAudioDeviceManagerExtension.js +0 -0
- /package/js/{Private → ts/Private}/impl/AgoraBaseImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/AgoraMediaBaseImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraH265TranscoderImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraMediaEngineImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraMediaPlayerSourceImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraMediaRecorderImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraMusicContentCenterImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAgoraSpatialAudioImpl.js +0 -0
- /package/js/{Private → ts/Private}/impl/IAudioDeviceManagerImpl.js +0 -0
- /package/js/{Private → ts/Private}/internal/AgoraH265TranscoderInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/AgoraMediaBaseInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/AudioDeviceManagerInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/LocalSpatialAudioEngineInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/MediaEngineInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/MediaPlayerInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/MediaRecorderInternal.js +0 -0
- /package/js/{Private → ts/Private}/internal/MusicContentCenterInternal.js +0 -0
- /package/js/{Private → ts/Private}/ipc/main.js +0 -0
- /package/js/{Private → ts/Private}/ipc/renderer.js +0 -0
- /package/js/{Private → ts/Private}/ti/AgoraBase-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/AgoraMediaBase-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/AgoraMediaPlayerTypes-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraH265Transcoder-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraLog-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMediaEngine-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMediaPlayer-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMediaPlayerSource-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMediaRecorder-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMediaStreamingSource-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraMusicContentCenter-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraRhythmPlayer-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraRtcEngineEx-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAgoraSpatialAudio-ti.js +0 -0
- /package/js/{Private → ts/Private}/ti/IAudioDeviceManager-ti.js +0 -0
- /package/js/{Renderer → ts/Renderer}/CapabilityManager.js +0 -0
- /package/js/{Renderer → ts/Renderer}/WebGLRenderer/webgl-utils.js +0 -0
- /package/js/{Renderer → ts/Renderer}/index.js +0 -0
- /package/js/{Types.js → ts/Types.js} +0 -0
- /package/types/{Decoder → ts/Decoder}/gpu-utils.d.ts +0 -0
- /package/types/{Decoder → ts/Decoder}/index.d.ts +0 -0
- /package/types/{Private → ts/Private}/IAgoraH265Transcoder.d.ts +0 -0
- /package/types/{Private → ts/Private}/IAgoraMediaRecorder.d.ts +0 -0
- /package/types/{Private → ts/Private}/IAgoraMediaStreamingSource.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/AgoraBaseExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/AgoraMediaBaseExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraH265TranscoderExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraLogExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraMediaEngineExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraMediaPlayerExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraMediaRecorderExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraMusicContentCenterExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraRhythmPlayerExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraRtcEngineExExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraRtcEngineExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAgoraSpatialAudioExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/extension/IAudioDeviceManagerExtension.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/AgoraBaseImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/AgoraMediaBaseImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraH265TranscoderImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraMediaEngineImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraMediaRecorderImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraMusicContentCenterImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAgoraSpatialAudioImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/impl/IAudioDeviceManagerImpl.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/AgoraH265TranscoderInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/AgoraMediaBaseInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/AudioDeviceManagerInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/IrisApiEngine.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/LocalSpatialAudioEngineInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/MediaEngineInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/MediaPlayerInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/MediaRecorderInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/internal/MusicContentCenterInternal.d.ts +0 -0
- /package/types/{Private → ts/Private}/ipc/main.d.ts +0 -0
- /package/types/{Private → ts/Private}/ipc/renderer.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/AgoraBase-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/AgoraMediaBase-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/AgoraMediaPlayerTypes-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraH265Transcoder-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraLog-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMediaEngine-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMediaPlayer-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMediaRecorder-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMediaStreamingSource-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraMusicContentCenter-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraRhythmPlayer-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraRtcEngine-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraRtcEngineEx-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAgoraSpatialAudio-ti.d.ts +0 -0
- /package/types/{Private → ts/Private}/ti/IAudioDeviceManager-ti.d.ts +0 -0
- /package/types/{Renderer → ts/Renderer}/CapabilityManager.d.ts +0 -0
- /package/types/{Renderer → ts/Renderer}/WebGLRenderer/webgl-utils.d.ts +0 -0
- /package/types/{Renderer → ts/Renderer}/index.d.ts +0 -0
|
@@ -25,52 +25,54 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
ChannelMediaOptions,
|
|
27
27
|
IRtcEngine,
|
|
28
|
+
ImageTrackOptions,
|
|
28
29
|
LeaveChannelOptions,
|
|
29
30
|
StreamFallbackOptions,
|
|
30
31
|
} from './IAgoraRtcEngine';
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* Class containing connection information.
|
|
34
35
|
*/
|
|
35
36
|
export class RtcConnection {
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* Channel name.
|
|
38
39
|
*/
|
|
39
40
|
channelId?: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Local user ID.
|
|
42
43
|
*/
|
|
43
44
|
localUid?: number;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* Interface class that provides multi-channel methods.
|
|
48
49
|
*
|
|
49
|
-
*
|
|
50
|
+
* Inherits from IRtcEngine.
|
|
50
51
|
*/
|
|
51
52
|
export abstract class IRtcEngineEx extends IRtcEngine {
|
|
52
53
|
/**
|
|
53
54
|
* Joins a channel.
|
|
54
55
|
*
|
|
55
|
-
*
|
|
56
|
+
* Call this method to join multiple channels simultaneously. If you want to join the same channel on different devices, make sure the user IDs used on different devices are different. If you are already in a channel, you cannot join the same channel again with the same user ID.
|
|
57
|
+
* Before joining a channel, make sure the App ID used to generate the Token is the same as the one used to initialize the engine with the initialize method. Otherwise, joining the channel with the Token will fail.
|
|
56
58
|
*
|
|
57
|
-
* @param token
|
|
58
|
-
* (Recommended) If your project
|
|
59
|
-
* If
|
|
60
|
-
* If you need to join
|
|
61
|
-
* @param connection
|
|
62
|
-
* @param options
|
|
59
|
+
* @param token A dynamic key generated on the server for authentication. See [Token Authentication](https://docs.agora.io/en/video-calling/token-authentication/deploy-token-server).
|
|
60
|
+
* (Recommended) If your project enables security mode (i.e., using APP ID + Token for authentication), this parameter is required.
|
|
61
|
+
* If your project only enables debug mode (i.e., using APP ID for authentication), you can join a channel without providing a Token. You will automatically leave the channel 24 hours after joining.
|
|
62
|
+
* If you need to join multiple channels simultaneously or switch channels frequently, Agora recommends using a wildcard Token to avoid requesting a new Token from the server each time. See [Using Wildcard Token](https://docs.agora.io/en/video-calling/token-authentication/deploy-token-server).
|
|
63
|
+
* @param connection Connection information. See RtcConnection.
|
|
64
|
+
* @param options Channel media options. See ChannelMediaOptions.
|
|
63
65
|
*
|
|
64
66
|
* @returns
|
|
65
67
|
* 0: Success.
|
|
66
|
-
* < 0: Failure.
|
|
67
|
-
* -2:
|
|
68
|
-
* -3:
|
|
69
|
-
* -7:
|
|
70
|
-
* -8:
|
|
71
|
-
* -17:
|
|
72
|
-
* -102:
|
|
73
|
-
* -121:
|
|
68
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
69
|
+
* -2: Invalid parameters. For example, invalid Token, uid is not an integer, or ChannelMediaOptions contains invalid values. Provide valid parameters and rejoin the channel.
|
|
70
|
+
* -3: IRtcEngine initialization failed. Reinitialize the IRtcEngine object.
|
|
71
|
+
* -7: IRtcEngine is not initialized. Initialize the IRtcEngine object before calling this method.
|
|
72
|
+
* -8: Internal state error in IRtcEngine. Possible cause: startEchoTest was called to start echo test but stopEchoTest was not called before joining the channel. Call stopEchoTest before this method.
|
|
73
|
+
* -17: Join channel rejected. Possible cause: the user is already in the channel. Use onConnectionStateChanged to check the connection state. Do not call this method again unless you receive ConnectionStateDisconnected (1).
|
|
74
|
+
* -102: Invalid channel name. Provide a valid channelId and rejoin the channel.
|
|
75
|
+
* -121: Invalid user ID. Provide a valid uid and rejoin the channel.
|
|
74
76
|
*/
|
|
75
77
|
abstract joinChannelEx(
|
|
76
78
|
token: string,
|
|
@@ -81,16 +83,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
81
83
|
/**
|
|
82
84
|
* Sets channel options and leaves the channel.
|
|
83
85
|
*
|
|
84
|
-
* After calling this method, the SDK
|
|
85
|
-
*
|
|
86
|
-
*
|
|
86
|
+
* After calling this method, the SDK stops all audio and video interactions, leaves the current channel, and releases all session-related resources.
|
|
87
|
+
* After successfully joining a channel using joinChannelEx, you must call this method to end the call, otherwise you cannot start a new one.
|
|
88
|
+
* This method is asynchronous. When the call returns, it does not mean the user has actually left the channel.
|
|
89
|
+
* If you call leaveChannel, it will leave both channels joined via joinChannel and joinChannelEx. If you call release immediately after this method, the SDK will not trigger the onLeaveChannel callback.
|
|
87
90
|
*
|
|
88
|
-
* @param connection
|
|
89
|
-
* @param options
|
|
91
|
+
* @param connection Connection information. See RtcConnection.
|
|
92
|
+
* @param options Options for leaving the channel. See LeaveChannelOptions. This parameter only supports setting the stopMicrophoneRecording member in LeaveChannelOptions. Other members are not effective.
|
|
90
93
|
*
|
|
91
94
|
* @returns
|
|
92
|
-
* 0:
|
|
93
|
-
* < 0:
|
|
95
|
+
* 0: The method call succeeds.
|
|
96
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
94
97
|
*/
|
|
95
98
|
abstract leaveChannelEx(
|
|
96
99
|
connection: RtcConnection,
|
|
@@ -107,17 +110,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
107
110
|
): number;
|
|
108
111
|
|
|
109
112
|
/**
|
|
110
|
-
* Updates
|
|
113
|
+
* Updates channel media options after joining the channel.
|
|
111
114
|
*
|
|
112
|
-
* @param options
|
|
113
|
-
* @param connection
|
|
115
|
+
* @param options Channel media options. See ChannelMediaOptions.
|
|
116
|
+
* @param connection Connection information. See RtcConnection.
|
|
114
117
|
*
|
|
115
118
|
* @returns
|
|
116
|
-
* 0:
|
|
117
|
-
* < 0:
|
|
118
|
-
* -2:
|
|
119
|
-
* -7: The IRtcEngine object
|
|
120
|
-
* -8: The internal state of the IRtcEngine object is
|
|
119
|
+
* 0: The method call succeeds.
|
|
120
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
121
|
+
* -2: Invalid ChannelMediaOptions values. For example, using an invalid token or setting an invalid user role. You must provide valid parameters.
|
|
122
|
+
* -7: The IRtcEngine object is not initialized. You must initialize the IRtcEngine object before calling this method.
|
|
123
|
+
* -8: The internal state of the IRtcEngine object is incorrect. This may happen if the user is not in a channel. Use the onConnectionStateChanged callback to determine whether the user is in a channel. If you receive ConnectionStateDisconnected (1) or ConnectionStateFailed (5), the user is not in a channel. You must call joinChannel before using this method.
|
|
121
124
|
*/
|
|
122
125
|
abstract updateChannelMediaOptionsEx(
|
|
123
126
|
options: ChannelMediaOptions,
|
|
@@ -125,16 +128,16 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
125
128
|
): number;
|
|
126
129
|
|
|
127
130
|
/**
|
|
128
|
-
* Sets the video
|
|
131
|
+
* Sets the video encoding configuration.
|
|
129
132
|
*
|
|
130
|
-
* Sets the
|
|
133
|
+
* Sets the encoding configuration for the local video. Each video encoding configuration corresponds to a set of video parameters, including resolution, frame rate, and bitrate. The config parameter of this method specifies the maximum values achievable under ideal network conditions. If the network condition is poor, the video engine may not use this config to render the local video and will automatically downgrade to a suitable video parameter configuration.
|
|
131
134
|
*
|
|
132
|
-
* @param config Video
|
|
133
|
-
* @param connection
|
|
135
|
+
* @param config Video encoding configuration. See VideoEncoderConfiguration.
|
|
136
|
+
* @param connection Connection information. See RtcConnection.
|
|
134
137
|
*
|
|
135
138
|
* @returns
|
|
136
|
-
* 0:
|
|
137
|
-
* < 0:
|
|
139
|
+
* 0: The method call succeeds.
|
|
140
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting tips.
|
|
138
141
|
*/
|
|
139
142
|
abstract setVideoEncoderConfigurationEx(
|
|
140
143
|
config: VideoEncoderConfiguration,
|
|
@@ -142,18 +145,23 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
142
145
|
): number;
|
|
143
146
|
|
|
144
147
|
/**
|
|
145
|
-
* Initializes the
|
|
148
|
+
* Initializes the remote user view.
|
|
146
149
|
*
|
|
147
|
-
* This method
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
+
* This method binds a remote user to a display view and sets the rendering and mirror mode for the remote user's view as seen locally. It only affects the video display seen by the local user.
|
|
151
|
+
* You need to specify the remote user's ID in VideoCanvas when calling this method. It is generally recommended to set this before joining the channel.
|
|
152
|
+
* If the remote user's uid is not available before joining the channel, you can call this method upon receiving the onUserJoined callback. If video recording is enabled, the recording service joins the channel as a dummy client. Other clients will also receive its onUserJoined event, but the app should not bind a view to it (as it does not send video streams).
|
|
153
|
+
* To unbind a view from a remote user, call this method and set view to null.
|
|
154
|
+
* After leaving the channel, the SDK clears the binding between the remote user and the view.
|
|
155
|
+
* You must call this method after joinChannelEx.
|
|
156
|
+
* In Flutter, you do not need to call this method manually. Use AgoraVideoView to render local and remote views.
|
|
157
|
+
* If you want to update the rendering or mirror mode of the remote user's view during a call, use the setRemoteRenderModeEx method.
|
|
150
158
|
*
|
|
151
|
-
* @param canvas
|
|
152
|
-
* @param connection
|
|
159
|
+
* @param canvas Video canvas information. See VideoCanvas.
|
|
160
|
+
* @param connection Connection information. See RtcConnection.
|
|
153
161
|
*
|
|
154
162
|
* @returns
|
|
155
163
|
* 0: Success.
|
|
156
|
-
* < 0: Failure.
|
|
164
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
157
165
|
*/
|
|
158
166
|
abstract setupRemoteVideoEx(
|
|
159
167
|
canvas: VideoCanvas,
|
|
@@ -161,15 +169,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
161
169
|
): number;
|
|
162
170
|
|
|
163
171
|
/**
|
|
164
|
-
* Stops or resumes receiving the audio stream
|
|
172
|
+
* Stops or resumes receiving the specified audio stream.
|
|
173
|
+
*
|
|
174
|
+
* This method stops or resumes receiving the audio stream from a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.
|
|
165
175
|
*
|
|
166
176
|
* @param uid The ID of the specified user.
|
|
167
|
-
* @param mute Whether to stop receiving the audio stream
|
|
168
|
-
* @param connection
|
|
177
|
+
* @param mute Whether to stop receiving the specified audio stream: true : Stop receiving the specified audio stream. false : (Default) Continue receiving the specified audio stream.
|
|
178
|
+
* @param connection Connection information. See RtcConnection.
|
|
169
179
|
*
|
|
170
180
|
* @returns
|
|
171
181
|
* 0: Success.
|
|
172
|
-
* < 0: Failure.
|
|
182
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
173
183
|
*/
|
|
174
184
|
abstract muteRemoteAudioStreamEx(
|
|
175
185
|
uid: number,
|
|
@@ -178,17 +188,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
178
188
|
): number;
|
|
179
189
|
|
|
180
190
|
/**
|
|
181
|
-
* Stops or resumes receiving the video stream
|
|
191
|
+
* Stops or resumes receiving the specified video stream.
|
|
182
192
|
*
|
|
183
|
-
* This method
|
|
193
|
+
* This method stops or resumes receiving the video stream from a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.
|
|
184
194
|
*
|
|
185
|
-
* @param uid The
|
|
186
|
-
* @param mute Whether to stop receiving the video stream
|
|
187
|
-
* @param connection
|
|
195
|
+
* @param uid The ID of the remote user.
|
|
196
|
+
* @param mute Whether to stop receiving the video stream from a remote user: true : Stop receiving. false : (Default) Resume receiving.
|
|
197
|
+
* @param connection Connection information. See RtcConnection.
|
|
188
198
|
*
|
|
189
199
|
* @returns
|
|
190
200
|
* 0: Success.
|
|
191
|
-
* < 0: Failure.
|
|
201
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
192
202
|
*/
|
|
193
203
|
abstract muteRemoteVideoStreamEx(
|
|
194
204
|
uid: number,
|
|
@@ -199,20 +209,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
199
209
|
/**
|
|
200
210
|
* Sets the video stream type to subscribe to.
|
|
201
211
|
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* If the sender calls setDualStreamMode and sets mode to DisableSimulcastStream (never send low
|
|
205
|
-
* If the sender calls setDualStreamMode and sets mode to EnableSimulcastStream (always send low
|
|
206
|
-
* If the publisher has already called setDualStreamModeEx and set mode to DisableSimulcastStream (never send low-quality video stream), calling this method will not take effect, you should call setDualStreamModeEx again on the sending end and adjust the settings.
|
|
207
|
-
* Calling this method on the receiving end of the audience role will not take effect.
|
|
212
|
+
* Depending on the sender's default behavior and the configuration of setDualStreamMode, the receiver's use of this method falls into the following cases:
|
|
213
|
+
* By default, the SDK enables the adaptive low stream mode (AutoSimulcastStream) on the sender side. That is, the sender only sends the high stream. Only receivers with host role can call this method to request the low stream. Once the sender receives the request, it starts sending the low stream automatically. At this point, all users in the channel can call this method to switch to low stream subscription mode.
|
|
214
|
+
* If the sender calls setDualStreamMode and sets mode to DisableSimulcastStream (never send low stream), then this method has no effect.
|
|
215
|
+
* If the sender calls setDualStreamMode and sets mode to EnableSimulcastStream (always send low stream), then both host and audience receivers can call this method to switch to low stream subscription mode. When receiving low video streams, the SDK dynamically adjusts the video stream size based on the size of the video window to save bandwidth and computing resources. The aspect ratio of the low stream is the same as that of the high stream. Based on the current aspect ratio of the high stream, the system automatically allocates resolution, frame rate, and bitrate for the low stream. If the sender has called setDualStreamModeEx and set mode to DisableSimulcastStream (never send low stream), then this method has no effect. You need to call setDualStreamModeEx again on the sender side to change the setting.
|
|
208
216
|
*
|
|
209
|
-
* @param uid
|
|
210
|
-
* @param streamType
|
|
211
|
-
* @param connection
|
|
217
|
+
* @param uid User ID.
|
|
218
|
+
* @param streamType Video stream type: VideoStreamType.
|
|
219
|
+
* @param connection Connection information. See RtcConnection.
|
|
212
220
|
*
|
|
213
221
|
* @returns
|
|
214
|
-
* 0:
|
|
215
|
-
* < 0:
|
|
222
|
+
* 0: The method call succeeds.
|
|
223
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
216
224
|
*/
|
|
217
225
|
abstract setRemoteVideoStreamTypeEx(
|
|
218
226
|
uid: number,
|
|
@@ -223,14 +231,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
223
231
|
/**
|
|
224
232
|
* Stops or resumes publishing the local audio stream.
|
|
225
233
|
*
|
|
226
|
-
*
|
|
234
|
+
* After this method is successfully called, the remote client triggers the onUserMuteAudio and onRemoteAudioStateChanged callbacks. This method does not affect the audio capture state because the audio capture device is not disabled.
|
|
227
235
|
*
|
|
228
|
-
* @param mute Whether to stop publishing the local audio stream
|
|
229
|
-
* @param connection
|
|
236
|
+
* @param mute Whether to stop publishing the local audio stream. true : Stop publishing. false : (Default) Publish.
|
|
237
|
+
* @param connection Connection information. See RtcConnection.
|
|
230
238
|
*
|
|
231
239
|
* @returns
|
|
232
240
|
* 0: Success.
|
|
233
|
-
* < 0: Failure.
|
|
241
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
234
242
|
*/
|
|
235
243
|
abstract muteLocalAudioStreamEx(
|
|
236
244
|
mute: boolean,
|
|
@@ -240,15 +248,15 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
240
248
|
/**
|
|
241
249
|
* Stops or resumes publishing the local video stream.
|
|
242
250
|
*
|
|
243
|
-
*
|
|
244
|
-
* This method does not affect
|
|
251
|
+
* After this method is successfully called, the remote user receives the onUserMuteVideo callback.
|
|
252
|
+
* This method does not affect the video capture state and does not disable the camera.
|
|
245
253
|
*
|
|
246
|
-
* @param mute Whether to stop
|
|
247
|
-
* @param connection
|
|
254
|
+
* @param mute Whether to stop sending the local video stream. true : Stop sending the local video stream. false : (Default) Send the local video stream.
|
|
255
|
+
* @param connection Connection information. See RtcConnection.
|
|
248
256
|
*
|
|
249
257
|
* @returns
|
|
250
258
|
* 0: Success.
|
|
251
|
-
* < 0: Failure.
|
|
259
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
252
260
|
*/
|
|
253
261
|
abstract muteLocalVideoStreamEx(
|
|
254
262
|
mute: boolean,
|
|
@@ -256,18 +264,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
256
264
|
): number;
|
|
257
265
|
|
|
258
266
|
/**
|
|
259
|
-
* Stops or resumes subscribing to
|
|
267
|
+
* Stops or resumes subscribing to all remote users' audio streams.
|
|
260
268
|
*
|
|
261
|
-
* After
|
|
262
|
-
*
|
|
263
|
-
*
|
|
269
|
+
* After this method is successfully called, the local user stops or resumes subscribing to remote users' audio streams, including the streams of users who join the channel after this method is called.
|
|
270
|
+
* This method must be called after joining a channel.
|
|
271
|
+
* To disable subscribing to remote users' audio streams before joining a channel, set autoSubscribeAudio to false when calling joinChannel.
|
|
264
272
|
*
|
|
265
|
-
* @param mute Whether to stop subscribing to
|
|
266
|
-
* @param connection
|
|
273
|
+
* @param mute Whether to stop subscribing to all remote users' audio streams: true : Stop subscribing to all remote users' audio streams. false : (Default) Subscribe to all remote users' audio streams.
|
|
274
|
+
* @param connection Connection information. See RtcConnection.
|
|
267
275
|
*
|
|
268
276
|
* @returns
|
|
269
277
|
* 0: Success.
|
|
270
|
-
* < 0: Failure.
|
|
278
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
271
279
|
*/
|
|
272
280
|
abstract muteAllRemoteAudioStreamsEx(
|
|
273
281
|
mute: boolean,
|
|
@@ -275,16 +283,16 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
275
283
|
): number;
|
|
276
284
|
|
|
277
285
|
/**
|
|
278
|
-
* Stops or resumes subscribing to
|
|
286
|
+
* Stops or resumes subscribing to all remote users' video streams.
|
|
279
287
|
*
|
|
280
|
-
* After
|
|
288
|
+
* After this method is successfully called, the local user stops or resumes subscribing to all remote users' video streams, including the streams of users who join the channel after this method is called.
|
|
281
289
|
*
|
|
282
|
-
* @param mute Whether to stop subscribing to
|
|
283
|
-
* @param connection
|
|
290
|
+
* @param mute Whether to stop subscribing to all remote users' video streams. true : Stop subscribing to all users' video streams. false : (Default) Subscribe to all users' video streams.
|
|
291
|
+
* @param connection Connection information. See RtcConnection.
|
|
284
292
|
*
|
|
285
293
|
* @returns
|
|
286
294
|
* 0: Success.
|
|
287
|
-
* < 0: Failure.
|
|
295
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
288
296
|
*/
|
|
289
297
|
abstract muteAllRemoteVideoStreamsEx(
|
|
290
298
|
mute: boolean,
|
|
@@ -292,21 +300,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
292
300
|
): number;
|
|
293
301
|
|
|
294
302
|
/**
|
|
295
|
-
*
|
|
303
|
+
* Sets the audio subscription blocklist.
|
|
296
304
|
*
|
|
297
|
-
* You can call this method to specify the audio streams
|
|
298
|
-
*
|
|
299
|
-
* The blocklist is not affected by
|
|
300
|
-
*
|
|
301
|
-
* If a user is
|
|
305
|
+
* You can call this method to specify the audio streams you do not want to subscribe to.
|
|
306
|
+
* This method can be called before or after joining a channel.
|
|
307
|
+
* The audio subscription blocklist is not affected by muteRemoteAudioStream, muteAllRemoteAudioStreams, or autoSubscribeAudio in ChannelMediaOptions.
|
|
308
|
+
* After setting the blocklist, if you leave and rejoin the channel, the blocklist remains effective.
|
|
309
|
+
* If a user is in both the audio subscription blocklist and allowlist, only the blocklist takes effect.
|
|
302
310
|
*
|
|
303
|
-
* @param uidList
|
|
304
|
-
*
|
|
305
|
-
* @param
|
|
311
|
+
* @param uidList List of user IDs in the audio subscription blocklist.
|
|
312
|
+
* If you want to block the audio stream of a specific user, add that user's ID to this list. If you want to remove a user from the blocklist, call setSubscribeAudioBlocklist again with an updated list that excludes the user's uid.
|
|
313
|
+
* @param uidNumber Number of users in the blocklist.
|
|
314
|
+
* @param connection Connection information. See RtcConnection.
|
|
306
315
|
*
|
|
307
316
|
* @returns
|
|
308
317
|
* 0: Success.
|
|
309
|
-
* < 0: Failure.
|
|
318
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
310
319
|
*/
|
|
311
320
|
abstract setSubscribeAudioBlocklistEx(
|
|
312
321
|
uidList: number[],
|
|
@@ -315,21 +324,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
315
324
|
): number;
|
|
316
325
|
|
|
317
326
|
/**
|
|
318
|
-
* Sets the
|
|
327
|
+
* Sets the audio subscription allowlist.
|
|
319
328
|
*
|
|
320
|
-
* You can call this method to specify the audio streams
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
329
|
+
* You can call this method to specify the audio streams you want to subscribe to.
|
|
330
|
+
* This method can be called before or after joining a channel.
|
|
331
|
+
* The audio subscription allowlist is not affected by muteRemoteAudioStream, muteAllRemoteAudioStreams, or autoSubscribeAudio in ChannelMediaOptions.
|
|
332
|
+
* After setting the allowlist, if you leave and rejoin the channel, the allowlist remains effective.
|
|
333
|
+
* If a user is in both the audio subscription blocklist and allowlist, only the blocklist takes effect.
|
|
325
334
|
*
|
|
326
|
-
* @param uidList
|
|
327
|
-
*
|
|
328
|
-
* @param
|
|
335
|
+
* @param uidList List of user IDs in the audio subscription allowlist.
|
|
336
|
+
* If you want to subscribe to the audio stream of a specific user, add that user's ID to this list. If you want to remove a user from the allowlist, call setSubscribeAudioAllowlist again with an updated list that excludes the user's uid.
|
|
337
|
+
* @param uidNumber Number of users in the allowlist.
|
|
338
|
+
* @param connection Connection information. See RtcConnection.
|
|
329
339
|
*
|
|
330
340
|
* @returns
|
|
331
341
|
* 0: Success.
|
|
332
|
-
* < 0: Failure.
|
|
342
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
333
343
|
*/
|
|
334
344
|
abstract setSubscribeAudioAllowlistEx(
|
|
335
345
|
uidList: number[],
|
|
@@ -338,21 +348,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
338
348
|
): number;
|
|
339
349
|
|
|
340
350
|
/**
|
|
341
|
-
*
|
|
351
|
+
* Sets the video subscription blocklist.
|
|
342
352
|
*
|
|
343
|
-
* You can call this method to specify the video streams
|
|
344
|
-
* If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
|
|
345
|
-
* Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
|
|
353
|
+
* You can call this method to specify the video streams you do not want to subscribe to.
|
|
346
354
|
* You can call this method either before or after joining a channel.
|
|
347
|
-
* The blocklist is not affected by
|
|
355
|
+
* The video subscription blocklist is not affected by muteRemoteVideoStream, muteAllRemoteVideoStreams, or autoSubscribeVideo in ChannelMediaOptions.
|
|
356
|
+
* After setting the blocklist, it remains effective even if you leave and rejoin the channel.
|
|
357
|
+
* If a user is in both the audio subscription allowlist and blocklist, only the blocklist takes effect.
|
|
348
358
|
*
|
|
349
|
-
* @param uidList The user ID list
|
|
350
|
-
*
|
|
351
|
-
* @param
|
|
359
|
+
* @param uidList The user ID list for the video subscription blocklist.
|
|
360
|
+
* If you want to block the video stream from a specific user, add that user's ID to this list. If you want to remove a user from the blocklist, you need to call the setSubscribeVideoBlocklist method again to update the list so that it no longer includes the uid of the user you want to remove.
|
|
361
|
+
* @param uidNumber The number of users in the blocklist.
|
|
362
|
+
* @param connection Connection information. See RtcConnection.
|
|
352
363
|
*
|
|
353
364
|
* @returns
|
|
354
365
|
* 0: Success.
|
|
355
|
-
* < 0: Failure.
|
|
366
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
356
367
|
*/
|
|
357
368
|
abstract setSubscribeVideoBlocklistEx(
|
|
358
369
|
uidList: number[],
|
|
@@ -361,21 +372,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
361
372
|
): number;
|
|
362
373
|
|
|
363
374
|
/**
|
|
364
|
-
*
|
|
375
|
+
* Sets the video subscription allowlist.
|
|
365
376
|
*
|
|
366
|
-
* You can call this method to specify the video streams
|
|
367
|
-
* If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
|
|
368
|
-
* Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
|
|
377
|
+
* You can call this method to specify the video streams you want to subscribe to.
|
|
369
378
|
* You can call this method either before or after joining a channel.
|
|
370
|
-
* The allowlist is not affected by
|
|
379
|
+
* The video subscription allowlist is not affected by muteRemoteVideoStream, muteAllRemoteVideoStreams, or autoSubscribeVideo in ChannelMediaOptions.
|
|
380
|
+
* After setting the allowlist, it remains effective even if you leave and rejoin the channel.
|
|
381
|
+
* If a user is in both the audio subscription allowlist and blocklist, only the blocklist takes effect.
|
|
371
382
|
*
|
|
372
|
-
* @param uidList The user ID list
|
|
373
|
-
*
|
|
374
|
-
* @param
|
|
383
|
+
* @param uidList The user ID list for the video subscription allowlist.
|
|
384
|
+
* If you want to subscribe to the video stream of a specific user, add that user's ID to this list. If you want to remove a user from the allowlist, you need to call the setSubscribeVideoAllowlist method again to update the list so that it no longer includes the uid of the user you want to remove.
|
|
385
|
+
* @param uidNumber The number of users in the allowlist.
|
|
386
|
+
* @param connection Connection information. See RtcConnection.
|
|
375
387
|
*
|
|
376
388
|
* @returns
|
|
377
389
|
* 0: Success.
|
|
378
|
-
* < 0: Failure.
|
|
390
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
379
391
|
*/
|
|
380
392
|
abstract setSubscribeVideoAllowlistEx(
|
|
381
393
|
uidList: number[],
|
|
@@ -384,17 +396,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
384
396
|
): number;
|
|
385
397
|
|
|
386
398
|
/**
|
|
387
|
-
*
|
|
399
|
+
* Sets the subscription options for the remote video stream.
|
|
388
400
|
*
|
|
389
|
-
* When
|
|
401
|
+
* When the remote user sends dual streams, you can call this method to set the subscription options for the remote video stream.
|
|
390
402
|
*
|
|
391
|
-
* @param uid
|
|
392
|
-
* @param options
|
|
393
|
-
* @param connection
|
|
403
|
+
* @param uid Remote user ID.
|
|
404
|
+
* @param options Subscription settings for the video stream. See VideoSubscriptionOptions.
|
|
405
|
+
* @param connection Connection information. See RtcConnection.
|
|
394
406
|
*
|
|
395
407
|
* @returns
|
|
396
408
|
* 0: Success.
|
|
397
|
-
* < 0: Failure.
|
|
409
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
398
410
|
*/
|
|
399
411
|
abstract setRemoteVideoSubscriptionOptionsEx(
|
|
400
412
|
uid: number,
|
|
@@ -403,23 +415,24 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
403
415
|
): number;
|
|
404
416
|
|
|
405
417
|
/**
|
|
406
|
-
* Sets the 2D position
|
|
418
|
+
* Sets the 2D position of a remote user's voice, that is, the horizontal position.
|
|
407
419
|
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
420
|
+
* Sets the spatial position and volume of a remote user's voice to help the local user determine the direction of the sound.
|
|
421
|
+
* By calling this method to set the position where the remote user's voice appears, the difference in sound between the left and right channels creates a sense of direction, allowing the user to determine the remote user's real-time position. In multiplayer online games, such as battle royale games, this method can effectively enhance the directional perception of game characters and simulate realistic scenarios.
|
|
422
|
+
* For the best listening experience, it is recommended that users wear wired headphones.
|
|
423
|
+
* This method must be called after joining the channel.
|
|
411
424
|
*
|
|
412
|
-
* @param uid The
|
|
413
|
-
* @param pan
|
|
414
|
-
* -1.0: The
|
|
415
|
-
* 0.0:
|
|
416
|
-
* 1.0: The
|
|
417
|
-
* @param gain
|
|
418
|
-
* @param connection
|
|
425
|
+
* @param uid The ID of the remote user.
|
|
426
|
+
* @param pan Sets the spatial position of the remote user's voice. The range is [-1.0, 1.0]:
|
|
427
|
+
* -1.0: The sound appears on the left.
|
|
428
|
+
* (Default) 0.0: The sound appears in the center.
|
|
429
|
+
* 1.0: The sound appears on the right.
|
|
430
|
+
* @param gain Sets the volume of the remote user's voice. The range is [0.0, 100.0], and the default is 100.0, which represents the user's original volume. The smaller the value, the lower the volume.
|
|
431
|
+
* @param connection Connection information. See RtcConnection.
|
|
419
432
|
*
|
|
420
433
|
* @returns
|
|
421
434
|
* 0: Success.
|
|
422
|
-
* < 0: Failure.
|
|
435
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
423
436
|
*/
|
|
424
437
|
abstract setRemoteVoicePositionEx(
|
|
425
438
|
uid: number,
|
|
@@ -438,20 +451,18 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
438
451
|
): number;
|
|
439
452
|
|
|
440
453
|
/**
|
|
441
|
-
* Sets the
|
|
454
|
+
* Sets the display mode of the remote view.
|
|
442
455
|
*
|
|
443
|
-
* After initializing the
|
|
444
|
-
* Call this method after initializing the remote view by calling the setupRemoteVideo method.
|
|
445
|
-
* During a call, you can call this method as many times as necessary to update the display mode of the video view of a remote user.
|
|
456
|
+
* After initializing the remote user view, you can call this method to update the rendering and mirror mode of the remote user view as displayed locally. This method only affects the video seen by the local user.
|
|
446
457
|
*
|
|
447
|
-
* @param uid
|
|
448
|
-
* @param renderMode
|
|
458
|
+
* @param uid Remote user ID.
|
|
459
|
+
* @param renderMode Display mode of the remote view. See RenderModeType.
|
|
449
460
|
* @param mirrorMode The mirror mode of the remote user view. See VideoMirrorModeType.
|
|
450
|
-
* @param connection
|
|
461
|
+
* @param connection Connection information. See RtcConnection.
|
|
451
462
|
*
|
|
452
463
|
* @returns
|
|
453
464
|
* 0: Success.
|
|
454
|
-
* < 0: Failure.
|
|
465
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
455
466
|
*/
|
|
456
467
|
abstract setRemoteRenderModeEx(
|
|
457
468
|
uid: number,
|
|
@@ -461,20 +472,21 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
461
472
|
): number;
|
|
462
473
|
|
|
463
474
|
/**
|
|
464
|
-
* Enables loopback
|
|
475
|
+
* Enables loopback recording.
|
|
465
476
|
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
* This method
|
|
477
|
+
* After enabling loopback recording, the sound played by the sound card will be mixed into the local audio stream and can be sent to the remote side.
|
|
478
|
+
* The default sound card on macOS does not support recording. If you need to use this feature, please enable a virtual sound card and set deviceName to the name of that virtual sound card. Agora recommends using its self-developed virtual sound card AgoraALD for recording.
|
|
479
|
+
* This method currently supports only one loopback recording stream.
|
|
469
480
|
*
|
|
470
|
-
* @param connection
|
|
471
|
-
* @param enabled
|
|
472
|
-
* @param deviceName
|
|
473
|
-
*
|
|
481
|
+
* @param connection Connection information. See RtcConnection.
|
|
482
|
+
* @param enabled Whether to enable loopback recording: true : Enable loopback recording. false : (Default) Disable loopback recording.
|
|
483
|
+
* @param deviceName Electron for UnionTech OS SDK does not support this parameter.
|
|
484
|
+
* macOS: The device name of the virtual sound card. Default is empty, which means using the AgoraALD virtual sound card for recording.
|
|
485
|
+
* Windows: The device name of the sound card. Default is empty, which means using the built-in sound card of the device.
|
|
474
486
|
*
|
|
475
487
|
* @returns
|
|
476
488
|
* 0: Success.
|
|
477
|
-
* < 0: Failure.
|
|
489
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
478
490
|
*/
|
|
479
491
|
abstract enableLoopbackRecordingEx(
|
|
480
492
|
connection: RtcConnection,
|
|
@@ -499,20 +511,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
499
511
|
): number;
|
|
500
512
|
|
|
501
513
|
/**
|
|
502
|
-
* Adjusts the playback
|
|
514
|
+
* Adjusts the playback volume of a specified remote user.
|
|
503
515
|
*
|
|
504
|
-
* You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of
|
|
516
|
+
* You can call this method during a call to adjust the playback volume of a specified remote user. To adjust the playback volume of multiple users, call this method multiple times.
|
|
505
517
|
*
|
|
506
|
-
* @param uid The
|
|
507
|
-
* @param volume The volume
|
|
518
|
+
* @param uid The ID of the remote user.
|
|
519
|
+
* @param volume The volume, with a range of [0,400].
|
|
508
520
|
* 0: Mute.
|
|
509
|
-
* 100: (Default)
|
|
510
|
-
* 400: Four times the original volume
|
|
511
|
-
* @param connection
|
|
521
|
+
* 100: (Default) Original volume.
|
|
522
|
+
* 400: Four times the original volume, with overflow protection.
|
|
523
|
+
* @param connection Connection information. See RtcConnection.
|
|
512
524
|
*
|
|
513
525
|
* @returns
|
|
514
526
|
* 0: Success.
|
|
515
|
-
* < 0: Failure.
|
|
527
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
516
528
|
*/
|
|
517
529
|
abstract adjustUserPlaybackSignalVolumeEx(
|
|
518
530
|
uid: number,
|
|
@@ -521,27 +533,29 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
521
533
|
): number;
|
|
522
534
|
|
|
523
535
|
/**
|
|
524
|
-
* Gets the current connection state
|
|
536
|
+
* Gets the current network connection state.
|
|
525
537
|
*
|
|
526
|
-
* @param connection
|
|
538
|
+
* @param connection Connection information. See RtcConnection.
|
|
527
539
|
*
|
|
528
540
|
* @returns
|
|
529
|
-
* The current connection state. See ConnectionStateType.
|
|
541
|
+
* The current network connection state. See ConnectionStateType.
|
|
530
542
|
*/
|
|
531
543
|
abstract getConnectionStateEx(connection: RtcConnection): ConnectionStateType;
|
|
532
544
|
|
|
533
545
|
/**
|
|
534
|
-
* Enables or disables
|
|
546
|
+
* Enables or disables built-in encryption.
|
|
535
547
|
*
|
|
536
|
-
*
|
|
548
|
+
* The SDK automatically disables encryption after the user leaves the channel. To re-enable encryption, you must call this method before the user joins the channel again.
|
|
549
|
+
* All users in the same channel must use the same encryption mode and key when calling this method.
|
|
550
|
+
* If built-in encryption is enabled, the RTMP streaming feature cannot be used.
|
|
537
551
|
*
|
|
538
|
-
* @param connection
|
|
539
|
-
* @param enabled Whether to enable built-in encryption: true : Enable
|
|
540
|
-
* @param config
|
|
552
|
+
* @param connection Connection information. See RtcConnection.
|
|
553
|
+
* @param enabled Whether to enable built-in encryption: true : Enable built-in encryption. false : (Default) Disable built-in encryption.
|
|
554
|
+
* @param config Configure the built-in encryption mode and key. See EncryptionConfig.
|
|
541
555
|
*
|
|
542
556
|
* @returns
|
|
543
557
|
* 0: Success.
|
|
544
|
-
* < 0: Failure.
|
|
558
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
545
559
|
*/
|
|
546
560
|
abstract enableEncryptionEx(
|
|
547
561
|
connection: RtcConnection,
|
|
@@ -552,12 +566,14 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
552
566
|
/**
|
|
553
567
|
* Creates a data stream.
|
|
554
568
|
*
|
|
555
|
-
*
|
|
556
|
-
*
|
|
569
|
+
* Within the lifecycle of IRtcEngine, each user can create up to 5 data streams. The data streams are destroyed when leaving the channel. To use them again, you need to recreate them.
|
|
570
|
+
*
|
|
571
|
+
* @param config Data stream configuration. See DataStreamConfig.
|
|
572
|
+
* @param connection Connection information. See RtcConnection.
|
|
557
573
|
*
|
|
558
574
|
* @returns
|
|
559
|
-
* ID of the created data stream
|
|
560
|
-
* < 0: Failure.
|
|
575
|
+
* ID of the created data stream: if the method call succeeds.
|
|
576
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
561
577
|
*/
|
|
562
578
|
abstract createDataStreamEx(
|
|
563
579
|
config: DataStreamConfig,
|
|
@@ -565,23 +581,23 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
565
581
|
): number;
|
|
566
582
|
|
|
567
583
|
/**
|
|
568
|
-
* Sends data stream
|
|
584
|
+
* Sends a data stream.
|
|
569
585
|
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
* Each
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
586
|
+
* After calling createDataStreamEx, you can use this method to send data stream messages to all users in the channel.
|
|
587
|
+
* The SDK imposes the following restrictions on this method:
|
|
588
|
+
* Each client in the channel can have up to 5 data channels simultaneously, and the total sending bitrate shared by all data channels is limited to 30 KB/s.
|
|
589
|
+
* Each data channel can send up to 60 packets per second, with each packet up to 1 KB in size. If the method call succeeds, the remote end triggers the onStreamMessage callback, where the remote user can receive the message; if it fails, the remote end triggers the onStreamMessageError callback.
|
|
590
|
+
* This method must be called after joinChannelEx.
|
|
591
|
+
* Make sure to call createDataStreamEx to create the data channel before calling this method.
|
|
576
592
|
*
|
|
577
|
-
* @param streamId
|
|
578
|
-
* @param data The
|
|
579
|
-
* @param length
|
|
580
|
-
* @param connection
|
|
593
|
+
* @param streamId Data stream ID. You can get it via createDataStreamEx.
|
|
594
|
+
* @param data The data to be sent.
|
|
595
|
+
* @param length Length of the data.
|
|
596
|
+
* @param connection Connection information. See RtcConnection.
|
|
581
597
|
*
|
|
582
598
|
* @returns
|
|
583
599
|
* 0: Success.
|
|
584
|
-
* < 0: Failure.
|
|
600
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
585
601
|
*/
|
|
586
602
|
abstract sendStreamMessageEx(
|
|
587
603
|
streamId: number,
|
|
@@ -591,25 +607,26 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
591
607
|
): number;
|
|
592
608
|
|
|
593
609
|
/**
|
|
594
|
-
* Adds a
|
|
595
|
-
*
|
|
596
|
-
* This method adds a PNG watermark
|
|
597
|
-
*
|
|
598
|
-
* If the orientation
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
* If
|
|
604
|
-
* If you have
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* @param
|
|
608
|
-
* @param
|
|
610
|
+
* Adds a local video watermark.
|
|
611
|
+
*
|
|
612
|
+
* Deprecated Deprecated: This method is deprecated. Use addVideoWatermarkWithConfigEx instead. This method adds a PNG image as a watermark to the local live video stream. Users in the same live streaming channel, audience of the CDN live stream, and capture devices can see or capture the watermark image. Currently, only one watermark can be added to the live stream. A newly added watermark replaces the previous one.
|
|
613
|
+
* The watermark coordinates depend on the settings in the setVideoEncoderConfigurationEx method:
|
|
614
|
+
* If the video orientation (OrientationMode) is fixed to landscape or adaptive landscape, landscape coordinates are used for the watermark.
|
|
615
|
+
* If the video orientation (OrientationMode) is fixed to portrait or adaptive portrait, portrait coordinates are used for the watermark.
|
|
616
|
+
* When setting the watermark coordinates, the image area of the watermark must not exceed the video dimensions set in the setVideoEncoderConfigurationEx method; otherwise, the excess part will be cropped.
|
|
617
|
+
* You must call this method after calling enableVideo.
|
|
618
|
+
* The image to be added must be in PNG format. This method supports all pixel formats of PNG images: RGBA, RGB, Palette, Gray, and Alpha_gray.
|
|
619
|
+
* If the size of the PNG image differs from the size you set in this method, the SDK will scale or crop the image to match the settings.
|
|
620
|
+
* If you have started the local video preview using startPreview, you can use the visibleInPreview parameter to set whether the watermark is visible during preview.
|
|
621
|
+
* If local video mirroring is enabled, the local watermark will also be mirrored. To prevent the watermark from being mirrored when viewed locally, we recommend not using both mirroring and watermark features simultaneously. Implement local watermarking at the application level.
|
|
622
|
+
*
|
|
623
|
+
* @param watermarkUrl The local path of the watermark image to be added. This method supports adding watermark images from absolute or relative local paths.
|
|
624
|
+
* @param options Settings for the watermark image to be added. See WatermarkOptions.
|
|
625
|
+
* @param connection Connection information. See RtcConnection.
|
|
609
626
|
*
|
|
610
627
|
* @returns
|
|
611
628
|
* 0: Success.
|
|
612
|
-
* < 0: Failure.
|
|
629
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
613
630
|
*/
|
|
614
631
|
abstract addVideoWatermarkEx(
|
|
615
632
|
watermarkUrl: string,
|
|
@@ -618,20 +635,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
618
635
|
): number;
|
|
619
636
|
|
|
620
637
|
/**
|
|
621
|
-
* Removes
|
|
638
|
+
* Removes added video watermarks.
|
|
622
639
|
*
|
|
623
|
-
* @param connection
|
|
640
|
+
* @param connection Connection information. See RtcConnection.
|
|
624
641
|
*
|
|
625
642
|
* @returns
|
|
626
643
|
* 0: Success.
|
|
627
|
-
* < 0: Failure.
|
|
644
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
628
645
|
*/
|
|
629
646
|
abstract clearVideoWatermarkEx(connection: RtcConnection): number;
|
|
630
647
|
|
|
631
648
|
/**
|
|
632
|
-
*
|
|
649
|
+
* Custom data reporting and analysis service.
|
|
633
650
|
*
|
|
634
|
-
* Agora
|
|
651
|
+
* Agora provides custom data reporting and analysis services. This service is currently in a free beta phase. During the beta, you can report up to 10 data entries within 6 seconds. Each custom data entry must not exceed 256 bytes, and each string must not exceed 100 bytes. To try this service, [contact sales](mailto:support@agora.io) to enable it and agree on the custom data format.
|
|
635
652
|
*/
|
|
636
653
|
abstract sendCustomReportMessageEx(
|
|
637
654
|
id: string,
|
|
@@ -643,20 +660,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
643
660
|
): number;
|
|
644
661
|
|
|
645
662
|
/**
|
|
646
|
-
* Enables
|
|
663
|
+
* Enables audio volume indication.
|
|
647
664
|
*
|
|
648
|
-
* This method
|
|
665
|
+
* This method allows the SDK to periodically report to the app the volume information of the local user who is sending streams and the remote users (up to 3) with the highest instantaneous volume.
|
|
649
666
|
*
|
|
650
|
-
* @param interval
|
|
651
|
-
* ≤ 0: Disables the volume indication.
|
|
652
|
-
* > 0:
|
|
653
|
-
* @param smooth The smoothing factor that
|
|
654
|
-
* @param reportVad true : Enables the voice
|
|
655
|
-
* @param connection
|
|
667
|
+
* @param interval The time interval for the volume indication:
|
|
668
|
+
* ≤ 0: Disables the volume indication feature.
|
|
669
|
+
* > 0: Returns the interval for volume indication, in milliseconds. It is recommended to set it above 100 ms. Must not be less than 10 ms, otherwise the onAudioVolumeIndication callback will not be received.
|
|
670
|
+
* @param smooth The smoothing factor that specifies the sensitivity of the volume indication. The range is [0,10], and the recommended value is 3. The larger the value, the more sensitive the fluctuation; the smaller the value, the smoother the fluctuation.
|
|
671
|
+
* @param reportVad true : Enables the local voice detection feature. When enabled, the vad parameter in the onAudioVolumeIndication callback reports whether a human voice is detected locally. false : (Default) Disables the local voice detection feature. Except in scenarios where the engine automatically performs local voice detection, the vad parameter in the onAudioVolumeIndication callback does not report whether a human voice is detected locally.
|
|
672
|
+
* @param connection Connection information. See RtcConnection.
|
|
656
673
|
*
|
|
657
674
|
* @returns
|
|
658
675
|
* 0: Success.
|
|
659
|
-
* < 0: Failure.
|
|
676
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
660
677
|
*/
|
|
661
678
|
abstract enableAudioVolumeIndicationEx(
|
|
662
679
|
interval: number,
|
|
@@ -666,21 +683,24 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
666
683
|
): number;
|
|
667
684
|
|
|
668
685
|
/**
|
|
669
|
-
* Starts pushing media streams
|
|
686
|
+
* Starts pushing media streams without transcoding.
|
|
670
687
|
*
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
688
|
+
* Agora recommends using the more advanced server-side streaming feature. See [Implement Server-side Streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
|
|
689
|
+
* Call this method to push live audio and video streams to a specified streaming URL. This method supports pushing to only one URL at a time. To push to multiple URLs, call this method multiple times.
|
|
690
|
+
* After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
|
|
691
|
+
* Call this method after joining a channel.
|
|
692
|
+
* Only broadcasters in a live streaming scenario can call this method.
|
|
693
|
+
* If the streaming fails and you want to retry, you must call stopRtmpStream before calling this method again. Otherwise, the SDK will return the same error code as the previous failure.
|
|
674
694
|
*
|
|
675
|
-
* @param url The
|
|
676
|
-
* @param connection
|
|
695
|
+
* @param url The streaming URL. Must be in RTMP or RTMPS format. The maximum length is 1024 bytes. Special characters such as Chinese characters are not supported.
|
|
696
|
+
* @param connection Connection information. See RtcConnection.
|
|
677
697
|
*
|
|
678
698
|
* @returns
|
|
679
699
|
* 0: Success.
|
|
680
|
-
* < 0: Failure.
|
|
681
|
-
* -2: The URL or
|
|
700
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
701
|
+
* -2: The URL or transcoding parameter is incorrect. Check your URL or parameter settings.
|
|
682
702
|
* -7: The SDK is not initialized before calling this method.
|
|
683
|
-
* -19: The
|
|
703
|
+
* -19: The streaming URL is already in use. Use a different streaming URL.
|
|
684
704
|
*/
|
|
685
705
|
abstract startRtmpStreamWithoutTranscodingEx(
|
|
686
706
|
url: string,
|
|
@@ -688,24 +708,26 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
688
708
|
): number;
|
|
689
709
|
|
|
690
710
|
/**
|
|
691
|
-
* Starts
|
|
711
|
+
* Starts pushing streams to a CDN and sets the transcoding configuration.
|
|
692
712
|
*
|
|
693
|
-
* Agora recommends
|
|
694
|
-
*
|
|
713
|
+
* Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
|
|
714
|
+
* Call this method to push live audio and video streams to the specified CDN streaming URL and set the transcoding configuration. This method can only push media streams to one URL at a time. To push to multiple URLs, call this method multiple times.
|
|
715
|
+
* After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
|
|
716
|
+
* Make sure the CDN streaming service is enabled.
|
|
695
717
|
* Call this method after joining a channel.
|
|
696
|
-
* Only hosts in
|
|
697
|
-
* If
|
|
718
|
+
* Only hosts in a live streaming scenario can call this method.
|
|
719
|
+
* If the stream push fails and you want to retry, you must call stopRtmpStreamEx before calling this method again. Otherwise, the SDK returns the same error code as the previous failure.
|
|
698
720
|
*
|
|
699
|
-
* @param url The
|
|
700
|
-
* @param transcoding The transcoding configuration for
|
|
721
|
+
* @param url The CDN streaming URL. Must be in RTMP or RTMPS format. The character length must not exceed 1024 bytes. Special characters such as Chinese characters are not supported.
|
|
722
|
+
* @param transcoding The transcoding configuration for the CDN stream. See LiveTranscoding.
|
|
701
723
|
* @param connection The connection information. See RtcConnection.
|
|
702
724
|
*
|
|
703
725
|
* @returns
|
|
704
|
-
* 0:
|
|
705
|
-
* < 0:
|
|
706
|
-
* -2: The URL or
|
|
726
|
+
* 0: The method call succeeds.
|
|
727
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
728
|
+
* -2: The URL or transcoding parameter is invalid. Check your URL or parameter settings.
|
|
707
729
|
* -7: The SDK is not initialized before calling this method.
|
|
708
|
-
* -19: The
|
|
730
|
+
* -19: The CDN streaming URL is already in use. Use a different URL.
|
|
709
731
|
*/
|
|
710
732
|
abstract startRtmpStreamWithTranscodingEx(
|
|
711
733
|
url: string,
|
|
@@ -714,16 +736,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
714
736
|
): number;
|
|
715
737
|
|
|
716
738
|
/**
|
|
717
|
-
* Updates the transcoding configuration.
|
|
739
|
+
* Updates the CDN transcoding configuration.
|
|
718
740
|
*
|
|
719
|
-
* Agora recommends
|
|
741
|
+
* Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
|
|
742
|
+
* After enabling transcoding streaming, you can dynamically update the transcoding configuration based on your scenario. After the configuration is updated, the SDK triggers the onTranscodingUpdated callback.
|
|
720
743
|
*
|
|
721
|
-
* @param transcoding The transcoding configuration for
|
|
744
|
+
* @param transcoding The transcoding configuration for the CDN stream. See LiveTranscoding.
|
|
722
745
|
* @param connection The connection information. See RtcConnection.
|
|
723
746
|
*
|
|
724
747
|
* @returns
|
|
725
|
-
* 0:
|
|
726
|
-
* < 0:
|
|
748
|
+
* 0: The method call succeeds.
|
|
749
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
727
750
|
*/
|
|
728
751
|
abstract updateRtmpTranscodingEx(
|
|
729
752
|
transcoding: LiveTranscoding,
|
|
@@ -731,38 +754,42 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
731
754
|
): number;
|
|
732
755
|
|
|
733
756
|
/**
|
|
734
|
-
* Stops pushing
|
|
757
|
+
* Stops pushing streams to a CDN.
|
|
735
758
|
*
|
|
736
|
-
* Agora recommends
|
|
759
|
+
* Agora recommends using the more comprehensive server-side streaming feature. See [Implement server-side CDN streaming](https://docs.agora.io/en/media-push/get-started/enable-media-push).
|
|
760
|
+
* Call this method to stop the live stream on the specified CDN streaming URL. This method can only stop one URL at a time. To stop multiple URLs, call this method multiple times.
|
|
761
|
+
* After calling this method, the SDK triggers the onRtmpStreamingStateChanged callback locally to report the streaming status.
|
|
737
762
|
*
|
|
738
|
-
* @param url The
|
|
763
|
+
* @param url The CDN streaming URL. Must be in RTMP or RTMPS format. The character length must not exceed 1024 bytes. Special characters such as Chinese characters are not supported.
|
|
764
|
+
* @param connection The connection information. See RtcConnection.
|
|
739
765
|
*
|
|
740
766
|
* @returns
|
|
741
|
-
* 0:
|
|
742
|
-
* < 0:
|
|
767
|
+
* 0: The method call succeeds.
|
|
768
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
743
769
|
*/
|
|
744
770
|
abstract stopRtmpStreamEx(url: string, connection: RtcConnection): number;
|
|
745
771
|
|
|
746
772
|
/**
|
|
747
|
-
* Starts
|
|
773
|
+
* Starts or updates the media stream relay across channels.
|
|
748
774
|
*
|
|
749
|
-
* The first successful call to this method starts relaying media streams
|
|
750
|
-
*
|
|
751
|
-
* If the onChannelMediaRelayStateChanged callback
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
775
|
+
* The first successful call to this method starts relaying media streams across channels. To relay streams to multiple destination channels or to leave a current relay channel, you can call this method again to add or remove destination channels. This feature supports relaying to up to six destination channels.
|
|
776
|
+
* After a successful call, the SDK triggers the onChannelMediaRelayStateChanged callback to report the current relay state. Common states include:
|
|
777
|
+
* If the onChannelMediaRelayStateChanged callback reports RelayStateRunning (2) and RelayOk (0), it means the SDK has started relaying media streams between the source and destination channels.
|
|
778
|
+
* If the callback reports RelayStateFailure (3), it indicates an error occurred during the media stream relay.
|
|
779
|
+
* Call this method after successfully joining a channel.
|
|
780
|
+
* In a live streaming scenario, only users with the broadcaster role can call this method.
|
|
781
|
+
* To enable the media stream relay across channels, [contact technical support](https://www.agora.io/cn/contact/).
|
|
782
|
+
* This feature does not support string-type UIDs.
|
|
756
783
|
*
|
|
757
|
-
* @param configuration
|
|
758
|
-
* @param connection
|
|
784
|
+
* @param configuration Configuration for media stream relay across channels. See ChannelMediaRelayConfiguration.
|
|
785
|
+
* @param connection Connection information. See RtcConnection.
|
|
759
786
|
*
|
|
760
787
|
* @returns
|
|
761
788
|
* 0: Success.
|
|
762
|
-
* < 0: Failure.
|
|
763
|
-
* -1:
|
|
764
|
-
* -2:
|
|
765
|
-
* -8: Internal state error
|
|
789
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
790
|
+
* -1: General error (not categorized).
|
|
791
|
+
* -2: Invalid parameter.
|
|
792
|
+
* -8: Internal state error, possibly due to the user not being a broadcaster.
|
|
766
793
|
*/
|
|
767
794
|
abstract startOrUpdateChannelMediaRelayEx(
|
|
768
795
|
configuration: ChannelMediaRelayConfiguration,
|
|
@@ -770,44 +797,44 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
770
797
|
): number;
|
|
771
798
|
|
|
772
799
|
/**
|
|
773
|
-
* Stops the media stream relay. Once
|
|
800
|
+
* Stops the media stream relay across channels. Once stopped, the broadcaster leaves all destination channels.
|
|
774
801
|
*
|
|
775
|
-
* After a successful
|
|
802
|
+
* After a successful call, the SDK triggers the onChannelMediaRelayStateChanged callback. If it reports RelayStateIdle (0) and RelayOk (0), it indicates that the media stream relay has stopped. If the method call fails, the SDK triggers the onChannelMediaRelayStateChanged callback and reports the error code RelayErrorServerNoResponse (2) or RelayErrorServerConnectionLost (8). You can call the leaveChannel method to leave the channel, and the media stream relay will stop automatically.
|
|
776
803
|
*
|
|
777
|
-
* @param connection
|
|
804
|
+
* @param connection Connection information. See RtcConnection.
|
|
778
805
|
*
|
|
779
806
|
* @returns
|
|
780
807
|
* 0: Success.
|
|
781
|
-
* < 0: Failure.
|
|
782
|
-
* -5: The method call
|
|
808
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
809
|
+
* -5: The method call is rejected. There is no ongoing media stream relay.
|
|
783
810
|
*/
|
|
784
811
|
abstract stopChannelMediaRelayEx(connection: RtcConnection): number;
|
|
785
812
|
|
|
786
813
|
/**
|
|
787
|
-
* Pauses
|
|
814
|
+
* Pauses media stream forwarding to all destination channels.
|
|
788
815
|
*
|
|
789
|
-
* After
|
|
816
|
+
* After starting media stream forwarding across channels, if you need to pause forwarding to all channels, you can call this method. To resume forwarding, call the resumeAllChannelMediaRelay method. You must call this method after calling startOrUpdateChannelMediaRelayEx to start cross-channel media stream forwarding.
|
|
790
817
|
*
|
|
791
|
-
* @param connection
|
|
818
|
+
* @param connection Connection information. See RtcConnection.
|
|
792
819
|
*
|
|
793
820
|
* @returns
|
|
794
|
-
* 0:
|
|
795
|
-
* < 0:
|
|
796
|
-
* -5:
|
|
821
|
+
* 0: The method call was successful.
|
|
822
|
+
* < 0: The method call failed. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
823
|
+
* -5: This method call was rejected. There is no ongoing cross-channel media stream forwarding.
|
|
797
824
|
*/
|
|
798
825
|
abstract pauseAllChannelMediaRelayEx(connection: RtcConnection): number;
|
|
799
826
|
|
|
800
827
|
/**
|
|
801
|
-
* Resumes
|
|
828
|
+
* Resumes media stream forwarding to all destination channels.
|
|
802
829
|
*
|
|
803
|
-
* After calling the pauseAllChannelMediaRelayEx method, you
|
|
830
|
+
* After calling the pauseAllChannelMediaRelayEx method, if you need to resume forwarding media streams to all destination channels, you can call this method. You must call this method after pauseAllChannelMediaRelayEx.
|
|
804
831
|
*
|
|
805
|
-
* @param connection
|
|
832
|
+
* @param connection Connection information. See RtcConnection.
|
|
806
833
|
*
|
|
807
834
|
* @returns
|
|
808
|
-
* 0:
|
|
809
|
-
* < 0:
|
|
810
|
-
* -5:
|
|
835
|
+
* 0: The method call was successful.
|
|
836
|
+
* < 0: The method call failed. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
837
|
+
* -5: This method call was rejected. There is no paused cross-channel media stream forwarding.
|
|
811
838
|
*/
|
|
812
839
|
abstract resumeAllChannelMediaRelayEx(connection: RtcConnection): number;
|
|
813
840
|
|
|
@@ -825,19 +852,19 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
825
852
|
abstract getUserInfoByUidEx(uid: number, connection: RtcConnection): UserInfo;
|
|
826
853
|
|
|
827
854
|
/**
|
|
828
|
-
* Enables or disables dual-stream mode on the sender
|
|
855
|
+
* Enables or disables dual-stream mode on the sender.
|
|
829
856
|
*
|
|
830
|
-
*
|
|
831
|
-
* High-quality
|
|
832
|
-
* Low-quality
|
|
857
|
+
* Deprecated Deprecated: Deprecated since v4.2.0. Use setDualStreamModeEx instead. You can call this method on the sending side to enable or disable dual-stream mode. Dual-stream refers to high-quality and low-quality video streams:
|
|
858
|
+
* High-quality stream: High resolution and high frame rate video stream.
|
|
859
|
+
* Low-quality stream: Low resolution and low frame rate video stream. After enabling dual-stream mode, you can call setRemoteVideoStreamType on the receiving side to choose whether to receive the high-quality or low-quality video stream. This method applies to all types of streams sent by the sender, including but not limited to camera-captured video streams, screen sharing streams, and custom captured video streams.
|
|
833
860
|
*
|
|
834
861
|
* @param enabled Whether to enable dual-stream mode: true : Enable dual-stream mode. false : (Default) Disable dual-stream mode.
|
|
835
|
-
* @param streamConfig
|
|
836
|
-
* @param connection
|
|
862
|
+
* @param streamConfig Configuration of the low-quality video stream. See SimulcastStreamConfig. If mode is set to DisableSimulcastStream, then streamConfig will not take effect.
|
|
863
|
+
* @param connection Connection information. See RtcConnection.
|
|
837
864
|
*
|
|
838
865
|
* @returns
|
|
839
866
|
* 0: Success.
|
|
840
|
-
* < 0: Failure.
|
|
867
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
841
868
|
*/
|
|
842
869
|
abstract enableDualStreamModeEx(
|
|
843
870
|
enabled: boolean,
|
|
@@ -848,20 +875,20 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
848
875
|
/**
|
|
849
876
|
* Sets the dual-stream mode on the sender side.
|
|
850
877
|
*
|
|
851
|
-
*
|
|
852
|
-
* If you want to
|
|
853
|
-
* If you want to
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
* Both methods can be called before
|
|
878
|
+
* By default, the SDK enables the adaptive low stream mode (AutoSimulcastStream) on the sender side. That is, the sender does not proactively send the low stream. A receiver with host role can call setRemoteVideoStreamTypeEx to request the low stream. Once the sender receives the request, it starts sending the low stream automatically.
|
|
879
|
+
* If you want to change this behavior, you can call this method and set mode to DisableSimulcastStream (never send low stream) or EnableSimulcastStream (always send low stream).
|
|
880
|
+
* If you want to revert to the default behavior after making changes, call this method again and set mode to AutoSimulcastStream. The differences and relationships between this method and enableDualStreamModeEx are as follows:
|
|
881
|
+
* Calling this method and setting mode to DisableSimulcastStream has the same effect as enableDualStreamModeEx(false).
|
|
882
|
+
* Calling this method and setting mode to EnableSimulcastStream has the same effect as enableDualStreamModeEx(true).
|
|
883
|
+
* Both methods can be called before or after joining a channel. If both are used, the settings of the method called later take precedence.
|
|
857
884
|
*
|
|
858
|
-
* @param mode
|
|
859
|
-
* @param streamConfig
|
|
860
|
-
* @param connection
|
|
885
|
+
* @param mode Mode for sending video streams. See SimulcastStreamMode.
|
|
886
|
+
* @param streamConfig Configuration for the low video stream. See SimulcastStreamConfig. When mode is set to DisableSimulcastStream, setting streamConfig has no effect.
|
|
887
|
+
* @param connection Connection information. See RtcConnection.
|
|
861
888
|
*
|
|
862
889
|
* @returns
|
|
863
|
-
* 0:
|
|
864
|
-
* < 0:
|
|
890
|
+
* 0: The method call succeeds.
|
|
891
|
+
* < 0: The method call fails. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
865
892
|
*/
|
|
866
893
|
abstract setDualStreamModeEx(
|
|
867
894
|
mode: SimulcastStreamMode,
|
|
@@ -888,19 +915,22 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
888
915
|
): number;
|
|
889
916
|
|
|
890
917
|
/**
|
|
891
|
-
* Takes a
|
|
918
|
+
* Takes a video snapshot using the connection ID.
|
|
892
919
|
*
|
|
893
|
-
* This method
|
|
920
|
+
* This method captures a snapshot of the specified user's video stream, generates a JPG image, and saves it to the specified path.
|
|
921
|
+
* This method is asynchronous. When the call returns, the SDK has not actually taken the snapshot.
|
|
922
|
+
* When used to capture a local video snapshot, it captures the video stream specified in ChannelMediaOptions.
|
|
923
|
+
* If the video has been pre-processed, such as with watermarking or beautification, the snapshot will include the effects of the pre-processing.
|
|
894
924
|
*
|
|
895
|
-
* @param connection
|
|
896
|
-
* @param uid
|
|
897
|
-
* @param filePath The local path
|
|
925
|
+
* @param connection Connection information. See RtcConnection.
|
|
926
|
+
* @param uid User ID. Set to 0 to capture a snapshot of the local user's video.
|
|
927
|
+
* @param filePath Make sure the directory exists and is writable. The local path to save the snapshot, including file name and format. For example:
|
|
898
928
|
* Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg
|
|
899
|
-
* macOS: ~/Library/Logs/example.jpg
|
|
929
|
+
* macOS: ~/Library/Logs/example.jpg
|
|
900
930
|
*
|
|
901
931
|
* @returns
|
|
902
932
|
* 0: Success.
|
|
903
|
-
* < 0: Failure.
|
|
933
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
904
934
|
*/
|
|
905
935
|
abstract takeSnapshotEx(
|
|
906
936
|
connection: RtcConnection,
|
|
@@ -909,17 +939,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
909
939
|
): number;
|
|
910
940
|
|
|
911
941
|
/**
|
|
912
|
-
* Enables
|
|
942
|
+
* Enables/disables local snapshot upload.
|
|
913
943
|
*
|
|
914
|
-
* This method
|
|
944
|
+
* This method allows capturing and uploading snapshots for multiple video streams. After enabling local snapshot upload, the SDK captures and uploads snapshots of the video sent by the local user based on the module type and frequency you set in ContentInspectConfig. After capturing, the Agora server sends a callback notification to your server via HTTPS request and uploads all snapshots to the third-party cloud storage you specify. Before calling this method, make sure you have [contacted technical support](https://www.agora.io/cn/contact/) to enable the local snapshot upload service.
|
|
915
945
|
*
|
|
916
|
-
* @param enabled Whether to
|
|
917
|
-
* @param config
|
|
918
|
-
* @param connection
|
|
946
|
+
* @param enabled Whether to enable local snapshot upload: true : Enable local snapshot upload. false : Disable local snapshot upload.
|
|
947
|
+
* @param config Local snapshot upload configuration. See ContentInspectConfig.
|
|
948
|
+
* @param connection Connection information. See RtcConnection.
|
|
919
949
|
*
|
|
920
950
|
* @returns
|
|
921
951
|
* 0: Success.
|
|
922
|
-
* < 0: Failure.
|
|
952
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
923
953
|
*/
|
|
924
954
|
abstract enableContentInspectEx(
|
|
925
955
|
enabled: boolean,
|
|
@@ -928,16 +958,17 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
928
958
|
): number;
|
|
929
959
|
|
|
930
960
|
/**
|
|
931
|
-
*
|
|
961
|
+
* Starts video frame rendering tracing.
|
|
932
962
|
*
|
|
933
|
-
*
|
|
934
|
-
*
|
|
963
|
+
* After this method is successfully called, the SDK uses the time of this call as the starting point and reports video frame rendering information via the onVideoRenderingTracingResult callback.
|
|
964
|
+
* If you do not call this method, the SDK starts tracing video rendering events automatically using the time of the joinChannel call as the starting point. You can call this method at an appropriate time based on your business scenario to customize the tracing.
|
|
965
|
+
* After leaving the current channel, the SDK automatically resets the time to the next joinChannel call.
|
|
935
966
|
*
|
|
936
|
-
* @param connection
|
|
967
|
+
* @param connection Connection information. See RtcConnection.
|
|
937
968
|
*
|
|
938
969
|
* @returns
|
|
939
970
|
* 0: Success.
|
|
940
|
-
* < 0: Failure.
|
|
971
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.
|
|
941
972
|
*/
|
|
942
973
|
abstract startMediaRenderingTracingEx(connection: RtcConnection): number;
|
|
943
974
|
|
|
@@ -950,15 +981,11 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
950
981
|
): number;
|
|
951
982
|
|
|
952
983
|
/**
|
|
953
|
-
* Gets the call ID
|
|
954
|
-
*
|
|
955
|
-
* When a user joins a channel on a client, a callId is generated to identify the call from the client. You can call this method to get callId, and pass it in when calling methods such as rate and complain.
|
|
984
|
+
* Gets the call ID using the connection ID.
|
|
956
985
|
*
|
|
957
|
-
*
|
|
986
|
+
* Each time the client joins a channel, a corresponding callId is generated to identify the call session. You can call this method to get the callId and then pass it to methods such as rate and complain.
|
|
958
987
|
*
|
|
959
|
-
* @
|
|
960
|
-
* The current call ID, if the method succeeds.
|
|
961
|
-
* An empty string, if the method call fails.
|
|
988
|
+
* @param connection Connection information. See RtcConnection.
|
|
962
989
|
*/
|
|
963
990
|
abstract getCallIdEx(connection: RtcConnection): string;
|
|
964
991
|
|
|
@@ -972,18 +999,90 @@ export abstract class IRtcEngineEx extends IRtcEngine {
|
|
|
972
999
|
): number;
|
|
973
1000
|
|
|
974
1001
|
/**
|
|
975
|
-
*
|
|
1002
|
+
* @ignore
|
|
1003
|
+
*/
|
|
1004
|
+
abstract enableVideoImageSourceEx(
|
|
1005
|
+
enable: boolean,
|
|
1006
|
+
options: ImageTrackOptions,
|
|
1007
|
+
connection: RtcConnection
|
|
1008
|
+
): number;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Preloads the specified sound effect into the channel.
|
|
976
1012
|
*
|
|
977
|
-
*
|
|
1013
|
+
* Since Available since v4.6.2. Each time you call this method, only one sound effect file can be preloaded into memory. To preload multiple sound effects, call this method multiple times. After preloading, you can call playEffect to play the preloaded sound effect, or playAllEffects to play all preloaded sound effects.
|
|
1014
|
+
* To ensure smooth user experience, the size of the sound effect file should not exceed the limit.
|
|
1015
|
+
* Agora recommends calling this method before joining a channel.
|
|
1016
|
+
* If you call preloadEffectEx before playEffectEx, the file resource will not be closed after playEffectEx is executed. The next call to playEffectEx will start playback from the beginning.
|
|
1017
|
+
* If you do not call preloadEffectEx before playEffectEx, the file resource will be destroyed after playEffectEx is executed. The next call to playEffectEx will attempt to reopen the file and play from the beginning.
|
|
978
1018
|
*
|
|
979
|
-
* @param connection
|
|
980
|
-
* @param
|
|
981
|
-
* @param
|
|
1019
|
+
* @param connection Connection information. See RtcConnection.
|
|
1020
|
+
* @param soundId Sound effect ID.
|
|
1021
|
+
* @param filePath Absolute path of the local file or URL of the online file. Supported audio formats include: mp3, mp4, m4a, aac, 3gp, mkv, and wav.
|
|
1022
|
+
* @param startPos Start position (in milliseconds) for playing the sound effect file.
|
|
1023
|
+
*
|
|
1024
|
+
* @returns
|
|
1025
|
+
* 0: Success.
|
|
1026
|
+
* < 0: Failure.
|
|
1027
|
+
*/
|
|
1028
|
+
abstract preloadEffectEx(
|
|
1029
|
+
connection: RtcConnection,
|
|
1030
|
+
soundId: number,
|
|
1031
|
+
filePath: string,
|
|
1032
|
+
startPos?: number
|
|
1033
|
+
): number;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Plays the specified sound effect in the channel.
|
|
1037
|
+
*
|
|
1038
|
+
* Since Available since v4.6.2. You can call this method to play a specified sound effect to all users in the channel. Each call to this method can only play one sound effect. To play multiple sound effects simultaneously, use different soundId and filePath values and call this method multiple times. You can also set whether to publish the sound effect in the channel.
|
|
1039
|
+
* Agora recommends not playing more than three sound effects simultaneously.
|
|
1040
|
+
* The sound effect ID and file path in this method must match those in the preloadEffectEx method.
|
|
1041
|
+
* If you call preloadEffectEx before calling playEffectEx, the file resource will not be closed after playEffectEx is executed. The next call to playEffectEx will start playback from the beginning.
|
|
1042
|
+
* If you do not call preloadEffectEx before calling playEffectEx, the file resource will be destroyed after playEffectEx is executed. The next call to playEffectEx will attempt to reopen the file and play from the beginning.
|
|
1043
|
+
*
|
|
1044
|
+
* @param connection RtcConnection object. See RtcConnection.
|
|
1045
|
+
* @param soundId Sound effect ID.
|
|
1046
|
+
* @param filePath Absolute path of the local file or URL of the online file. Supported audio formats include mp3, mp4, m4a, aac, 3gp, mkv, and wav.
|
|
1047
|
+
* @param loopCount Number of times the sound effect is played: -1 : Loops indefinitely until stopEffect or stopAllEffects is called. 0 : Plays once. 1 : Plays twice.
|
|
1048
|
+
* @param pitch Pitch of the sound effect. The range is 0.5 to 2.0. The default value is 1.0 (original pitch). The smaller the value, the lower the pitch.
|
|
1049
|
+
* @param pan Spatial position of the sound effect. The range is -1.0 to 1.0: -1.0 : The sound effect comes from the user's left. 0.0 : The sound effect comes from the front. 1.0 : The sound effect comes from the user's right.
|
|
1050
|
+
* @param gain Volume of the sound effect. The range is 0 to 100. The default value is 100 (original volume). The smaller the value, the lower the volume.
|
|
1051
|
+
* @param publish Whether to publish the sound effect in the channel: true : Publishes the sound effect in the channel. false : (Default) Does not publish the sound effect in the channel.
|
|
1052
|
+
* @param startPos Start position (in milliseconds) for playing the sound effect file.
|
|
982
1053
|
*
|
|
983
1054
|
* @returns
|
|
984
1055
|
* 0: Success.
|
|
985
1056
|
* < 0: Failure.
|
|
986
1057
|
*/
|
|
1058
|
+
abstract playEffectEx(
|
|
1059
|
+
connection: RtcConnection,
|
|
1060
|
+
soundId: number,
|
|
1061
|
+
filePath: string,
|
|
1062
|
+
loopCount: number,
|
|
1063
|
+
pitch: number,
|
|
1064
|
+
pan: number,
|
|
1065
|
+
gain: number,
|
|
1066
|
+
publish?: boolean,
|
|
1067
|
+
startPos?: number
|
|
1068
|
+
): number;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Takes a video snapshot at a specified observation point using the connection ID.
|
|
1072
|
+
*
|
|
1073
|
+
* This method captures a snapshot of the specified user's video stream, generates a JPG image, and saves it to the specified path.
|
|
1074
|
+
* This method is asynchronous. When the call returns, the SDK has not actually taken the snapshot.
|
|
1075
|
+
* When used to capture a local video snapshot, it captures the video stream specified in ChannelMediaOptions.
|
|
1076
|
+
* If the video has been pre-processed, such as with watermarking or beautification, the snapshot will include the effects of the pre-processing.
|
|
1077
|
+
*
|
|
1078
|
+
* @param connection Connection information. See RtcConnection.
|
|
1079
|
+
* @param uid User ID. Set to 0 to capture a snapshot of the local user's video.
|
|
1080
|
+
* @param config Snapshot settings. See SnapshotConfig.
|
|
1081
|
+
*
|
|
1082
|
+
* @returns
|
|
1083
|
+
* 0: Success.
|
|
1084
|
+
* < 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and troubleshooting.
|
|
1085
|
+
*/
|
|
987
1086
|
abstract takeSnapshotWithConfigEx(
|
|
988
1087
|
connection: RtcConnection,
|
|
989
1088
|
uid: number,
|