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,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processIMediaPlayerSourceObserver = void 0;
|
|
4
|
+
function processIMediaPlayerSourceObserver(handler, event, jsonParams) {
|
|
5
|
+
switch (event) {
|
|
6
|
+
case 'onPlayerSourceStateChanged':
|
|
7
|
+
if (handler.onPlayerSourceStateChanged !== undefined) {
|
|
8
|
+
handler.onPlayerSourceStateChanged(jsonParams.state, jsonParams.reason);
|
|
9
|
+
}
|
|
10
|
+
break;
|
|
11
|
+
case 'onPositionChanged':
|
|
12
|
+
if (handler.onPositionChanged !== undefined) {
|
|
13
|
+
handler.onPositionChanged(jsonParams.positionMs, jsonParams.timestampMs);
|
|
14
|
+
}
|
|
15
|
+
break;
|
|
16
|
+
case 'onPlayerEvent':
|
|
17
|
+
if (handler.onPlayerEvent !== undefined) {
|
|
18
|
+
handler.onPlayerEvent(jsonParams.eventCode, jsonParams.elapsedTime, jsonParams.message);
|
|
19
|
+
}
|
|
20
|
+
break;
|
|
21
|
+
case 'onMetaData':
|
|
22
|
+
if (handler.onMetaData !== undefined) {
|
|
23
|
+
handler.onMetaData(jsonParams.data, jsonParams.length);
|
|
24
|
+
}
|
|
25
|
+
break;
|
|
26
|
+
case 'onPlayBufferUpdated':
|
|
27
|
+
if (handler.onPlayBufferUpdated !== undefined) {
|
|
28
|
+
handler.onPlayBufferUpdated(jsonParams.playCachedBuffer);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
case 'onPreloadEvent':
|
|
32
|
+
if (handler.onPreloadEvent !== undefined) {
|
|
33
|
+
handler.onPreloadEvent(jsonParams.src, jsonParams.event);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
case 'onCompleted':
|
|
37
|
+
if (handler.onCompleted !== undefined) {
|
|
38
|
+
handler.onCompleted();
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
case 'onAgoraCDNTokenWillExpire':
|
|
42
|
+
if (handler.onAgoraCDNTokenWillExpire !== undefined) {
|
|
43
|
+
handler.onAgoraCDNTokenWillExpire();
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case 'onPlayerSrcInfoChanged':
|
|
47
|
+
if (handler.onPlayerSrcInfoChanged !== undefined) {
|
|
48
|
+
handler.onPlayerSrcInfoChanged(jsonParams.from, jsonParams.to);
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 'onPlayerInfoUpdated':
|
|
52
|
+
if (handler.onPlayerInfoUpdated !== undefined) {
|
|
53
|
+
handler.onPlayerInfoUpdated(jsonParams.info);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case 'onPlayerCacheStats':
|
|
57
|
+
if (handler.onPlayerCacheStats !== undefined) {
|
|
58
|
+
handler.onPlayerCacheStats(jsonParams.stats);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case 'onPlayerPlaybackStats':
|
|
62
|
+
if (handler.onPlayerPlaybackStats !== undefined) {
|
|
63
|
+
handler.onPlayerPlaybackStats(jsonParams.stats);
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case 'onAudioVolumeIndication':
|
|
67
|
+
if (handler.onAudioVolumeIndication !== undefined) {
|
|
68
|
+
handler.onAudioVolumeIndication(jsonParams.volume);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.processIMediaPlayerSourceObserver = processIMediaPlayerSourceObserver;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMediaRecorderImpl = void 0;
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
class IMediaRecorderImpl {
|
|
6
|
+
setMediaRecorderObserver(callback) {
|
|
7
|
+
const apiType = this.getApiTypeFromSetMediaRecorderObserver(callback);
|
|
8
|
+
const jsonParams = {
|
|
9
|
+
callback: callback,
|
|
10
|
+
toJSON: () => {
|
|
11
|
+
return {};
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
15
|
+
return jsonResults.result;
|
|
16
|
+
}
|
|
17
|
+
getApiTypeFromSetMediaRecorderObserver(callback) {
|
|
18
|
+
return 'MediaRecorder_setMediaRecorderObserver_e1f7340';
|
|
19
|
+
}
|
|
20
|
+
startRecording(config) {
|
|
21
|
+
const apiType = this.getApiTypeFromStartRecording(config);
|
|
22
|
+
const jsonParams = {
|
|
23
|
+
config: config,
|
|
24
|
+
toJSON: () => {
|
|
25
|
+
return {
|
|
26
|
+
config: config,
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
31
|
+
return jsonResults.result;
|
|
32
|
+
}
|
|
33
|
+
getApiTypeFromStartRecording(config) {
|
|
34
|
+
return 'MediaRecorder_startRecording_94480b3';
|
|
35
|
+
}
|
|
36
|
+
stopRecording() {
|
|
37
|
+
const apiType = this.getApiTypeFromStopRecording();
|
|
38
|
+
const jsonParams = {};
|
|
39
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
40
|
+
return jsonResults.result;
|
|
41
|
+
}
|
|
42
|
+
getApiTypeFromStopRecording() {
|
|
43
|
+
return 'MediaRecorder_stopRecording';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.IMediaRecorderImpl = IMediaRecorderImpl;
|
|
47
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMusicContentCenterImpl = exports.IMusicPlayerImpl = exports.processIMusicContentCenterEventHandler = exports.MusicCollectionImpl = exports.MusicChartCollectionImpl = void 0;
|
|
4
|
+
const IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
class MusicChartCollectionImpl {
|
|
7
|
+
getCount() {
|
|
8
|
+
const apiType = this.getApiTypeFromGetCount();
|
|
9
|
+
const jsonParams = {};
|
|
10
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
11
|
+
return jsonResults.result;
|
|
12
|
+
}
|
|
13
|
+
getApiTypeFromGetCount() {
|
|
14
|
+
return 'MusicChartCollection_getCount';
|
|
15
|
+
}
|
|
16
|
+
get(index) {
|
|
17
|
+
const apiType = this.getApiTypeFromGet(index);
|
|
18
|
+
const jsonParams = {
|
|
19
|
+
index: index,
|
|
20
|
+
toJSON: () => {
|
|
21
|
+
return {
|
|
22
|
+
index: index,
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
27
|
+
return jsonResults.result;
|
|
28
|
+
}
|
|
29
|
+
getApiTypeFromGet(index) {
|
|
30
|
+
return 'MusicChartCollection_get_46f8ab7';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.MusicChartCollectionImpl = MusicChartCollectionImpl;
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
class MusicCollectionImpl {
|
|
36
|
+
getCount() {
|
|
37
|
+
const apiType = this.getApiTypeFromGetCount();
|
|
38
|
+
const jsonParams = {};
|
|
39
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
40
|
+
return jsonResults.result;
|
|
41
|
+
}
|
|
42
|
+
getApiTypeFromGetCount() {
|
|
43
|
+
return 'MusicCollection_getCount';
|
|
44
|
+
}
|
|
45
|
+
getTotal() {
|
|
46
|
+
const apiType = this.getApiTypeFromGetTotal();
|
|
47
|
+
const jsonParams = {};
|
|
48
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
49
|
+
return jsonResults.result;
|
|
50
|
+
}
|
|
51
|
+
getApiTypeFromGetTotal() {
|
|
52
|
+
return 'MusicCollection_getTotal';
|
|
53
|
+
}
|
|
54
|
+
getPage() {
|
|
55
|
+
const apiType = this.getApiTypeFromGetPage();
|
|
56
|
+
const jsonParams = {};
|
|
57
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
58
|
+
return jsonResults.result;
|
|
59
|
+
}
|
|
60
|
+
getApiTypeFromGetPage() {
|
|
61
|
+
return 'MusicCollection_getPage';
|
|
62
|
+
}
|
|
63
|
+
getPageSize() {
|
|
64
|
+
const apiType = this.getApiTypeFromGetPageSize();
|
|
65
|
+
const jsonParams = {};
|
|
66
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
67
|
+
return jsonResults.result;
|
|
68
|
+
}
|
|
69
|
+
getApiTypeFromGetPageSize() {
|
|
70
|
+
return 'MusicCollection_getPageSize';
|
|
71
|
+
}
|
|
72
|
+
getMusic(index) {
|
|
73
|
+
const apiType = this.getApiTypeFromGetMusic(index);
|
|
74
|
+
const jsonParams = {
|
|
75
|
+
index: index,
|
|
76
|
+
toJSON: () => {
|
|
77
|
+
return {
|
|
78
|
+
index: index,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
83
|
+
return jsonResults.result;
|
|
84
|
+
}
|
|
85
|
+
getApiTypeFromGetMusic(index) {
|
|
86
|
+
return 'MusicCollection_getMusic_8fcdcef';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.MusicCollectionImpl = MusicCollectionImpl;
|
|
90
|
+
function processIMusicContentCenterEventHandler(handler, event, jsonParams) {
|
|
91
|
+
switch (event) {
|
|
92
|
+
case 'onMusicChartsResult':
|
|
93
|
+
if (handler.onMusicChartsResult !== undefined) {
|
|
94
|
+
handler.onMusicChartsResult(jsonParams.requestId, jsonParams.result, jsonParams.reason);
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case 'onMusicCollectionResult':
|
|
98
|
+
if (handler.onMusicCollectionResult !== undefined) {
|
|
99
|
+
handler.onMusicCollectionResult(jsonParams.requestId, jsonParams.result, jsonParams.reason);
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
case 'onLyricResult':
|
|
103
|
+
if (handler.onLyricResult !== undefined) {
|
|
104
|
+
handler.onLyricResult(jsonParams.requestId, jsonParams.songCode, jsonParams.lyricUrl, jsonParams.reason);
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case 'onSongSimpleInfoResult':
|
|
108
|
+
if (handler.onSongSimpleInfoResult !== undefined) {
|
|
109
|
+
handler.onSongSimpleInfoResult(jsonParams.requestId, jsonParams.songCode, jsonParams.simpleInfo, jsonParams.reason);
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case 'onPreLoadEvent':
|
|
113
|
+
if (handler.onPreLoadEvent !== undefined) {
|
|
114
|
+
handler.onPreLoadEvent(jsonParams.requestId, jsonParams.songCode, jsonParams.percent, jsonParams.lyricUrl, jsonParams.state, jsonParams.reason);
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.processIMusicContentCenterEventHandler = processIMusicContentCenterEventHandler;
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
class IMusicPlayerImpl extends IAgoraMediaPlayerImpl_1.IMediaPlayerImpl {
|
|
122
|
+
setPlayMode(mode) {
|
|
123
|
+
const apiType = this.getApiTypeFromSetPlayMode(mode);
|
|
124
|
+
const jsonParams = {
|
|
125
|
+
mode: mode,
|
|
126
|
+
toJSON: () => {
|
|
127
|
+
return {
|
|
128
|
+
mode: mode,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
133
|
+
return jsonResults.result;
|
|
134
|
+
}
|
|
135
|
+
getApiTypeFromSetPlayMode(mode) {
|
|
136
|
+
return 'MusicPlayer_setPlayMode_748bee0';
|
|
137
|
+
}
|
|
138
|
+
openWithSongCode(songCode, startPos = 0) {
|
|
139
|
+
const apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
|
|
140
|
+
const jsonParams = {
|
|
141
|
+
songCode: songCode,
|
|
142
|
+
startPos: startPos,
|
|
143
|
+
toJSON: () => {
|
|
144
|
+
return {
|
|
145
|
+
songCode: songCode,
|
|
146
|
+
startPos: startPos,
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
151
|
+
return jsonResults.result;
|
|
152
|
+
}
|
|
153
|
+
getApiTypeFromOpenWithSongCode(songCode, startPos = 0) {
|
|
154
|
+
return 'MusicPlayer_open_303b92e';
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.IMusicPlayerImpl = IMusicPlayerImpl;
|
|
158
|
+
// @ts-ignore
|
|
159
|
+
class IMusicContentCenterImpl {
|
|
160
|
+
initialize(configuration) {
|
|
161
|
+
const apiType = this.getApiTypeFromInitialize(configuration);
|
|
162
|
+
const jsonParams = {
|
|
163
|
+
configuration: configuration,
|
|
164
|
+
toJSON: () => {
|
|
165
|
+
return {
|
|
166
|
+
configuration: configuration,
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
171
|
+
return jsonResults.result;
|
|
172
|
+
}
|
|
173
|
+
getApiTypeFromInitialize(configuration) {
|
|
174
|
+
return 'MusicContentCenter_initialize_df70304';
|
|
175
|
+
}
|
|
176
|
+
renewToken(token) {
|
|
177
|
+
const apiType = this.getApiTypeFromRenewToken(token);
|
|
178
|
+
const jsonParams = {
|
|
179
|
+
token: token,
|
|
180
|
+
toJSON: () => {
|
|
181
|
+
return {
|
|
182
|
+
token: token,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
187
|
+
return jsonResults.result;
|
|
188
|
+
}
|
|
189
|
+
getApiTypeFromRenewToken(token) {
|
|
190
|
+
return 'MusicContentCenter_renewToken_3a2037f';
|
|
191
|
+
}
|
|
192
|
+
release() {
|
|
193
|
+
const apiType = this.getApiTypeFromRelease();
|
|
194
|
+
const jsonParams = {};
|
|
195
|
+
IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
196
|
+
}
|
|
197
|
+
getApiTypeFromRelease() {
|
|
198
|
+
return 'MusicContentCenter_release';
|
|
199
|
+
}
|
|
200
|
+
registerEventHandler(eventHandler) {
|
|
201
|
+
const apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
|
|
202
|
+
const jsonParams = {
|
|
203
|
+
eventHandler: eventHandler,
|
|
204
|
+
toJSON: () => {
|
|
205
|
+
return {};
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
209
|
+
return jsonResults.result;
|
|
210
|
+
}
|
|
211
|
+
getApiTypeFromRegisterEventHandler(eventHandler) {
|
|
212
|
+
return 'MusicContentCenter_registerEventHandler_ae49451';
|
|
213
|
+
}
|
|
214
|
+
unregisterEventHandler() {
|
|
215
|
+
const apiType = this.getApiTypeFromUnregisterEventHandler();
|
|
216
|
+
const jsonParams = {};
|
|
217
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
218
|
+
return jsonResults.result;
|
|
219
|
+
}
|
|
220
|
+
getApiTypeFromUnregisterEventHandler() {
|
|
221
|
+
return 'MusicContentCenter_unregisterEventHandler';
|
|
222
|
+
}
|
|
223
|
+
createMusicPlayer() {
|
|
224
|
+
const apiType = this.getApiTypeFromCreateMusicPlayer();
|
|
225
|
+
const jsonParams = {};
|
|
226
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
227
|
+
return jsonResults.result;
|
|
228
|
+
}
|
|
229
|
+
getApiTypeFromCreateMusicPlayer() {
|
|
230
|
+
return 'MusicContentCenter_createMusicPlayer';
|
|
231
|
+
}
|
|
232
|
+
destroyMusicPlayer(musicPlayer) {
|
|
233
|
+
const apiType = this.getApiTypeFromDestroyMusicPlayer(musicPlayer);
|
|
234
|
+
const jsonParams = {
|
|
235
|
+
music_player: musicPlayer,
|
|
236
|
+
toJSON: () => {
|
|
237
|
+
return {};
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
241
|
+
return jsonResults.result;
|
|
242
|
+
}
|
|
243
|
+
getApiTypeFromDestroyMusicPlayer(musicPlayer) {
|
|
244
|
+
return 'MusicContentCenter_destroyMusicPlayer_876d086';
|
|
245
|
+
}
|
|
246
|
+
getMusicCharts() {
|
|
247
|
+
const apiType = this.getApiTypeFromGetMusicCharts();
|
|
248
|
+
const jsonParams = {};
|
|
249
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
250
|
+
const requestId = jsonResults.requestId;
|
|
251
|
+
return requestId;
|
|
252
|
+
}
|
|
253
|
+
getApiTypeFromGetMusicCharts() {
|
|
254
|
+
return 'MusicContentCenter_getMusicCharts_66d4ecd';
|
|
255
|
+
}
|
|
256
|
+
getMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
|
|
257
|
+
const apiType = this.getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption);
|
|
258
|
+
const jsonParams = {
|
|
259
|
+
musicChartId: musicChartId,
|
|
260
|
+
page: page,
|
|
261
|
+
pageSize: pageSize,
|
|
262
|
+
jsonOption: jsonOption,
|
|
263
|
+
toJSON: () => {
|
|
264
|
+
return {
|
|
265
|
+
musicChartId: musicChartId,
|
|
266
|
+
page: page,
|
|
267
|
+
pageSize: pageSize,
|
|
268
|
+
jsonOption: jsonOption,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
273
|
+
const requestId = jsonResults.requestId;
|
|
274
|
+
return requestId;
|
|
275
|
+
}
|
|
276
|
+
getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
|
|
277
|
+
return 'MusicContentCenter_getMusicCollectionByMusicChartId_8cd0b4d';
|
|
278
|
+
}
|
|
279
|
+
searchMusic(keyWord, page, pageSize, jsonOption) {
|
|
280
|
+
const apiType = this.getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption);
|
|
281
|
+
const jsonParams = {
|
|
282
|
+
keyWord: keyWord,
|
|
283
|
+
page: page,
|
|
284
|
+
pageSize: pageSize,
|
|
285
|
+
jsonOption: jsonOption,
|
|
286
|
+
toJSON: () => {
|
|
287
|
+
return {
|
|
288
|
+
keyWord: keyWord,
|
|
289
|
+
page: page,
|
|
290
|
+
pageSize: pageSize,
|
|
291
|
+
jsonOption: jsonOption,
|
|
292
|
+
};
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
296
|
+
const requestId = jsonResults.requestId;
|
|
297
|
+
return requestId;
|
|
298
|
+
}
|
|
299
|
+
getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption) {
|
|
300
|
+
return 'MusicContentCenter_searchMusic_3f8cf09';
|
|
301
|
+
}
|
|
302
|
+
preload(songCode) {
|
|
303
|
+
const apiType = this.getApiTypeFromPreload(songCode);
|
|
304
|
+
const jsonParams = {
|
|
305
|
+
songCode: songCode,
|
|
306
|
+
toJSON: () => {
|
|
307
|
+
return {
|
|
308
|
+
songCode: songCode,
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
313
|
+
const requestId = jsonResults.requestId;
|
|
314
|
+
return requestId;
|
|
315
|
+
}
|
|
316
|
+
getApiTypeFromPreload(songCode) {
|
|
317
|
+
return 'MusicContentCenter_preload_d3baeab';
|
|
318
|
+
}
|
|
319
|
+
removeCache(songCode) {
|
|
320
|
+
const apiType = this.getApiTypeFromRemoveCache(songCode);
|
|
321
|
+
const jsonParams = {
|
|
322
|
+
songCode: songCode,
|
|
323
|
+
toJSON: () => {
|
|
324
|
+
return {
|
|
325
|
+
songCode: songCode,
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
};
|
|
329
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
330
|
+
return jsonResults.result;
|
|
331
|
+
}
|
|
332
|
+
getApiTypeFromRemoveCache(songCode) {
|
|
333
|
+
return 'MusicContentCenter_removeCache_f631116';
|
|
334
|
+
}
|
|
335
|
+
getCaches() {
|
|
336
|
+
const apiType = this.getApiTypeFromGetCaches();
|
|
337
|
+
const jsonParams = {};
|
|
338
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
339
|
+
const cacheInfo = jsonResults.cacheInfo;
|
|
340
|
+
const cacheInfoSize = jsonResults.cacheInfoSize;
|
|
341
|
+
return {
|
|
342
|
+
cacheInfo,
|
|
343
|
+
cacheInfoSize,
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
getApiTypeFromGetCaches() {
|
|
347
|
+
return 'MusicContentCenter_getCaches_c4f9978';
|
|
348
|
+
}
|
|
349
|
+
isPreloaded(songCode) {
|
|
350
|
+
const apiType = this.getApiTypeFromIsPreloaded(songCode);
|
|
351
|
+
const jsonParams = {
|
|
352
|
+
songCode: songCode,
|
|
353
|
+
toJSON: () => {
|
|
354
|
+
return {
|
|
355
|
+
songCode: songCode,
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
360
|
+
return jsonResults.result;
|
|
361
|
+
}
|
|
362
|
+
getApiTypeFromIsPreloaded(songCode) {
|
|
363
|
+
return 'MusicContentCenter_isPreloaded_f631116';
|
|
364
|
+
}
|
|
365
|
+
getLyric(songCode, lyricType = 0) {
|
|
366
|
+
const apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
|
|
367
|
+
const jsonParams = {
|
|
368
|
+
songCode: songCode,
|
|
369
|
+
lyricType: lyricType,
|
|
370
|
+
toJSON: () => {
|
|
371
|
+
return {
|
|
372
|
+
songCode: songCode,
|
|
373
|
+
lyricType: lyricType,
|
|
374
|
+
};
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
378
|
+
const requestId = jsonResults.requestId;
|
|
379
|
+
return requestId;
|
|
380
|
+
}
|
|
381
|
+
getApiTypeFromGetLyric(songCode, lyricType = 0) {
|
|
382
|
+
return 'MusicContentCenter_getLyric_5ab5efd';
|
|
383
|
+
}
|
|
384
|
+
getSongSimpleInfo(songCode) {
|
|
385
|
+
const apiType = this.getApiTypeFromGetSongSimpleInfo(songCode);
|
|
386
|
+
const jsonParams = {
|
|
387
|
+
songCode: songCode,
|
|
388
|
+
toJSON: () => {
|
|
389
|
+
return {
|
|
390
|
+
songCode: songCode,
|
|
391
|
+
};
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
395
|
+
const requestId = jsonResults.requestId;
|
|
396
|
+
return requestId;
|
|
397
|
+
}
|
|
398
|
+
getApiTypeFromGetSongSimpleInfo(songCode) {
|
|
399
|
+
return 'MusicContentCenter_getSongSimpleInfo_d3baeab';
|
|
400
|
+
}
|
|
401
|
+
getInternalSongCode(songCode, jsonOption) {
|
|
402
|
+
const apiType = this.getApiTypeFromGetInternalSongCode(songCode, jsonOption);
|
|
403
|
+
const jsonParams = {
|
|
404
|
+
songCode: songCode,
|
|
405
|
+
jsonOption: jsonOption,
|
|
406
|
+
toJSON: () => {
|
|
407
|
+
return {
|
|
408
|
+
songCode: songCode,
|
|
409
|
+
jsonOption: jsonOption,
|
|
410
|
+
};
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
414
|
+
const internalSongCode = jsonResults.internalSongCode;
|
|
415
|
+
return internalSongCode;
|
|
416
|
+
}
|
|
417
|
+
getApiTypeFromGetInternalSongCode(songCode, jsonOption) {
|
|
418
|
+
return 'MusicContentCenter_getInternalSongCode_3a3d1e7';
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
exports.IMusicContentCenterImpl = IMusicContentCenterImpl;
|
|
422
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|