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,248 +0,0 @@
|
|
|
1
|
-
import './extension/IAgoraSpatialAudioExtension';
|
|
2
|
-
import { RtcConnection } from './IAgoraRtcEngineEx';
|
|
3
|
-
/**
|
|
4
|
-
* The spatial position of the remote user or the media player.
|
|
5
|
-
*/
|
|
6
|
-
export declare class RemoteVoicePositionInfo {
|
|
7
|
-
/**
|
|
8
|
-
* The coordinates in the world coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
9
|
-
*/
|
|
10
|
-
position?: number[];
|
|
11
|
-
/**
|
|
12
|
-
* The unit vector of the x axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
13
|
-
*/
|
|
14
|
-
forward?: number[];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Sound insulation area settings.
|
|
18
|
-
*/
|
|
19
|
-
export declare class SpatialAudioZone {
|
|
20
|
-
/**
|
|
21
|
-
* The ID of the sound insulation area.
|
|
22
|
-
*/
|
|
23
|
-
zoneSetId?: number;
|
|
24
|
-
/**
|
|
25
|
-
* The spatial center point of the sound insulation area. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
26
|
-
*/
|
|
27
|
-
position?: number[];
|
|
28
|
-
/**
|
|
29
|
-
* Starting at position, the forward unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
30
|
-
*/
|
|
31
|
-
forward?: number[];
|
|
32
|
-
/**
|
|
33
|
-
* Starting at position, the right unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
34
|
-
*/
|
|
35
|
-
right?: number[];
|
|
36
|
-
/**
|
|
37
|
-
* Starting at position, the up unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
38
|
-
*/
|
|
39
|
-
up?: number[];
|
|
40
|
-
/**
|
|
41
|
-
* The entire sound insulation area is regarded as a cube; this represents the length of the forward side in the unit length of the game engine.
|
|
42
|
-
*/
|
|
43
|
-
forwardLength?: number;
|
|
44
|
-
/**
|
|
45
|
-
* The entire sound insulation area is regarded as a cube; this represents the length of the right side in the unit length of the game engine.
|
|
46
|
-
*/
|
|
47
|
-
rightLength?: number;
|
|
48
|
-
/**
|
|
49
|
-
* The entire sound insulation area is regarded as a cube; this represents the length of the up side in the unit length of the game engine.
|
|
50
|
-
*/
|
|
51
|
-
upLength?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The sound attenuation coefficient when users within the sound insulation area communicate with external users. The value range is [0,1]. The values are as follows:0: Broadcast mode, where the volume and timbre are not attenuated with distance, and the volume and timbre heard by local users do not change regardless of distance.(0,0.5): Weak attenuation mode, that is, the volume and timbre are only weakly attenuated during the propagation process, and the sound can travel farther than the real environment.0.5: (Default) simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the audioAttenuation parameter.(0.5,1]: Strong attenuation mode (default value is 1), that is, the volume and timbre attenuate rapidly during propagation.
|
|
54
|
-
*/
|
|
55
|
-
audioAttenuation?: number;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* This class contains some of the APIs in the ILocalSpatialAudioEngine class.
|
|
59
|
-
* The ILocalSpatialAudioEngine class inherits from IBaseSpatialAudioEngine.
|
|
60
|
-
*/
|
|
61
|
-
export declare abstract class IBaseSpatialAudioEngine {
|
|
62
|
-
/**
|
|
63
|
-
* Destroys IBaseSpatialAudioEngine .
|
|
64
|
-
* This method releases all resources under IBaseSpatialAudioEngine. When the user does not need to use the spatial audio effect, you can call this method to release resources for other operations.After calling this method, you can no longer use any of the APIs under IBaseSpatialAudioEngine.Call this method before the release method under IRtcEngine .
|
|
65
|
-
*/
|
|
66
|
-
abstract release(): void;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the maximum number of streams that a user can receive in a specified audio reception range.
|
|
69
|
-
* If the number of receivable streams exceeds the set value, the local user receives the maxCount streams that are closest to the local user. If there are users who belong to the same team as the local user in the room, the local user receives the audio of the teammates first. For example, when maxCount is set to 3, if there are five remote users in the room, two of whom belong to the same team as the local user, and three of whom belong to different teams but are within the audio reception range of the local user, the local user can hear the two teammates and the one user from a different team closest to the local user.
|
|
70
|
-
*
|
|
71
|
-
* @param maxCount The maximum number of streams that a user can receive within a specified audio reception range.
|
|
72
|
-
*
|
|
73
|
-
* @returns
|
|
74
|
-
* 0: Success.< 0: Failure.
|
|
75
|
-
*/
|
|
76
|
-
abstract setMaxAudioRecvCount(maxCount: number): number;
|
|
77
|
-
/**
|
|
78
|
-
* Sets the audio reception range of the local user.
|
|
79
|
-
* After the setting is successful, the local user can only hear the remote users within the setting range or belonging to the same team. You can call this method at any time to update the audio reception range.
|
|
80
|
-
*
|
|
81
|
-
* @param range The maximum audio reception range. The unit is meters. The value must be greater than 0.
|
|
82
|
-
*
|
|
83
|
-
* @returns
|
|
84
|
-
* 0: Success.< 0: Failure.
|
|
85
|
-
*/
|
|
86
|
-
abstract setAudioRecvRange(range: number): number;
|
|
87
|
-
/**
|
|
88
|
-
* Sets the length (in meters) of the game engine distance per unit.
|
|
89
|
-
* In a game engine, the unit of distance is customized, while in the Agora spatial audio algorithm, distance is measured in meters. By default, the SDK converts the game engine distance per unit to one meter. You can call this method to convert the game engine distance per unit to a specified number of meters.
|
|
90
|
-
*
|
|
91
|
-
* @param unit The number of meters that the game engine distance per unit is equal to. This parameter must be greater than 0.00. For example, setting unit as 2.00 means the game engine distance per unit equals 2 meters.The larger the value is, the faster the sound heard by the local user attenuates when the remote user moves far away from the local user.
|
|
92
|
-
*
|
|
93
|
-
* @returns
|
|
94
|
-
* 0: Success.< 0: Failure.
|
|
95
|
-
*/
|
|
96
|
-
abstract setDistanceUnit(unit: number): number;
|
|
97
|
-
/**
|
|
98
|
-
* Updates the spatial position of the local user.
|
|
99
|
-
* Under the ILocalSpatialAudioEngine class, this method needs to be used with updateRemotePosition . The SDK calculates the relative position between the local and remote users according to this method and the parameter settings in updateRemotePosition, and then calculates the user's spatial audio effect parameters.
|
|
100
|
-
*
|
|
101
|
-
* @param position The coordinates in the world coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
102
|
-
*
|
|
103
|
-
* @param axisForward The unit vector of the x axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
104
|
-
*
|
|
105
|
-
* @param axisRight The unit vector of the y axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
106
|
-
*
|
|
107
|
-
* @param axisUp The unit vector of the z axis in the coordinate system. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
|
|
108
|
-
*
|
|
109
|
-
* @returns
|
|
110
|
-
* 0: Success.< 0: Failure.
|
|
111
|
-
*/
|
|
112
|
-
abstract updateSelfPosition(position: number[], axisForward: number[], axisRight: number[], axisUp: number[]): number;
|
|
113
|
-
/**
|
|
114
|
-
* @ignore
|
|
115
|
-
*/
|
|
116
|
-
abstract updateSelfPositionEx(position: number[], axisForward: number[], axisRight: number[], axisUp: number[], connection: RtcConnection): number;
|
|
117
|
-
/**
|
|
118
|
-
* Updates the spatial position of the media player.
|
|
119
|
-
* After a successful update, the local user can hear the change in the spatial position of the media player.
|
|
120
|
-
*
|
|
121
|
-
* @param playerId The ID of the media player.
|
|
122
|
-
*
|
|
123
|
-
* @param positionInfo The spatial position of the media player. See RemoteVoicePositionInfo .
|
|
124
|
-
*
|
|
125
|
-
* @returns
|
|
126
|
-
* 0: Success.< 0: Failure.
|
|
127
|
-
*/
|
|
128
|
-
abstract updatePlayerPositionInfo(playerId: number, positionInfo: RemoteVoicePositionInfo): number;
|
|
129
|
-
/**
|
|
130
|
-
* @ignore
|
|
131
|
-
*/
|
|
132
|
-
abstract setParameters(params: string): number;
|
|
133
|
-
/**
|
|
134
|
-
* Stops or resumes publishing the local audio stream.
|
|
135
|
-
* This method does not affect any ongoing audio recording, because it does not disable the audio capture device.Call this method after joinChannel [2/2] .When using the spatial audio effect, if you need to set whether to publish the local audio stream, Agora recommends calling this method instead of the muteLocalAudioStream method under IRtcEngine .
|
|
136
|
-
*
|
|
137
|
-
* @param mute Whether to stop publishing the local audio stream.true: Stop publishing the local audio stream.false: Publish the local audio stream.
|
|
138
|
-
*
|
|
139
|
-
* @returns
|
|
140
|
-
* 0: Success.< 0: Failure.
|
|
141
|
-
*/
|
|
142
|
-
abstract muteLocalAudioStream(mute: boolean): number;
|
|
143
|
-
/**
|
|
144
|
-
* Stops or resumes subscribing to the audio streams of all remote users.
|
|
145
|
-
* After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including all subsequent users.Call this method after joinChannel [2/2] .When using the spatial audio effect, if you need to set whether to stop subscribing to the audio streams of all remote users, Agora recommends calling this method instead of the muteAllRemoteAudioStreams method in IRtcEngine .After calling this method, you need to call updateSelfPosition and updateRemotePosition to update the spatial location of the local user and the remote user; otherwise, the settings in this method do not take effect.
|
|
146
|
-
*
|
|
147
|
-
* @param mute Whether to stop subscribing to the audio streams of all remote users:true: Stops subscribing to the audio streams of all remote users.false: Subscribe to the audio streams of all remote users.
|
|
148
|
-
*
|
|
149
|
-
* @returns
|
|
150
|
-
* 0: Success.< 0: Failure.
|
|
151
|
-
*/
|
|
152
|
-
abstract muteAllRemoteAudioStreams(mute: boolean): number;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the sound insulation area.
|
|
155
|
-
* In virtual interactive scenarios, you can use this method to set the sound insulation area and sound attenuation coefficient. When the sound source (which can be the user or the media player) and the listener belong to the inside and outside of the sound insulation area, they can experience the attenuation effect of sound similar to the real environment when it encounters a building partition.When the sound source and the listener belong to the inside and outside of the sound insulation area, the sound attenuation effect is determined by the sound attenuation coefficient in SpatialAudioZone .If the user or media player is in the same sound insulation area, it is not affected by SpatialAudioZone, and the sound attenuation effect is determined by the attenuation parameter in setPlayerAttenuation or setRemoteAudioAttenuation. If you do not call setPlayerAttenuation or setRemoteAudioAttenuation, the default sound attenuation coefficient of the SDK is 0.5, which simulates the attenuation of the sound in the real environment.If the sound source and the receiver belong to two sound insulation areas, the receiver cannot hear the sound source.If this method is called multiple times, the last sound insulation area set takes effect.
|
|
156
|
-
*
|
|
157
|
-
* @param zones Sound insulation area settings. See SpatialAudioZone.
|
|
158
|
-
*
|
|
159
|
-
* @returns
|
|
160
|
-
* 0: Success.< 0: Failure.
|
|
161
|
-
*/
|
|
162
|
-
abstract setZones(zones: SpatialAudioZone[], zoneCount: number): number;
|
|
163
|
-
/**
|
|
164
|
-
* Sets the sound attenuation properties of the media player.
|
|
165
|
-
*
|
|
166
|
-
* @param playerId The ID of the media player.
|
|
167
|
-
*
|
|
168
|
-
* @param attenuation The sound attenuation coefficient of the remote user or media player. The value range is [0,1]. The values are as follows:0: Broadcast mode, where the volume and timbre are not attenuated with distance, and the volume and timbre heard by local users do not change regardless of distance.(0,0.5): Weak attenuation mode, that is, the volume and timbre are only weakly attenuated during the propagation process, and the sound can travel farther than the real environment.0.5: (Default) simulates the attenuation of the volume in the real environment; the effect is equivalent to not setting the speaker_attenuation parameter.(0.5,1]: Strong attenuation mode, that is, the volume and timbre attenuate rapidly during the propagation process.
|
|
169
|
-
*
|
|
170
|
-
* @param forceSet Whether to force the sound attenuation effect of the media player:true: Force attenuation to set the attenuation of the user. At this time, the attenuation coefficient of the sound insulation area set in the audioAttenuation in the SpatialAudioZone does not take effect for the user.false: Do not force attenuation e to set the user's sound attenuationffect, as shown in the following two cases.If the sound source and listener are inside and outside the sound isolation area, the sound attenuation effect is determined by the audioAttenuation in SpatialAudioZone.If the sound source and the listener are in the same sound insulation area or outside the same sound insulation area, the sound attenuation effect is determined by attenuation in this method.
|
|
171
|
-
*
|
|
172
|
-
* @returns
|
|
173
|
-
* 0: Success.< 0: Failure.
|
|
174
|
-
*/
|
|
175
|
-
abstract setPlayerAttenuation(playerId: number, attenuation: number, forceSet: boolean): number;
|
|
176
|
-
/**
|
|
177
|
-
* Stops or resumes subscribing to the audio stream of a specified user.
|
|
178
|
-
* Call this method after joinChannel [2/2] .When using the spatial audio effect, if you need to set whether to stop subscribing to the audio stream of a specified user, Agora recommends calling this method instead of the muteRemoteAudioStream method in IRtcEngine .
|
|
179
|
-
*
|
|
180
|
-
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
181
|
-
*
|
|
182
|
-
* @param mute Whether to subscribe to the specified remote user's audio stream.true: Stop subscribing to the audio stream of the specified user.false: (Default) Subscribe to the audio stream of the specified user. The SDK decides whether to subscribe according to the distance between the local user and the remote user.
|
|
183
|
-
*
|
|
184
|
-
* @returns
|
|
185
|
-
* 0: Success.< 0: Failure.
|
|
186
|
-
*/
|
|
187
|
-
abstract muteRemoteAudioStream(uid: number, mute: boolean): number;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* This class calculates user positions through the SDK to implement the spatial audio effect.
|
|
191
|
-
* This class inherits from IBaseSpatialAudioEngine . Before calling other APIs in this class, you need to call the initialize method to initialize this class.
|
|
192
|
-
*/
|
|
193
|
-
export declare abstract class ILocalSpatialAudioEngine extends IBaseSpatialAudioEngine {
|
|
194
|
-
/**
|
|
195
|
-
* Initializes ILocalSpatialAudioEngine .
|
|
196
|
-
* Before calling other methods of the ILocalSpatialAudioEngine class, you need to call this method to initialize ILocalSpatialAudioEngine.The SDK supports creating only one ILocalSpatialAudioEngine instance for an app.
|
|
197
|
-
*
|
|
198
|
-
* @returns
|
|
199
|
-
* 0: Success.< 0: Failure.
|
|
200
|
-
*/
|
|
201
|
-
abstract initialize(): number;
|
|
202
|
-
/**
|
|
203
|
-
* Updates the spatial position of the specified remote user.
|
|
204
|
-
* After successfully calling this method, the SDK calculates the spatial audio parameters based on the relative position of the local and remote user.Call this method after joinChannel [2/2] .
|
|
205
|
-
*
|
|
206
|
-
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
207
|
-
*
|
|
208
|
-
* @param posInfo The spatial position of the remote user. See RemoteVoicePositionInfo .
|
|
209
|
-
*
|
|
210
|
-
* @returns
|
|
211
|
-
* 0: Success.< 0: Failure.
|
|
212
|
-
*/
|
|
213
|
-
abstract updateRemotePosition(uid: number, posInfo: RemoteVoicePositionInfo): number;
|
|
214
|
-
/**
|
|
215
|
-
* @ignore
|
|
216
|
-
*/
|
|
217
|
-
abstract updateRemotePositionEx(uid: number, posInfo: RemoteVoicePositionInfo, connection: RtcConnection): number;
|
|
218
|
-
/**
|
|
219
|
-
* Removes the spatial position of the specified remote user.
|
|
220
|
-
* After successfully calling this method, the local user no longer hears the specified remote user.After leaving the channel, to avoid wasting resources, you can also call this method to delete the spatial position of the specified remote user.
|
|
221
|
-
*
|
|
222
|
-
* @param uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
|
|
223
|
-
*
|
|
224
|
-
* @returns
|
|
225
|
-
* 0: Success.< 0: Failure.
|
|
226
|
-
*/
|
|
227
|
-
abstract removeRemotePosition(uid: number): number;
|
|
228
|
-
/**
|
|
229
|
-
* @ignore
|
|
230
|
-
*/
|
|
231
|
-
abstract removeRemotePositionEx(uid: number, connection: RtcConnection): number;
|
|
232
|
-
/**
|
|
233
|
-
* Removes the spatial positions of all remote users.
|
|
234
|
-
* After successfully calling this method, the local user no longer hears any remote users.After leaving the channel, to avoid wasting resources, you can also call this method to delete the spatial positions of all remote users.
|
|
235
|
-
*
|
|
236
|
-
* @returns
|
|
237
|
-
* 0: Success.< 0: Failure.
|
|
238
|
-
*/
|
|
239
|
-
abstract clearRemotePositions(): number;
|
|
240
|
-
/**
|
|
241
|
-
* @ignore
|
|
242
|
-
*/
|
|
243
|
-
abstract clearRemotePositionsEx(connection: RtcConnection): number;
|
|
244
|
-
/**
|
|
245
|
-
* @ignore
|
|
246
|
-
*/
|
|
247
|
-
abstract setRemoteAudioAttenuation(uid: number, attenuation: number, forceSet: boolean): number;
|
|
248
|
-
}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import './extension/IAudioDeviceManagerExtension';
|
|
2
|
-
import { AudioDeviceInfo } from './IAgoraRtcEngine';
|
|
3
|
-
/**
|
|
4
|
-
* The maximum length of the device ID.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum MaxDeviceIdLengthType {
|
|
7
|
-
/**
|
|
8
|
-
* The maximum length of the device ID is 512 bytes.
|
|
9
|
-
*/
|
|
10
|
-
MaxDeviceIdLength = 512
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Audio device management methods.
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class IAudioDeviceManager {
|
|
16
|
-
/**
|
|
17
|
-
* Enumerates the audio playback devices.
|
|
18
|
-
*
|
|
19
|
-
* @returns
|
|
20
|
-
* Success: Returns an AudioDeviceInfo array, which includes all the audio playback devices.Failure: An empty array.
|
|
21
|
-
*/
|
|
22
|
-
abstract enumeratePlaybackDevices(): AudioDeviceInfo[];
|
|
23
|
-
/**
|
|
24
|
-
* Enumerates the audio capture devices.
|
|
25
|
-
*
|
|
26
|
-
* @returns
|
|
27
|
-
* Success: An AudioDeviceInfo array, which includes all the audio capture devices.Failure: An empty array.
|
|
28
|
-
*/
|
|
29
|
-
abstract enumerateRecordingDevices(): AudioDeviceInfo[];
|
|
30
|
-
/**
|
|
31
|
-
* Sets the audio playback device.
|
|
32
|
-
*
|
|
33
|
-
* @param deviceId The ID of the specified audio playback device. You can get the device ID by calling enumeratePlaybackDevices . Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType .
|
|
34
|
-
*
|
|
35
|
-
* @returns
|
|
36
|
-
* 0: Success.< 0: Failure.
|
|
37
|
-
*/
|
|
38
|
-
abstract setPlaybackDevice(deviceId: string): number;
|
|
39
|
-
/**
|
|
40
|
-
* Retrieves the audio playback device associated with the device ID.
|
|
41
|
-
*
|
|
42
|
-
* @returns
|
|
43
|
-
* The current audio playback device.
|
|
44
|
-
*/
|
|
45
|
-
abstract getPlaybackDevice(): string;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves the audio playback device associated with the device ID.
|
|
48
|
-
*
|
|
49
|
-
* @returns
|
|
50
|
-
* An AudioDeviceInfo object, which contains the ID and device name of the audio devices.
|
|
51
|
-
*/
|
|
52
|
-
abstract getPlaybackDeviceInfo(): AudioDeviceInfo;
|
|
53
|
-
/**
|
|
54
|
-
* @ignore
|
|
55
|
-
*/
|
|
56
|
-
abstract setPlaybackDeviceVolume(volume: number): number;
|
|
57
|
-
/**
|
|
58
|
-
* @ignore
|
|
59
|
-
*/
|
|
60
|
-
abstract getPlaybackDeviceVolume(): number;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the audio recording device.
|
|
63
|
-
*
|
|
64
|
-
* @param deviceId The ID of the audio recording device. You can get the device ID by calling enumerateRecordingDevices . Plugging or unplugging the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType .
|
|
65
|
-
*
|
|
66
|
-
* @returns
|
|
67
|
-
* 0: Success.< 0: Failure.
|
|
68
|
-
*/
|
|
69
|
-
abstract setRecordingDevice(deviceId: string): number;
|
|
70
|
-
/**
|
|
71
|
-
* Gets the current audio recording device.
|
|
72
|
-
*
|
|
73
|
-
* @returns
|
|
74
|
-
* The current audio recording device.
|
|
75
|
-
*/
|
|
76
|
-
abstract getRecordingDevice(): string;
|
|
77
|
-
/**
|
|
78
|
-
* Retrieves the volume of the audio recording device.
|
|
79
|
-
*
|
|
80
|
-
* @returns
|
|
81
|
-
* An AudioDeviceInfo object, which includes the device ID and device name.
|
|
82
|
-
*/
|
|
83
|
-
abstract getRecordingDeviceInfo(): AudioDeviceInfo;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the volume of the audio recording device.
|
|
86
|
-
*
|
|
87
|
-
* @param volume The volume of the audio recording device. The value range is [0,255].
|
|
88
|
-
*
|
|
89
|
-
* @returns
|
|
90
|
-
* 0: Success.< 0: Failure.
|
|
91
|
-
*/
|
|
92
|
-
abstract setRecordingDeviceVolume(volume: number): number;
|
|
93
|
-
/**
|
|
94
|
-
* @ignore
|
|
95
|
-
*/
|
|
96
|
-
abstract getRecordingDeviceVolume(): number;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the loopback device.
|
|
99
|
-
* The SDK uses the current playback device as the loopback device by default. If you want to specify another audio device as the loopback device, call this method, and set deviceId to the loopback device you want to specify.This method applies to Windows only.The scenarios where this method is applicable are as follows:Use app A to play music through a Bluetooth headset; when using app B for a video conference, play through the speakers.If the loopback device is set as the Bluetooth headset, the SDK publishes the music in app A to the remote end.If the loopback device is set as the speaker, the SDK does not publish the music in app A to the remote end.If you set the loopback device as the Bluetooth headset, and then use a wired headset to play the music in app A, you need to call this method again, set the loopback device as the wired headset, and the SDK continues to publish the music in app A to remote end.
|
|
100
|
-
*
|
|
101
|
-
* @param deviceId Specifies the loopback device of the SDK. You can get the device ID by calling enumeratePlaybackDevices . Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType .
|
|
102
|
-
*
|
|
103
|
-
* @returns
|
|
104
|
-
* 0: Success.< 0: Failure.
|
|
105
|
-
*/
|
|
106
|
-
abstract setLoopbackDevice(deviceId: string): number;
|
|
107
|
-
/**
|
|
108
|
-
* Gets the current loopback device.
|
|
109
|
-
* This method applies to Windows only.
|
|
110
|
-
*
|
|
111
|
-
* @returns
|
|
112
|
-
* The ID of the current loopback device.
|
|
113
|
-
*/
|
|
114
|
-
abstract getLoopbackDevice(): string;
|
|
115
|
-
/**
|
|
116
|
-
* @ignore
|
|
117
|
-
*/
|
|
118
|
-
abstract setPlaybackDeviceMute(mute: boolean): number;
|
|
119
|
-
/**
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
abstract getPlaybackDeviceMute(): boolean;
|
|
123
|
-
/**
|
|
124
|
-
* @ignore
|
|
125
|
-
*/
|
|
126
|
-
abstract setRecordingDeviceMute(mute: boolean): number;
|
|
127
|
-
/**
|
|
128
|
-
* @ignore
|
|
129
|
-
*/
|
|
130
|
-
abstract getRecordingDeviceMute(): boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Starts the audio playback device test.
|
|
133
|
-
* This method tests whether the audio playback device works properly. Once a user starts the test, the SDK plays an audio file specified by the user. If the user can hear the audio, the playback device works properly.After calling this method, the SDK triggers the onAudioVolumeIndication callback every 100 ms, reporting uid = 1 and the volume information of the playback device.Ensure that you call this method before joining a channel.
|
|
134
|
-
*
|
|
135
|
-
* @param testAudioFilePath The path of the audio file. The data format is string in UTF-8.Supported file formats: wav, mp3, m4a, and aac.Supported file sample rates: 8000, 16000, 32000, 44100, and 48000 Hz.
|
|
136
|
-
*
|
|
137
|
-
* @returns
|
|
138
|
-
* 0: Success.< 0: Failure.
|
|
139
|
-
*/
|
|
140
|
-
abstract startPlaybackDeviceTest(testAudioFilePath: string): number;
|
|
141
|
-
/**
|
|
142
|
-
* Stops the audio playback device test.
|
|
143
|
-
* This method stops the audio playback device test. You must call this method to stop the test after calling the startPlaybackDeviceTest method.Ensure that you call this method before joining a channel.
|
|
144
|
-
*
|
|
145
|
-
* @returns
|
|
146
|
-
* 0: Success.< 0: Failure.
|
|
147
|
-
*/
|
|
148
|
-
abstract stopPlaybackDeviceTest(): number;
|
|
149
|
-
/**
|
|
150
|
-
* Starts the audio capture device test.
|
|
151
|
-
* This method tests whether the audio capture device works properly. After calling this method, the SDK triggers the onAudioVolumeIndication callback at the time interval set in this method, which reports uid = 0 and the volume information of the capturing device.Ensure that you call this method before joining a channel.
|
|
152
|
-
*
|
|
153
|
-
* @param indicationInterval The time interval (ms) at which the SDK triggers the onAudioVolumeIndication callback. Agora recommends a setting greater than 200 ms. This value must not be less than 10 ms; otherwise, you can not receive the onAudioVolumeIndication callback.
|
|
154
|
-
*
|
|
155
|
-
* @returns
|
|
156
|
-
* 0: Success.< 0: Failure.
|
|
157
|
-
*/
|
|
158
|
-
abstract startRecordingDeviceTest(indicationInterval: number): number;
|
|
159
|
-
/**
|
|
160
|
-
* Stops the audio capture device test.
|
|
161
|
-
* This method stops the audio capture device test. You must call this method to stop the test after calling the startRecordingDeviceTest method.Ensure that you call this method before joining a channel.
|
|
162
|
-
*
|
|
163
|
-
* @returns
|
|
164
|
-
* 0: Success.< 0: Failure.
|
|
165
|
-
*/
|
|
166
|
-
abstract stopRecordingDeviceTest(): number;
|
|
167
|
-
/**
|
|
168
|
-
* Starts an audio device loopback test.
|
|
169
|
-
* This method tests whether the local audio capture device and playback device are working properly. Once the test starts, the audio recording device records the local audio, and the audio playback device plays the captured audio. The SDK triggers two independent onAudioVolumeIndication callbacks at the time interval set in this method, which reports the volume information of the capture device (uid = 0) and the volume information of the playback device (uid = 1) respectively.Ensure that you call this method before joining a channel.This method tests local audio devices and does not report the network conditions.
|
|
170
|
-
*
|
|
171
|
-
* @param indicationInterval The time interval (ms) at which the SDK triggers the onAudioVolumeIndication callback. Agora recommends setting a value greater than 200 ms. This value must not be less than 10 ms; otherwise, you can not receive the onAudioVolumeIndication callback.
|
|
172
|
-
*
|
|
173
|
-
* @returns
|
|
174
|
-
* 0: Success.< 0: Failure.
|
|
175
|
-
*/
|
|
176
|
-
abstract startAudioDeviceLoopbackTest(indicationInterval: number): number;
|
|
177
|
-
/**
|
|
178
|
-
* Stops the audio device loopback test.
|
|
179
|
-
* Ensure that you call this method before joining a channel.Ensure that you call this method to stop the loopback test after calling the startAudioDeviceLoopbackTest method.
|
|
180
|
-
*
|
|
181
|
-
* @returns
|
|
182
|
-
* 0: Success.< 0: Failure.
|
|
183
|
-
*/
|
|
184
|
-
abstract stopAudioDeviceLoopbackTest(): number;
|
|
185
|
-
/**
|
|
186
|
-
* Sets the audio playback device used by the SDK to follow the system default audio playback device.
|
|
187
|
-
*
|
|
188
|
-
* @param enable Whether to follow the system default audio playback device:true: Follow. The SDK immediately switches the audio playback device when the system default audio playback device changes.false: Do not follow. The SDK switches the audio playback device to the system default audio playback device only when the currently used audio playback device is disconnected.
|
|
189
|
-
*
|
|
190
|
-
* @returns
|
|
191
|
-
* 0: Success.< 0: Failure.
|
|
192
|
-
*/
|
|
193
|
-
abstract followSystemPlaybackDevice(enable: boolean): number;
|
|
194
|
-
/**
|
|
195
|
-
* Sets the audio recording device used by the SDK to follow the system default audio recording device.
|
|
196
|
-
*
|
|
197
|
-
* @param enable Whether to follow the system default audio recording device:true: Follow. The SDK immediately switches the audio recording device when the system default audio recording device changes.false: Do not follow. The SDK switches the audio recording device to the system default audio recording device only when the currently used audio recording device is disconnected.
|
|
198
|
-
*
|
|
199
|
-
* @returns
|
|
200
|
-
* 0: Success.< 0: Failure.
|
|
201
|
-
*/
|
|
202
|
-
abstract followSystemRecordingDevice(enable: boolean): number;
|
|
203
|
-
/**
|
|
204
|
-
* Sets whether the loopback device follows the system default playback device.
|
|
205
|
-
* This method applies to Windows only.
|
|
206
|
-
*
|
|
207
|
-
* @param enable Whether to follow the system default audio playback device:true: Follow. When the default playback device of the system is changed, the SDK immediately switches to the loopback device.false: Do not follow. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.
|
|
208
|
-
*
|
|
209
|
-
* @returns
|
|
210
|
-
* 0: Success.< 0: Failure.
|
|
211
|
-
*/
|
|
212
|
-
abstract followSystemLoopbackDevice(enable: boolean): number;
|
|
213
|
-
/**
|
|
214
|
-
* Releases all the resources occupied by the IAudioDeviceManager object.
|
|
215
|
-
*/
|
|
216
|
-
abstract release(): void;
|
|
217
|
-
/**
|
|
218
|
-
* Gets the default audio playback device.
|
|
219
|
-
* This method is for Windows and macOS only.
|
|
220
|
-
*
|
|
221
|
-
* @returns
|
|
222
|
-
* The details about the default audio playback device. See AudioDeviceInfo .
|
|
223
|
-
*/
|
|
224
|
-
abstract getPlaybackDefaultDevice(): AudioDeviceInfo;
|
|
225
|
-
/**
|
|
226
|
-
* Gets the default audio capture device.
|
|
227
|
-
* This method is for Windows and macOS only.
|
|
228
|
-
*
|
|
229
|
-
* @returns
|
|
230
|
-
* The details about the default audio capture device. See AudioDeviceInfo .
|
|
231
|
-
*/
|
|
232
|
-
abstract getRecordingDefaultDevice(): AudioDeviceInfo;
|
|
233
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IAudioFrameObserver, IVideoEncodedFrameObserver, IVideoFrameObserver } from '../AgoraMediaBase';
|
|
2
|
-
import { EmitterSubscription } from '../internal/emitter/EventEmitter';
|
|
3
|
-
export declare type IMediaEngineEvent = IAudioFrameObserver & IVideoFrameObserver & IVideoEncodedFrameObserver;
|
|
4
|
-
declare module '../IAgoraMediaEngine' {
|
|
5
|
-
interface IMediaEngine {
|
|
6
|
-
_addListenerPreCheck<EventType extends keyof IMediaEngineEvent>(eventType: EventType): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Adds one IMediaEngineEvent listener.
|
|
9
|
-
* After calling this method, you can listen for the corresponding events in the IMediaEngine object and obtain data through IMediaEngineEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
10
|
-
*
|
|
11
|
-
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
12
|
-
*
|
|
13
|
-
* @param listener The callback function for eventType. Take adding a listener for onPlaybackAudioFrameBeforeMixing as an example: // Create an onPlaybackAudioFrameBeforeMixing object
|
|
14
|
-
* const onPlaybackAudioFrameBeforeMixing = (channelId: string, uid: number, audioFrame: AudioFrame) => {};
|
|
15
|
-
* // Add one onPlaybackAudioFrameBeforeMixing listener
|
|
16
|
-
* engine.addListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
17
|
-
*/
|
|
18
|
-
addListener<EventType extends keyof IMediaEngineEvent>(eventType: EventType, listener: IMediaEngineEvent[EventType]): EmitterSubscription;
|
|
19
|
-
/**
|
|
20
|
-
* Removes the specified IMediaEngineEvent listener.
|
|
21
|
-
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
22
|
-
*
|
|
23
|
-
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
24
|
-
*
|
|
25
|
-
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onJoinChannelSuccess as an example: // Create an onPlaybackAudioFrameBeforeMixing object
|
|
26
|
-
* const onPlaybackAudioFrameBeforeMixing = (channelId: string, uid: number, audioFrame: AudioFrame) => {};
|
|
27
|
-
* // Add one onPlaybackAudioFrameBeforeMixing listener
|
|
28
|
-
* engine.addListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
29
|
-
* // Remove the onPlaybackAudioFrameBeforeMixing listener
|
|
30
|
-
* engine.removeListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
31
|
-
*/
|
|
32
|
-
removeListener<EventType extends keyof IMediaEngineEvent>(eventType: EventType, listener: IMediaEngineEvent[EventType]): void;
|
|
33
|
-
/**
|
|
34
|
-
* Removes all listeners for the specified event.
|
|
35
|
-
*
|
|
36
|
-
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
37
|
-
*/
|
|
38
|
-
removeAllListeners<EventType extends keyof IMediaEngineEvent>(eventType?: EventType): void;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IMediaPlayerSourceObserver } from '../IAgoraMediaPlayerSource';
|
|
2
|
-
import { IMediaPlayerAudioFrameObserver, IMediaPlayerVideoFrameObserver } from '../IAgoraMediaPlayer';
|
|
3
|
-
import { IAudioSpectrumObserver } from '../AgoraMediaBase';
|
|
4
|
-
import { EmitterSubscription } from '../internal/emitter/EventEmitter';
|
|
5
|
-
export declare type IMediaPlayerEvent = IMediaPlayerSourceObserver & IMediaPlayerAudioFrameObserver & IMediaPlayerVideoFrameObserver & IAudioSpectrumObserver;
|
|
6
|
-
declare module '../IAgoraMediaPlayer' {
|
|
7
|
-
interface IMediaPlayer {
|
|
8
|
-
_addListenerPreCheck<EventType extends keyof IMediaPlayerEvent>(eventType: EventType): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Adds one IMediaPlayerEvent listener.
|
|
11
|
-
* After calling this method, you can listen for the corresponding events in the IMediaPlayer object and obtain data through IMediaPlayerEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
12
|
-
*
|
|
13
|
-
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
14
|
-
*
|
|
15
|
-
* @param listener The callback function for eventType. Take adding a listener for onPlayerSourceStateChanged as an example: // Create an onPlayerSourceStateChanged object
|
|
16
|
-
* const onPlayerSourceStateChanged = (connection: RtcConnection, elapsed: number) => {};
|
|
17
|
-
* // Add one onPlayerSourceStateChanged listener
|
|
18
|
-
* engine.addListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
19
|
-
*/
|
|
20
|
-
addListener<EventType extends keyof IMediaPlayerEvent>(eventType: EventType, listener: IMediaPlayerEvent[EventType]): EmitterSubscription;
|
|
21
|
-
/**
|
|
22
|
-
* Removes the specified IMediaPlayerEvent listener.
|
|
23
|
-
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
24
|
-
*
|
|
25
|
-
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
26
|
-
*
|
|
27
|
-
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onPlayerSourceStateChanged as an example: // Create an onPlayerSourceStateChanged object
|
|
28
|
-
* const onPlayerSourceStateChanged = (state: MediaPlayerState, ec: MediaPlayerError) => {};
|
|
29
|
-
* // Add one onPlayerSourceStateChanged listener
|
|
30
|
-
* engine.addListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
31
|
-
* // Remove the onPlayerSourceStateChanged listener
|
|
32
|
-
* engine.removeListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
33
|
-
*/
|
|
34
|
-
removeListener<EventType extends keyof IMediaPlayerEvent>(eventType: EventType, listener: IMediaPlayerEvent[EventType]): void;
|
|
35
|
-
/**
|
|
36
|
-
* Removes all listeners for the specified event.
|
|
37
|
-
*
|
|
38
|
-
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
39
|
-
*/
|
|
40
|
-
removeAllListeners<EventType extends keyof IMediaPlayerEvent>(eventType?: EventType): void;
|
|
41
|
-
/**
|
|
42
|
-
* @ignore
|
|
43
|
-
*/
|
|
44
|
-
release(): void;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IMediaRecorderObserver } from '../AgoraMediaBase';
|
|
2
|
-
import { EmitterSubscription } from '../internal/emitter/EventEmitter';
|
|
3
|
-
export declare type IMediaRecorderEvent = IMediaRecorderObserver;
|
|
4
|
-
declare module '../IAgoraMediaRecorder' {
|
|
5
|
-
interface IMediaRecorder {
|
|
6
|
-
_addListenerPreCheck<EventType extends keyof IMediaRecorderEvent>(eventType: EventType): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Adds one IMediaRecorderEvent listener.
|
|
9
|
-
* After calling this method, you can listen for the corresponding events in the IMediaRecorder object and obtain data through IMediaRecorderEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
10
|
-
*
|
|
11
|
-
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
12
|
-
*
|
|
13
|
-
* @param listener The callback function for eventType. Take adding a listener for onRecorderStateChanged as an example: // Create an onRecorderStateChanged object
|
|
14
|
-
* const onRecorderStateChanged = (state: RecorderState, error: RecorderErrorCode) => {};
|
|
15
|
-
* // Add one onRecorderStateChanged listener
|
|
16
|
-
* engine.addListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
17
|
-
*/
|
|
18
|
-
addListener<EventType extends keyof IMediaRecorderEvent>(eventType: EventType, listener: IMediaRecorderEvent[EventType]): EmitterSubscription;
|
|
19
|
-
/**
|
|
20
|
-
* Removes the specified IMediaRecorderEvent listener.
|
|
21
|
-
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
22
|
-
*
|
|
23
|
-
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
24
|
-
*
|
|
25
|
-
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onRecorderStateChanged as an example: // Create an onRecorderStateChanged object
|
|
26
|
-
* const onRecorderStateChanged = (state: RecorderState, error: RecorderErrorCode) => {};
|
|
27
|
-
* // Add one onRecorderStateChanged listener
|
|
28
|
-
* engine.addListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
29
|
-
* // Remove the onRecorderStateChanged listener
|
|
30
|
-
* engine.removeListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
31
|
-
*/
|
|
32
|
-
removeListener<EventType extends keyof IMediaRecorderEvent>(eventType: EventType, listener: IMediaRecorderEvent[EventType]): void;
|
|
33
|
-
/**
|
|
34
|
-
* Removes all listeners for the specified event.
|
|
35
|
-
*
|
|
36
|
-
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
37
|
-
*/
|
|
38
|
-
removeAllListeners<EventType extends keyof IMediaRecorderEvent>(eventType?: EventType): void;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IMusicContentCenterEventHandler } from '../IAgoraMusicContentCenter';
|
|
2
|
-
import { EmitterSubscription } from '../internal/emitter/EventEmitter';
|
|
3
|
-
export declare type IMusicContentCenterEvent = IMusicContentCenterEventHandler;
|
|
4
|
-
declare module '../IAgoraMusicContentCenter' {
|
|
5
|
-
interface IMusicContentCenter {
|
|
6
|
-
_addListenerPreCheck<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
addListener<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType, listener: IMusicContentCenterEvent[EventType]): EmitterSubscription;
|
|
11
|
-
/**
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
|
-
removeListener<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType, listener: IMusicContentCenterEvent[EventType]): void;
|
|
15
|
-
/**
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
removeAllListeners<EventType extends keyof IMusicContentCenterEvent>(eventType?: EventType): void;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|