agora-electron-sdk 0.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +315 -0
- package/LICENSE +21 -0
- package/README.md +143 -0
- package/gulpfile.js +52 -0
- package/js/AgoraSdk.js +64 -0
- package/js/Decoder/gpu-utils.js +74 -0
- package/js/Decoder/index.js +172 -0
- package/js/Private/AgoraBase.js +3985 -0
- package/js/Private/AgoraMediaBase.js +1014 -0
- package/js/Private/AgoraMediaPlayerTypes.js +316 -0
- package/js/Private/IAgoraH265Transcoder.js +36 -0
- package/js/Private/IAgoraLog.js +78 -0
- package/js/Private/IAgoraMediaEngine.js +32 -0
- package/js/Private/IAgoraMediaPlayer.js +16 -0
- package/js/Private/IAgoraMediaPlayerSource.js +3 -0
- package/js/Private/IAgoraMediaRecorder.js +10 -0
- package/js/Private/IAgoraMediaStreamingSource.js +74 -0
- package/js/Private/IAgoraMusicContentCenter.js +157 -0
- package/js/Private/IAgoraRhythmPlayer.js +62 -0
- package/js/Private/IAgoraRtcEngine.js +982 -0
- package/js/Private/IAgoraRtcEngineEx.js +19 -0
- package/js/Private/IAgoraSpatialAudio.js +24 -0
- package/js/Private/IAudioDeviceManager.js +20 -0
- package/js/Private/extension/AgoraBaseExtension.js +3 -0
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -0
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/extension/IAgoraLogExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -0
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -0
- package/js/Private/impl/AgoraBaseImpl.js +23 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +149 -0
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +116 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +337 -0
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +950 -0
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +73 -0
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -0
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +422 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +1042 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +5167 -0
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +358 -0
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -0
- package/js/Private/internal/AgoraH265TranscoderInternal.js +62 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +15 -0
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -0
- package/js/Private/internal/IrisApiEngine.js +424 -0
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +7 -0
- package/js/Private/internal/MediaEngineInternal.js +122 -0
- package/js/Private/internal/MediaPlayerInternal.js +194 -0
- package/js/Private/internal/MediaRecorderInternal.js +70 -0
- package/js/Private/internal/MusicContentCenterInternal.js +139 -0
- package/js/Private/internal/RtcEngineExInternal.js +430 -0
- package/js/Private/ipc/main.js +21 -0
- package/js/Private/ipc/renderer.js +21 -0
- package/js/Private/ti/AgoraBase-ti.js +40 -0
- package/js/Private/ti/AgoraMediaBase-ti.js +75 -0
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -0
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraLog-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +50 -0
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -0
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +42 -0
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -0
- package/js/Private/ti/IAgoraRtcEngine-ti.js +141 -0
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -0
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -0
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -0
- package/js/Renderer/AgoraView.js +161 -0
- package/js/Renderer/CapabilityManager.js +99 -0
- package/js/Renderer/IRenderer.js +136 -0
- package/js/Renderer/IRendererCache.js +75 -0
- package/js/Renderer/RendererCache.js +100 -0
- package/js/Renderer/RendererManager.js +301 -0
- package/js/Renderer/WebCodecsRenderer/index.js +109 -0
- package/js/Renderer/WebCodecsRendererCache.js +115 -0
- package/js/Renderer/WebGLRenderer/index.js +314 -0
- package/js/Renderer/WebGLRenderer/webgl-utils.js +1337 -0
- package/js/Renderer/YUVCanvasRenderer/index.js +46 -0
- package/js/Renderer/index.js +17 -0
- package/js/Types.js +67 -0
- package/js/Utils.js +187 -0
- package/package.json +167 -0
- package/scripts/bootstrap.js +29 -0
- package/scripts/build.js +37 -0
- package/scripts/buildJS.js +14 -0
- package/scripts/checkElectron.js +43 -0
- package/scripts/clean.js +16 -0
- package/scripts/download.js +105 -0
- package/scripts/downloadPrebuild.js +199 -0
- package/scripts/getConfig.js +73 -0
- package/scripts/logger.js +32 -0
- package/scripts/synclib.js +69 -0
- package/scripts/util.js +47 -0
- package/scripts/zipBuild.js +40 -0
- package/ts/AgoraSdk.ts +54 -0
- package/ts/Decoder/gpu-utils.ts +92 -0
- package/ts/Decoder/index.ts +206 -0
- package/ts/Private/AgoraBase.ts +5511 -0
- package/ts/Private/AgoraMediaBase.ts +1764 -0
- package/ts/Private/AgoraMediaPlayerTypes.ts +464 -0
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +91 -0
- package/ts/Private/IAgoraMediaEngine.ts +316 -0
- package/ts/Private/IAgoraMediaPlayer.ts +744 -0
- package/ts/Private/IAgoraMediaPlayerSource.ts +137 -0
- package/ts/Private/IAgoraMediaRecorder.ts +25 -0
- package/ts/Private/IAgoraMediaStreamingSource.ts +81 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +455 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +67 -0
- package/ts/Private/IAgoraRtcEngine.ts +7306 -0
- package/ts/Private/IAgoraRtcEngineEx.ts +992 -0
- package/ts/Private/IAgoraSpatialAudio.ts +250 -0
- package/ts/Private/IAudioDeviceManager.ts +342 -0
- package/ts/Private/extension/AgoraBaseExtension.ts +14 -0
- package/ts/Private/extension/AgoraMediaBaseExtension.ts +1 -0
- package/ts/Private/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/extension/IAgoraLogExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/ts/Private/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/ts/Private/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +64 -0
- package/ts/Private/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/ts/Private/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/ts/Private/impl/AgoraBaseImpl.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +237 -0
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +491 -0
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +1169 -0
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +59 -0
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +562 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +1672 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +7352 -0
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +495 -0
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +443 -0
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +46 -0
- package/ts/Private/internal/IrisApiEngine.ts +598 -0
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/ts/Private/internal/MediaEngineInternal.ts +190 -0
- package/ts/Private/internal/MediaPlayerInternal.ts +311 -0
- package/ts/Private/internal/MediaRecorderInternal.ts +100 -0
- package/ts/Private/internal/MusicContentCenterInternal.ts +208 -0
- package/ts/Private/internal/RtcEngineExInternal.ts +647 -0
- package/ts/Private/ipc/main.ts +22 -0
- package/ts/Private/ipc/renderer.ts +21 -0
- package/ts/Private/ti/AgoraBase-ti.ts +16 -0
- package/ts/Private/ti/AgoraMediaBase-ti.ts +58 -0
- package/ts/Private/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraLog-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/ts/Private/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/ts/Private/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +119 -0
- package/ts/Private/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/ts/Private/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/ts/Private/ti/IAudioDeviceManager-ti.ts +11 -0
- package/ts/Renderer/AgoraView.ts +235 -0
- package/ts/Renderer/CapabilityManager.ts +126 -0
- package/ts/Renderer/IRenderer.ts +158 -0
- package/ts/Renderer/IRendererCache.ts +96 -0
- package/ts/Renderer/RendererCache.ts +124 -0
- package/ts/Renderer/RendererManager.ts +400 -0
- package/ts/Renderer/WebCodecsRenderer/index.ts +145 -0
- package/ts/Renderer/WebCodecsRendererCache.ts +137 -0
- package/ts/Renderer/WebGLRenderer/index.ts +489 -0
- package/ts/Renderer/WebGLRenderer/webgl-utils.js +1510 -0
- package/ts/Renderer/YUVCanvasRenderer/index.ts +67 -0
- package/ts/Renderer/index.ts +1 -0
- package/ts/Types.ts +249 -0
- package/ts/Utils.ts +197 -0
- package/types/AgoraSdk.d.ts +40 -0
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Decoder/gpu-utils.d.ts +21 -0
- package/types/Decoder/gpu-utils.d.ts.map +1 -0
- package/types/Decoder/index.d.ts +26 -0
- package/types/Decoder/index.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +5310 -0
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1668 -0
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +453 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +89 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +250 -0
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +648 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +109 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +20 -0
- package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts +381 -0
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +6103 -0
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +741 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +196 -0
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +312 -0
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +14 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +42 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +143 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +116 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +628 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +69 -0
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +23 -0
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +30 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +16 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +31 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +73 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/types/Private/ipc/main.d.ts +2 -0
- package/types/Private/ipc/main.d.ts.map +1 -0
- package/types/Private/ipc/renderer.d.ts +3 -0
- package/types/Private/ipc/renderer.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -0
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +76 -0
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/CapabilityManager.d.ts +20 -0
- package/types/Renderer/CapabilityManager.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +20 -0
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererCache.d.ts +26 -0
- package/types/Renderer/IRendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererCache.d.ts +24 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +66 -0
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts +14 -0
- package/types/Renderer/WebCodecsRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts +15 -0
- package/types/Renderer/WebCodecsRendererCache.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/index.d.ts +27 -0
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
- package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +9 -0
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +2 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +177 -0
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +50 -0
- package/types/Utils.d.ts.map +1 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import { RtcConnection } from '../IAgoraRtcEngineEx';
|
|
2
|
+
import {
|
|
3
|
+
ILocalSpatialAudioEngine,
|
|
4
|
+
RemoteVoicePositionInfo,
|
|
5
|
+
SpatialAudioZone,
|
|
6
|
+
} from '../IAgoraSpatialAudio';
|
|
7
|
+
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
export class ILocalSpatialAudioEngineImpl implements ILocalSpatialAudioEngine {
|
|
10
|
+
release(): void {
|
|
11
|
+
const apiType = this.getApiTypeFromRelease();
|
|
12
|
+
const jsonParams = {};
|
|
13
|
+
callIrisApi.call(this, apiType, jsonParams);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
protected getApiTypeFromRelease(): string {
|
|
17
|
+
return 'LocalSpatialAudioEngine_release';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
initialize(): number {
|
|
21
|
+
const apiType = this.getApiTypeFromInitialize();
|
|
22
|
+
const jsonParams = {};
|
|
23
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
24
|
+
return jsonResults.result;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
protected getApiTypeFromInitialize(): string {
|
|
28
|
+
return 'LocalSpatialAudioEngine_initialize_cf94fbf';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
updateRemotePosition(uid: number, posInfo: RemoteVoicePositionInfo): number {
|
|
32
|
+
const apiType = this.getApiTypeFromUpdateRemotePosition(uid, posInfo);
|
|
33
|
+
const jsonParams = {
|
|
34
|
+
uid: uid,
|
|
35
|
+
posInfo: posInfo,
|
|
36
|
+
toJSON: () => {
|
|
37
|
+
return {
|
|
38
|
+
uid: uid,
|
|
39
|
+
posInfo: posInfo,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
44
|
+
return jsonResults.result;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
protected getApiTypeFromUpdateRemotePosition(
|
|
48
|
+
uid: number,
|
|
49
|
+
posInfo: RemoteVoicePositionInfo
|
|
50
|
+
): string {
|
|
51
|
+
return 'LocalSpatialAudioEngine_updateRemotePosition_adc0909';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
updateRemotePositionEx(
|
|
55
|
+
uid: number,
|
|
56
|
+
posInfo: RemoteVoicePositionInfo,
|
|
57
|
+
connection: RtcConnection
|
|
58
|
+
): number {
|
|
59
|
+
const apiType = this.getApiTypeFromUpdateRemotePositionEx(
|
|
60
|
+
uid,
|
|
61
|
+
posInfo,
|
|
62
|
+
connection
|
|
63
|
+
);
|
|
64
|
+
const jsonParams = {
|
|
65
|
+
uid: uid,
|
|
66
|
+
posInfo: posInfo,
|
|
67
|
+
connection: connection,
|
|
68
|
+
toJSON: () => {
|
|
69
|
+
return {
|
|
70
|
+
uid: uid,
|
|
71
|
+
posInfo: posInfo,
|
|
72
|
+
connection: connection,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
77
|
+
return jsonResults.result;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
protected getApiTypeFromUpdateRemotePositionEx(
|
|
81
|
+
uid: number,
|
|
82
|
+
posInfo: RemoteVoicePositionInfo,
|
|
83
|
+
connection: RtcConnection
|
|
84
|
+
): string {
|
|
85
|
+
return 'LocalSpatialAudioEngine_updateRemotePositionEx_f0252d9';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
removeRemotePosition(uid: number): number {
|
|
89
|
+
const apiType = this.getApiTypeFromRemoveRemotePosition(uid);
|
|
90
|
+
const jsonParams = {
|
|
91
|
+
uid: uid,
|
|
92
|
+
toJSON: () => {
|
|
93
|
+
return {
|
|
94
|
+
uid: uid,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
99
|
+
return jsonResults.result;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
protected getApiTypeFromRemoveRemotePosition(uid: number): string {
|
|
103
|
+
return 'LocalSpatialAudioEngine_removeRemotePosition_c8d091a';
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
removeRemotePositionEx(uid: number, connection: RtcConnection): number {
|
|
107
|
+
const apiType = this.getApiTypeFromRemoveRemotePositionEx(uid, connection);
|
|
108
|
+
const jsonParams = {
|
|
109
|
+
uid: uid,
|
|
110
|
+
connection: connection,
|
|
111
|
+
toJSON: () => {
|
|
112
|
+
return {
|
|
113
|
+
uid: uid,
|
|
114
|
+
connection: connection,
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
119
|
+
return jsonResults.result;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
protected getApiTypeFromRemoveRemotePositionEx(
|
|
123
|
+
uid: number,
|
|
124
|
+
connection: RtcConnection
|
|
125
|
+
): string {
|
|
126
|
+
return 'LocalSpatialAudioEngine_removeRemotePositionEx_58a9850';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
clearRemotePositionsEx(connection: RtcConnection): number {
|
|
130
|
+
const apiType = this.getApiTypeFromClearRemotePositionsEx(connection);
|
|
131
|
+
const jsonParams = {
|
|
132
|
+
connection: connection,
|
|
133
|
+
toJSON: () => {
|
|
134
|
+
return {
|
|
135
|
+
connection: connection,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
140
|
+
return jsonResults.result;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
protected getApiTypeFromClearRemotePositionsEx(
|
|
144
|
+
connection: RtcConnection
|
|
145
|
+
): string {
|
|
146
|
+
return 'LocalSpatialAudioEngine_clearRemotePositionsEx_c81e1a4';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
updateSelfPositionEx(
|
|
150
|
+
position: number[],
|
|
151
|
+
axisForward: number[],
|
|
152
|
+
axisRight: number[],
|
|
153
|
+
axisUp: number[],
|
|
154
|
+
connection: RtcConnection
|
|
155
|
+
): number {
|
|
156
|
+
const apiType = this.getApiTypeFromUpdateSelfPositionEx(
|
|
157
|
+
position,
|
|
158
|
+
axisForward,
|
|
159
|
+
axisRight,
|
|
160
|
+
axisUp,
|
|
161
|
+
connection
|
|
162
|
+
);
|
|
163
|
+
const jsonParams = {
|
|
164
|
+
position: position,
|
|
165
|
+
axisForward: axisForward,
|
|
166
|
+
axisRight: axisRight,
|
|
167
|
+
axisUp: axisUp,
|
|
168
|
+
connection: connection,
|
|
169
|
+
toJSON: () => {
|
|
170
|
+
return {
|
|
171
|
+
position: position,
|
|
172
|
+
axisForward: axisForward,
|
|
173
|
+
axisRight: axisRight,
|
|
174
|
+
axisUp: axisUp,
|
|
175
|
+
connection: connection,
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
180
|
+
return jsonResults.result;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
protected getApiTypeFromUpdateSelfPositionEx(
|
|
184
|
+
position: number[],
|
|
185
|
+
axisForward: number[],
|
|
186
|
+
axisRight: number[],
|
|
187
|
+
axisUp: number[],
|
|
188
|
+
connection: RtcConnection
|
|
189
|
+
): string {
|
|
190
|
+
return 'LocalSpatialAudioEngine_updateSelfPositionEx_502183a';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
setMaxAudioRecvCount(maxCount: number): number {
|
|
194
|
+
const apiType = this.getApiTypeFromSetMaxAudioRecvCount(maxCount);
|
|
195
|
+
const jsonParams = {
|
|
196
|
+
maxCount: maxCount,
|
|
197
|
+
toJSON: () => {
|
|
198
|
+
return {
|
|
199
|
+
maxCount: maxCount,
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
204
|
+
return jsonResults.result;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
protected getApiTypeFromSetMaxAudioRecvCount(maxCount: number): string {
|
|
208
|
+
return 'LocalSpatialAudioEngine_setMaxAudioRecvCount_46f8ab7';
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
setAudioRecvRange(range: number): number {
|
|
212
|
+
const apiType = this.getApiTypeFromSetAudioRecvRange(range);
|
|
213
|
+
const jsonParams = {
|
|
214
|
+
range: range,
|
|
215
|
+
toJSON: () => {
|
|
216
|
+
return {
|
|
217
|
+
range: range,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
222
|
+
return jsonResults.result;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
protected getApiTypeFromSetAudioRecvRange(range: number): string {
|
|
226
|
+
return 'LocalSpatialAudioEngine_setAudioRecvRange_685e803';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
setDistanceUnit(unit: number): number {
|
|
230
|
+
const apiType = this.getApiTypeFromSetDistanceUnit(unit);
|
|
231
|
+
const jsonParams = {
|
|
232
|
+
unit: unit,
|
|
233
|
+
toJSON: () => {
|
|
234
|
+
return {
|
|
235
|
+
unit: unit,
|
|
236
|
+
};
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
240
|
+
return jsonResults.result;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
protected getApiTypeFromSetDistanceUnit(unit: number): string {
|
|
244
|
+
return 'LocalSpatialAudioEngine_setDistanceUnit_685e803';
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
updateSelfPosition(
|
|
248
|
+
position: number[],
|
|
249
|
+
axisForward: number[],
|
|
250
|
+
axisRight: number[],
|
|
251
|
+
axisUp: number[]
|
|
252
|
+
): number {
|
|
253
|
+
const apiType = this.getApiTypeFromUpdateSelfPosition(
|
|
254
|
+
position,
|
|
255
|
+
axisForward,
|
|
256
|
+
axisRight,
|
|
257
|
+
axisUp
|
|
258
|
+
);
|
|
259
|
+
const jsonParams = {
|
|
260
|
+
position: position,
|
|
261
|
+
axisForward: axisForward,
|
|
262
|
+
axisRight: axisRight,
|
|
263
|
+
axisUp: axisUp,
|
|
264
|
+
toJSON: () => {
|
|
265
|
+
return {
|
|
266
|
+
position: position,
|
|
267
|
+
axisForward: axisForward,
|
|
268
|
+
axisRight: axisRight,
|
|
269
|
+
axisUp: axisUp,
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
};
|
|
273
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
274
|
+
return jsonResults.result;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
protected getApiTypeFromUpdateSelfPosition(
|
|
278
|
+
position: number[],
|
|
279
|
+
axisForward: number[],
|
|
280
|
+
axisRight: number[],
|
|
281
|
+
axisUp: number[]
|
|
282
|
+
): string {
|
|
283
|
+
return 'LocalSpatialAudioEngine_updateSelfPosition_9c9930f';
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
updatePlayerPositionInfo(
|
|
287
|
+
playerId: number,
|
|
288
|
+
positionInfo: RemoteVoicePositionInfo
|
|
289
|
+
): number {
|
|
290
|
+
const apiType = this.getApiTypeFromUpdatePlayerPositionInfo(
|
|
291
|
+
playerId,
|
|
292
|
+
positionInfo
|
|
293
|
+
);
|
|
294
|
+
const jsonParams = {
|
|
295
|
+
playerId: playerId,
|
|
296
|
+
positionInfo: positionInfo,
|
|
297
|
+
toJSON: () => {
|
|
298
|
+
return {
|
|
299
|
+
playerId: playerId,
|
|
300
|
+
positionInfo: positionInfo,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
305
|
+
return jsonResults.result;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
protected getApiTypeFromUpdatePlayerPositionInfo(
|
|
309
|
+
playerId: number,
|
|
310
|
+
positionInfo: RemoteVoicePositionInfo
|
|
311
|
+
): string {
|
|
312
|
+
return 'LocalSpatialAudioEngine_updatePlayerPositionInfo_b37c59d';
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
setParameters(params: string): number {
|
|
316
|
+
const apiType = this.getApiTypeFromSetParameters(params);
|
|
317
|
+
const jsonParams = {
|
|
318
|
+
params: params,
|
|
319
|
+
toJSON: () => {
|
|
320
|
+
return {
|
|
321
|
+
params: params,
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
};
|
|
325
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
326
|
+
return jsonResults.result;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
protected getApiTypeFromSetParameters(params: string): string {
|
|
330
|
+
return 'LocalSpatialAudioEngine_setParameters_3a2037f';
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
muteLocalAudioStream(mute: boolean): number {
|
|
334
|
+
const apiType = this.getApiTypeFromMuteLocalAudioStream(mute);
|
|
335
|
+
const jsonParams = {
|
|
336
|
+
mute: mute,
|
|
337
|
+
toJSON: () => {
|
|
338
|
+
return {
|
|
339
|
+
mute: mute,
|
|
340
|
+
};
|
|
341
|
+
},
|
|
342
|
+
};
|
|
343
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
344
|
+
return jsonResults.result;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
protected getApiTypeFromMuteLocalAudioStream(mute: boolean): string {
|
|
348
|
+
return 'LocalSpatialAudioEngine_muteLocalAudioStream_5039d15';
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
muteAllRemoteAudioStreams(mute: boolean): number {
|
|
352
|
+
const apiType = this.getApiTypeFromMuteAllRemoteAudioStreams(mute);
|
|
353
|
+
const jsonParams = {
|
|
354
|
+
mute: mute,
|
|
355
|
+
toJSON: () => {
|
|
356
|
+
return {
|
|
357
|
+
mute: mute,
|
|
358
|
+
};
|
|
359
|
+
},
|
|
360
|
+
};
|
|
361
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
362
|
+
return jsonResults.result;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
protected getApiTypeFromMuteAllRemoteAudioStreams(mute: boolean): string {
|
|
366
|
+
return 'LocalSpatialAudioEngine_muteAllRemoteAudioStreams_5039d15';
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
muteRemoteAudioStream(uid: number, mute: boolean): number {
|
|
370
|
+
const apiType = this.getApiTypeFromMuteRemoteAudioStream(uid, mute);
|
|
371
|
+
const jsonParams = {
|
|
372
|
+
uid: uid,
|
|
373
|
+
mute: mute,
|
|
374
|
+
toJSON: () => {
|
|
375
|
+
return {
|
|
376
|
+
uid: uid,
|
|
377
|
+
mute: mute,
|
|
378
|
+
};
|
|
379
|
+
},
|
|
380
|
+
};
|
|
381
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
382
|
+
return jsonResults.result;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
protected getApiTypeFromMuteRemoteAudioStream(
|
|
386
|
+
uid: number,
|
|
387
|
+
mute: boolean
|
|
388
|
+
): string {
|
|
389
|
+
return 'LocalSpatialAudioEngine_muteRemoteAudioStream_dbdc15a';
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
setRemoteAudioAttenuation(
|
|
393
|
+
uid: number,
|
|
394
|
+
attenuation: number,
|
|
395
|
+
forceSet: boolean
|
|
396
|
+
): number {
|
|
397
|
+
const apiType = this.getApiTypeFromSetRemoteAudioAttenuation(
|
|
398
|
+
uid,
|
|
399
|
+
attenuation,
|
|
400
|
+
forceSet
|
|
401
|
+
);
|
|
402
|
+
const jsonParams = {
|
|
403
|
+
uid: uid,
|
|
404
|
+
attenuation: attenuation,
|
|
405
|
+
forceSet: forceSet,
|
|
406
|
+
toJSON: () => {
|
|
407
|
+
return {
|
|
408
|
+
uid: uid,
|
|
409
|
+
attenuation: attenuation,
|
|
410
|
+
forceSet: forceSet,
|
|
411
|
+
};
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
415
|
+
return jsonResults.result;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
protected getApiTypeFromSetRemoteAudioAttenuation(
|
|
419
|
+
uid: number,
|
|
420
|
+
attenuation: number,
|
|
421
|
+
forceSet: boolean
|
|
422
|
+
): string {
|
|
423
|
+
return 'LocalSpatialAudioEngine_setRemoteAudioAttenuation_74c3e98';
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
setZones(zones: SpatialAudioZone[], zoneCount: number): number {
|
|
427
|
+
const apiType = this.getApiTypeFromSetZones(zones, zoneCount);
|
|
428
|
+
const jsonParams = {
|
|
429
|
+
zones: zones,
|
|
430
|
+
zoneCount: zoneCount,
|
|
431
|
+
toJSON: () => {
|
|
432
|
+
return {
|
|
433
|
+
zones: zones,
|
|
434
|
+
zoneCount: zoneCount,
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
};
|
|
438
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
439
|
+
return jsonResults.result;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
protected getApiTypeFromSetZones(
|
|
443
|
+
zones: SpatialAudioZone[],
|
|
444
|
+
zoneCount: number
|
|
445
|
+
): string {
|
|
446
|
+
return 'LocalSpatialAudioEngine_setZones_414a27e';
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
setPlayerAttenuation(
|
|
450
|
+
playerId: number,
|
|
451
|
+
attenuation: number,
|
|
452
|
+
forceSet: boolean
|
|
453
|
+
): number {
|
|
454
|
+
const apiType = this.getApiTypeFromSetPlayerAttenuation(
|
|
455
|
+
playerId,
|
|
456
|
+
attenuation,
|
|
457
|
+
forceSet
|
|
458
|
+
);
|
|
459
|
+
const jsonParams = {
|
|
460
|
+
playerId: playerId,
|
|
461
|
+
attenuation: attenuation,
|
|
462
|
+
forceSet: forceSet,
|
|
463
|
+
toJSON: () => {
|
|
464
|
+
return {
|
|
465
|
+
playerId: playerId,
|
|
466
|
+
attenuation: attenuation,
|
|
467
|
+
forceSet: forceSet,
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
};
|
|
471
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
472
|
+
return jsonResults.result;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
protected getApiTypeFromSetPlayerAttenuation(
|
|
476
|
+
playerId: number,
|
|
477
|
+
attenuation: number,
|
|
478
|
+
forceSet: boolean
|
|
479
|
+
): string {
|
|
480
|
+
return 'LocalSpatialAudioEngine_setPlayerAttenuation_a15bc51';
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
clearRemotePositions(): number {
|
|
484
|
+
const apiType = this.getApiTypeFromClearRemotePositions();
|
|
485
|
+
const jsonParams = {};
|
|
486
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
487
|
+
return jsonResults.result;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
protected getApiTypeFromClearRemotePositions(): string {
|
|
491
|
+
return 'LocalSpatialAudioEngine_clearRemotePositions';
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
import { callIrisApi } from '../internal/IrisApiEngine';
|