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,233 +1,255 @@
|
|
|
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
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* @
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
* @
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* @
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
* @
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* @
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
*
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* @
|
|
210
|
-
*
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
+
* You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is speaker 1, you call this method to set the audio route as speaker 2 before joinging a channel and then start a device test, the SDK conducts device test on speaker 2. After the device test is completed and you join a channel, the SDK still uses speaker 1, the default audio route.
|
|
33
|
+
*
|
|
34
|
+
* @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 .
|
|
35
|
+
*
|
|
36
|
+
* @returns
|
|
37
|
+
* 0: Success.< 0: Failure.
|
|
38
|
+
*/
|
|
39
|
+
abstract setPlaybackDevice(deviceId: string): number;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the audio playback device associated with the device ID.
|
|
42
|
+
*
|
|
43
|
+
* @returns
|
|
44
|
+
* The current audio playback device.
|
|
45
|
+
*/
|
|
46
|
+
abstract getPlaybackDevice(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the audio playback device associated with the device ID.
|
|
49
|
+
*
|
|
50
|
+
* @returns
|
|
51
|
+
* An AudioDeviceInfo object, which contains the ID and device name of the audio devices.
|
|
52
|
+
*/
|
|
53
|
+
abstract getPlaybackDeviceInfo(): AudioDeviceInfo;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the volume of the in-ear monitor.
|
|
56
|
+
* Users must use wired earphones to hear their own voices.You can call this method either before or after joining a channel.
|
|
57
|
+
*
|
|
58
|
+
* @param volume The volume of the in-ear monitor. The value ranges between 0 and 100. The default value is 100.
|
|
59
|
+
*
|
|
60
|
+
* @returns
|
|
61
|
+
* < 0: Failure.
|
|
62
|
+
*/
|
|
63
|
+
abstract setPlaybackDeviceVolume(volume: number): number;
|
|
64
|
+
/**
|
|
65
|
+
* @ignore
|
|
66
|
+
*/
|
|
67
|
+
abstract getPlaybackDeviceVolume(): number;
|
|
68
|
+
/**
|
|
69
|
+
* Sets the audio capture device.
|
|
70
|
+
* You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as bluetooth earphones before joinging a channel and then start a device test, the SDK conducts device test on the bluetooth earphones. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing.
|
|
71
|
+
*
|
|
72
|
+
* @param deviceId The ID of the audio capture device. You can get the Device ID by calling enumerateRecordingDevices . Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType .
|
|
73
|
+
*
|
|
74
|
+
* @returns
|
|
75
|
+
* 0: Success.< 0: Failure.
|
|
76
|
+
*/
|
|
77
|
+
abstract setRecordingDevice(deviceId: string): number;
|
|
78
|
+
/**
|
|
79
|
+
* Gets the current audio recording device.
|
|
80
|
+
*
|
|
81
|
+
* @returns
|
|
82
|
+
* The current audio recording device.
|
|
83
|
+
*/
|
|
84
|
+
abstract getRecordingDevice(): string;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves the volume of the audio recording device.
|
|
87
|
+
*
|
|
88
|
+
* @returns
|
|
89
|
+
* An AudioDeviceInfo object, which includes the device ID and device name.
|
|
90
|
+
*/
|
|
91
|
+
abstract getRecordingDeviceInfo(): AudioDeviceInfo;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the volume of the audio capture device.
|
|
94
|
+
* This method applies to Windows only.
|
|
95
|
+
*
|
|
96
|
+
* @param volume The volume of the audio recording device. The value ranges between 0 (lowest volume) and 255 (highest volume). 0 means no sound, 255 means maximum volume.
|
|
97
|
+
*
|
|
98
|
+
* @returns
|
|
99
|
+
* 0: Success.< 0: Failure.
|
|
100
|
+
*/
|
|
101
|
+
abstract setRecordingDeviceVolume(volume: number): number;
|
|
102
|
+
/**
|
|
103
|
+
* @ignore
|
|
104
|
+
*/
|
|
105
|
+
abstract getRecordingDeviceVolume(): number;
|
|
106
|
+
/**
|
|
107
|
+
* Sets the loopback device.
|
|
108
|
+
* 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.You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as a sound card before joinging a channel and then start a device test, the SDK conducts device test on the sound card. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing.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.
|
|
109
|
+
*
|
|
110
|
+
* @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 .
|
|
111
|
+
*
|
|
112
|
+
* @returns
|
|
113
|
+
* 0: Success.< 0: Failure.
|
|
114
|
+
*/
|
|
115
|
+
abstract setLoopbackDevice(deviceId: string): number;
|
|
116
|
+
/**
|
|
117
|
+
* Gets the current loopback device.
|
|
118
|
+
* This method applies to Windows only.
|
|
119
|
+
*
|
|
120
|
+
* @returns
|
|
121
|
+
* The ID of the current loopback device.
|
|
122
|
+
*/
|
|
123
|
+
abstract getLoopbackDevice(): string;
|
|
124
|
+
/**
|
|
125
|
+
* Stops or resumes subscribing to the audio streams of all remote users.
|
|
126
|
+
* 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 .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.
|
|
127
|
+
*
|
|
128
|
+
* @param mute Whether to stop subscribing to the audio streams of all remote users:true: Stop subscribing to the audio streams of all remote users.false: Subscribe to the audio streams of all remote users.
|
|
129
|
+
*
|
|
130
|
+
* @returns
|
|
131
|
+
* 0: Success.< 0: Failure.
|
|
132
|
+
*/
|
|
133
|
+
abstract setPlaybackDeviceMute(mute: boolean): number;
|
|
134
|
+
/**
|
|
135
|
+
* @ignore
|
|
136
|
+
*/
|
|
137
|
+
abstract getPlaybackDeviceMute(): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Stops or resumes subscribing to the audio streams of all remote users.
|
|
140
|
+
* 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 .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.
|
|
141
|
+
*
|
|
142
|
+
* @param mute Whether to stop subscribing to the audio streams of all remote users:true: Stop subscribing to the audio streams of all remote users.false: Subscribe to the audio streams of all remote users.
|
|
143
|
+
*
|
|
144
|
+
* @returns
|
|
145
|
+
* 0: Success.< 0: Failure.
|
|
146
|
+
*/
|
|
147
|
+
abstract setRecordingDeviceMute(mute: boolean): number;
|
|
148
|
+
/**
|
|
149
|
+
* @ignore
|
|
150
|
+
*/
|
|
151
|
+
abstract getRecordingDeviceMute(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Starts the audio playback device test.
|
|
154
|
+
* 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.
|
|
155
|
+
*
|
|
156
|
+
* @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.
|
|
157
|
+
*
|
|
158
|
+
* @returns
|
|
159
|
+
* 0: Success.< 0: Failure.
|
|
160
|
+
*/
|
|
161
|
+
abstract startPlaybackDeviceTest(testAudioFilePath: string): number;
|
|
162
|
+
/**
|
|
163
|
+
* Stops the audio playback device test.
|
|
164
|
+
* 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.
|
|
165
|
+
*
|
|
166
|
+
* @returns
|
|
167
|
+
* 0: Success.< 0: Failure.
|
|
168
|
+
*/
|
|
169
|
+
abstract stopPlaybackDeviceTest(): number;
|
|
170
|
+
/**
|
|
171
|
+
* Starts the audio capture device test.
|
|
172
|
+
* 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.
|
|
173
|
+
*
|
|
174
|
+
* @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.
|
|
175
|
+
*
|
|
176
|
+
* @returns
|
|
177
|
+
* 0: Success.< 0: Failure.
|
|
178
|
+
*/
|
|
179
|
+
abstract startRecordingDeviceTest(indicationInterval: number): number;
|
|
180
|
+
/**
|
|
181
|
+
* Stops the audio capture device test.
|
|
182
|
+
* 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.
|
|
183
|
+
*
|
|
184
|
+
* @returns
|
|
185
|
+
* 0: Success.< 0: Failure.
|
|
186
|
+
*/
|
|
187
|
+
abstract stopRecordingDeviceTest(): number;
|
|
188
|
+
/**
|
|
189
|
+
* Starts an audio device loopback test.
|
|
190
|
+
* This method tests whether the local audio capture device and playback device are working properly. After starting the test, the audio capture 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.
|
|
191
|
+
*
|
|
192
|
+
* @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.
|
|
193
|
+
*
|
|
194
|
+
* @returns
|
|
195
|
+
* 0: Success.< 0: Failure.
|
|
196
|
+
*/
|
|
197
|
+
abstract startAudioDeviceLoopbackTest(indicationInterval: number): number;
|
|
198
|
+
/**
|
|
199
|
+
* Stops the audio device loopback test.
|
|
200
|
+
* 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.
|
|
201
|
+
*
|
|
202
|
+
* @returns
|
|
203
|
+
* 0: Success.< 0: Failure.
|
|
204
|
+
*/
|
|
205
|
+
abstract stopAudioDeviceLoopbackTest(): number;
|
|
206
|
+
/**
|
|
207
|
+
* Sets the audio playback device used by the SDK to follow the system default audio playback device.
|
|
208
|
+
*
|
|
209
|
+
* @param enable Whether to follow the system default audio playback device:true: Follow the system default audio playback device. The SDK immediately switches the audio playback device when the system default audio playback device changes.false: Do not follow the system default audio playback device. The SDK switches the audio playback device to the system default audio playback device only when the currently used audio playback device is disconnected.
|
|
210
|
+
*
|
|
211
|
+
* @returns
|
|
212
|
+
* 0: Success.< 0: Failure.
|
|
213
|
+
*/
|
|
214
|
+
abstract followSystemPlaybackDevice(enable: boolean): number;
|
|
215
|
+
/**
|
|
216
|
+
* Sets the audio recording device used by the SDK to follow the system default audio recording device.
|
|
217
|
+
*
|
|
218
|
+
* @param enable Whether to follow the system default audio recording device:true: Follow the system default audio playback device. The SDK immediately switches the audio recording device when the system default audio recording device changes.false: Do not follow the system default audio playback device. The SDK switches the audio recording device to the system default audio recording device only when the currently used audio recording device is disconnected.
|
|
219
|
+
*
|
|
220
|
+
* @returns
|
|
221
|
+
* 0: Success.< 0: Failure.
|
|
222
|
+
*/
|
|
223
|
+
abstract followSystemRecordingDevice(enable: boolean): number;
|
|
224
|
+
/**
|
|
225
|
+
* Sets whether the loopback device follows the system default playback device.
|
|
226
|
+
* This method applies to Windows only.
|
|
227
|
+
*
|
|
228
|
+
* @param enable Whether to follow the system default audio playback device:true: Follow the system default audio playback device. When the default playback device of the system is changed, the SDK immediately switches to the loopback device.false: Do not follow the system default audio playback device. The SDK switches the audio loopback device to the system default audio playback device only when the current audio playback device is disconnected.
|
|
229
|
+
*
|
|
230
|
+
* @returns
|
|
231
|
+
* 0: Success.< 0: Failure.
|
|
232
|
+
*/
|
|
233
|
+
abstract followSystemLoopbackDevice(enable: boolean): number;
|
|
234
|
+
/**
|
|
235
|
+
* Releases all the resources occupied by the IAudioDeviceManager object.
|
|
236
|
+
*/
|
|
237
|
+
abstract release(): void;
|
|
238
|
+
/**
|
|
239
|
+
* Gets the default audio playback device.
|
|
240
|
+
* This method is for Windows and macOS only.
|
|
241
|
+
*
|
|
242
|
+
* @returns
|
|
243
|
+
* The details about the default audio playback device. See AudioDeviceInfo .
|
|
244
|
+
*/
|
|
245
|
+
abstract getPlaybackDefaultDevice(): AudioDeviceInfo;
|
|
246
|
+
/**
|
|
247
|
+
* Gets the default audio capture device.
|
|
248
|
+
* This method is for Windows and macOS only.
|
|
249
|
+
*
|
|
250
|
+
* @returns
|
|
251
|
+
* The details about the default audio capture device. See AudioDeviceInfo .
|
|
252
|
+
*/
|
|
253
|
+
abstract getRecordingDefaultDevice(): AudioDeviceInfo;
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=IAudioDeviceManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAudioDeviceManager.d.ts","sourceRoot":"","sources":["../../ts/Private/IAudioDeviceManager.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,iBAAiB,MAAM;CACxB;AAED;;GAEG;AACH,8BAAsB,mBAAmB;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,wBAAwB,IAAI,eAAe,EAAE;IAEtD;;;;;OAKG;IACH,QAAQ,CAAC,yBAAyB,IAAI,eAAe,EAAE;IAEvD;;;;;;;;OAQG;IACH,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAEpD;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,IAAI,MAAM;IAEpC;;;;;OAKG;IACH,QAAQ,CAAC,qBAAqB,IAAI,eAAe;IAEjD;;;;;;;;OAQG;IACH,QAAQ,CAAC,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAExD;;OAEG;IACH,QAAQ,CAAC,uBAAuB,IAAI,MAAM;IAE1C;;;;;;;;OAQG;IACH,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAErD;;;;;OAKG;IACH,QAAQ,CAAC,kBAAkB,IAAI,MAAM;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,sBAAsB,IAAI,eAAe;IAElD;;;;;;;;OAQG;IACH,QAAQ,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAEzD;;OAEG;IACH,QAAQ,CAAC,wBAAwB,IAAI,MAAM;IAE3C;;;;;;;;OAQG;IACH,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAEpD;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,IAAI,MAAM;IAEpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;IAErD;;OAEG;IACH,QAAQ,CAAC,qBAAqB,IAAI,OAAO;IAEzC;;;;;;;;OAQG;IACH,QAAQ,CAAC,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;IAEtD;;OAEG;IACH,QAAQ,CAAC,sBAAsB,IAAI,OAAO;IAE1C;;;;;;;;OAQG;IACH,QAAQ,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM;IAEnE;;;;;;OAMG;IACH,QAAQ,CAAC,sBAAsB,IAAI,MAAM;IAEzC;;;;;;;;OAQG;IACH,QAAQ,CAAC,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM;IAErE;;;;;;OAMG;IACH,QAAQ,CAAC,uBAAuB,IAAI,MAAM;IAE1C;;;;;;;;OAQG;IACH,QAAQ,CAAC,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM;IAEzE;;;;;;OAMG;IACH,QAAQ,CAAC,2BAA2B,IAAI,MAAM;IAE9C;;;;;;;OAOG;IACH,QAAQ,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE5D;;;;;;;OAOG;IACH,QAAQ,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE7D;;;;;;;;OAQG;IACH,QAAQ,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAE5D;;OAEG;IACH,QAAQ,CAAC,OAAO,IAAI,IAAI;IAExB;;;;;;OAMG;IACH,QAAQ,CAAC,wBAAwB,IAAI,eAAe;IAEpD;;;;;;OAMG;IACH,QAAQ,CAAC,yBAAyB,IAAI,eAAe;CACtD"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=AgoraBaseExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgoraBaseExtension.d.ts","sourceRoot":"","sources":["../../../ts/Private/extension/AgoraBaseExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=AgoraMediaBaseExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgoraMediaBaseExtension.d.ts","sourceRoot":"","sources":["../../../ts/Private/extension/AgoraMediaBaseExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=AgoraMediaPlayerTypesExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgoraMediaPlayerTypesExtension.d.ts","sourceRoot":"","sources":["../../../ts/Private/extension/AgoraMediaPlayerTypesExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=IAgoraLogExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAgoraLogExtension.d.ts","sourceRoot":"","sources":["../../../ts/Private/extension/IAgoraLogExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1,40 +1,41 @@
|
|
|
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
|
+
import { IAudioFrameObserver, IVideoEncodedFrameObserver, IVideoFrameObserver } from '../AgoraMediaBase';
|
|
2
|
+
import type { 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
|
+
}
|
|
41
|
+
//# sourceMappingURL=IAgoraMediaEngineExtension.d.ts.map
|