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,18 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IRtcEngineEx = exports.RtcConnection = void 0;
|
|
4
|
-
require("./extension/IAgoraRtcEngineExExtension");
|
|
5
|
-
const IAgoraRtcEngine_1 = require("./IAgoraRtcEngine");
|
|
6
|
-
/**
|
|
7
|
-
* Contains connection information.
|
|
8
|
-
*/
|
|
9
|
-
class RtcConnection {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IRtcEngineEx = exports.RtcConnection = void 0;
|
|
4
|
+
require("./extension/IAgoraRtcEngineExExtension");
|
|
5
|
+
const IAgoraRtcEngine_1 = require("./IAgoraRtcEngine");
|
|
6
|
+
/**
|
|
7
|
+
* Contains connection information.
|
|
8
|
+
*/
|
|
9
|
+
class RtcConnection {
|
|
10
|
+
/**
|
|
11
|
+
* The channel name.
|
|
12
|
+
*/
|
|
13
|
+
channelId;
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the local user.
|
|
16
|
+
*/
|
|
17
|
+
localUid;
|
|
18
|
+
}
|
|
19
|
+
exports.RtcConnection = RtcConnection;
|
|
20
|
+
/**
|
|
21
|
+
* This interface class contains multi-channel methods.
|
|
22
|
+
* Inherited from IRtcEngine .
|
|
23
|
+
*/
|
|
24
|
+
class IRtcEngineEx extends IAgoraRtcEngine_1.IRtcEngine {
|
|
25
|
+
}
|
|
26
|
+
exports.IRtcEngineEx = IRtcEngineEx;
|
|
@@ -1,30 +1,74 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ILocalSpatialAudioEngine = exports.IBaseSpatialAudioEngine = exports.SpatialAudioZone = exports.RemoteVoicePositionInfo = void 0;
|
|
4
|
-
require("./extension/IAgoraSpatialAudioExtension");
|
|
5
|
-
/**
|
|
6
|
-
* The spatial position of the remote user or the media player.
|
|
7
|
-
*/
|
|
8
|
-
class RemoteVoicePositionInfo {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ILocalSpatialAudioEngine = exports.IBaseSpatialAudioEngine = exports.SpatialAudioZone = exports.RemoteVoicePositionInfo = void 0;
|
|
4
|
+
require("./extension/IAgoraSpatialAudioExtension");
|
|
5
|
+
/**
|
|
6
|
+
* The spatial position of the remote user or the media player.
|
|
7
|
+
*/
|
|
8
|
+
class RemoteVoicePositionInfo {
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
position;
|
|
13
|
+
/**
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
forward;
|
|
17
|
+
}
|
|
18
|
+
exports.RemoteVoicePositionInfo = RemoteVoicePositionInfo;
|
|
19
|
+
/**
|
|
20
|
+
* Sound insulation area settings.
|
|
21
|
+
*/
|
|
22
|
+
class SpatialAudioZone {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the sound insulation area.
|
|
25
|
+
*/
|
|
26
|
+
zoneSetId;
|
|
27
|
+
/**
|
|
28
|
+
* 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.
|
|
29
|
+
*/
|
|
30
|
+
position;
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*/
|
|
34
|
+
forward;
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
*/
|
|
38
|
+
right;
|
|
39
|
+
/**
|
|
40
|
+
* 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.
|
|
41
|
+
*/
|
|
42
|
+
up;
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
*/
|
|
46
|
+
forwardLength;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
rightLength;
|
|
51
|
+
/**
|
|
52
|
+
* 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.
|
|
53
|
+
*/
|
|
54
|
+
upLength;
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
*/
|
|
58
|
+
audioAttenuation;
|
|
59
|
+
}
|
|
60
|
+
exports.SpatialAudioZone = SpatialAudioZone;
|
|
61
|
+
/**
|
|
62
|
+
* This class contains some of the APIs in the ILocalSpatialAudioEngine class.
|
|
63
|
+
* The ILocalSpatialAudioEngine class inherits from IBaseSpatialAudioEngine.
|
|
64
|
+
*/
|
|
65
|
+
class IBaseSpatialAudioEngine {
|
|
66
|
+
}
|
|
67
|
+
exports.IBaseSpatialAudioEngine = IBaseSpatialAudioEngine;
|
|
68
|
+
/**
|
|
69
|
+
* This class calculates user positions through the SDK to implement the spatial audio effect.
|
|
70
|
+
* This class inherits from IBaseSpatialAudioEngine . Before calling other APIs in this class, you need to call the initialize method to initialize this class.
|
|
71
|
+
*/
|
|
72
|
+
class ILocalSpatialAudioEngine extends IBaseSpatialAudioEngine {
|
|
73
|
+
}
|
|
74
|
+
exports.ILocalSpatialAudioEngine = ILocalSpatialAudioEngine;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IAudioDeviceManager = exports.MaxDeviceIdLengthType = void 0;
|
|
4
|
-
require("./extension/IAudioDeviceManagerExtension");
|
|
5
|
-
/**
|
|
6
|
-
* The maximum length of the device ID.
|
|
7
|
-
*/
|
|
8
|
-
var MaxDeviceIdLengthType;
|
|
9
|
-
(function (MaxDeviceIdLengthType) {
|
|
10
|
-
/**
|
|
11
|
-
* The maximum length of the device ID is 512 bytes.
|
|
12
|
-
*/
|
|
13
|
-
MaxDeviceIdLengthType[MaxDeviceIdLengthType["MaxDeviceIdLength"] = 512] = "MaxDeviceIdLength";
|
|
14
|
-
})(MaxDeviceIdLengthType = exports.MaxDeviceIdLengthType || (exports.MaxDeviceIdLengthType = {}));
|
|
15
|
-
/**
|
|
16
|
-
* Audio device management methods.
|
|
17
|
-
*/
|
|
18
|
-
class IAudioDeviceManager {
|
|
19
|
-
}
|
|
20
|
-
exports.IAudioDeviceManager = IAudioDeviceManager;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAudioDeviceManager = exports.MaxDeviceIdLengthType = void 0;
|
|
4
|
+
require("./extension/IAudioDeviceManagerExtension");
|
|
5
|
+
/**
|
|
6
|
+
* The maximum length of the device ID.
|
|
7
|
+
*/
|
|
8
|
+
var MaxDeviceIdLengthType;
|
|
9
|
+
(function (MaxDeviceIdLengthType) {
|
|
10
|
+
/**
|
|
11
|
+
* The maximum length of the device ID is 512 bytes.
|
|
12
|
+
*/
|
|
13
|
+
MaxDeviceIdLengthType[MaxDeviceIdLengthType["MaxDeviceIdLength"] = 512] = "MaxDeviceIdLength";
|
|
14
|
+
})(MaxDeviceIdLengthType = exports.MaxDeviceIdLengthType || (exports.MaxDeviceIdLengthType = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Audio device management methods.
|
|
17
|
+
*/
|
|
18
|
+
class IAudioDeviceManager {
|
|
19
|
+
}
|
|
20
|
+
exports.IAudioDeviceManager = IAudioDeviceManager;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.processIAudioEncodedFrameObserver = void 0;
|
|
4
|
-
function processIAudioEncodedFrameObserver(handler, event, jsonParams) {
|
|
5
|
-
switch (event) {
|
|
6
|
-
case '
|
|
7
|
-
if (handler.onRecordAudioEncodedFrame !== undefined) {
|
|
8
|
-
handler.onRecordAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
9
|
-
}
|
|
10
|
-
break;
|
|
11
|
-
case '
|
|
12
|
-
if (handler.onPlaybackAudioEncodedFrame !== undefined) {
|
|
13
|
-
handler.onPlaybackAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
14
|
-
}
|
|
15
|
-
break;
|
|
16
|
-
case '
|
|
17
|
-
if (handler.onMixedAudioEncodedFrame !== undefined) {
|
|
18
|
-
handler.onMixedAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
19
|
-
}
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.processIAudioEncodedFrameObserver = processIAudioEncodedFrameObserver;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processIAudioEncodedFrameObserver = void 0;
|
|
4
|
+
function processIAudioEncodedFrameObserver(handler, event, jsonParams) {
|
|
5
|
+
switch (event) {
|
|
6
|
+
case 'onRecordAudioEncodedFrame':
|
|
7
|
+
if (handler.onRecordAudioEncodedFrame !== undefined) {
|
|
8
|
+
handler.onRecordAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
9
|
+
}
|
|
10
|
+
break;
|
|
11
|
+
case 'onPlaybackAudioEncodedFrame':
|
|
12
|
+
if (handler.onPlaybackAudioEncodedFrame !== undefined) {
|
|
13
|
+
handler.onPlaybackAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
14
|
+
}
|
|
15
|
+
break;
|
|
16
|
+
case 'onMixedAudioEncodedFrame':
|
|
17
|
+
if (handler.onMixedAudioEncodedFrame !== undefined) {
|
|
18
|
+
handler.onMixedAudioEncodedFrame(jsonParams.frameBuffer, jsonParams.length, jsonParams.audioEncodedFrameInfo);
|
|
19
|
+
}
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.processIAudioEncodedFrameObserver = processIAudioEncodedFrameObserver;
|
|
@@ -1,138 +1,118 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.processIMediaRecorderObserver = exports.processIVideoFrameObserver = exports.processIVideoEncodedFrameObserver = exports.processIAudioSpectrumObserver = exports.processIAudioFrameObserver = exports.processIAudioFrameObserverBase = void 0;
|
|
4
|
-
function
|
|
5
|
-
switch (event) {
|
|
6
|
-
case '
|
|
7
|
-
if (handler.
|
|
8
|
-
handler.
|
|
9
|
-
}
|
|
10
|
-
break;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
case '
|
|
17
|
-
if (handler.
|
|
18
|
-
handler.
|
|
19
|
-
}
|
|
20
|
-
break;
|
|
21
|
-
case '
|
|
22
|
-
if (handler.
|
|
23
|
-
handler.
|
|
24
|
-
}
|
|
25
|
-
break;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
case '
|
|
32
|
-
if (handler.
|
|
33
|
-
handler.
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.
|
|
39
|
-
function
|
|
40
|
-
switch (event) {
|
|
41
|
-
case '
|
|
42
|
-
if (handler.
|
|
43
|
-
handler.
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
case '
|
|
57
|
-
if (handler.
|
|
58
|
-
handler.
|
|
59
|
-
}
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.
|
|
64
|
-
function
|
|
65
|
-
switch (event) {
|
|
66
|
-
case '
|
|
67
|
-
if (handler.
|
|
68
|
-
handler.
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
case '
|
|
77
|
-
if (handler.
|
|
78
|
-
handler.
|
|
79
|
-
}
|
|
80
|
-
break;
|
|
81
|
-
case '
|
|
82
|
-
if (handler.
|
|
83
|
-
handler.
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
case '
|
|
87
|
-
if (handler.
|
|
88
|
-
handler.
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
case '
|
|
92
|
-
if (handler.
|
|
93
|
-
handler.
|
|
94
|
-
}
|
|
95
|
-
break;
|
|
96
|
-
case '
|
|
97
|
-
if (handler.
|
|
98
|
-
handler.
|
|
99
|
-
}
|
|
100
|
-
break;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
case '
|
|
107
|
-
if (handler.
|
|
108
|
-
handler.
|
|
109
|
-
}
|
|
110
|
-
break;
|
|
111
|
-
case '
|
|
112
|
-
if (handler.
|
|
113
|
-
handler.
|
|
114
|
-
}
|
|
115
|
-
break;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.processIVideoFrameObserver = processIVideoFrameObserver;
|
|
124
|
-
function processIMediaRecorderObserver(handler, event, jsonParams) {
|
|
125
|
-
switch (event) {
|
|
126
|
-
case 'onRecorderStateChanged':
|
|
127
|
-
if (handler.onRecorderStateChanged !== undefined) {
|
|
128
|
-
handler.onRecorderStateChanged(jsonParams.state, jsonParams.error);
|
|
129
|
-
}
|
|
130
|
-
break;
|
|
131
|
-
case 'onRecorderInfoUpdated':
|
|
132
|
-
if (handler.onRecorderInfoUpdated !== undefined) {
|
|
133
|
-
handler.onRecorderInfoUpdated(jsonParams.info);
|
|
134
|
-
}
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.processIMediaRecorderObserver = processIMediaRecorderObserver;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processIMediaRecorderObserver = exports.processIVideoFrameObserver = exports.processIVideoEncodedFrameObserver = exports.processIAudioSpectrumObserver = exports.processIAudioFrameObserver = exports.processIAudioFrameObserverBase = exports.processIAudioPcmFrameSink = void 0;
|
|
4
|
+
function processIAudioPcmFrameSink(handler, event, jsonParams) {
|
|
5
|
+
switch (event) {
|
|
6
|
+
case 'onFrame':
|
|
7
|
+
if (handler.onFrame !== undefined) {
|
|
8
|
+
handler.onFrame(jsonParams.frame);
|
|
9
|
+
}
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.processIAudioPcmFrameSink = processIAudioPcmFrameSink;
|
|
14
|
+
function processIAudioFrameObserverBase(handler, event, jsonParams) {
|
|
15
|
+
switch (event) {
|
|
16
|
+
case 'onRecordAudioFrame':
|
|
17
|
+
if (handler.onRecordAudioFrame !== undefined) {
|
|
18
|
+
handler.onRecordAudioFrame(jsonParams.channelId, jsonParams.audioFrame);
|
|
19
|
+
}
|
|
20
|
+
break;
|
|
21
|
+
case 'onPlaybackAudioFrame':
|
|
22
|
+
if (handler.onPlaybackAudioFrame !== undefined) {
|
|
23
|
+
handler.onPlaybackAudioFrame(jsonParams.channelId, jsonParams.audioFrame);
|
|
24
|
+
}
|
|
25
|
+
break;
|
|
26
|
+
case 'onMixedAudioFrame':
|
|
27
|
+
if (handler.onMixedAudioFrame !== undefined) {
|
|
28
|
+
handler.onMixedAudioFrame(jsonParams.channelId, jsonParams.audioFrame);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
case 'onEarMonitoringAudioFrame':
|
|
32
|
+
if (handler.onEarMonitoringAudioFrame !== undefined) {
|
|
33
|
+
handler.onEarMonitoringAudioFrame(jsonParams.audioFrame);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.processIAudioFrameObserverBase = processIAudioFrameObserverBase;
|
|
39
|
+
function processIAudioFrameObserver(handler, event, jsonParams) {
|
|
40
|
+
switch (event) {
|
|
41
|
+
case 'onPlaybackAudioFrameBeforeMixing':
|
|
42
|
+
if (handler.onPlaybackAudioFrameBeforeMixing !== undefined) {
|
|
43
|
+
handler.onPlaybackAudioFrameBeforeMixing(jsonParams.channelId, jsonParams.uid, jsonParams.audioFrame);
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.processIAudioFrameObserver = processIAudioFrameObserver;
|
|
49
|
+
function processIAudioSpectrumObserver(handler, event, jsonParams) {
|
|
50
|
+
switch (event) {
|
|
51
|
+
case 'onLocalAudioSpectrum':
|
|
52
|
+
if (handler.onLocalAudioSpectrum !== undefined) {
|
|
53
|
+
handler.onLocalAudioSpectrum(jsonParams.data);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case 'onRemoteAudioSpectrum':
|
|
57
|
+
if (handler.onRemoteAudioSpectrum !== undefined) {
|
|
58
|
+
handler.onRemoteAudioSpectrum(jsonParams.spectrums, jsonParams.spectrumNumber);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.processIAudioSpectrumObserver = processIAudioSpectrumObserver;
|
|
64
|
+
function processIVideoEncodedFrameObserver(handler, event, jsonParams) {
|
|
65
|
+
switch (event) {
|
|
66
|
+
case 'onEncodedVideoFrameReceived':
|
|
67
|
+
if (handler.onEncodedVideoFrameReceived !== undefined) {
|
|
68
|
+
handler.onEncodedVideoFrameReceived(jsonParams.uid, jsonParams.imageBuffer, jsonParams.length, jsonParams.videoEncodedFrameInfo);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.processIVideoEncodedFrameObserver = processIVideoEncodedFrameObserver;
|
|
74
|
+
function processIVideoFrameObserver(handler, event, jsonParams) {
|
|
75
|
+
switch (event) {
|
|
76
|
+
case 'onCaptureVideoFrame':
|
|
77
|
+
if (handler.onCaptureVideoFrame !== undefined) {
|
|
78
|
+
handler.onCaptureVideoFrame(jsonParams.sourceType, jsonParams.videoFrame);
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case 'onPreEncodeVideoFrame':
|
|
82
|
+
if (handler.onPreEncodeVideoFrame !== undefined) {
|
|
83
|
+
handler.onPreEncodeVideoFrame(jsonParams.sourceType, jsonParams.videoFrame);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case 'onMediaPlayerVideoFrame':
|
|
87
|
+
if (handler.onMediaPlayerVideoFrame !== undefined) {
|
|
88
|
+
handler.onMediaPlayerVideoFrame(jsonParams.videoFrame, jsonParams.mediaPlayerId);
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case 'onRenderVideoFrame':
|
|
92
|
+
if (handler.onRenderVideoFrame !== undefined) {
|
|
93
|
+
handler.onRenderVideoFrame(jsonParams.channelId, jsonParams.remoteUid, jsonParams.videoFrame);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case 'onTranscodedVideoFrame':
|
|
97
|
+
if (handler.onTranscodedVideoFrame !== undefined) {
|
|
98
|
+
handler.onTranscodedVideoFrame(jsonParams.videoFrame);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.processIVideoFrameObserver = processIVideoFrameObserver;
|
|
104
|
+
function processIMediaRecorderObserver(handler, event, jsonParams) {
|
|
105
|
+
switch (event) {
|
|
106
|
+
case 'onRecorderStateChanged':
|
|
107
|
+
if (handler.onRecorderStateChanged !== undefined) {
|
|
108
|
+
handler.onRecorderStateChanged(jsonParams.channelId, jsonParams.uid, jsonParams.state, jsonParams.error);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case 'onRecorderInfoUpdated':
|
|
112
|
+
if (handler.onRecorderInfoUpdated !== undefined) {
|
|
113
|
+
handler.onRecorderInfoUpdated(jsonParams.channelId, jsonParams.uid, jsonParams.info);
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.processIMediaRecorderObserver = processIMediaRecorderObserver;
|