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,109 @@
|
|
|
1
|
+
import './extension/IAgoraMediaPlayerSourceExtension';
|
|
2
|
+
import { CacheStatistics, MediaPlayerEvent, MediaPlayerReason, MediaPlayerState, PlayerPlaybackStats, PlayerPreloadEvent, PlayerUpdatedInfo, SrcInfo } from './AgoraMediaPlayerTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Provides callbacks for media players.
|
|
5
|
+
*/
|
|
6
|
+
export interface IMediaPlayerSourceObserver {
|
|
7
|
+
/**
|
|
8
|
+
* Reports the changes of playback state.
|
|
9
|
+
*
|
|
10
|
+
* When the state of the media player changes, the SDK triggers this callback to report the current playback state.
|
|
11
|
+
*
|
|
12
|
+
* @param state The playback state. See MediaPlayerState.
|
|
13
|
+
* @param reason The reason for the changes in the media player status. See MediaPlayerReason.
|
|
14
|
+
*/
|
|
15
|
+
onPlayerSourceStateChanged?(state: MediaPlayerState, reason: MediaPlayerReason): void;
|
|
16
|
+
/**
|
|
17
|
+
* Reports the playback progress of the media file.
|
|
18
|
+
*
|
|
19
|
+
* When playing media files, the SDK triggers this callback every two second to report current playback progress.
|
|
20
|
+
*
|
|
21
|
+
* @param positionMs The playback position (ms) of media files.
|
|
22
|
+
* @param timeStampMs The NTP timestamp (ms) of the current playback progress.
|
|
23
|
+
*/
|
|
24
|
+
onPositionChanged?(positionMs: number, timestampMs: number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Reports the player events.
|
|
27
|
+
*
|
|
28
|
+
* After calling the seek method, the SDK triggers the callback to report the results of the seek operation.
|
|
29
|
+
*
|
|
30
|
+
* @param eventCode The player event. See MediaPlayerEvent.
|
|
31
|
+
* @param elapsedTime The time (ms) when the event occurs.
|
|
32
|
+
* @param message Information about the event.
|
|
33
|
+
*/
|
|
34
|
+
onPlayerEvent?(eventCode: MediaPlayerEvent, elapsedTime: number, message: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Occurs when the media metadata is received.
|
|
37
|
+
*
|
|
38
|
+
* The callback occurs when the player receives the media metadata and reports the detailed information of the media metadata.
|
|
39
|
+
*
|
|
40
|
+
* @param data The detailed data of the media metadata.
|
|
41
|
+
* @param length The data length (bytes).
|
|
42
|
+
*/
|
|
43
|
+
onMetaData?(data: Uint8Array, length: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* Reports the playback duration that the buffered data can support.
|
|
46
|
+
*
|
|
47
|
+
* When playing online media resources, the SDK triggers this callback every two seconds to report the playback duration that the currently buffered data can support.
|
|
48
|
+
* When the playback duration supported by the buffered data is less than the threshold (0 by default), the SDK returns PlayerEventBufferLow (6).
|
|
49
|
+
* When the playback duration supported by the buffered data is greater than the threshold (0 by default), the SDK returns PlayerEventBufferRecover (7).
|
|
50
|
+
*
|
|
51
|
+
* @param playCachedBuffer The playback duration (ms) that the buffered data can support.
|
|
52
|
+
*/
|
|
53
|
+
onPlayBufferUpdated?(playCachedBuffer: number): void;
|
|
54
|
+
/**
|
|
55
|
+
* Reports the events of preloaded media resources.
|
|
56
|
+
*
|
|
57
|
+
* @param src The URL of the media resource.
|
|
58
|
+
* @param event Events that occur when media resources are preloaded. See PlayerPreloadEvent.
|
|
59
|
+
*/
|
|
60
|
+
onPreloadEvent?(src: string, event: PlayerPreloadEvent): void;
|
|
61
|
+
/**
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
onCompleted?(): void;
|
|
65
|
+
/**
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
onAgoraCDNTokenWillExpire?(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Occurs when the video bitrate of the media resource changes.
|
|
71
|
+
*
|
|
72
|
+
* @param from Information about the video bitrate of the media resource being played. See SrcInfo.
|
|
73
|
+
* @param to Information about the changed video bitrate of media resource being played. See SrcInfo.
|
|
74
|
+
*/
|
|
75
|
+
onPlayerSrcInfoChanged?(from: SrcInfo, to: SrcInfo): void;
|
|
76
|
+
/**
|
|
77
|
+
* Occurs when information related to the media player changes.
|
|
78
|
+
*
|
|
79
|
+
* When the information about the media player changes, the SDK triggers this callback. You can use this callback for troubleshooting.
|
|
80
|
+
*
|
|
81
|
+
* @param info Information related to the media player. See PlayerUpdatedInfo.
|
|
82
|
+
*/
|
|
83
|
+
onPlayerInfoUpdated?(info: PlayerUpdatedInfo): void;
|
|
84
|
+
/**
|
|
85
|
+
* Reports the statistics of the media file being cached.
|
|
86
|
+
*
|
|
87
|
+
* After you call the openWithMediaSource method and set enableCache as true, the SDK triggers this callback once per second to report the statistics of the media file being cached.
|
|
88
|
+
*
|
|
89
|
+
* @param stats The statistics of the media file being cached. See CacheStatistics.
|
|
90
|
+
*/
|
|
91
|
+
onPlayerCacheStats?(stats: CacheStatistics): void;
|
|
92
|
+
/**
|
|
93
|
+
* The statistics of the media file being played.
|
|
94
|
+
*
|
|
95
|
+
* The SDK triggers this callback once per second to report the statistics of the media file being played.
|
|
96
|
+
*
|
|
97
|
+
* @param stats The statistics of the media file. See PlayerPlaybackStats.
|
|
98
|
+
*/
|
|
99
|
+
onPlayerPlaybackStats?(stats: PlayerPlaybackStats): void;
|
|
100
|
+
/**
|
|
101
|
+
* Reports the volume of the media player.
|
|
102
|
+
*
|
|
103
|
+
* The SDK triggers this callback every 200 milliseconds to report the current volume of the media player.
|
|
104
|
+
*
|
|
105
|
+
* @param volume The volume of the media player. The value ranges from 0 to 255.
|
|
106
|
+
*/
|
|
107
|
+
onAudioVolumeIndication?(volume: number): void;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=IAgoraMediaPlayerSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraMediaPlayerSource.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraMediaPlayerSource.ts"],"names":[],"mappings":"AAAA,OAAO,8CAA8C,CAAC;AACtD,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,OAAO,EACR,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;;;;OAOG;IACH,0BAA0B,CAAC,CACzB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,iBAAiB,GACxB,IAAI,CAAC;IAER;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACH,aAAa,CAAC,CACZ,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,IAAI,CAAC;IAER;;;;;;;OAOG;IACH,UAAU,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;;;;;;;OAQG;IACH,mBAAmB,CAAC,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErD;;;;;OAKG;IACH,cAAc,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAE9D;;OAEG;IACH,WAAW,CAAC,IAAI,IAAI,CAAC;IAErB;;OAEG;IACH,yBAAyB,CAAC,IAAI,IAAI,CAAC;IAEnC;;;;;OAKG;IACH,sBAAsB,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1D;;;;;;OAMG;IACH,mBAAmB,CAAC,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAEpD;;;;;;OAMG;IACH,kBAAkB,CAAC,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAElD;;;;;;OAMG;IACH,qBAAqB,CAAC,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEzD;;;;;;OAMG;IACH,uBAAuB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './extension/IAgoraMediaRecorderExtension';
|
|
2
|
+
import { IMediaRecorderObserver, MediaRecorderConfiguration } from './AgoraMediaBase';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class IMediaRecorder {
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
abstract setMediaRecorderObserver(callback: IMediaRecorderObserver): number;
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
abstract startRecording(config: MediaRecorderConfiguration): number;
|
|
15
|
+
/**
|
|
16
|
+
* @ignore
|
|
17
|
+
*/
|
|
18
|
+
abstract stopRecording(): number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=IAgoraMediaRecorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraMediaRecorder.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraMediaRecorder.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,8BAAsB,cAAc;IAClC;;OAEG;IACH,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM;IAE3E;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM;IAEnE;;OAEG;IACH,QAAQ,CAAC,aAAa,IAAI,MAAM;CACjC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import './extension/IAgoraMediaStreamingSourceExtension';
|
|
2
|
+
export declare enum StreamingSrcErr {
|
|
3
|
+
StreamingSrcErrNone = 0,
|
|
4
|
+
StreamingSrcErrUnknown = 1,
|
|
5
|
+
StreamingSrcErrInvalidParam = 2,
|
|
6
|
+
StreamingSrcErrBadState = 3,
|
|
7
|
+
StreamingSrcErrNoMem = 4,
|
|
8
|
+
StreamingSrcErrBufferOverflow = 5,
|
|
9
|
+
StreamingSrcErrBufferUnderflow = 6,
|
|
10
|
+
StreamingSrcErrNotFound = 7,
|
|
11
|
+
StreamingSrcErrTimeout = 8,
|
|
12
|
+
StreamingSrcErrExpired = 9,
|
|
13
|
+
StreamingSrcErrUnsupported = 10,
|
|
14
|
+
StreamingSrcErrNotExist = 11,
|
|
15
|
+
StreamingSrcErrExist = 12,
|
|
16
|
+
StreamingSrcErrOpen = 13,
|
|
17
|
+
StreamingSrcErrClose = 14,
|
|
18
|
+
StreamingSrcErrRead = 15,
|
|
19
|
+
StreamingSrcErrWrite = 16,
|
|
20
|
+
StreamingSrcErrSeek = 17,
|
|
21
|
+
StreamingSrcErrEof = 18,
|
|
22
|
+
StreamingSrcErrCodecopen = 19,
|
|
23
|
+
StreamingSrcErrCodecclose = 20,
|
|
24
|
+
StreamingSrcErrCodecproc = 21
|
|
25
|
+
}
|
|
26
|
+
export declare enum StreamingSrcState {
|
|
27
|
+
StreamingSrcStateClosed = 0,
|
|
28
|
+
StreamingSrcStateOpening = 1,
|
|
29
|
+
StreamingSrcStateIdle = 2,
|
|
30
|
+
StreamingSrcStatePlaying = 3,
|
|
31
|
+
StreamingSrcStateSeeking = 4,
|
|
32
|
+
StreamingSrcStateEof = 5,
|
|
33
|
+
StreamingSrcStateError = 6
|
|
34
|
+
}
|
|
35
|
+
export declare class InputSeiData {
|
|
36
|
+
type?: number;
|
|
37
|
+
timestamp?: number;
|
|
38
|
+
frame_index?: number;
|
|
39
|
+
private_data?: Uint8Array;
|
|
40
|
+
data_size?: number;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=IAgoraMediaStreamingSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraMediaStreamingSource.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraMediaStreamingSource.ts"],"names":[],"mappings":"AAAA,OAAO,iDAAiD,CAAC;AAGzD,oBAAY,eAAe;IAEzB,mBAAmB,IAAI;IAEvB,sBAAsB,IAAI;IAE1B,2BAA2B,IAAI;IAE/B,uBAAuB,IAAI;IAE3B,oBAAoB,IAAI;IAExB,6BAA6B,IAAI;IAEjC,8BAA8B,IAAI;IAElC,uBAAuB,IAAI;IAE3B,sBAAsB,IAAI;IAE1B,sBAAsB,IAAI;IAE1B,0BAA0B,KAAK;IAE/B,uBAAuB,KAAK;IAE5B,oBAAoB,KAAK;IAEzB,mBAAmB,KAAK;IAExB,oBAAoB,KAAK;IAEzB,mBAAmB,KAAK;IAExB,oBAAoB,KAAK;IAEzB,mBAAmB,KAAK;IAExB,kBAAkB,KAAK;IAEvB,wBAAwB,KAAK;IAE7B,yBAAyB,KAAK;IAE9B,wBAAwB,KAAK;CAC9B;AAGD,oBAAY,iBAAiB;IAE3B,uBAAuB,IAAI;IAE3B,wBAAwB,IAAI;IAE5B,qBAAqB,IAAI;IAEzB,wBAAwB,IAAI;IAE5B,wBAAwB,IAAI;IAE5B,oBAAoB,IAAI;IAExB,sBAAsB,IAAI;CAC3B;AAGD,qBAAa,YAAY;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,YAAY,CAAC,EAAE,UAAU,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import './extension/IAgoraMusicContentCenterExtension';
|
|
2
|
+
import { IMediaPlayer } from './IAgoraMediaPlayer';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
export declare enum MusicPlayMode {
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
KMusicPlayModeOriginal = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
KMusicPlayModeAccompany = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @ignore
|
|
17
|
+
*/
|
|
18
|
+
KMusicPlayModeLeadSing = 2
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
export declare enum PreloadState {
|
|
24
|
+
/**
|
|
25
|
+
* @ignore
|
|
26
|
+
*/
|
|
27
|
+
KPreloadStateCompleted = 0,
|
|
28
|
+
/**
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
KPreloadStateFailed = 1,
|
|
32
|
+
/**
|
|
33
|
+
* @ignore
|
|
34
|
+
*/
|
|
35
|
+
KPreloadStatePreloading = 2,
|
|
36
|
+
/**
|
|
37
|
+
* @ignore
|
|
38
|
+
*/
|
|
39
|
+
KPreloadStateRemoved = 3
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
export declare enum MusicContentCenterStateReason {
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
KMusicContentCenterReasonOk = 0,
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
KMusicContentCenterReasonError = 1,
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
KMusicContentCenterReasonGateway = 2,
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
KMusicContentCenterReasonPermissionAndResource = 3,
|
|
61
|
+
/**
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
KMusicContentCenterReasonInternalDataParse = 4,
|
|
65
|
+
/**
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
KMusicContentCenterReasonMusicLoading = 5,
|
|
69
|
+
/**
|
|
70
|
+
* @ignore
|
|
71
|
+
*/
|
|
72
|
+
KMusicContentCenterReasonMusicDecryption = 6,
|
|
73
|
+
/**
|
|
74
|
+
* @ignore
|
|
75
|
+
*/
|
|
76
|
+
KMusicContentCenterReasonHttpInternalError = 7
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @ignore
|
|
80
|
+
*/
|
|
81
|
+
export declare class MusicChartInfo {
|
|
82
|
+
/**
|
|
83
|
+
* @ignore
|
|
84
|
+
*/
|
|
85
|
+
chartName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @ignore
|
|
88
|
+
*/
|
|
89
|
+
id?: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @ignore
|
|
93
|
+
*/
|
|
94
|
+
export declare enum MusicCacheStatusType {
|
|
95
|
+
/**
|
|
96
|
+
* @ignore
|
|
97
|
+
*/
|
|
98
|
+
MusicCacheStatusTypeCached = 0,
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
|
+
*/
|
|
102
|
+
MusicCacheStatusTypeCaching = 1
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
export declare class MusicCacheInfo {
|
|
108
|
+
/**
|
|
109
|
+
* @ignore
|
|
110
|
+
*/
|
|
111
|
+
songCode?: number;
|
|
112
|
+
/**
|
|
113
|
+
* @ignore
|
|
114
|
+
*/
|
|
115
|
+
status?: MusicCacheStatusType;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
export declare abstract class MusicChartCollection {
|
|
121
|
+
/**
|
|
122
|
+
* @ignore
|
|
123
|
+
*/
|
|
124
|
+
abstract getCount(): number;
|
|
125
|
+
/**
|
|
126
|
+
* @ignore
|
|
127
|
+
*/
|
|
128
|
+
abstract get(index: number): MusicChartInfo;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @ignore
|
|
132
|
+
*/
|
|
133
|
+
export declare class MvProperty {
|
|
134
|
+
/**
|
|
135
|
+
* @ignore
|
|
136
|
+
*/
|
|
137
|
+
resolution?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @ignore
|
|
140
|
+
*/
|
|
141
|
+
bandwidth?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The climax parts of the music.
|
|
145
|
+
*/
|
|
146
|
+
export declare class ClimaxSegment {
|
|
147
|
+
/**
|
|
148
|
+
* The time (ms) when the climax part begins.
|
|
149
|
+
*/
|
|
150
|
+
startTimeMs?: number;
|
|
151
|
+
/**
|
|
152
|
+
* The time (ms) when the climax part ends.
|
|
153
|
+
*/
|
|
154
|
+
endTimeMs?: number;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @ignore
|
|
158
|
+
*/
|
|
159
|
+
export declare class Music {
|
|
160
|
+
/**
|
|
161
|
+
* @ignore
|
|
162
|
+
*/
|
|
163
|
+
songCode?: number;
|
|
164
|
+
/**
|
|
165
|
+
* @ignore
|
|
166
|
+
*/
|
|
167
|
+
name?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @ignore
|
|
170
|
+
*/
|
|
171
|
+
singer?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @ignore
|
|
174
|
+
*/
|
|
175
|
+
poster?: string;
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
releaseTime?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @ignore
|
|
182
|
+
*/
|
|
183
|
+
durationS?: number;
|
|
184
|
+
/**
|
|
185
|
+
* @ignore
|
|
186
|
+
*/
|
|
187
|
+
type?: number;
|
|
188
|
+
/**
|
|
189
|
+
* @ignore
|
|
190
|
+
*/
|
|
191
|
+
pitchType?: number;
|
|
192
|
+
/**
|
|
193
|
+
* @ignore
|
|
194
|
+
*/
|
|
195
|
+
lyricCount?: number;
|
|
196
|
+
/**
|
|
197
|
+
* @ignore
|
|
198
|
+
*/
|
|
199
|
+
lyricList?: number[];
|
|
200
|
+
/**
|
|
201
|
+
* @ignore
|
|
202
|
+
*/
|
|
203
|
+
climaxSegmentCount?: number;
|
|
204
|
+
/**
|
|
205
|
+
* @ignore
|
|
206
|
+
*/
|
|
207
|
+
climaxSegmentList?: ClimaxSegment[];
|
|
208
|
+
/**
|
|
209
|
+
* @ignore
|
|
210
|
+
*/
|
|
211
|
+
mvPropertyCount?: number;
|
|
212
|
+
/**
|
|
213
|
+
* @ignore
|
|
214
|
+
*/
|
|
215
|
+
mvPropertyList?: MvProperty[];
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @ignore
|
|
219
|
+
*/
|
|
220
|
+
export declare abstract class MusicCollection {
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
abstract getCount(): number;
|
|
225
|
+
/**
|
|
226
|
+
* @ignore
|
|
227
|
+
*/
|
|
228
|
+
abstract getTotal(): number;
|
|
229
|
+
/**
|
|
230
|
+
* @ignore
|
|
231
|
+
*/
|
|
232
|
+
abstract getPage(): number;
|
|
233
|
+
/**
|
|
234
|
+
* @ignore
|
|
235
|
+
*/
|
|
236
|
+
abstract getPageSize(): number;
|
|
237
|
+
/**
|
|
238
|
+
* @ignore
|
|
239
|
+
*/
|
|
240
|
+
abstract getMusic(index: number): Music;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @ignore
|
|
244
|
+
*/
|
|
245
|
+
export interface IMusicContentCenterEventHandler {
|
|
246
|
+
/**
|
|
247
|
+
* @ignore
|
|
248
|
+
*/
|
|
249
|
+
onMusicChartsResult?(requestId: string, result: MusicChartInfo[], reason: MusicContentCenterStateReason): void;
|
|
250
|
+
/**
|
|
251
|
+
* @ignore
|
|
252
|
+
*/
|
|
253
|
+
onMusicCollectionResult?(requestId: string, result: MusicCollection, reason: MusicContentCenterStateReason): void;
|
|
254
|
+
/**
|
|
255
|
+
* @ignore
|
|
256
|
+
*/
|
|
257
|
+
onLyricResult?(requestId: string, songCode: number, lyricUrl: string, reason: MusicContentCenterStateReason): void;
|
|
258
|
+
/**
|
|
259
|
+
* @ignore
|
|
260
|
+
*/
|
|
261
|
+
onSongSimpleInfoResult?(requestId: string, songCode: number, simpleInfo: string, reason: MusicContentCenterStateReason): void;
|
|
262
|
+
/**
|
|
263
|
+
* @ignore
|
|
264
|
+
*/
|
|
265
|
+
onPreLoadEvent?(requestId: string, songCode: number, percent: number, lyricUrl: string, state: PreloadState, reason: MusicContentCenterStateReason): void;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @ignore
|
|
269
|
+
*/
|
|
270
|
+
export declare class MusicContentCenterConfiguration {
|
|
271
|
+
/**
|
|
272
|
+
* @ignore
|
|
273
|
+
*/
|
|
274
|
+
appId?: string;
|
|
275
|
+
/**
|
|
276
|
+
* @ignore
|
|
277
|
+
*/
|
|
278
|
+
token?: string;
|
|
279
|
+
/**
|
|
280
|
+
* @ignore
|
|
281
|
+
*/
|
|
282
|
+
mccUid?: number;
|
|
283
|
+
/**
|
|
284
|
+
* @ignore
|
|
285
|
+
*/
|
|
286
|
+
maxCacheSize?: number;
|
|
287
|
+
/**
|
|
288
|
+
* @ignore
|
|
289
|
+
*/
|
|
290
|
+
mccDomain?: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @ignore
|
|
294
|
+
*/
|
|
295
|
+
export declare abstract class IMusicPlayer extends IMediaPlayer {
|
|
296
|
+
/**
|
|
297
|
+
* @ignore
|
|
298
|
+
*/
|
|
299
|
+
abstract setPlayMode(mode: MusicPlayMode): number;
|
|
300
|
+
/**
|
|
301
|
+
* @ignore
|
|
302
|
+
*/
|
|
303
|
+
abstract openWithSongCode(songCode: number, startPos?: number): number;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* @ignore
|
|
307
|
+
*/
|
|
308
|
+
export declare abstract class IMusicContentCenter {
|
|
309
|
+
/**
|
|
310
|
+
* @ignore
|
|
311
|
+
*/
|
|
312
|
+
abstract initialize(configuration: MusicContentCenterConfiguration): number;
|
|
313
|
+
/**
|
|
314
|
+
* @ignore
|
|
315
|
+
*/
|
|
316
|
+
abstract renewToken(token: string): number;
|
|
317
|
+
/**
|
|
318
|
+
* @ignore
|
|
319
|
+
*/
|
|
320
|
+
abstract release(): void;
|
|
321
|
+
/**
|
|
322
|
+
* @ignore
|
|
323
|
+
*/
|
|
324
|
+
abstract registerEventHandler(eventHandler: IMusicContentCenterEventHandler): number;
|
|
325
|
+
/**
|
|
326
|
+
* @ignore
|
|
327
|
+
*/
|
|
328
|
+
abstract unregisterEventHandler(): number;
|
|
329
|
+
/**
|
|
330
|
+
* @ignore
|
|
331
|
+
*/
|
|
332
|
+
abstract createMusicPlayer(): IMusicPlayer;
|
|
333
|
+
/**
|
|
334
|
+
* @ignore
|
|
335
|
+
*/
|
|
336
|
+
abstract destroyMusicPlayer(musicPlayer: IMusicPlayer): number;
|
|
337
|
+
/**
|
|
338
|
+
* @ignore
|
|
339
|
+
*/
|
|
340
|
+
abstract getMusicCharts(): string;
|
|
341
|
+
/**
|
|
342
|
+
* @ignore
|
|
343
|
+
*/
|
|
344
|
+
abstract getMusicCollectionByMusicChartId(musicChartId: number, page: number, pageSize: number, jsonOption?: string): string;
|
|
345
|
+
/**
|
|
346
|
+
* @ignore
|
|
347
|
+
*/
|
|
348
|
+
abstract searchMusic(keyWord: string, page: number, pageSize: number, jsonOption?: string): string;
|
|
349
|
+
/**
|
|
350
|
+
* @ignore
|
|
351
|
+
*/
|
|
352
|
+
abstract preload(songCode: number): string;
|
|
353
|
+
/**
|
|
354
|
+
* @ignore
|
|
355
|
+
*/
|
|
356
|
+
abstract removeCache(songCode: number): number;
|
|
357
|
+
/**
|
|
358
|
+
* @ignore
|
|
359
|
+
*/
|
|
360
|
+
abstract getCaches(): {
|
|
361
|
+
cacheInfo: MusicCacheInfo[];
|
|
362
|
+
cacheInfoSize: number;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* @ignore
|
|
366
|
+
*/
|
|
367
|
+
abstract isPreloaded(songCode: number): boolean;
|
|
368
|
+
/**
|
|
369
|
+
* @ignore
|
|
370
|
+
*/
|
|
371
|
+
abstract getLyric(songCode: number, lyricType?: number): string;
|
|
372
|
+
/**
|
|
373
|
+
* @ignore
|
|
374
|
+
*/
|
|
375
|
+
abstract getSongSimpleInfo(songCode: number): string;
|
|
376
|
+
/**
|
|
377
|
+
* @ignore
|
|
378
|
+
*/
|
|
379
|
+
abstract getInternalSongCode(songCode: number, jsonOption: string): number;
|
|
380
|
+
}
|
|
381
|
+
//# sourceMappingURL=IAgoraMusicContentCenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraMusicContentCenter.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraMusicContentCenter.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM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CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAE/C;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM;IAE/D;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAEpD;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM;CAC3E"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import './extension/IAgoraRhythmPlayerExtension';
|
|
2
|
+
/**
|
|
3
|
+
* Virtual metronome state.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum RhythmPlayerStateType {
|
|
6
|
+
/**
|
|
7
|
+
* (810): The virtual metronome is not enabled or disabled already.
|
|
8
|
+
*/
|
|
9
|
+
RhythmPlayerStateIdle = 810,
|
|
10
|
+
/**
|
|
11
|
+
* 811: Opening the beat files.
|
|
12
|
+
*/
|
|
13
|
+
RhythmPlayerStateOpening = 811,
|
|
14
|
+
/**
|
|
15
|
+
* 812: Decoding the beat files.
|
|
16
|
+
*/
|
|
17
|
+
RhythmPlayerStateDecoding = 812,
|
|
18
|
+
/**
|
|
19
|
+
* 813: The beat files are playing.
|
|
20
|
+
*/
|
|
21
|
+
RhythmPlayerStatePlaying = 813,
|
|
22
|
+
/**
|
|
23
|
+
* 814: Failed to start virtual metronome. You can use the reported errorCode to troubleshoot the cause of the error, or you can try to start the virtual metronome again.
|
|
24
|
+
*/
|
|
25
|
+
RhythmPlayerStateFailed = 814
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Virtual Metronome error message.
|
|
29
|
+
*/
|
|
30
|
+
export declare enum RhythmPlayerReason {
|
|
31
|
+
/**
|
|
32
|
+
* (0): The beat files are played normally without errors.
|
|
33
|
+
*/
|
|
34
|
+
RhythmPlayerReasonOk = 0,
|
|
35
|
+
/**
|
|
36
|
+
* 1: A general error; no specific reason.
|
|
37
|
+
*/
|
|
38
|
+
RhythmPlayerReasonFailed = 1,
|
|
39
|
+
/**
|
|
40
|
+
* 801: There is an error when opening the beat files.
|
|
41
|
+
*/
|
|
42
|
+
RhythmPlayerReasonCanNotOpen = 801,
|
|
43
|
+
/**
|
|
44
|
+
* 802: There is an error when playing the beat files.
|
|
45
|
+
*/
|
|
46
|
+
RhythmPlayerReasonCanNotPlay = 802,
|
|
47
|
+
/**
|
|
48
|
+
* (803): The duration of the beat file exceeds the limit. The maximum duration is 1.2 seconds.
|
|
49
|
+
*/
|
|
50
|
+
RhythmPlayerReasonFileOverDurationLimit = 803
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The metronome configuration.
|
|
54
|
+
*/
|
|
55
|
+
export declare class AgoraRhythmPlayerConfig {
|
|
56
|
+
/**
|
|
57
|
+
* The number of beats per measure, which ranges from 1 to 9. The default value is 4, which means that each measure contains one downbeat and three upbeats.
|
|
58
|
+
*/
|
|
59
|
+
beatsPerMeasure?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The beat speed (beats/minute), which ranges from 60 to 360. The default value is 60, which means that the metronome plays 60 beats in one minute.
|
|
62
|
+
*/
|
|
63
|
+
beatsPerMinute?: number;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=IAgoraRhythmPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraRhythmPlayer.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraRhythmPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,yCAAyC,CAAC;AAEjD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,qBAAqB,MAAM;IAC3B;;OAEG;IACH,wBAAwB,MAAM;IAC9B;;OAEG;IACH,yBAAyB,MAAM;IAC/B;;OAEG;IACH,wBAAwB,MAAM;IAC9B;;OAEG;IACH,uBAAuB,MAAM;CAC9B;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,oBAAoB,IAAI;IACxB;;OAEG;IACH,wBAAwB,IAAI;IAC5B;;OAEG;IACH,4BAA4B,MAAM;IAClC;;OAEG;IACH,4BAA4B,MAAM;IAClC;;OAEG;IACH,uCAAuC,MAAM;CAC9C;AAED;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|