agora-electron-sdk 0.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +315 -0
- package/LICENSE +21 -0
- package/README.md +143 -0
- package/gulpfile.js +52 -0
- package/js/AgoraSdk.js +64 -0
- package/js/Decoder/gpu-utils.js +74 -0
- package/js/Decoder/index.js +172 -0
- package/js/Private/AgoraBase.js +3985 -0
- package/js/Private/AgoraMediaBase.js +1014 -0
- package/js/Private/AgoraMediaPlayerTypes.js +316 -0
- package/js/Private/IAgoraH265Transcoder.js +36 -0
- package/js/Private/IAgoraLog.js +78 -0
- package/js/Private/IAgoraMediaEngine.js +32 -0
- package/js/Private/IAgoraMediaPlayer.js +16 -0
- package/js/Private/IAgoraMediaPlayerSource.js +3 -0
- package/js/Private/IAgoraMediaRecorder.js +10 -0
- package/js/Private/IAgoraMediaStreamingSource.js +74 -0
- package/js/Private/IAgoraMusicContentCenter.js +157 -0
- package/js/Private/IAgoraRhythmPlayer.js +62 -0
- package/js/Private/IAgoraRtcEngine.js +982 -0
- package/js/Private/IAgoraRtcEngineEx.js +19 -0
- package/js/Private/IAgoraSpatialAudio.js +24 -0
- package/js/Private/IAudioDeviceManager.js +20 -0
- package/js/Private/extension/AgoraBaseExtension.js +3 -0
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/extension/IAgoraLogExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
- package/js/Private/impl/AgoraBaseImpl.js +23 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +950 -0
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +1042 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +5167 -0
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
- package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
- package/js/Private/internal/IrisApiEngine.js +424 -0
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
- package/js/Private/internal/MediaEngineInternal.js +122 -0
- package/js/Private/internal/MediaPlayerInternal.js +194 -0
- package/js/Private/internal/MediaRecorderInternal.js +70 -0
- package/js/Private/internal/MusicContentCenterInternal.js +139 -0
- package/js/Private/internal/RtcEngineExInternal.js +430 -0
- package/js/Private/ipc/main.js +21 -0
- package/js/Private/ipc/renderer.js +21 -0
- package/js/Private/ti/AgoraBase-ti.js +40 -0
- package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraLog-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
- package/js/Private/ti/IAgoraRtcEngine-ti.js +141 -0
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
- package/js/Renderer/AgoraView.js +161 -0
- package/js/Renderer/CapabilityManager.js +99 -0
- package/js/Renderer/IRenderer.js +136 -0
- package/js/Renderer/IRendererCache.js +75 -0
- package/js/Renderer/RendererCache.js +100 -0
- package/js/Renderer/RendererManager.js +301 -0
- package/js/Renderer/WebCodecsRenderer/index.js +109 -0
- package/js/Renderer/WebCodecsRendererCache.js +115 -0
- package/js/Renderer/WebGLRenderer/index.js +314 -0
- package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
- package/js/Renderer/YUVCanvasRenderer/index.js +46 -0
- package/js/Renderer/index.js +17 -0
- package/js/Types.js +67 -0
- package/js/Utils.js +187 -0
- package/package.json +167 -0
- package/scripts/bootstrap.js +29 -0
- package/scripts/build.js +37 -0
- package/scripts/buildJS.js +14 -0
- package/scripts/checkElectron.js +43 -0
- package/scripts/clean.js +16 -0
- package/scripts/download.js +105 -0
- package/scripts/downloadPrebuild.js +199 -0
- package/scripts/getConfig.js +73 -0
- package/scripts/logger.js +32 -0
- package/scripts/synclib.js +69 -0
- package/scripts/util.js +47 -0
- package/scripts/zipBuild.js +40 -0
- package/ts/AgoraSdk.ts +54 -0
- package/ts/Decoder/gpu-utils.ts +92 -0
- package/ts/Decoder/index.ts +206 -0
- package/ts/Private/AgoraBase.ts +5511 -0
- package/ts/Private/AgoraMediaBase.ts +1764 -0
- package/ts/Private/AgoraMediaPlayerTypes.ts +464 -0
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +91 -0
- package/ts/Private/IAgoraMediaEngine.ts +316 -0
- package/ts/Private/IAgoraMediaPlayer.ts +744 -0
- package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
- package/ts/Private/IAgoraMediaRecorder.ts +25 -0
- package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +455 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
- package/ts/Private/IAgoraRtcEngine.ts +7306 -0
- package/ts/Private/IAgoraRtcEngineEx.ts +992 -0
- package/ts/Private/IAgoraSpatialAudio.ts +250 -0
- package/ts/Private/IAudioDeviceManager.ts +342 -0
- package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
- package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
- package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
- package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +237 -0
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1169 -0
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1672 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7352 -0
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
- package/ts/Private/internal/IrisApiEngine.ts +598 -0
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/ts/Private/internal/MediaEngineInternal.ts +190 -0
- package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
- package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +647 -0
- package/ts/Private/ipc/main.ts +22 -0
- package/ts/Private/ipc/renderer.ts +21 -0
- package/ts/Private/ti/AgoraBase-ti.ts +16 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
- package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +119 -0
- package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
- package/ts/Renderer/AgoraView.ts +235 -0
- package/ts/Renderer/CapabilityManager.ts +126 -0
- package/ts/Renderer/IRenderer.ts +158 -0
- package/ts/Renderer/IRendererCache.ts +96 -0
- package/ts/Renderer/RendererCache.ts +124 -0
- package/ts/Renderer/RendererManager.ts +400 -0
- package/ts/Renderer/WebCodecsRenderer/index.ts +145 -0
- package/ts/Renderer/WebCodecsRendererCache.ts +137 -0
- package/ts/Renderer/WebGLRenderer/index.ts +489 -0
- package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
- package/ts/Renderer/YUVCanvasRenderer/index.ts +67 -0
- package/ts/Renderer/index.ts +1 -0
- package/ts/Types.ts +249 -0
- package/ts/Utils.ts +197 -0
- package/types/AgoraSdk.d.ts +40 -0
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Decoder/gpu-utils.d.ts +21 -0
- package/types/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/Decoder/index.d.ts +26 -0
- package/types/Decoder/index.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +5310 -0
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1668 -0
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +453 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +89 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +250 -0
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +648 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +20 -0
- package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts +381 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +6103 -0
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +741 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +196 -0
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +312 -0
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +143 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +116 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +628 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +69 -0
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +73 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/Private/ipc/main.d.ts +2 -0
- package/types/Private/ipc/main.d.ts.map +1 -0
- package/types/Private/ipc/renderer.d.ts +3 -0
- package/types/Private/ipc/renderer.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +76 -0
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/CapabilityManager.d.ts +20 -0
- package/types/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +20 -0
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererCache.d.ts +26 -0
- package/types/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererCache.d.ts +24 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +66 -0
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts +15 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/index.d.ts +27 -0
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +9 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +2 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +177 -0
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +50 -0
- package/types/Utils.d.ts.map +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# [0.0.0-dev.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.2...v0.0.0-dev.1) (2025-03-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* downlaod.js ([7e49fa6](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/7e49fa659c11f219e3d333112c9ae515651ee8f4))
|
|
9
|
+
* remove pwd ([37e5d44](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/37e5d446542a42509f87e571142da93082751df2))
|
|
10
|
+
* roll back example ([b0e7948](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/b0e79486d51629228465ad81c0e66ee65d3f3bdb))
|
|
11
|
+
* update dependencies ([33cf7f6](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/33cf7f683e437484c67a0835222f37bf324f0f0e))
|
|
12
|
+
|
|
13
|
+
## [4.5.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.1...v4.5.2) (2025-03-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* support native 4.5.2 ([#1265](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1265)) ([bb9ed89](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/bb9ed89234a4c732998a67cb2022032afcbcd06b)), closes [#1257](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1257) [#1261](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1261) [#1262](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1262) [#1269](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1269) [#1270](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1270) [#1273](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1273) [#1274](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1274)
|
|
19
|
+
|
|
20
|
+
## [4.5.1-build.1-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.1...v4.5.1-build.1-rc.1) (2025-01-15)
|
|
21
|
+
|
|
22
|
+
## [4.5.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.5.0...v4.5.1) (2025-01-03)
|
|
23
|
+
|
|
24
|
+
# [4.5.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.4.0...v4.5.0) (2024-12-10)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* support 4.5.0 ([#1228](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1228)) ([d1a6d9c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/d1a6d9cc2aa361e7b96ad158debe791f4accc6a7)), closes [#1224](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1224)
|
|
30
|
+
|
|
31
|
+
# [4.4.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.2...v4.4.0) (2024-08-29)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* support 4.4.0 ([#1197](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1197)) ([490192f](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/490192ff7c2a6120ff56838191b8788b1a5599f1))
|
|
37
|
+
|
|
38
|
+
## [4.3.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.1...v4.3.2) (2024-06-06)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* setup renderer may show rotate frame ([#1190](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1190)) ([ad6400c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/ad6400c18f08f316984e75eb49a48c0795951f2e))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* support native 4.3.2 ([#1194](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1194)) ([d7a83e6](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/d7a83e6bc72651ababe01e448b662a6c39c154c5))
|
|
49
|
+
|
|
50
|
+
## [4.3.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.0...v4.3.1) (2024-05-09)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* support native 4.3.1 ([#1168](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1168)) ([e78f864](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e78f864045a6d68ac69585abbcd24cec328cd5ce)), closes [#1183](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1183) [#1181](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1181) [#1177](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1177)
|
|
56
|
+
|
|
57
|
+
# [4.3.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.6...v4.3.0) (2024-02-28)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
* yuv renderer issue ([#1136](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1136)) ([94c5ad1](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/94c5ad1bd1a8e2db09676b54d0b82c0751013dfb))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* optimize for renderer ([#1132](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1132)) ([d0098c1](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/d0098c1c9f6d44dbfa6b790cf127b070d2201ac8))
|
|
68
|
+
* support 4.3.0 ([#1130](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1130)) ([2ab7994](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/2ab79943338f27e454f173f67d5fb1749a39d98e))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Performance Improvements
|
|
72
|
+
|
|
73
|
+
* remove useless lib after isynclib ([#1150](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1150)) ([cb81a8c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/cb81a8ce48708755cc4600b218e8046d1f85bb35))
|
|
74
|
+
|
|
75
|
+
## [4.2.6](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.4...v4.2.6) (2023-11-22)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
* jira CSD-60920 render issue after ([#1110](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1110)) ([5730d86](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/5730d86d136539d79f50b1e92ba9ec5049196488))
|
|
81
|
+
* jira CSD-61288 renderer issue ([#1114](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1114)) ([fe50880](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/fe50880466cf763dc5111bbff6cd5bcd2566ca21))
|
|
82
|
+
* use `setTimeout` intead of `setInterval` ([#1097](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1097)) ([9df0579](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/9df057989846e5e7e5fb4a00c6a1208f5728b9d8))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
* suppot native 4.2.6 ([#1104](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1104)) ([e8be60b](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e8be60bc762db3aac50d025a674664fb9e21c0bd)), closes [#1102](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1102)
|
|
88
|
+
|
|
89
|
+
## [4.2.6-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.4...v4.2.6-rc.1) (2023-11-21)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* jira CSD-60920 render issue after ([#1110](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1110)) ([5730d86](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/5730d86d136539d79f50b1e92ba9ec5049196488))
|
|
95
|
+
* jira CSD-61288 CSD-60920 renderer issue ([341491d](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/341491dfac72e1614df5ad32f0b40198d6a046dd))
|
|
96
|
+
* use `setTimeout` intead of `setInterval` ([#1097](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1097)) ([9df0579](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/9df057989846e5e7e5fb4a00c6a1208f5728b9d8))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Features
|
|
100
|
+
|
|
101
|
+
* suppot native 4.2.6 ([#1104](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1104)) ([e8be60b](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e8be60bc762db3aac50d025a674664fb9e21c0bd)), closes [#1102](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1102)
|
|
102
|
+
|
|
103
|
+
## [4.2.4](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.3...v4.2.4) (2023-10-24)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Features
|
|
107
|
+
|
|
108
|
+
* upgrade iris to 4.2.3-build.4 ([#1091](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1091)) ([e4a42ac](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e4a42acf097c1b87c277a7c0da331bba3968e5d0))
|
|
109
|
+
|
|
110
|
+
## [4.2.3](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.2...v4.2.3) (2023-10-13)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Features
|
|
114
|
+
|
|
115
|
+
* support native 4.2.3 ([#1081](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1081)) ([29dea9c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/29dea9cc94332cfe5fb7f35da2df79210ad36343)), closes [#1067](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1067) [#1074](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1074) [#1076](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1076) [#1079](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1079) [#1080](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1080)
|
|
116
|
+
|
|
117
|
+
## [4.2.3-dev.3](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.2...v4.2.3-dev.3) (2023-09-22)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Bug Fixes
|
|
121
|
+
|
|
122
|
+
* `GetVideoFrame ret is` log too much ([43e6519](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/43e6519c630acf3e4233a891bf5b4f7d938813b3))
|
|
123
|
+
|
|
124
|
+
## [4.2.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.1...v4.2.2) (2023-08-01)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
* CSD-57615 render mode not working on software renderer ([1097ebc](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/1097ebcdf21cb6f5c66821174e8f46ec470976db))
|
|
130
|
+
* CSD-57699 removeEventListener `webglcontextlost` while unbind ([2a280c8](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/2a280c87242fe3abecb61bc23ffb0996029d6fec))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Features
|
|
134
|
+
|
|
135
|
+
* support native 4.2.2 ([#1033](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1033)) ([f151e69](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/f151e69abf22286eb5fbec3bcee8f703188c7515))
|
|
136
|
+
|
|
137
|
+
## [4.2.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.0...v4.2.1) (2023-06-30)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
* support native 4.2.1 ([#1029](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1029)) ([31ca560](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/31ca560bcd6434c4d3badad1b2e8d40eaae8be36))
|
|
143
|
+
|
|
144
|
+
# [4.2.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.0-rc.6...v4.2.0) (2023-05-26)
|
|
145
|
+
|
|
146
|
+
# [4.2.0-rc.6](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.1-rc.1...v4.2.0-rc.6) (2023-05-25)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Bug Fixes
|
|
150
|
+
|
|
151
|
+
* `RendererManager` memory leak ([#952](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/952)) ([421f802](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/421f802a2c27102ba8ff3e165fafe1c65fe26077))
|
|
152
|
+
* `setLocalRenderMode` `setRemoteRenderMode` `setRemoteRenderModeEx` `setLocalVideoMirrorMode` not working ([#951](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/951)) ([27897f2](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/27897f2efbaa1f2cde92b4c578d2d52956c46c82))
|
|
153
|
+
* `setupRemoteVideo` not working ([#950](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/950)) ([1eb1877](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/1eb1877b6c91fba4a7a1f631521292368e4b8361))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Features
|
|
157
|
+
|
|
158
|
+
* support 4.2.0 ([#995](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/995)) ([459bf51](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/459bf51858cc4704a0783f5784fb9178fddd6803)), closes [#967](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/967) [#972](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/972) [#973](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/973) [#974](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/974) [#980](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/980) [#982](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/982) [#1001](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1001) [#1005](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1005) [#1010](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1010)
|
|
159
|
+
|
|
160
|
+
## [4.1.1-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.0...v4.1.1-rc.1) (2023-02-16)
|
|
161
|
+
|
|
162
|
+
# [4.1.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.1-rc.2...v4.1.0) (2022-12-20)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Features
|
|
166
|
+
|
|
167
|
+
* support 4.1.0 ([47003ec](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/47003ec9e67064fa0df864d92bb7b68de690c9f3)), closes [#885](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/885) [#893](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/893) [#897](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/897) [#903](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/903) [#904](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/904) [#907](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/907) [#912](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/912) [#926](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/926) [#931](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/931) [#934](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/934)
|
|
168
|
+
|
|
169
|
+
# [4.1.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.1-rc.2...v4.1.0) (2022-12-20)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Features
|
|
173
|
+
|
|
174
|
+
* support 4.1.0 ([47003ec](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/47003ec9e67064fa0df864d92bb7b68de690c9f3)), closes [#885](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/885) [#893](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/893) [#897](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/897) [#903](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/903) [#904](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/904) [#907](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/907) [#912](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/912) [#926](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/926) [#931](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/931) [#934](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/934)
|
|
175
|
+
|
|
176
|
+
# [4.1.0-rc.4](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.0-rc.3...v4.1.0-rc.4) (2022-12-20)
|
|
177
|
+
|
|
178
|
+
# [4.1.0-rc.3](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.0-rc.2...v4.1.0-rc.3) (2022-12-20)
|
|
179
|
+
|
|
180
|
+
# [4.1.0-rc.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.1.0-rc.1...v4.1.0-rc.2) (2022-12-20)
|
|
181
|
+
|
|
182
|
+
# [4.1.0-rc.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.0...v4.1.0-rc.1) (2022-12-20)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Bug Fixes
|
|
186
|
+
|
|
187
|
+
* `deviceCapabilityNumber` issue ([58a38ae](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/58a38ae9046750f35a90a55fe72f4f4dbacbb1b4))
|
|
188
|
+
* `getPlaybackDeviceInfo` and `getRecordingDeviceInfo` issue ([6517c6c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/6517c6cd96539e4556ca01f3b10376c3ccdab50a))
|
|
189
|
+
* `LocalTranscoderConfiguration` json parse issue #EP-172 ([45cbfe3](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/45cbfe3c04a493a3e888afde6f4bdff898e4ea5d)), closes [#EP-172](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/EP-172)
|
|
190
|
+
* add `setDualStreamMode` method ([9f18cfc](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/9f18cfcdefbea4cb7a3c1948d0e6a0c911a5016a))
|
|
191
|
+
* c++ compile error ([598d04a](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/598d04a2c770fb56f76ecb6e3599fd1407c47f3d))
|
|
192
|
+
* js exception in callback will cause c++ crash #jira/CSD-50832 ([#931](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/931)) ([0e1aaca](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/0e1aacad103f024d4ea1a5d768a88fbbebd1911c))
|
|
193
|
+
* the event which named contains `Ex` not triggered issue (such as `onTokenPrivilegeWillExpire`) ([#892](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/892)) ([abe8b55](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/abe8b55f09c8af23cb9f578c0643d176852cbe11))
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Features
|
|
197
|
+
|
|
198
|
+
* add `getPlaybackDefaultDevice` and `getRecordingDefaultDevice` ([a6d5501](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/a6d5501860d1ebde57b1dc4463dfd86bbf306463))
|
|
199
|
+
* MusicContentEventHandler ([#907](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/907)) ([cd14d67](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/cd14d6726819343495cc671fad688258ab317e14))
|
|
200
|
+
* support 4.1.0 iris ([#885](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/885)) ([741f024](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/741f0242d7d23c9f92ab10dd1d37acee6a49b400))
|
|
201
|
+
|
|
202
|
+
# [4.0.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.0-rc.3...v4.0.0) (2022-09-28)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
* set windows msvc link as MT ([341c9ee](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/341c9ee600d5230ac40dd8c6b0226dfaaf96354e))
|
|
208
|
+
* some AudioFrameObserver & VideoFrameObserver issue ([58063be](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/58063be50f8156e24118b707dfe14fd28f03f405))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Features
|
|
212
|
+
|
|
213
|
+
* complete,hook ([#881](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/881)) ([a9f679b](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/a9f679b73bb6896e84106a3284e49c86b8ba4927))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Reverts
|
|
217
|
+
|
|
218
|
+
* iris url ([60492eb](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/60492ebccb79929a0ff206f013ffd24ba2b2e106))
|
|
219
|
+
|
|
220
|
+
# [4.0.0-rc.3](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.0-rc.2...v4.0.0-rc.3) (2022-09-14)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Bug Fixes
|
|
224
|
+
|
|
225
|
+
* npm install failed ([8b04ff4](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/8b04ff49a6d7b2b5d54188bb7628bb095f629736))
|
|
226
|
+
|
|
227
|
+
# [4.0.0-rc.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.0.0-rc.1...v4.0.0-rc.2) (2022-09-13)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Bug Fixes
|
|
231
|
+
|
|
232
|
+
* cross-env-shell error ([cfdf132](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/cfdf132fe983f897919c32d4513c89249d2f2826))
|
|
233
|
+
|
|
234
|
+
# 4.0.0-rc.1 (2022-09-13)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Bug Fixes
|
|
238
|
+
|
|
239
|
+
* build error on windows x64 ([9331172](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/9331172b2ba2db5bf72323a23b7a2ac5b7ebeeb5))
|
|
240
|
+
* download addon version issue ([19d542c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/19d542c7d9ceba9226ac25ad4f6a4c361d47f31b))
|
|
241
|
+
* setPlayerOptionInInt setPlayerOptionInString this issue ([268ad3b](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/268ad3ba051b15309248151e7be49a35962d8b2b))
|
|
242
|
+
* some issue about AgoraRendererManager ([3415871](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/3415871b0d5a2e93086e8e88ce50d296ab994fff))
|
|
243
|
+
* **fix localaccesspointconfiguration:** fix LocalAccessPointConfiguration ([bf9814f](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/bf9814f0316bde140a7338ecd553da50e9738208))
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Features
|
|
247
|
+
|
|
248
|
+
* support native 4.0.0-rc.1 ([352a5bb](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/352a5bb654fdd1ce317ebb5d1c0e5e23ecc9f330))
|
|
249
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
|
250
|
+
|
|
251
|
+
# [4.0.0-beta.3](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/compare/v4.0.0-beta.2...v4.0.0-beta.3) (2022-07-19)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Bug Fixes
|
|
255
|
+
|
|
256
|
+
* build error on windows x64 ([9331172](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/9331172b2ba2db5bf72323a23b7a2ac5b7ebeeb5))
|
|
257
|
+
* some issue about AgoraRendererManager ([3415871](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/3415871b0d5a2e93086e8e88ce50d296ab994fff))
|
|
258
|
+
|
|
259
|
+
# [4.0.0-beta.2](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/compare/v4.0.0-beta.1...v4.0.0-beta.2) (2022-07-13)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
### Bug Fixes
|
|
263
|
+
|
|
264
|
+
* download addon version issue ([19d542c](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/19d542c7d9ceba9226ac25ad4f6a4c361d47f31b))
|
|
265
|
+
|
|
266
|
+
# 4.0.0-beta.1 (2022-07-11)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### Bug Fixes
|
|
270
|
+
|
|
271
|
+
* **fix localaccesspointconfiguration:** fix LocalAccessPointConfiguration ([bf9814f](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/bf9814f0316bde140a7338ecd553da50e9738208))
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Features
|
|
275
|
+
|
|
276
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
|
277
|
+
|
|
278
|
+
## 3.8.201-alpha.706 (2022-07-05)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Bug Fixes
|
|
282
|
+
|
|
283
|
+
* **fix localaccesspointconfiguration:** fix LocalAccessPointConfiguration ([bf9814f](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/bf9814f0316bde140a7338ecd553da50e9738208))
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
### Features
|
|
287
|
+
|
|
288
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
## 3.8.201-alpha.705 (2022-07-05)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### Features
|
|
296
|
+
|
|
297
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## 3.8.201-alpha.629 (2022-06-30)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Features
|
|
305
|
+
|
|
306
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
## 3.8.201-alpha.629 (2022-06-30)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### Features
|
|
314
|
+
|
|
315
|
+
* **add ci for changelog:** use husky conventional-changelog-cli @commitlint/config-conventional ([e1facd9](https://github.com/AgoraIO-Community/electron-agora-rtc-ng/commit/e1facd9244b6eb18e503493f9cc14af99f09938b))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Agora.io Community
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
> NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
|
|
2
|
+
> - [3.x](https://github.com/AgoraIO-Extensions/Electron-SDK/tree/3.x)
|
|
3
|
+
|
|
4
|
+
# Agora RTC SDK for Electron
|
|
5
|
+
|
|
6
|
+
<div align="left">
|
|
7
|
+
<a href="https://github.com/AgoraIO-Extensions/Electron-SDK"><img src="https://img.shields.io/badge/Platform-macOS--x86--64%20%7C%20macOS--arm64%20%7C%20win--32%20%7C%20win--64-blue?logo=Electron&labelColor=fff" alt="Platform"/></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/v/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/agora-electron-sdk"><img alt="npm" src="https://img.shields.io/npm/dm/agora-electron-sdk?color=blue&style=flat-square&logo=npm"></a>
|
|
10
|
+
<a href="./LICENSE"><img src="https://img.shields.io/github/license/agoraio-extensions/electron-sdk?color=blue&style=flat-square" alt="License"/></a>
|
|
11
|
+
<a href="https://github.com/AgoraIO-Extensions/Electron-SDK/issues"><img src="https://flat.badgen.net/github/label-issues/AgoraIO-Extensions/Electron-SDK/help%20wanted/open" alt="License"/></a>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
- 📦 Newly designed middle-tier API and Native C++ SDK.
|
|
17
|
+
- 🛡 Written in TypeScript with predictable static types.
|
|
18
|
+
|
|
19
|
+
## 🖥 Environment Support
|
|
20
|
+
|
|
21
|
+
- 🌈 Support macOS x86-64 and arm64 ([Electron 11+](https://www.electronjs.org/zh/blog/apple-silicon))
|
|
22
|
+
- ⚙️ Support Windows ia32 and x64
|
|
23
|
+
- [Electron](https://www.electronjs.org/): 4.x ~ latest
|
|
24
|
+
|
|
25
|
+
| [<img src="https://simpleicons.org/icons/macos.svg" alt="Chrome" width="48px" height="24px" />]()<br>macOS | [<img src="https://simpleicons.org/icons/windows.svg" alt="Safari" width="24px" height="24px" />]()<br>Windows | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron |
|
|
26
|
+
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| x86 \| arm64 | ia32 \| x64 | 4.0.0 ~ Latest |
|
|
28
|
+
|
|
29
|
+
## 📦 Install
|
|
30
|
+
|
|
31
|
+
In newest version you can define installation configuration in package.json (or .npmrc, while package.json has a higher
|
|
32
|
+
priority), usually you can just provide "prebuilt", and "arch".
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
// package.json
|
|
36
|
+
{
|
|
37
|
+
...
|
|
38
|
+
"agora_electron": {
|
|
39
|
+
"prebuilt": true,
|
|
40
|
+
"arch": "x64"
|
|
41
|
+
}
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
// .npmrc
|
|
47
|
+
agora_electron_sdk_pre_built=true // defalut value is true
|
|
48
|
+
agora_electron_sdk_arch=x64 // only support windows:
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Properties detail:
|
|
52
|
+
|
|
53
|
+
- **prebuilt** whether to automatically download prebuilt NodeJS C++ Addon or build locally(which need to provide
|
|
54
|
+
development env)
|
|
55
|
+
- **arch**: If not set, the script will automatically choose the arch. **only support windows**
|
|
56
|
+
- **platform** darwin or win32
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
## Automatic platform and architecture selection
|
|
60
|
+
npm install agora-electron-sdk
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
or
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
## or select 32 bit architecture on Windows
|
|
67
|
+
npm install --agora_electron_sdk_arch=ia32
|
|
68
|
+
|
|
69
|
+
## or select 64 bit architecture on Windows
|
|
70
|
+
npm install --agora_electron_sdk_arch=x64
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 🔨 Usage
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
import createAgoraRtcEngine from "agora-electron-sdk";
|
|
77
|
+
|
|
78
|
+
const rtcEngine = createAgoraRtcEngine();
|
|
79
|
+
rtcEngine.initialize({appId: "<your agora app id>"});
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### When using without electron-webpack
|
|
83
|
+
|
|
84
|
+
When using directly within a web electron project with custom webpack configuration, you may see errors when compiling.
|
|
85
|
+
It's because you have not properly configured loader for node addon. A convenient way to skip the compile process is to
|
|
86
|
+
set `externals` property of your webpack config to `{"agora-electron-sdk": "commonjs2 agora-electron-sdk"}`
|
|
87
|
+
|
|
88
|
+
## 🔗 Links
|
|
89
|
+
|
|
90
|
+
- [Document](https://docs.agora.io/en/video-call-4.x/API%20Reference/electron_ng/API/rtc_api_overview_ng.html) - Official document
|
|
91
|
+
|
|
92
|
+
- [Demo](./example/) - A quick start demo based on React and this repo
|
|
93
|
+
|
|
94
|
+
- [Changelog](./CHANGELOG.md) - Attention to newest information
|
|
95
|
+
|
|
96
|
+
- [Release Notes](https://docs.agora.io/en/video-call-4.x/release_electron_ng?platform=Electron) - Attention to newest
|
|
97
|
+
information
|
|
98
|
+
|
|
99
|
+
## ⌨️ Development
|
|
100
|
+
|
|
101
|
+
### Build From Source Code
|
|
102
|
+
|
|
103
|
+
You will need to build **Agora RTC Electron SDK** from source if you want to work on a new feature/bug fix, try out the
|
|
104
|
+
latest features which are not released yet, or maintain your own fork with patches that cannot be merged to the core.
|
|
105
|
+
|
|
106
|
+
### Prerequisites
|
|
107
|
+
|
|
108
|
+
#### Windows
|
|
109
|
+
|
|
110
|
+
- Python 2.7
|
|
111
|
+
- Visual Studio Code C++ Desktop Develop Framework
|
|
112
|
+
|
|
113
|
+
#### MacOS
|
|
114
|
+
|
|
115
|
+
- Python 2.7
|
|
116
|
+
- XCode
|
|
117
|
+
|
|
118
|
+
### Clone locally:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
$ git clone git@github.com:AgoraIO-Extensions/Electron-SDK.git
|
|
122
|
+
$ cd Electron-SDK
|
|
123
|
+
$ npm install #or yarn
|
|
124
|
+
|
|
125
|
+
# build macOS
|
|
126
|
+
$ npm install --agora_electron_sdk_pre_built=false
|
|
127
|
+
|
|
128
|
+
# build 32 bit architecture on Windows
|
|
129
|
+
$ npm install --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=ia32
|
|
130
|
+
|
|
131
|
+
# build 64 bit architecture on Windows
|
|
132
|
+
$ npm install --agora_electron_sdk_pre_built=false --agora_electron_sdk_arch=x64
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## 🤝 Contributing [](https://github.com/AgoraIO-Extensions/Electron-SDK/pulls)
|
|
136
|
+
|
|
137
|
+
Read our contributing guide and let's build a better antd together. :)
|
|
138
|
+
|
|
139
|
+
1. Fork the Project
|
|
140
|
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
141
|
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature`)
|
|
142
|
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
143
|
+
5. Open a Pull Request
|
package/gulpfile.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const gulp = require('gulp');
|
|
2
|
+
|
|
3
|
+
const build = require('./scripts/build');
|
|
4
|
+
const buildJS = require('./scripts/buildJS');
|
|
5
|
+
const checkElectron = require('./scripts/checkElectron');
|
|
6
|
+
const {
|
|
7
|
+
buildDir,
|
|
8
|
+
jsDir,
|
|
9
|
+
cleanDir,
|
|
10
|
+
destIrisSDKDir,
|
|
11
|
+
destNativeSDKDir,
|
|
12
|
+
} = require('./scripts/clean');
|
|
13
|
+
const downloadPrebuild = require('./scripts/downloadPrebuild');
|
|
14
|
+
const getConfig = require('./scripts/getConfig');
|
|
15
|
+
const logger = require('./scripts/logger');
|
|
16
|
+
const syncLib = require('./scripts/synclib');
|
|
17
|
+
const zipBuild = require('./scripts/zipBuild');
|
|
18
|
+
|
|
19
|
+
const config = getConfig();
|
|
20
|
+
logger.info(`Get Config: \n${JSON.stringify(config, undefined, 4)}`);
|
|
21
|
+
|
|
22
|
+
const clean = async (cb) => {
|
|
23
|
+
await cleanDir(destIrisSDKDir);
|
|
24
|
+
await cleanDir(destNativeSDKDir);
|
|
25
|
+
await cleanDir(buildDir);
|
|
26
|
+
await cleanDir(jsDir);
|
|
27
|
+
cb();
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const totalBuild = gulp.series(clean, syncLib, checkElectron, build, buildJS);
|
|
31
|
+
|
|
32
|
+
const wrapDownloadPreBuild = async (cb) => {
|
|
33
|
+
await downloadPrebuild(cb);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const NPM_Install = config.prebuilt
|
|
37
|
+
? wrapDownloadPreBuild
|
|
38
|
+
: async () => {
|
|
39
|
+
logger.warn('config prebuilt is false, skip `NPM_Install`');
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.syncLib = syncLib;
|
|
43
|
+
exports.clean = clean;
|
|
44
|
+
exports.build = build;
|
|
45
|
+
exports.buildJS = buildJS;
|
|
46
|
+
exports.zipBuild = zipBuild;
|
|
47
|
+
exports.checkElectron = checkElectron;
|
|
48
|
+
exports.totalBuild = totalBuild;
|
|
49
|
+
exports.NPM_Install = NPM_Install;
|
|
50
|
+
|
|
51
|
+
exports.downloadPrebuild = downloadPrebuild;
|
|
52
|
+
exports.default = totalBuild;
|
package/js/AgoraSdk.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getMediaPlayerCacheManager = exports.createAgoraRtcEngine = void 0;
|
|
18
|
+
const RtcEngineExInternal_1 = require("./Private/internal/RtcEngineExInternal");
|
|
19
|
+
const Utils_1 = require("./Utils");
|
|
20
|
+
__exportStar(require("./Private/AgoraBase"), exports);
|
|
21
|
+
__exportStar(require("./Private/AgoraMediaBase"), exports);
|
|
22
|
+
__exportStar(require("./Private/AgoraMediaPlayerTypes"), exports);
|
|
23
|
+
__exportStar(require("./Private/IAgoraLog"), exports);
|
|
24
|
+
__exportStar(require("./Private/IAgoraMediaEngine"), exports);
|
|
25
|
+
__exportStar(require("./Private/IAgoraMediaPlayer"), exports);
|
|
26
|
+
__exportStar(require("./Private/IAgoraMediaPlayerSource"), exports);
|
|
27
|
+
__exportStar(require("./Private/IAgoraMediaRecorder"), exports);
|
|
28
|
+
__exportStar(require("./Private/IAgoraMusicContentCenter"), exports);
|
|
29
|
+
__exportStar(require("./Private/IAgoraRhythmPlayer"), exports);
|
|
30
|
+
__exportStar(require("./Private/IAgoraRtcEngine"), exports);
|
|
31
|
+
__exportStar(require("./Private/IAgoraRtcEngineEx"), exports);
|
|
32
|
+
__exportStar(require("./Private/IAgoraSpatialAudio"), exports);
|
|
33
|
+
__exportStar(require("./Private/IAudioDeviceManager"), exports);
|
|
34
|
+
__exportStar(require("./Renderer"), exports);
|
|
35
|
+
__exportStar(require("./Types"), exports);
|
|
36
|
+
__exportStar(require("./Utils"), exports);
|
|
37
|
+
const instance = new RtcEngineExInternal_1.RtcEngineExInternal();
|
|
38
|
+
/**
|
|
39
|
+
* Creates one IRtcEngineEx object.
|
|
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.
|
|
45
|
+
*/
|
|
46
|
+
function createAgoraRtcEngine(options) {
|
|
47
|
+
Object.assign(Utils_1.AgoraEnv, options);
|
|
48
|
+
return instance;
|
|
49
|
+
}
|
|
50
|
+
exports.createAgoraRtcEngine = createAgoraRtcEngine;
|
|
51
|
+
/**
|
|
52
|
+
* Gets one IMediaPlayerCacheManager instance.
|
|
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.
|
|
58
|
+
*/
|
|
59
|
+
function getMediaPlayerCacheManager() {
|
|
60
|
+
return new IAgoraMediaPlayerImpl_1.IMediaPlayerCacheManagerImpl();
|
|
61
|
+
}
|
|
62
|
+
exports.getMediaPlayerCacheManager = getMediaPlayerCacheManager;
|
|
63
|
+
exports.default = createAgoraRtcEngine;
|
|
64
|
+
const IAgoraMediaPlayerImpl_1 = require("./Private/impl/IAgoraMediaPlayerImpl");
|