agora-electron-sdk 4.5.2 → 4.5.3-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +6 -3
- package/js/example/src/renderer/examples/advanced/VideoEffect/videoEffectHelpers.js +308 -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 +130 -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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [4.5.3-dev.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.9-rc.1...v4.5.3-dev.1) (2026-04-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support 4.6.2 ([#1369](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1369)) ([1b9be80](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/1b9be800cd088c3edba06c335a08eaddd6cab9a7)), closes [#1287](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1287) [#1285](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1285) [#1286](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1286)
|
|
9
|
+
|
|
10
|
+
## [4.5.2-build.9-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.194-rc.1...v4.5.2-build.9-rc.1) (2026-03-25)
|
|
11
|
+
|
|
12
|
+
## [4.5.2-build.194-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.180-rc.2...v4.5.2-build.194-rc.1) (2026-03-09)
|
|
13
|
+
|
|
14
|
+
## [4.5.2-build.180-rc.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.174-rc.1...v4.5.2-build.180-rc.2) (2026-02-10)
|
|
15
|
+
|
|
16
|
+
## [4.5.2-build.174-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.166-rc.1...v4.5.2-build.174-rc.1) (2025-12-29)
|
|
17
|
+
|
|
18
|
+
## [4.5.2-build.166-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.3-rc.1...v4.5.2-build.166-rc.1) (2025-11-28)
|
|
19
|
+
|
|
20
|
+
## [4.5.2-build.3-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.143-rc.1...v4.5.2-build.3-rc.1) (2025-09-04)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* support 4.5.2.3 ([#1329](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1329)) ([a3c83e5](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/a3c83e5505a7943ac00f619653268dbd76e39c09)), closes [#1327](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1327) [#1330](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1330)
|
|
26
|
+
|
|
27
|
+
## [4.5.2-build.143-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.139-rc.1...v4.5.2-build.143-rc.1) (2025-07-11)
|
|
28
|
+
|
|
29
|
+
## [4.5.2-build.139-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2-build.131-rc.1...v4.5.2-build.139-rc.1) (2025-06-19)
|
|
30
|
+
|
|
31
|
+
## [4.5.2-build.131-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.1-build.132-rc.1...v4.5.2-build.131-rc.1) (2025-04-27)
|
|
32
|
+
|
|
33
|
+
## [4.5.1-build.132-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2...v4.5.1-build.132-rc.1) (2025-04-23)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* support 4.5.1.132 ([#1287](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1287)) ([54b9e83](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/54b9e830e3f1268f2fbe2f59e354333fdade1262)), closes [#1285](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1285) [#1286](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1286)
|
|
39
|
+
|
|
3
40
|
## [4.5.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.1...v4.5.2) (2025-03-11)
|
|
4
41
|
|
|
5
42
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
> ⚠️ **Note**: To provide you with better and higher quality technical support services, we will no longer provide technical support through GitHub issues. If you need help, please contact us directly through [Agora Support](https://www.agora.io/en/customer-support/).
|
|
2
|
+
|
|
1
3
|
> NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
|
|
2
|
-
>
|
|
4
|
+
>
|
|
5
|
+
> - [3.x](https://github.com/AgoraIO-Extensions/Electron-SDK/tree/3.x)
|
|
3
6
|
|
|
4
7
|
# Agora RTC SDK for Electron
|
|
5
8
|
|
|
@@ -73,10 +76,10 @@ npm install --agora_electron_sdk_arch=x64
|
|
|
73
76
|
## 🔨 Usage
|
|
74
77
|
|
|
75
78
|
```javascript
|
|
76
|
-
import createAgoraRtcEngine from
|
|
79
|
+
import createAgoraRtcEngine from 'agora-electron-sdk';
|
|
77
80
|
|
|
78
81
|
const rtcEngine = createAgoraRtcEngine();
|
|
79
|
-
rtcEngine.initialize({appId:
|
|
82
|
+
rtcEngine.initialize({ appId: '<your agora app id>' });
|
|
80
83
|
```
|
|
81
84
|
|
|
82
85
|
### When using without electron-webpack
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildFaceShapeEffectOperations = exports.buildMakeupEffectOperations = exports.releaseVideoEffectResources = exports.resolveVideoEffectBundlePath = exports.getFaceShapeAreaParamName = exports.mapUiToResourceId = exports.FACE_SHAPE_STYLE_ITEMS = exports.FACE_SHAPE_AREA_ITEMS = exports.toIndexedItems = exports.MAKEUP_ITEMS = exports.DEFAULT_FACE_SHAPE_OPTIONS = exports.FACE_SHAPE_BEAUTY_STYLES = exports.FACE_SHAPE_AREAS = exports.DEFAULT_MAKEUP_OPTIONS = exports.VIDEO_EFFECT_BUNDLE_RELATIVE_PATH_CANDIDATES = exports.DEFAULT_VIDEO_EFFECT_BUNDLE_RELATIVE_PATH = exports.CLEAR_VISION_EXTENSION_NAME = exports.CLEAR_VISION_EXTENSION_PROVIDER = void 0;
|
|
4
|
+
const agora_electron_sdk_1 = require("agora-electron-sdk");
|
|
5
|
+
exports.CLEAR_VISION_EXTENSION_PROVIDER = 'agora_video_filters_clear_vision';
|
|
6
|
+
exports.CLEAR_VISION_EXTENSION_NAME = 'clear_vision';
|
|
7
|
+
exports.DEFAULT_VIDEO_EFFECT_BUNDLE_RELATIVE_PATH = 'beauty_agora/beauty_material.bundle/beauty_material_v2.0.0';
|
|
8
|
+
exports.VIDEO_EFFECT_BUNDLE_RELATIVE_PATH_CANDIDATES = [
|
|
9
|
+
exports.DEFAULT_VIDEO_EFFECT_BUNDLE_RELATIVE_PATH,
|
|
10
|
+
'beauty_agora/beauty_material.bundle/beauty_material_v2.0.0_encrypted',
|
|
11
|
+
'beauty_material.bundle/beauty_material_v2.0.0',
|
|
12
|
+
'beauty_material.bundle/beauty_material_v2.0.0_encrypted',
|
|
13
|
+
];
|
|
14
|
+
exports.DEFAULT_MAKEUP_OPTIONS = {
|
|
15
|
+
enable_mu: false,
|
|
16
|
+
browStyle: 0,
|
|
17
|
+
browColor: 0,
|
|
18
|
+
browStrength: 0,
|
|
19
|
+
lashStyle: 0,
|
|
20
|
+
lashColor: 0,
|
|
21
|
+
lashStrength: 0,
|
|
22
|
+
shadowStyle: 0,
|
|
23
|
+
shadowStrength: 0,
|
|
24
|
+
pupilStyle: 0,
|
|
25
|
+
pupilStrength: 0,
|
|
26
|
+
blushStyle: 0,
|
|
27
|
+
blushColor: 0,
|
|
28
|
+
blushStrength: 0,
|
|
29
|
+
lipStyle: 0,
|
|
30
|
+
lipColor: 0,
|
|
31
|
+
lipStrength: 0,
|
|
32
|
+
};
|
|
33
|
+
exports.FACE_SHAPE_AREAS = {
|
|
34
|
+
FaceShapeAreaNone: -1,
|
|
35
|
+
FaceShapeAreaHeadscale: 100,
|
|
36
|
+
FaceShapeAreaForehead: 101,
|
|
37
|
+
FaceShapeAreaFacecontour: 102,
|
|
38
|
+
FaceShapeAreaFacelength: 103,
|
|
39
|
+
FaceShapeAreaFacewidth: 104,
|
|
40
|
+
FaceShapeAreaCheekbone: 105,
|
|
41
|
+
FaceShapeAreaCheek: 106,
|
|
42
|
+
FaceShapeAreaChin: 108,
|
|
43
|
+
FaceShapeAreaEyescale: 200,
|
|
44
|
+
FaceShapeAreaNoselength: 300,
|
|
45
|
+
FaceShapeAreaNosewidth: 301,
|
|
46
|
+
FaceShapeAreaMouthscale: 400,
|
|
47
|
+
};
|
|
48
|
+
exports.FACE_SHAPE_BEAUTY_STYLES = {
|
|
49
|
+
FaceShapeBeautyStyleFemale: 0,
|
|
50
|
+
FaceShapeBeautyStyleMale: 1,
|
|
51
|
+
};
|
|
52
|
+
exports.DEFAULT_FACE_SHAPE_OPTIONS = {
|
|
53
|
+
shapeArea: exports.FACE_SHAPE_AREAS.FaceShapeAreaNone,
|
|
54
|
+
shapeIntensity: 0,
|
|
55
|
+
shapeStyle: exports.FACE_SHAPE_BEAUTY_STYLES.FaceShapeBeautyStyleFemale,
|
|
56
|
+
styleIntensity: 0,
|
|
57
|
+
};
|
|
58
|
+
exports.MAKEUP_ITEMS = {
|
|
59
|
+
browStyle: ['CLOSE', 'eyebrow001', 'eyebrow002', 'eyebrow003'],
|
|
60
|
+
browColor: ['Brown', 'Gray Brown', 'Dark Brown'],
|
|
61
|
+
lashStyle: ['CLOSE', 'eyelash003', 'eyelash005'],
|
|
62
|
+
lashColor: ['Black', 'Brown', 'Blue'],
|
|
63
|
+
shadowStyle: ['CLOSE', 'eyeshadow001', 'eyeshadow006'],
|
|
64
|
+
pupilStyle: ['CLOSE', 'facial002'],
|
|
65
|
+
blushStyle: ['CLOSE', 'blush001', 'blush002', 'blush004', 'blush009'],
|
|
66
|
+
blushColor: ['Pink', 'Orange', 'Red', 'Coral', 'Purple', 'Brown'],
|
|
67
|
+
lipStyle: ['CLOSE', 'Moisturizing', 'Matte'],
|
|
68
|
+
lipColor: ['Natural', 'Pink', 'Orange', 'Red', 'Coral', 'Purple'],
|
|
69
|
+
};
|
|
70
|
+
function toIndexedItems(labels) {
|
|
71
|
+
return labels.map((label, index) => ({
|
|
72
|
+
label,
|
|
73
|
+
value: index,
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
exports.toIndexedItems = toIndexedItems;
|
|
77
|
+
exports.FACE_SHAPE_AREA_ITEMS = [
|
|
78
|
+
{
|
|
79
|
+
label: 'FACE_SHAPE_AREA_NONE',
|
|
80
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaNone,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'FACE_SHAPE_AREA_HEADSCALE',
|
|
84
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaHeadscale,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'FACE_SHAPE_AREA_FOREHEAD',
|
|
88
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaForehead,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'FACE_SHAPE_AREA_FACECONTOUR',
|
|
92
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaFacecontour,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'FACE_SHAPE_AREA_FACELENGTH',
|
|
96
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaFacelength,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'FACE_SHAPE_AREA_FACEWIDTH',
|
|
100
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaFacewidth,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'FACE_SHAPE_AREA_CHEEKBONE',
|
|
104
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaCheekbone,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'FACE_SHAPE_AREA_CHEEK',
|
|
108
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaCheek,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'FACE_SHAPE_AREA_CHIN',
|
|
112
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaChin,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: 'FACE_SHAPE_AREA_EYESCALE',
|
|
116
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaEyescale,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'FACE_SHAPE_AREA_NOSELENGTH',
|
|
120
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaNoselength,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'FACE_SHAPE_AREA_NOSEWIDTH',
|
|
124
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaNosewidth,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: 'FACE_SHAPE_AREA_MOUTHSCALE',
|
|
128
|
+
value: exports.FACE_SHAPE_AREAS.FaceShapeAreaMouthscale,
|
|
129
|
+
},
|
|
130
|
+
];
|
|
131
|
+
exports.FACE_SHAPE_STYLE_ITEMS = [
|
|
132
|
+
{
|
|
133
|
+
label: 'FACE_SHAPE_STYLE_FEMALE',
|
|
134
|
+
value: exports.FACE_SHAPE_BEAUTY_STYLES.FaceShapeBeautyStyleFemale,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: 'FACE_SHAPE_STYLE_MALE',
|
|
138
|
+
value: exports.FACE_SHAPE_BEAUTY_STYLES.FaceShapeBeautyStyleMale,
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
const RESOURCE_ID_MAP = {
|
|
142
|
+
eyelash: [0, 3, 5],
|
|
143
|
+
eyeshadow: [0, 1, 6],
|
|
144
|
+
blush: [0, 1, 2, 4, 9],
|
|
145
|
+
pupil: [0, 2],
|
|
146
|
+
};
|
|
147
|
+
const FACE_SHAPE_AREA_PARAM_NAMES = {
|
|
148
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaHeadscale]: 'headScale',
|
|
149
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaForehead]: 'forehead',
|
|
150
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaFacecontour]: 'faceContour',
|
|
151
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaFacelength]: 'faceLength',
|
|
152
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaFacewidth]: 'faceWidth',
|
|
153
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaCheekbone]: 'cheekBone',
|
|
154
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaCheek]: 'cheek',
|
|
155
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaChin]: 'chin',
|
|
156
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaEyescale]: 'eyeScale',
|
|
157
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaNoselength]: 'noseLength',
|
|
158
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaNosewidth]: 'noseWidth',
|
|
159
|
+
[exports.FACE_SHAPE_AREAS.FaceShapeAreaMouthscale]: 'mouthScale',
|
|
160
|
+
};
|
|
161
|
+
function mapUiToResourceId(resourceType, uiIndex) {
|
|
162
|
+
const mapping = RESOURCE_ID_MAP[resourceType];
|
|
163
|
+
if (!mapping) {
|
|
164
|
+
return uiIndex;
|
|
165
|
+
}
|
|
166
|
+
return uiIndex < mapping.length ? mapping[uiIndex] ?? 0 : 0;
|
|
167
|
+
}
|
|
168
|
+
exports.mapUiToResourceId = mapUiToResourceId;
|
|
169
|
+
function getFaceShapeAreaParamName(shapeArea) {
|
|
170
|
+
return FACE_SHAPE_AREA_PARAM_NAMES[shapeArea] ?? '';
|
|
171
|
+
}
|
|
172
|
+
exports.getFaceShapeAreaParamName = getFaceShapeAreaParamName;
|
|
173
|
+
function resolveVideoEffectBundlePath(resolveAbsolutePath, exists) {
|
|
174
|
+
const absoluteCandidates = exports.VIDEO_EFFECT_BUNDLE_RELATIVE_PATH_CANDIDATES.map(resolveAbsolutePath);
|
|
175
|
+
return (absoluteCandidates.find((absolutePath) => exists(absolutePath)) ??
|
|
176
|
+
absoluteCandidates[0]);
|
|
177
|
+
}
|
|
178
|
+
exports.resolveVideoEffectBundlePath = resolveVideoEffectBundlePath;
|
|
179
|
+
function releaseVideoEffectResources(engine, videoEffectObject) {
|
|
180
|
+
if (videoEffectObject && engine?.destroyVideoEffectObject) {
|
|
181
|
+
engine.destroyVideoEffectObject(videoEffectObject);
|
|
182
|
+
}
|
|
183
|
+
engine?.enableExtension?.(exports.CLEAR_VISION_EXTENSION_PROVIDER, exports.CLEAR_VISION_EXTENSION_NAME, false, agora_electron_sdk_1.MediaSourceType.PrimaryCameraSource);
|
|
184
|
+
}
|
|
185
|
+
exports.releaseVideoEffectResources = releaseVideoEffectResources;
|
|
186
|
+
function buildMakeupEffectOperations(options) {
|
|
187
|
+
const operations = [
|
|
188
|
+
{
|
|
189
|
+
kind: 'bool',
|
|
190
|
+
option: 'makeup_options',
|
|
191
|
+
key: 'enable_mu',
|
|
192
|
+
value: options.enable_mu,
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
if (!options.enable_mu) {
|
|
196
|
+
return operations;
|
|
197
|
+
}
|
|
198
|
+
operations.push({
|
|
199
|
+
kind: 'int',
|
|
200
|
+
option: 'makeup_options',
|
|
201
|
+
key: 'browStyle',
|
|
202
|
+
value: mapUiToResourceId('eyebrow', options.browStyle),
|
|
203
|
+
}, {
|
|
204
|
+
kind: 'int',
|
|
205
|
+
option: 'makeup_options',
|
|
206
|
+
key: 'browColor',
|
|
207
|
+
value: options.browColor,
|
|
208
|
+
}, {
|
|
209
|
+
kind: 'float',
|
|
210
|
+
option: 'makeup_options',
|
|
211
|
+
key: 'browStrength',
|
|
212
|
+
value: options.browStrength,
|
|
213
|
+
}, {
|
|
214
|
+
kind: 'int',
|
|
215
|
+
option: 'makeup_options',
|
|
216
|
+
key: 'lashStyle',
|
|
217
|
+
value: mapUiToResourceId('eyelash', options.lashStyle),
|
|
218
|
+
}, {
|
|
219
|
+
kind: 'int',
|
|
220
|
+
option: 'makeup_options',
|
|
221
|
+
key: 'lashColor',
|
|
222
|
+
value: options.lashColor,
|
|
223
|
+
}, {
|
|
224
|
+
kind: 'float',
|
|
225
|
+
option: 'makeup_options',
|
|
226
|
+
key: 'lashStrength',
|
|
227
|
+
value: options.lashStrength,
|
|
228
|
+
}, {
|
|
229
|
+
kind: 'int',
|
|
230
|
+
option: 'makeup_options',
|
|
231
|
+
key: 'shadowStyle',
|
|
232
|
+
value: mapUiToResourceId('eyeshadow', options.shadowStyle),
|
|
233
|
+
}, {
|
|
234
|
+
kind: 'float',
|
|
235
|
+
option: 'makeup_options',
|
|
236
|
+
key: 'shadowStrength',
|
|
237
|
+
value: options.shadowStrength,
|
|
238
|
+
}, {
|
|
239
|
+
kind: 'int',
|
|
240
|
+
option: 'makeup_options',
|
|
241
|
+
key: 'pupilStyle',
|
|
242
|
+
value: mapUiToResourceId('pupil', options.pupilStyle),
|
|
243
|
+
}, {
|
|
244
|
+
kind: 'float',
|
|
245
|
+
option: 'makeup_options',
|
|
246
|
+
key: 'pupilStrength',
|
|
247
|
+
value: options.pupilStrength,
|
|
248
|
+
}, {
|
|
249
|
+
kind: 'int',
|
|
250
|
+
option: 'makeup_options',
|
|
251
|
+
key: 'blushStyle',
|
|
252
|
+
value: mapUiToResourceId('blush', options.blushStyle),
|
|
253
|
+
}, {
|
|
254
|
+
kind: 'int',
|
|
255
|
+
option: 'makeup_options',
|
|
256
|
+
key: 'blushColor',
|
|
257
|
+
value: options.blushColor,
|
|
258
|
+
}, {
|
|
259
|
+
kind: 'float',
|
|
260
|
+
option: 'makeup_options',
|
|
261
|
+
key: 'blushStrength',
|
|
262
|
+
value: options.blushStrength,
|
|
263
|
+
}, {
|
|
264
|
+
kind: 'int',
|
|
265
|
+
option: 'makeup_options',
|
|
266
|
+
key: 'lipStyle',
|
|
267
|
+
value: options.lipStyle,
|
|
268
|
+
}, {
|
|
269
|
+
kind: 'int',
|
|
270
|
+
option: 'makeup_options',
|
|
271
|
+
key: 'lipColor',
|
|
272
|
+
value: options.lipColor,
|
|
273
|
+
}, {
|
|
274
|
+
kind: 'float',
|
|
275
|
+
option: 'makeup_options',
|
|
276
|
+
key: 'lipStrength',
|
|
277
|
+
value: options.lipStrength,
|
|
278
|
+
});
|
|
279
|
+
return operations;
|
|
280
|
+
}
|
|
281
|
+
exports.buildMakeupEffectOperations = buildMakeupEffectOperations;
|
|
282
|
+
function buildFaceShapeEffectOperations(options) {
|
|
283
|
+
const operations = [];
|
|
284
|
+
const faceShapeAreaParamName = getFaceShapeAreaParamName(options.shapeArea);
|
|
285
|
+
if (faceShapeAreaParamName) {
|
|
286
|
+
operations.push({
|
|
287
|
+
kind: 'float',
|
|
288
|
+
option: 'face_buffing_option',
|
|
289
|
+
key: faceShapeAreaParamName,
|
|
290
|
+
value: options.shapeIntensity / 100,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
if (options.shapeStyle !== exports.FACE_SHAPE_BEAUTY_STYLES.FaceShapeBeautyStyleFemale) {
|
|
294
|
+
operations.push({
|
|
295
|
+
kind: 'bool',
|
|
296
|
+
option: 'face_shape_beauty_option',
|
|
297
|
+
key: 'enable',
|
|
298
|
+
value: true,
|
|
299
|
+
}, {
|
|
300
|
+
kind: 'int',
|
|
301
|
+
option: 'face_shape_beauty_option',
|
|
302
|
+
key: 'intensity',
|
|
303
|
+
value: options.styleIntensity,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return operations;
|
|
307
|
+
}
|
|
308
|
+
exports.buildFaceShapeEffectOperations = buildFaceShapeEffectOperations;
|
|
@@ -36,12 +36,7 @@ __exportStar(require("./Types"), exports);
|
|
|
36
36
|
__exportStar(require("./Utils"), exports);
|
|
37
37
|
const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* Currently, the Agora RTC SDK v4.x supports creating only one IRtcEngineEx object for each app.
|
|
42
|
-
*
|
|
43
|
-
* @returns
|
|
44
|
-
* One IRtcEngineEx object.
|
|
39
|
+
* @ignore
|
|
45
40
|
*/
|
|
46
41
|
function createAgoraRtcEngine(options) {
|
|
47
42
|
Object.assign(Utils_1.AgoraEnv, options);
|
|
@@ -49,12 +44,7 @@ function createAgoraRtcEngine(options) {
|
|
|
49
44
|
}
|
|
50
45
|
exports.createAgoraRtcEngine = createAgoraRtcEngine;
|
|
51
46
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Before calling any APIs in the IMediaPlayerCacheManager class, you need to call this method to get a cache manager instance of a media player.
|
|
55
|
-
*
|
|
56
|
-
* @returns
|
|
57
|
-
* The IMediaPlayerCacheManager instance.
|
|
47
|
+
* @ignore
|
|
58
48
|
*/
|
|
59
49
|
function getMediaPlayerCacheManager() {
|
|
60
50
|
return new IAgoraMediaPlayerImpl_1.IMediaPlayerCacheManagerImpl();
|
|
@@ -53,7 +53,7 @@ class WebCodecsDecoder {
|
|
|
53
53
|
if (renderer.rendererType !== Types_1.RendererType.WEBCODECSRENDERER) {
|
|
54
54
|
continue;
|
|
55
55
|
}
|
|
56
|
-
renderer.drawFrame(this.pendingFrame, this._currentCodecConfig);
|
|
56
|
+
renderer.drawFrame(this._cacheContext.uid, this.pendingFrame, this._currentCodecConfig);
|
|
57
57
|
this.pendingFrame = null;
|
|
58
58
|
}
|
|
59
59
|
}
|