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,137 @@
|
|
|
1
|
+
import './extension/IAgoraMediaPlayerSourceExtension';
|
|
2
|
+
import {
|
|
3
|
+
CacheStatistics,
|
|
4
|
+
MediaPlayerEvent,
|
|
5
|
+
MediaPlayerReason,
|
|
6
|
+
MediaPlayerState,
|
|
7
|
+
PlayerPlaybackStats,
|
|
8
|
+
PlayerPreloadEvent,
|
|
9
|
+
PlayerUpdatedInfo,
|
|
10
|
+
SrcInfo,
|
|
11
|
+
} from './AgoraMediaPlayerTypes';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Provides callbacks for media players.
|
|
15
|
+
*/
|
|
16
|
+
export interface IMediaPlayerSourceObserver {
|
|
17
|
+
/**
|
|
18
|
+
* Reports the changes of playback state.
|
|
19
|
+
*
|
|
20
|
+
* When the state of the media player changes, the SDK triggers this callback to report the current playback state.
|
|
21
|
+
*
|
|
22
|
+
* @param state The playback state. See MediaPlayerState.
|
|
23
|
+
* @param reason The reason for the changes in the media player status. See MediaPlayerReason.
|
|
24
|
+
*/
|
|
25
|
+
onPlayerSourceStateChanged?(
|
|
26
|
+
state: MediaPlayerState,
|
|
27
|
+
reason: MediaPlayerReason
|
|
28
|
+
): void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Reports the playback progress of the media file.
|
|
32
|
+
*
|
|
33
|
+
* When playing media files, the SDK triggers this callback every two second to report current playback progress.
|
|
34
|
+
*
|
|
35
|
+
* @param positionMs The playback position (ms) of media files.
|
|
36
|
+
* @param timeStampMs The NTP timestamp (ms) of the current playback progress.
|
|
37
|
+
*/
|
|
38
|
+
onPositionChanged?(positionMs: number, timestampMs: number): void;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Reports the player events.
|
|
42
|
+
*
|
|
43
|
+
* After calling the seek method, the SDK triggers the callback to report the results of the seek operation.
|
|
44
|
+
*
|
|
45
|
+
* @param eventCode The player event. See MediaPlayerEvent.
|
|
46
|
+
* @param elapsedTime The time (ms) when the event occurs.
|
|
47
|
+
* @param message Information about the event.
|
|
48
|
+
*/
|
|
49
|
+
onPlayerEvent?(
|
|
50
|
+
eventCode: MediaPlayerEvent,
|
|
51
|
+
elapsedTime: number,
|
|
52
|
+
message: string
|
|
53
|
+
): void;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Occurs when the media metadata is received.
|
|
57
|
+
*
|
|
58
|
+
* The callback occurs when the player receives the media metadata and reports the detailed information of the media metadata.
|
|
59
|
+
*
|
|
60
|
+
* @param data The detailed data of the media metadata.
|
|
61
|
+
* @param length The data length (bytes).
|
|
62
|
+
*/
|
|
63
|
+
onMetaData?(data: Uint8Array, length: number): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Reports the playback duration that the buffered data can support.
|
|
67
|
+
*
|
|
68
|
+
* 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.
|
|
69
|
+
* When the playback duration supported by the buffered data is less than the threshold (0 by default), the SDK returns PlayerEventBufferLow (6).
|
|
70
|
+
* When the playback duration supported by the buffered data is greater than the threshold (0 by default), the SDK returns PlayerEventBufferRecover (7).
|
|
71
|
+
*
|
|
72
|
+
* @param playCachedBuffer The playback duration (ms) that the buffered data can support.
|
|
73
|
+
*/
|
|
74
|
+
onPlayBufferUpdated?(playCachedBuffer: number): void;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Reports the events of preloaded media resources.
|
|
78
|
+
*
|
|
79
|
+
* @param src The URL of the media resource.
|
|
80
|
+
* @param event Events that occur when media resources are preloaded. See PlayerPreloadEvent.
|
|
81
|
+
*/
|
|
82
|
+
onPreloadEvent?(src: string, event: PlayerPreloadEvent): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
onCompleted?(): void;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @ignore
|
|
91
|
+
*/
|
|
92
|
+
onAgoraCDNTokenWillExpire?(): void;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Occurs when the video bitrate of the media resource changes.
|
|
96
|
+
*
|
|
97
|
+
* @param from Information about the video bitrate of the media resource being played. See SrcInfo.
|
|
98
|
+
* @param to Information about the changed video bitrate of media resource being played. See SrcInfo.
|
|
99
|
+
*/
|
|
100
|
+
onPlayerSrcInfoChanged?(from: SrcInfo, to: SrcInfo): void;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Occurs when information related to the media player changes.
|
|
104
|
+
*
|
|
105
|
+
* When the information about the media player changes, the SDK triggers this callback. You can use this callback for troubleshooting.
|
|
106
|
+
*
|
|
107
|
+
* @param info Information related to the media player. See PlayerUpdatedInfo.
|
|
108
|
+
*/
|
|
109
|
+
onPlayerInfoUpdated?(info: PlayerUpdatedInfo): void;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Reports the statistics of the media file being cached.
|
|
113
|
+
*
|
|
114
|
+
* 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.
|
|
115
|
+
*
|
|
116
|
+
* @param stats The statistics of the media file being cached. See CacheStatistics.
|
|
117
|
+
*/
|
|
118
|
+
onPlayerCacheStats?(stats: CacheStatistics): void;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The statistics of the media file being played.
|
|
122
|
+
*
|
|
123
|
+
* The SDK triggers this callback once per second to report the statistics of the media file being played.
|
|
124
|
+
*
|
|
125
|
+
* @param stats The statistics of the media file. See PlayerPlaybackStats.
|
|
126
|
+
*/
|
|
127
|
+
onPlayerPlaybackStats?(stats: PlayerPlaybackStats): void;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Reports the volume of the media player.
|
|
131
|
+
*
|
|
132
|
+
* The SDK triggers this callback every 200 milliseconds to report the current volume of the media player.
|
|
133
|
+
*
|
|
134
|
+
* @param volume The volume of the media player. The value ranges from 0 to 255.
|
|
135
|
+
*/
|
|
136
|
+
onAudioVolumeIndication?(volume: number): void;
|
|
137
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './extension/IAgoraMediaRecorderExtension';
|
|
2
|
+
import {
|
|
3
|
+
IMediaRecorderObserver,
|
|
4
|
+
MediaRecorderConfiguration,
|
|
5
|
+
} from './AgoraMediaBase';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
export abstract class IMediaRecorder {
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
abstract setMediaRecorderObserver(callback: IMediaRecorderObserver): number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
abstract startRecording(config: MediaRecorderConfiguration): number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @ignore
|
|
23
|
+
*/
|
|
24
|
+
abstract stopRecording(): number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import './extension/IAgoraMediaStreamingSourceExtension';
|
|
2
|
+
|
|
3
|
+
/* enum_StreamingSrcErr */
|
|
4
|
+
export enum StreamingSrcErr {
|
|
5
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNone */
|
|
6
|
+
StreamingSrcErrNone = 0,
|
|
7
|
+
/* enum_StreamingSrcErr_StreamingSrcErrUnknown */
|
|
8
|
+
StreamingSrcErrUnknown = 1,
|
|
9
|
+
/* enum_StreamingSrcErr_StreamingSrcErrInvalidParam */
|
|
10
|
+
StreamingSrcErrInvalidParam = 2,
|
|
11
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBadState */
|
|
12
|
+
StreamingSrcErrBadState = 3,
|
|
13
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNoMem */
|
|
14
|
+
StreamingSrcErrNoMem = 4,
|
|
15
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBufferOverflow */
|
|
16
|
+
StreamingSrcErrBufferOverflow = 5,
|
|
17
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBufferUnderflow */
|
|
18
|
+
StreamingSrcErrBufferUnderflow = 6,
|
|
19
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNotFound */
|
|
20
|
+
StreamingSrcErrNotFound = 7,
|
|
21
|
+
/* enum_StreamingSrcErr_StreamingSrcErrTimeout */
|
|
22
|
+
StreamingSrcErrTimeout = 8,
|
|
23
|
+
/* enum_StreamingSrcErr_StreamingSrcErrExpired */
|
|
24
|
+
StreamingSrcErrExpired = 9,
|
|
25
|
+
/* enum_StreamingSrcErr_StreamingSrcErrUnsupported */
|
|
26
|
+
StreamingSrcErrUnsupported = 10,
|
|
27
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNotExist */
|
|
28
|
+
StreamingSrcErrNotExist = 11,
|
|
29
|
+
/* enum_StreamingSrcErr_StreamingSrcErrExist */
|
|
30
|
+
StreamingSrcErrExist = 12,
|
|
31
|
+
/* enum_StreamingSrcErr_StreamingSrcErrOpen */
|
|
32
|
+
StreamingSrcErrOpen = 13,
|
|
33
|
+
/* enum_StreamingSrcErr_StreamingSrcErrClose */
|
|
34
|
+
StreamingSrcErrClose = 14,
|
|
35
|
+
/* enum_StreamingSrcErr_StreamingSrcErrRead */
|
|
36
|
+
StreamingSrcErrRead = 15,
|
|
37
|
+
/* enum_StreamingSrcErr_StreamingSrcErrWrite */
|
|
38
|
+
StreamingSrcErrWrite = 16,
|
|
39
|
+
/* enum_StreamingSrcErr_StreamingSrcErrSeek */
|
|
40
|
+
StreamingSrcErrSeek = 17,
|
|
41
|
+
/* enum_StreamingSrcErr_StreamingSrcErrEof */
|
|
42
|
+
StreamingSrcErrEof = 18,
|
|
43
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecopen */
|
|
44
|
+
StreamingSrcErrCodecopen = 19,
|
|
45
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecclose */
|
|
46
|
+
StreamingSrcErrCodecclose = 20,
|
|
47
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecproc */
|
|
48
|
+
StreamingSrcErrCodecproc = 21,
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* enum_StreamingSrcState */
|
|
52
|
+
export enum StreamingSrcState {
|
|
53
|
+
/* enum_StreamingSrcState_StreamingSrcStateClosed */
|
|
54
|
+
StreamingSrcStateClosed = 0,
|
|
55
|
+
/* enum_StreamingSrcState_StreamingSrcStateOpening */
|
|
56
|
+
StreamingSrcStateOpening = 1,
|
|
57
|
+
/* enum_StreamingSrcState_StreamingSrcStateIdle */
|
|
58
|
+
StreamingSrcStateIdle = 2,
|
|
59
|
+
/* enum_StreamingSrcState_StreamingSrcStatePlaying */
|
|
60
|
+
StreamingSrcStatePlaying = 3,
|
|
61
|
+
/* enum_StreamingSrcState_StreamingSrcStateSeeking */
|
|
62
|
+
StreamingSrcStateSeeking = 4,
|
|
63
|
+
/* enum_StreamingSrcState_StreamingSrcStateEof */
|
|
64
|
+
StreamingSrcStateEof = 5,
|
|
65
|
+
/* enum_StreamingSrcState_StreamingSrcStateError */
|
|
66
|
+
StreamingSrcStateError = 6,
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* class_InputSeiData */
|
|
70
|
+
export class InputSeiData {
|
|
71
|
+
/* class_InputSeiData_type */
|
|
72
|
+
type?: number;
|
|
73
|
+
/* class_InputSeiData_timestamp */
|
|
74
|
+
timestamp?: number;
|
|
75
|
+
/* class_InputSeiData_frame_index */
|
|
76
|
+
frame_index?: number;
|
|
77
|
+
/* class_InputSeiData_private_data */
|
|
78
|
+
private_data?: Uint8Array;
|
|
79
|
+
/* class_InputSeiData_data_size */
|
|
80
|
+
data_size?: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import './extension/IAgoraMusicContentCenterExtension';
|
|
2
|
+
import { IMediaPlayer } from './IAgoraMediaPlayer';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
export enum MusicPlayMode {
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
KMusicPlayModeOriginal = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @ignore
|
|
14
|
+
*/
|
|
15
|
+
KMusicPlayModeAccompany = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
KMusicPlayModeLeadSing = 2,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @ignore
|
|
24
|
+
*/
|
|
25
|
+
export enum PreloadState {
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
KPreloadStateCompleted = 0,
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
KPreloadStateFailed = 1,
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
KPreloadStatePreloading = 2,
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
KPreloadStateRemoved = 3,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @ignore
|
|
46
|
+
*/
|
|
47
|
+
export enum MusicContentCenterStateReason {
|
|
48
|
+
/**
|
|
49
|
+
* @ignore
|
|
50
|
+
*/
|
|
51
|
+
KMusicContentCenterReasonOk = 0,
|
|
52
|
+
/**
|
|
53
|
+
* @ignore
|
|
54
|
+
*/
|
|
55
|
+
KMusicContentCenterReasonError = 1,
|
|
56
|
+
/**
|
|
57
|
+
* @ignore
|
|
58
|
+
*/
|
|
59
|
+
KMusicContentCenterReasonGateway = 2,
|
|
60
|
+
/**
|
|
61
|
+
* @ignore
|
|
62
|
+
*/
|
|
63
|
+
KMusicContentCenterReasonPermissionAndResource = 3,
|
|
64
|
+
/**
|
|
65
|
+
* @ignore
|
|
66
|
+
*/
|
|
67
|
+
KMusicContentCenterReasonInternalDataParse = 4,
|
|
68
|
+
/**
|
|
69
|
+
* @ignore
|
|
70
|
+
*/
|
|
71
|
+
KMusicContentCenterReasonMusicLoading = 5,
|
|
72
|
+
/**
|
|
73
|
+
* @ignore
|
|
74
|
+
*/
|
|
75
|
+
KMusicContentCenterReasonMusicDecryption = 6,
|
|
76
|
+
/**
|
|
77
|
+
* @ignore
|
|
78
|
+
*/
|
|
79
|
+
KMusicContentCenterReasonHttpInternalError = 7,
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @ignore
|
|
84
|
+
*/
|
|
85
|
+
export class MusicChartInfo {
|
|
86
|
+
/**
|
|
87
|
+
* @ignore
|
|
88
|
+
*/
|
|
89
|
+
chartName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @ignore
|
|
92
|
+
*/
|
|
93
|
+
id?: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @ignore
|
|
98
|
+
*/
|
|
99
|
+
export enum MusicCacheStatusType {
|
|
100
|
+
/**
|
|
101
|
+
* @ignore
|
|
102
|
+
*/
|
|
103
|
+
MusicCacheStatusTypeCached = 0,
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
MusicCacheStatusTypeCaching = 1,
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @ignore
|
|
112
|
+
*/
|
|
113
|
+
export class MusicCacheInfo {
|
|
114
|
+
/**
|
|
115
|
+
* @ignore
|
|
116
|
+
*/
|
|
117
|
+
songCode?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @ignore
|
|
120
|
+
*/
|
|
121
|
+
status?: MusicCacheStatusType;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @ignore
|
|
126
|
+
*/
|
|
127
|
+
export abstract class MusicChartCollection {
|
|
128
|
+
/**
|
|
129
|
+
* @ignore
|
|
130
|
+
*/
|
|
131
|
+
abstract getCount(): number;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @ignore
|
|
135
|
+
*/
|
|
136
|
+
abstract get(index: number): MusicChartInfo;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @ignore
|
|
141
|
+
*/
|
|
142
|
+
export class MvProperty {
|
|
143
|
+
/**
|
|
144
|
+
* @ignore
|
|
145
|
+
*/
|
|
146
|
+
resolution?: string;
|
|
147
|
+
/**
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
bandwidth?: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The climax parts of the music.
|
|
155
|
+
*/
|
|
156
|
+
export class ClimaxSegment {
|
|
157
|
+
/**
|
|
158
|
+
* The time (ms) when the climax part begins.
|
|
159
|
+
*/
|
|
160
|
+
startTimeMs?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The time (ms) when the climax part ends.
|
|
163
|
+
*/
|
|
164
|
+
endTimeMs?: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @ignore
|
|
169
|
+
*/
|
|
170
|
+
export class Music {
|
|
171
|
+
/**
|
|
172
|
+
* @ignore
|
|
173
|
+
*/
|
|
174
|
+
songCode?: number;
|
|
175
|
+
/**
|
|
176
|
+
* @ignore
|
|
177
|
+
*/
|
|
178
|
+
name?: string;
|
|
179
|
+
/**
|
|
180
|
+
* @ignore
|
|
181
|
+
*/
|
|
182
|
+
singer?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @ignore
|
|
185
|
+
*/
|
|
186
|
+
poster?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @ignore
|
|
189
|
+
*/
|
|
190
|
+
releaseTime?: string;
|
|
191
|
+
/**
|
|
192
|
+
* @ignore
|
|
193
|
+
*/
|
|
194
|
+
durationS?: number;
|
|
195
|
+
/**
|
|
196
|
+
* @ignore
|
|
197
|
+
*/
|
|
198
|
+
type?: number;
|
|
199
|
+
/**
|
|
200
|
+
* @ignore
|
|
201
|
+
*/
|
|
202
|
+
pitchType?: number;
|
|
203
|
+
/**
|
|
204
|
+
* @ignore
|
|
205
|
+
*/
|
|
206
|
+
lyricCount?: number;
|
|
207
|
+
/**
|
|
208
|
+
* @ignore
|
|
209
|
+
*/
|
|
210
|
+
lyricList?: number[];
|
|
211
|
+
/**
|
|
212
|
+
* @ignore
|
|
213
|
+
*/
|
|
214
|
+
climaxSegmentCount?: number;
|
|
215
|
+
/**
|
|
216
|
+
* @ignore
|
|
217
|
+
*/
|
|
218
|
+
climaxSegmentList?: ClimaxSegment[];
|
|
219
|
+
/**
|
|
220
|
+
* @ignore
|
|
221
|
+
*/
|
|
222
|
+
mvPropertyCount?: number;
|
|
223
|
+
/**
|
|
224
|
+
* @ignore
|
|
225
|
+
*/
|
|
226
|
+
mvPropertyList?: MvProperty[];
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @ignore
|
|
231
|
+
*/
|
|
232
|
+
export abstract class MusicCollection {
|
|
233
|
+
/**
|
|
234
|
+
* @ignore
|
|
235
|
+
*/
|
|
236
|
+
abstract getCount(): number;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @ignore
|
|
240
|
+
*/
|
|
241
|
+
abstract getTotal(): number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @ignore
|
|
245
|
+
*/
|
|
246
|
+
abstract getPage(): number;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @ignore
|
|
250
|
+
*/
|
|
251
|
+
abstract getPageSize(): number;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @ignore
|
|
255
|
+
*/
|
|
256
|
+
abstract getMusic(index: number): Music;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @ignore
|
|
261
|
+
*/
|
|
262
|
+
export interface IMusicContentCenterEventHandler {
|
|
263
|
+
/**
|
|
264
|
+
* @ignore
|
|
265
|
+
*/
|
|
266
|
+
onMusicChartsResult?(
|
|
267
|
+
requestId: string,
|
|
268
|
+
result: MusicChartInfo[],
|
|
269
|
+
reason: MusicContentCenterStateReason
|
|
270
|
+
): void;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
onMusicCollectionResult?(
|
|
276
|
+
requestId: string,
|
|
277
|
+
result: MusicCollection,
|
|
278
|
+
reason: MusicContentCenterStateReason
|
|
279
|
+
): void;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @ignore
|
|
283
|
+
*/
|
|
284
|
+
onLyricResult?(
|
|
285
|
+
requestId: string,
|
|
286
|
+
songCode: number,
|
|
287
|
+
lyricUrl: string,
|
|
288
|
+
reason: MusicContentCenterStateReason
|
|
289
|
+
): void;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @ignore
|
|
293
|
+
*/
|
|
294
|
+
onSongSimpleInfoResult?(
|
|
295
|
+
requestId: string,
|
|
296
|
+
songCode: number,
|
|
297
|
+
simpleInfo: string,
|
|
298
|
+
reason: MusicContentCenterStateReason
|
|
299
|
+
): void;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @ignore
|
|
303
|
+
*/
|
|
304
|
+
onPreLoadEvent?(
|
|
305
|
+
requestId: string,
|
|
306
|
+
songCode: number,
|
|
307
|
+
percent: number,
|
|
308
|
+
lyricUrl: string,
|
|
309
|
+
state: PreloadState,
|
|
310
|
+
reason: MusicContentCenterStateReason
|
|
311
|
+
): void;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @ignore
|
|
316
|
+
*/
|
|
317
|
+
export class MusicContentCenterConfiguration {
|
|
318
|
+
/**
|
|
319
|
+
* @ignore
|
|
320
|
+
*/
|
|
321
|
+
appId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* @ignore
|
|
324
|
+
*/
|
|
325
|
+
token?: string;
|
|
326
|
+
/**
|
|
327
|
+
* @ignore
|
|
328
|
+
*/
|
|
329
|
+
mccUid?: number;
|
|
330
|
+
/**
|
|
331
|
+
* @ignore
|
|
332
|
+
*/
|
|
333
|
+
maxCacheSize?: number;
|
|
334
|
+
/**
|
|
335
|
+
* @ignore
|
|
336
|
+
*/
|
|
337
|
+
mccDomain?: string;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @ignore
|
|
342
|
+
*/
|
|
343
|
+
export abstract class IMusicPlayer extends IMediaPlayer {
|
|
344
|
+
/**
|
|
345
|
+
* @ignore
|
|
346
|
+
*/
|
|
347
|
+
abstract setPlayMode(mode: MusicPlayMode): number;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @ignore
|
|
351
|
+
*/
|
|
352
|
+
abstract openWithSongCode(songCode: number, startPos?: number): number;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @ignore
|
|
357
|
+
*/
|
|
358
|
+
export abstract class IMusicContentCenter {
|
|
359
|
+
/**
|
|
360
|
+
* @ignore
|
|
361
|
+
*/
|
|
362
|
+
abstract initialize(configuration: MusicContentCenterConfiguration): number;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @ignore
|
|
366
|
+
*/
|
|
367
|
+
abstract renewToken(token: string): number;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @ignore
|
|
371
|
+
*/
|
|
372
|
+
abstract release(): void;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @ignore
|
|
376
|
+
*/
|
|
377
|
+
abstract registerEventHandler(
|
|
378
|
+
eventHandler: IMusicContentCenterEventHandler
|
|
379
|
+
): number;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @ignore
|
|
383
|
+
*/
|
|
384
|
+
abstract unregisterEventHandler(): number;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @ignore
|
|
388
|
+
*/
|
|
389
|
+
abstract createMusicPlayer(): IMusicPlayer;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @ignore
|
|
393
|
+
*/
|
|
394
|
+
abstract destroyMusicPlayer(musicPlayer: IMusicPlayer): number;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @ignore
|
|
398
|
+
*/
|
|
399
|
+
abstract getMusicCharts(): string;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @ignore
|
|
403
|
+
*/
|
|
404
|
+
abstract getMusicCollectionByMusicChartId(
|
|
405
|
+
musicChartId: number,
|
|
406
|
+
page: number,
|
|
407
|
+
pageSize: number,
|
|
408
|
+
jsonOption?: string
|
|
409
|
+
): string;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @ignore
|
|
413
|
+
*/
|
|
414
|
+
abstract searchMusic(
|
|
415
|
+
keyWord: string,
|
|
416
|
+
page: number,
|
|
417
|
+
pageSize: number,
|
|
418
|
+
jsonOption?: string
|
|
419
|
+
): string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @ignore
|
|
423
|
+
*/
|
|
424
|
+
abstract preload(songCode: number): string;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @ignore
|
|
428
|
+
*/
|
|
429
|
+
abstract removeCache(songCode: number): number;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @ignore
|
|
433
|
+
*/
|
|
434
|
+
abstract getCaches(): { cacheInfo: MusicCacheInfo[]; cacheInfoSize: number };
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @ignore
|
|
438
|
+
*/
|
|
439
|
+
abstract isPreloaded(songCode: number): boolean;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @ignore
|
|
443
|
+
*/
|
|
444
|
+
abstract getLyric(songCode: number, lyricType?: number): string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* @ignore
|
|
448
|
+
*/
|
|
449
|
+
abstract getSongSimpleInfo(songCode: number): string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @ignore
|
|
453
|
+
*/
|
|
454
|
+
abstract getInternalSongCode(songCode: number, jsonOption: string): number;
|
|
455
|
+
}
|