agora-electron-sdk 4.1.1-rc.1 → 4.2.0-dev.13
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/LICENSE +21 -21
- package/README.md +143 -143
- package/gulpfile.js +5 -4
- package/js/AgoraSdk.js +62 -60
- package/js/Private/AgoraBase.js +4575 -3269
- package/js/Private/AgoraMediaBase.js +968 -564
- package/js/Private/AgoraMediaPlayerTypes.js +422 -310
- package/js/Private/IAgoraLog.js +86 -74
- package/js/Private/IAgoraMediaEngine.js +32 -32
- package/js/Private/IAgoraMediaPlayer.js +16 -16
- package/js/Private/IAgoraMediaPlayerSource.js +3 -3
- package/js/Private/IAgoraMediaRecorder.js +12 -12
- package/js/Private/IAgoraMediaStreamingSource.js +84 -0
- package/js/Private/IAgoraMusicContentCenter.js +239 -81
- package/js/Private/IAgoraRhythmPlayer.js +70 -62
- package/js/Private/IAgoraRtcEngine.js +1807 -948
- package/js/Private/IAgoraRtcEngineEx.js +26 -18
- package/js/Private/IAgoraSpatialAudio.js +74 -30
- package/js/Private/IAudioDeviceManager.js +20 -20
- package/js/Private/extension/AgoraBaseExtension.js +2 -2
- package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
- package/js/Private/extension/IAgoraLogExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
- package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
- package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
- package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
- package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
- package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
- package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
- package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
- package/js/Private/impl/AgoraBaseImpl.js +23 -23
- package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
- package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
- package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
- package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
- package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
- package/js/Private/internal/IrisApiEngine.js +391 -382
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
- package/js/Private/internal/MediaEngineInternal.js +119 -123
- package/js/Private/internal/MediaPlayerInternal.js +215 -213
- package/js/Private/internal/MediaRecorderInternal.js +82 -81
- package/js/Private/internal/MusicContentCenterInternal.js +128 -130
- package/js/Private/internal/RtcEngineExInternal.js +422 -363
- package/js/Private/internal/emitter/EventEmitter.js +111 -111
- package/js/Private/ti/AgoraBase-ti.js +40 -40
- package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
- package/js/Private/ti/IAgoraLog-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
- package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
- package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
- package/js/Renderer/AgoraView.js +128 -131
- package/js/Renderer/IRenderer.js +40 -48
- package/js/Renderer/IRendererManager.js +9 -0
- package/js/Renderer/RendererManager.js +479 -392
- package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
- package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
- package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
- package/js/Renderer/index.js +18 -0
- package/js/Types.js +17 -29
- package/js/Utils.js +168 -173
- package/package.json +61 -103
- package/scripts/bootstrap.js +1 -1
- package/scripts/build.js +1 -0
- package/scripts/buildJS.js +3 -3
- package/scripts/clean.js +2 -1
- package/scripts/downloadPrebuild.js +5 -5
- package/scripts/getConfig.js +3 -2
- package/scripts/synclib.js +8 -5
- package/scripts/util.js +3 -2
- package/scripts/zipBuild.js +2 -1
- package/ts/AgoraSdk.ts +9 -6
- package/ts/Private/AgoraBase.ts +278 -173
- package/ts/Private/AgoraMediaBase.ts +167 -100
- package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
- package/ts/Private/IAgoraMediaEngine.ts +43 -56
- package/ts/Private/IAgoraMediaPlayer.ts +90 -104
- package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
- package/ts/Private/IAgoraMediaRecorder.ts +8 -35
- package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
- package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
- package/ts/Private/IAgoraRtcEngine.ts +807 -910
- package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
- package/ts/Private/IAgoraSpatialAudio.ts +40 -22
- package/ts/Private/IAudioDeviceManager.ts +35 -13
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
- package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
- package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
- package/ts/Private/internal/IrisApiEngine.ts +41 -32
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
- package/ts/Private/internal/MediaEngineInternal.ts +9 -11
- package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
- package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
- package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
- package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
- package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
- package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
- package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
- package/ts/Renderer/AgoraView.ts +12 -7
- package/ts/Renderer/IRenderer.ts +11 -16
- package/ts/Renderer/IRendererManager.ts +35 -0
- package/ts/Renderer/RendererManager.ts +146 -82
- package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
- package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
- package/ts/Renderer/index.ts +2 -0
- package/ts/Types.ts +43 -23
- package/ts/Utils.ts +7 -12
- package/types/AgoraSdk.d.ts +38 -36
- package/types/AgoraSdk.d.ts.map +1 -0
- package/types/Private/AgoraBase.d.ts +4455 -4358
- package/types/Private/AgoraBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaBase.d.ts +1125 -1070
- package/types/Private/AgoraMediaBase.d.ts.map +1 -0
- package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts +81 -80
- package/types/Private/IAgoraLog.d.ts.map +1 -0
- package/types/Private/IAgoraMediaEngine.d.ts +184 -193
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
- 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 +336 -255
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
- package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
- package/types/Private/IAudioDeviceManager.d.ts +255 -233
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
- package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
- package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
- package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
- package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
- package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
- package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
- package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
- package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
- package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
- package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
- package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +148 -146
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
- package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
- package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
- package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
- package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
- package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
- package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
- package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
- package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
- package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
- package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/types/Renderer/AgoraView.d.ts +70 -70
- package/types/Renderer/AgoraView.d.ts.map +1 -0
- package/types/Renderer/IRenderer.d.ts +22 -21
- package/types/Renderer/IRenderer.d.ts.map +1 -0
- package/types/Renderer/IRendererManager.d.ts +18 -0
- package/types/Renderer/IRendererManager.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +154 -71
- package/types/Renderer/RendererManager.d.ts.map +1 -0
- package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
- 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 +16 -16
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
- package/types/Renderer/index.d.ts +3 -0
- package/types/Renderer/index.d.ts.map +1 -0
- package/types/Types.d.ts +280 -260
- package/types/Types.d.ts.map +1 -0
- package/types/Utils.d.ts +59 -58
- package/types/Utils.d.ts.map +1 -0
- package/js/AgoraSdk.d.ts +0 -36
- package/js/Private/AgoraBase.d.ts +0 -4358
- package/js/Private/AgoraMediaBase.d.ts +0 -1070
- package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
- package/js/Private/IAgoraLog.d.ts +0 -80
- package/js/Private/IAgoraMediaEngine.d.ts +0 -193
- package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
- package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
- package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
- package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
- package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
- package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
- package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
- package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
- package/js/Private/IAudioDeviceManager.d.ts +0 -233
- package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
- package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
- package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
- package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
- package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
- package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
- package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
- package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
- package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
- package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
- package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
- package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
- package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
- package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
- package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
- package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
- package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
- package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
- package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
- package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
- package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
- package/js/Private/internal/IrisApiEngine.d.ts +0 -146
- package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
- package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
- package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
- package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
- package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
- package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
- package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
- package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
- package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
- package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
- package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
- package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
- package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
- package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
- package/js/Renderer/AgoraView.d.ts +0 -70
- package/js/Renderer/GlRenderer/index.d.ts +0 -59
- package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
- package/js/Renderer/IRenderer.d.ts +0 -21
- package/js/Renderer/RendererManager.d.ts +0 -71
- package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
- package/js/Types.d.ts +0 -260
- package/js/Utils.d.ts +0 -58
- /package/ts/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { callIrisApi } from '../internal/IrisApiEngine';
|
|
2
1
|
import {
|
|
2
|
+
IMusicContentCenter,
|
|
3
|
+
IMusicContentCenterEventHandler,
|
|
4
|
+
IMusicPlayer,
|
|
5
|
+
Music,
|
|
6
|
+
MusicCacheInfo,
|
|
3
7
|
MusicChartCollection,
|
|
4
8
|
MusicChartInfo,
|
|
5
9
|
MusicCollection,
|
|
6
|
-
Music,
|
|
7
|
-
IMusicContentCenterEventHandler,
|
|
8
|
-
IMusicPlayer,
|
|
9
|
-
IMusicContentCenter,
|
|
10
10
|
MusicContentCenterConfiguration,
|
|
11
11
|
} from '../IAgoraMusicContentCenter';
|
|
12
|
+
|
|
12
13
|
import { IMediaPlayerImpl } from './IAgoraMediaPlayerImpl';
|
|
14
|
+
|
|
13
15
|
// @ts-ignore
|
|
14
16
|
export class MusicChartCollectionImpl implements MusicChartCollection {
|
|
15
17
|
getCount(): number {
|
|
@@ -117,8 +119,8 @@ export function processIMusicContentCenterEventHandler(
|
|
|
117
119
|
if (handler.onMusicChartsResult !== undefined) {
|
|
118
120
|
handler.onMusicChartsResult(
|
|
119
121
|
jsonParams.requestId,
|
|
120
|
-
jsonParams.
|
|
121
|
-
jsonParams.
|
|
122
|
+
jsonParams.result,
|
|
123
|
+
jsonParams.error_code
|
|
122
124
|
);
|
|
123
125
|
}
|
|
124
126
|
break;
|
|
@@ -127,15 +129,19 @@ export function processIMusicContentCenterEventHandler(
|
|
|
127
129
|
if (handler.onMusicCollectionResult !== undefined) {
|
|
128
130
|
handler.onMusicCollectionResult(
|
|
129
131
|
jsonParams.requestId,
|
|
130
|
-
jsonParams.
|
|
131
|
-
jsonParams.
|
|
132
|
+
jsonParams.result,
|
|
133
|
+
jsonParams.error_code
|
|
132
134
|
);
|
|
133
135
|
}
|
|
134
136
|
break;
|
|
135
137
|
|
|
136
138
|
case 'onLyricResult':
|
|
137
139
|
if (handler.onLyricResult !== undefined) {
|
|
138
|
-
handler.onLyricResult(
|
|
140
|
+
handler.onLyricResult(
|
|
141
|
+
jsonParams.requestId,
|
|
142
|
+
jsonParams.lyricUrl,
|
|
143
|
+
jsonParams.error_code
|
|
144
|
+
);
|
|
139
145
|
}
|
|
140
146
|
break;
|
|
141
147
|
|
|
@@ -144,9 +150,9 @@ export function processIMusicContentCenterEventHandler(
|
|
|
144
150
|
handler.onPreLoadEvent(
|
|
145
151
|
jsonParams.songCode,
|
|
146
152
|
jsonParams.percent,
|
|
153
|
+
jsonParams.lyricUrl,
|
|
147
154
|
jsonParams.status,
|
|
148
|
-
jsonParams.
|
|
149
|
-
jsonParams.lyricUrl
|
|
155
|
+
jsonParams.error_code
|
|
150
156
|
);
|
|
151
157
|
}
|
|
152
158
|
break;
|
|
@@ -155,7 +161,7 @@ export function processIMusicContentCenterEventHandler(
|
|
|
155
161
|
|
|
156
162
|
// @ts-ignore
|
|
157
163
|
export class IMusicPlayerImpl extends IMediaPlayerImpl implements IMusicPlayer {
|
|
158
|
-
openWithSongCode(songCode: number, startPos = 0): number {
|
|
164
|
+
openWithSongCode(songCode: number, startPos: number = 0): number {
|
|
159
165
|
const apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
|
|
160
166
|
const jsonParams = {
|
|
161
167
|
songCode: songCode,
|
|
@@ -173,7 +179,7 @@ export class IMusicPlayerImpl extends IMediaPlayerImpl implements IMusicPlayer {
|
|
|
173
179
|
|
|
174
180
|
protected getApiTypeFromOpenWithSongCode(
|
|
175
181
|
songCode: number,
|
|
176
|
-
startPos = 0
|
|
182
|
+
startPos: number = 0
|
|
177
183
|
): string {
|
|
178
184
|
return 'MusicPlayer_openWithSongCode';
|
|
179
185
|
}
|
|
@@ -388,6 +394,40 @@ export class IMusicContentCenterImpl implements IMusicContentCenter {
|
|
|
388
394
|
return 'MusicContentCenter_preload';
|
|
389
395
|
}
|
|
390
396
|
|
|
397
|
+
removeCache(songCode: number): number {
|
|
398
|
+
const apiType = this.getApiTypeFromRemoveCache(songCode);
|
|
399
|
+
const jsonParams = {
|
|
400
|
+
songCode: songCode,
|
|
401
|
+
toJSON: () => {
|
|
402
|
+
return {
|
|
403
|
+
songCode: songCode,
|
|
404
|
+
};
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
408
|
+
return jsonResults.result;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
protected getApiTypeFromRemoveCache(songCode: number): string {
|
|
412
|
+
return 'MusicContentCenter_removeCache';
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
getCaches(): { cacheInfo: MusicCacheInfo[]; cacheInfoSize: number } {
|
|
416
|
+
const apiType = this.getApiTypeFromGetCaches();
|
|
417
|
+
const jsonParams = {};
|
|
418
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
419
|
+
const cacheInfo = jsonResults.cacheInfo;
|
|
420
|
+
const cacheInfoSize = jsonResults.cacheInfoSize;
|
|
421
|
+
return {
|
|
422
|
+
cacheInfo,
|
|
423
|
+
cacheInfoSize,
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
protected getApiTypeFromGetCaches(): string {
|
|
428
|
+
return 'MusicContentCenter_getCaches';
|
|
429
|
+
}
|
|
430
|
+
|
|
391
431
|
isPreloaded(songCode: number): number {
|
|
392
432
|
const apiType = this.getApiTypeFromIsPreloaded(songCode);
|
|
393
433
|
const jsonParams = {
|
|
@@ -406,7 +446,7 @@ export class IMusicContentCenterImpl implements IMusicContentCenter {
|
|
|
406
446
|
return 'MusicContentCenter_isPreloaded';
|
|
407
447
|
}
|
|
408
448
|
|
|
409
|
-
getLyric(songCode: number, lyricType = 0): string {
|
|
449
|
+
getLyric(songCode: number, lyricType: number = 0): string {
|
|
410
450
|
const apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
|
|
411
451
|
const jsonParams = {
|
|
412
452
|
songCode: songCode,
|
|
@@ -423,7 +463,12 @@ export class IMusicContentCenterImpl implements IMusicContentCenter {
|
|
|
423
463
|
return requestId;
|
|
424
464
|
}
|
|
425
465
|
|
|
426
|
-
protected getApiTypeFromGetLyric(
|
|
466
|
+
protected getApiTypeFromGetLyric(
|
|
467
|
+
songCode: number,
|
|
468
|
+
lyricType: number = 0
|
|
469
|
+
): string {
|
|
427
470
|
return 'MusicContentCenter_getLyric';
|
|
428
471
|
}
|
|
429
472
|
}
|
|
473
|
+
|
|
474
|
+
import { callIrisApi } from '../internal/IrisApiEngine';
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { callIrisApi } from '../internal/IrisApiEngine';
|
|
2
|
-
import { IRtcEngineImpl } from './IAgoraRtcEngineImpl';
|
|
3
|
-
import { IRtcEngineEx, RtcConnection } from '../IAgoraRtcEngineEx';
|
|
4
|
-
import { ChannelMediaOptions, LeaveChannelOptions } from '../IAgoraRtcEngine';
|
|
5
1
|
import {
|
|
6
|
-
|
|
7
|
-
VideoCanvas,
|
|
8
|
-
VideoStreamType,
|
|
9
|
-
VideoSubscriptionOptions,
|
|
10
|
-
SpatialAudioParams,
|
|
11
|
-
VideoMirrorModeType,
|
|
2
|
+
ChannelMediaRelayConfiguration,
|
|
12
3
|
ConnectionStateType,
|
|
13
|
-
EncryptionConfig,
|
|
14
4
|
DataStreamConfig,
|
|
15
|
-
|
|
5
|
+
EncryptionConfig,
|
|
16
6
|
LiveTranscoding,
|
|
17
|
-
ChannelMediaRelayConfiguration,
|
|
18
|
-
UserInfo,
|
|
19
7
|
SimulcastStreamConfig,
|
|
20
8
|
SimulcastStreamMode,
|
|
9
|
+
SpatialAudioParams,
|
|
10
|
+
UserInfo,
|
|
11
|
+
VideoCanvas,
|
|
12
|
+
VideoEncoderConfiguration,
|
|
13
|
+
VideoMirrorModeType,
|
|
14
|
+
VideoStreamType,
|
|
15
|
+
VideoSubscriptionOptions,
|
|
16
|
+
WatermarkOptions,
|
|
21
17
|
} from '../AgoraBase';
|
|
22
18
|
import { RenderModeType } from '../AgoraMediaBase';
|
|
19
|
+
import {
|
|
20
|
+
ChannelMediaOptions,
|
|
21
|
+
LeaveChannelOptions,
|
|
22
|
+
StreamFallbackOptions,
|
|
23
|
+
} from '../IAgoraRtcEngine';
|
|
24
|
+
import { IRtcEngineEx, RtcConnection } from '../IAgoraRtcEngineEx';
|
|
25
|
+
|
|
26
|
+
import { IRtcEngineImpl } from './IAgoraRtcEngineImpl';
|
|
27
|
+
|
|
23
28
|
// @ts-ignore
|
|
24
29
|
export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
25
30
|
joinChannelEx(
|
|
@@ -685,6 +690,58 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
685
690
|
return 'RtcEngineEx_enableLoopbackRecordingEx';
|
|
686
691
|
}
|
|
687
692
|
|
|
693
|
+
adjustRecordingSignalVolumeEx(
|
|
694
|
+
volume: number,
|
|
695
|
+
connection: RtcConnection
|
|
696
|
+
): number {
|
|
697
|
+
const apiType = this.getApiTypeFromAdjustRecordingSignalVolumeEx(
|
|
698
|
+
volume,
|
|
699
|
+
connection
|
|
700
|
+
);
|
|
701
|
+
const jsonParams = {
|
|
702
|
+
volume: volume,
|
|
703
|
+
connection: connection,
|
|
704
|
+
toJSON: () => {
|
|
705
|
+
return {
|
|
706
|
+
volume: volume,
|
|
707
|
+
connection: connection,
|
|
708
|
+
};
|
|
709
|
+
},
|
|
710
|
+
};
|
|
711
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
712
|
+
return jsonResults.result;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
protected getApiTypeFromAdjustRecordingSignalVolumeEx(
|
|
716
|
+
volume: number,
|
|
717
|
+
connection: RtcConnection
|
|
718
|
+
): string {
|
|
719
|
+
return 'RtcEngineEx_adjustRecordingSignalVolumeEx';
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
muteRecordingSignalEx(mute: boolean, connection: RtcConnection): number {
|
|
723
|
+
const apiType = this.getApiTypeFromMuteRecordingSignalEx(mute, connection);
|
|
724
|
+
const jsonParams = {
|
|
725
|
+
mute: mute,
|
|
726
|
+
connection: connection,
|
|
727
|
+
toJSON: () => {
|
|
728
|
+
return {
|
|
729
|
+
mute: mute,
|
|
730
|
+
connection: connection,
|
|
731
|
+
};
|
|
732
|
+
},
|
|
733
|
+
};
|
|
734
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
735
|
+
return jsonResults.result;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
protected getApiTypeFromMuteRecordingSignalEx(
|
|
739
|
+
mute: boolean,
|
|
740
|
+
connection: RtcConnection
|
|
741
|
+
): string {
|
|
742
|
+
return 'RtcEngineEx_muteRecordingSignalEx';
|
|
743
|
+
}
|
|
744
|
+
|
|
688
745
|
adjustUserPlaybackSignalVolumeEx(
|
|
689
746
|
uid: number,
|
|
690
747
|
volume: number,
|
|
@@ -1095,6 +1152,35 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
1095
1152
|
return 'RtcEngineEx_stopRtmpStreamEx';
|
|
1096
1153
|
}
|
|
1097
1154
|
|
|
1155
|
+
startOrUpdateChannelMediaRelayEx(
|
|
1156
|
+
configuration: ChannelMediaRelayConfiguration,
|
|
1157
|
+
connection: RtcConnection
|
|
1158
|
+
): number {
|
|
1159
|
+
const apiType = this.getApiTypeFromStartOrUpdateChannelMediaRelayEx(
|
|
1160
|
+
configuration,
|
|
1161
|
+
connection
|
|
1162
|
+
);
|
|
1163
|
+
const jsonParams = {
|
|
1164
|
+
configuration: configuration,
|
|
1165
|
+
connection: connection,
|
|
1166
|
+
toJSON: () => {
|
|
1167
|
+
return {
|
|
1168
|
+
configuration: configuration,
|
|
1169
|
+
connection: connection,
|
|
1170
|
+
};
|
|
1171
|
+
},
|
|
1172
|
+
};
|
|
1173
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
1174
|
+
return jsonResults.result;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
protected getApiTypeFromStartOrUpdateChannelMediaRelayEx(
|
|
1178
|
+
configuration: ChannelMediaRelayConfiguration,
|
|
1179
|
+
connection: RtcConnection
|
|
1180
|
+
): string {
|
|
1181
|
+
return 'RtcEngineEx_startOrUpdateChannelMediaRelayEx';
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1098
1184
|
startChannelMediaRelayEx(
|
|
1099
1185
|
configuration: ChannelMediaRelayConfiguration,
|
|
1100
1186
|
connection: RtcConnection
|
|
@@ -1267,45 +1353,6 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
1267
1353
|
return 'RtcEngineEx_getUserInfoByUidEx';
|
|
1268
1354
|
}
|
|
1269
1355
|
|
|
1270
|
-
setVideoProfileEx(
|
|
1271
|
-
width: number,
|
|
1272
|
-
height: number,
|
|
1273
|
-
frameRate: number,
|
|
1274
|
-
bitrate: number
|
|
1275
|
-
): number {
|
|
1276
|
-
const apiType = this.getApiTypeFromSetVideoProfileEx(
|
|
1277
|
-
width,
|
|
1278
|
-
height,
|
|
1279
|
-
frameRate,
|
|
1280
|
-
bitrate
|
|
1281
|
-
);
|
|
1282
|
-
const jsonParams = {
|
|
1283
|
-
width: width,
|
|
1284
|
-
height: height,
|
|
1285
|
-
frameRate: frameRate,
|
|
1286
|
-
bitrate: bitrate,
|
|
1287
|
-
toJSON: () => {
|
|
1288
|
-
return {
|
|
1289
|
-
width: width,
|
|
1290
|
-
height: height,
|
|
1291
|
-
frameRate: frameRate,
|
|
1292
|
-
bitrate: bitrate,
|
|
1293
|
-
};
|
|
1294
|
-
},
|
|
1295
|
-
};
|
|
1296
|
-
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
1297
|
-
return jsonResults.result;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
protected getApiTypeFromSetVideoProfileEx(
|
|
1301
|
-
width: number,
|
|
1302
|
-
height: number,
|
|
1303
|
-
frameRate: number,
|
|
1304
|
-
bitrate: number
|
|
1305
|
-
): string {
|
|
1306
|
-
return 'RtcEngineEx_setVideoProfileEx';
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
1356
|
enableDualStreamModeEx(
|
|
1310
1357
|
enabled: boolean,
|
|
1311
1358
|
streamConfig: SimulcastStreamConfig,
|
|
@@ -1374,13 +1421,29 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
1374
1421
|
return 'RtcEngineEx_setDualStreamModeEx';
|
|
1375
1422
|
}
|
|
1376
1423
|
|
|
1377
|
-
|
|
1378
|
-
|
|
1424
|
+
setHighPriorityUserListEx(
|
|
1425
|
+
uidList: number[],
|
|
1426
|
+
uidNum: number,
|
|
1427
|
+
option: StreamFallbackOptions,
|
|
1428
|
+
connection: RtcConnection
|
|
1429
|
+
): number {
|
|
1430
|
+
const apiType = this.getApiTypeFromSetHighPriorityUserListEx(
|
|
1431
|
+
uidList,
|
|
1432
|
+
uidNum,
|
|
1433
|
+
option,
|
|
1434
|
+
connection
|
|
1435
|
+
);
|
|
1379
1436
|
const jsonParams = {
|
|
1380
|
-
|
|
1437
|
+
uidList: uidList,
|
|
1438
|
+
uidNum: uidNum,
|
|
1439
|
+
option: option,
|
|
1440
|
+
connection: connection,
|
|
1381
1441
|
toJSON: () => {
|
|
1382
1442
|
return {
|
|
1383
|
-
|
|
1443
|
+
uidList: uidList,
|
|
1444
|
+
uidNum: uidNum,
|
|
1445
|
+
option: option,
|
|
1446
|
+
connection: connection,
|
|
1384
1447
|
};
|
|
1385
1448
|
},
|
|
1386
1449
|
};
|
|
@@ -1388,8 +1451,13 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
1388
1451
|
return jsonResults.result;
|
|
1389
1452
|
}
|
|
1390
1453
|
|
|
1391
|
-
protected
|
|
1392
|
-
|
|
1454
|
+
protected getApiTypeFromSetHighPriorityUserListEx(
|
|
1455
|
+
uidList: number[],
|
|
1456
|
+
uidNum: number,
|
|
1457
|
+
option: StreamFallbackOptions,
|
|
1458
|
+
connection: RtcConnection
|
|
1459
|
+
): string {
|
|
1460
|
+
return 'RtcEngineEx_setHighPriorityUserListEx';
|
|
1393
1461
|
}
|
|
1394
1462
|
|
|
1395
1463
|
takeSnapshotEx(
|
|
@@ -1446,3 +1514,5 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx {
|
|
|
1446
1514
|
return 'RtcEngineEx_startMediaRenderingTracingEx';
|
|
1447
1515
|
}
|
|
1448
1516
|
}
|
|
1517
|
+
|
|
1518
|
+
import { callIrisApi } from '../internal/IrisApiEngine';
|