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,70 +1,70 @@
|
|
|
1
|
-
import { VideoSourceType } from '../Private/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* All
|
|
20
|
-
* All
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
1
|
+
import { RenderModeType, VideoSourceType } from '../Private/AgoraMediaBase';
|
|
2
|
+
declare global {
|
|
3
|
+
/**
|
|
4
|
+
* Attributes of the Agora custom element.
|
|
5
|
+
* You can use this custom element as follows:<agora-view video-source-type="{VideoSourceType.VideoSourceCamera}" channel-id="" uid="{0}"></agora-view>
|
|
6
|
+
*/
|
|
7
|
+
interface AgoraView {
|
|
8
|
+
/**
|
|
9
|
+
* The type of the video source. See VideoSourceType .
|
|
10
|
+
*/
|
|
11
|
+
'video-source-type': VideoSourceType;
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the remote user.
|
|
14
|
+
*/
|
|
15
|
+
'uid': number;
|
|
16
|
+
/**
|
|
17
|
+
* The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters:
|
|
18
|
+
* All lowercase English letters: a to z.
|
|
19
|
+
* All uppercase English letters: A to Z.
|
|
20
|
+
* All numeric characters: 0 to 9.
|
|
21
|
+
* Space
|
|
22
|
+
* "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "= ", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
|
|
23
|
+
*/
|
|
24
|
+
'channel-id': string;
|
|
25
|
+
/**
|
|
26
|
+
* The video display mode.
|
|
27
|
+
*/
|
|
28
|
+
'renderer-content-mode': RenderModeType;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to enable mirror mode when rendering video: true: Enable mirror mode.false: Do not enable mirror mode.
|
|
31
|
+
*/
|
|
32
|
+
'renderer-mirror': boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The inline style of elements. See style .
|
|
35
|
+
*/
|
|
36
|
+
'style': any;
|
|
37
|
+
}
|
|
38
|
+
namespace JSX {
|
|
39
|
+
/**
|
|
40
|
+
* The custom HTML elements defined by Agora.
|
|
41
|
+
*/
|
|
42
|
+
interface IntrinsicElements {
|
|
43
|
+
/**
|
|
44
|
+
* The name of the custom element, which supports rendering an AgoraView or HTMLElement object.
|
|
45
|
+
*/
|
|
46
|
+
'agora-view': AgoraView | HTMLElement;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export default class AgoraView extends HTMLElement {
|
|
51
|
+
isConnectedCallback: boolean;
|
|
52
|
+
static get observedAttributes(): string[];
|
|
53
|
+
get videoSourceType(): VideoSourceType;
|
|
54
|
+
set videoSourceType(val: VideoSourceType);
|
|
55
|
+
get uid(): number;
|
|
56
|
+
set uid(val: number);
|
|
57
|
+
get channelId(): string;
|
|
58
|
+
set channelId(val: string);
|
|
59
|
+
get renderContentMode(): RenderModeType;
|
|
60
|
+
set renderContentMode(val: RenderModeType);
|
|
61
|
+
get renderMirror(): boolean;
|
|
62
|
+
set renderMirror(val: boolean);
|
|
63
|
+
constructor();
|
|
64
|
+
initializeRender: () => void;
|
|
65
|
+
destroyRender: () => void;
|
|
66
|
+
connectedCallback(): void;
|
|
67
|
+
attributeChangedCallback(attrName: string, oldVal: any, newVal: any): void;
|
|
68
|
+
disconnectedCallback(): void;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=AgoraView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgoraView.d.ts","sourceRoot":"","sources":["../../ts/Renderer/AgoraView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAiB5E,OAAO,CAAC,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,SAAS;QACjB;;WAEG;QACH,mBAAmB,EAAE,eAAe,CAAC;QACrC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;;;;;WAOG;QACH,YAAY,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,uBAAuB,EAAE,cAAc,CAAC;QACxC;;WAEG;QACH,iBAAiB,EAAE,OAAO,CAAC;QAC3B;;WAEG;QACH,OAAO,EAAE,GAAG,CAAC;KACd;IACD,UAAU,GAAG,CAAC;QACZ;;WAEG;QACH,UAAU,iBAAiB;YACzB;;eAEG;YACH,YAAY,EAAE,SAAS,GAAG,WAAW,CAAC;SACvC;KACF;CACF;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,mBAAmB,UAAS;IAC5B,MAAM,KAAK,kBAAkB,aAE5B;IAED,IAAI,eAAe,IAAI,eAAe,CAGrC;IAED,IAAI,eAAe,CAAC,GAAG,EALA,eAKA,EAMtB;IAED,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED,IAAI,GAAG,CAAC,GAAG,EALA,MAKA,EAMV;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,SAAS,CAAC,GAAG,EAJA,MAIA,EAMhB;IAED,IAAI,iBAAiB,IAAI,cAAc,CAMtC;IAED,IAAI,iBAAiB,CAAC,GAAG,EARA,cAQA,EAMxB;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,YAAY,CAAC,GAAG,EAJA,OAIA,EAMnB;;IAMD,gBAAgB,aAYd;IAEF,aAAa,aAEX;IAEF,iBAAiB;IAKjB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;IAwBnE,oBAAoB;CAIrB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import { RenderModeType } from '../Private/AgoraMediaBase';
|
|
4
|
-
import { RendererOptions, ShareVideoFrame } from '../Types';
|
|
5
|
-
export declare type RenderFailCallback = ((obj: {
|
|
6
|
-
error: string;
|
|
7
|
-
}) => void) | undefined | null;
|
|
8
|
-
export declare class IRenderer {
|
|
9
|
-
parentElement?: HTMLElement;
|
|
10
|
-
canvas?: HTMLCanvasElement;
|
|
11
|
-
event?: EventEmitter;
|
|
12
|
-
contentMode: RenderModeType;
|
|
13
|
-
mirror?: boolean;
|
|
14
|
-
snapshot(fileType?: string): string;
|
|
15
|
-
bind(element: HTMLElement): void;
|
|
16
|
-
unbind(): void;
|
|
17
|
-
equalsElement(element: Element): boolean;
|
|
18
|
-
drawFrame(imageData: ShareVideoFrame): void;
|
|
19
|
-
setRenderOption({ contentMode, mirror }: RendererOptions): void;
|
|
20
|
-
refreshCanvas(): void;
|
|
21
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { RenderModeType } from '../Private/AgoraMediaBase';
|
|
4
|
+
import { RendererOptions, ShareVideoFrame } from '../Types';
|
|
5
|
+
export declare type RenderFailCallback = ((obj: {
|
|
6
|
+
error: string;
|
|
7
|
+
}) => void) | undefined | null;
|
|
8
|
+
export declare abstract class IRenderer {
|
|
9
|
+
parentElement?: HTMLElement;
|
|
10
|
+
canvas?: HTMLCanvasElement;
|
|
11
|
+
event?: EventEmitter;
|
|
12
|
+
contentMode: RenderModeType;
|
|
13
|
+
mirror?: boolean;
|
|
14
|
+
snapshot(fileType?: string): string | null;
|
|
15
|
+
bind(element: HTMLElement): void;
|
|
16
|
+
abstract unbind(): void;
|
|
17
|
+
equalsElement(element: Element): boolean;
|
|
18
|
+
abstract drawFrame(imageData: ShareVideoFrame): void;
|
|
19
|
+
setRenderOption({ contentMode, mirror }: RendererOptions): void;
|
|
20
|
+
abstract refreshCanvas(): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=IRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRenderer.d.ts","sourceRoot":"","sources":["../../ts/Renderer/IRenderer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,oBAAY,kBAAkB,GAC1B,CAAC,CAAC,GAAG,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAAC,GAClC,SAAS,GACT,IAAI,CAAC;AAET,8BAAsB,SAAS;IAC7B,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,iBAAgC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IAEV,QAAQ,CAAC,QAAQ,SAAc;IAO/B,IAAI,CAAC,OAAO,EAAE,WAAW;IAOhC,QAAQ,CAAC,MAAM,IAAI,IAAI;IAEhB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAU/C,QAAQ,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAE7C,eAAe,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,eAAe;IAQ/D,QAAQ,CAAC,aAAa,IAAI,IAAI;CAC/B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RenderModeType, VideoSourceType } from '../Private/AgoraMediaBase';
|
|
2
|
+
import { Channel, RendererVideoConfig } from '../Types';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class IRendererManager {
|
|
7
|
+
abstract get defaultRenderConfig(): RendererVideoConfig;
|
|
8
|
+
abstract enableRender(enabled?: boolean): void;
|
|
9
|
+
abstract clear(): void;
|
|
10
|
+
abstract setupVideo(rendererVideoConfig: RendererVideoConfig): number;
|
|
11
|
+
abstract setupLocalVideo(rendererConfig: RendererVideoConfig): number;
|
|
12
|
+
abstract setupRemoteVideo(rendererConfig: RendererVideoConfig): number;
|
|
13
|
+
abstract setRenderOptionByConfig(rendererConfig: RendererVideoConfig): number;
|
|
14
|
+
abstract destroyRendererByView(view: Element): void;
|
|
15
|
+
abstract destroyRenderersByConfig(videoSourceType: VideoSourceType, channelId?: Channel, uid?: number): void;
|
|
16
|
+
abstract setRenderOption(view: HTMLElement, contentMode?: RenderModeType, mirror?: boolean): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=IRendererManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRendererManager.d.ts","sourceRoot":"","sources":["../../ts/Renderer/IRendererManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,8BAAsB,gBAAgB;IACpC,QAAQ,KAAK,mBAAmB,IAAI,mBAAmB,CAAC;IAExD,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI;IAE9C,QAAQ,CAAC,KAAK,IAAI,IAAI;IAEtB,QAAQ,CAAC,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,MAAM;IAErE,QAAQ,CAAC,eAAe,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IAErE,QAAQ,CAAC,gBAAgB,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IAEtE,QAAQ,CAAC,uBAAuB,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IAE7E,QAAQ,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAEnD,QAAQ,CAAC,wBAAwB,CAC/B,eAAe,EAAE,eAAe,EAChC,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,CAAC,EAAE,MAAM,GACX,IAAI;IAEP,QAAQ,CAAC,eAAe,CACtB,IAAI,EAAE,WAAW,EACjB,WAAW,CAAC,EAAE,cAAc,EAC5B,MAAM,CAAC,EAAE,OAAO,GACf,IAAI;CACR"}
|
|
@@ -1,71 +1,154 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { VideoSourceType } from '../Private/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
declare class RendererManager {
|
|
9
|
-
/**
|
|
10
|
-
* @ignore
|
|
11
|
-
*/
|
|
12
|
-
isRendering: boolean;
|
|
13
|
-
renderFps: number;
|
|
14
|
-
/**
|
|
15
|
-
* @ignore
|
|
16
|
-
*/
|
|
17
|
-
videoFrameUpdateInterval?: NodeJS.Timer;
|
|
18
|
-
/**
|
|
19
|
-
* @ignore
|
|
20
|
-
*/
|
|
21
|
-
renderers: RenderMap;
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
renderMode: RENDER_MODE;
|
|
26
|
-
/**
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
msgBridge: AgoraElectronBridge;
|
|
30
|
-
/**
|
|
31
|
-
* @ignore
|
|
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
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { RenderModeType, VideoSourceType } from '../Private/AgoraMediaBase';
|
|
3
|
+
import { AgoraElectronBridge, Channel, RENDER_MODE, RenderMap, RendererVideoConfig, ShareVideoFrame, VideoFrameCacheConfig } from '../Types';
|
|
4
|
+
import { IRendererManager } from './IRendererManager';
|
|
5
|
+
/**
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
export declare class RendererManager extends IRendererManager {
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
isRendering: boolean;
|
|
13
|
+
renderFps: number;
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
videoFrameUpdateInterval?: NodeJS.Timer;
|
|
18
|
+
/**
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
renderers: RenderMap;
|
|
22
|
+
/**
|
|
23
|
+
* @ignore
|
|
24
|
+
*/
|
|
25
|
+
renderMode: RENDER_MODE;
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
msgBridge: AgoraElectronBridge;
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
defaultRenderConfig: RendererVideoConfig;
|
|
34
|
+
constructor();
|
|
35
|
+
/**
|
|
36
|
+
* Sets the channel mode of the current audio file.
|
|
37
|
+
* In a stereo music file, the left and right channels can store different audio data. According to your needs, you can set the channel mode to original mode, left channel mode, right channel mode, or mixed channel mode. For example, in the KTV scenario, the left channel of the music file stores the musical accompaniment, and the right channel stores the singing voice. If you only need to listen to the accompaniment, call this method to set the channel mode of the music file to left channel mode; if you need to listen to the accompaniment and the singing voice at the same time, call this method to set the channel mode to mixed channel mode.Call this method after calling open .This method only applies to stereo audio files.
|
|
38
|
+
*
|
|
39
|
+
* @param mode The channel mode. See AudioDualMonoMode .
|
|
40
|
+
*
|
|
41
|
+
* @returns
|
|
42
|
+
* 0: Success.< 0: Failure.
|
|
43
|
+
*/
|
|
44
|
+
setRenderMode(mode: RENDER_MODE): void;
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
setFPS(fps: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
setRenderOption(view: HTMLElement, contentMode?: RenderModeType, mirror?: boolean): void;
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
setRenderOptionByConfig(rendererConfig: RendererVideoConfig): number;
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
checkWebglEnv(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
setupVideo(rendererVideoConfig: RendererVideoConfig): number;
|
|
65
|
+
/**
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
setupLocalVideo(rendererConfig: RendererVideoConfig): number;
|
|
69
|
+
/**
|
|
70
|
+
* @ignore
|
|
71
|
+
*/
|
|
72
|
+
setupRemoteVideo(rendererConfig: RendererVideoConfig): number;
|
|
73
|
+
/**
|
|
74
|
+
* Destroys a video renderer object.
|
|
75
|
+
*
|
|
76
|
+
* @param view The HTMLElement object to be destroyed.
|
|
77
|
+
*/
|
|
78
|
+
destroyRendererByView(view: Element): void;
|
|
79
|
+
/**
|
|
80
|
+
* @ignore
|
|
81
|
+
*/
|
|
82
|
+
destroyRenderersByConfig(videoSourceType: VideoSourceType, channelId?: Channel, uid?: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
removeAllRenderer(): void;
|
|
87
|
+
/**
|
|
88
|
+
* @ignore
|
|
89
|
+
*/
|
|
90
|
+
clear(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Enables/Disables the local video capture.
|
|
93
|
+
* This method disables or re-enables the local video capture, and does not affect receiving the remote video stream.After calling enableVideo , the local video capture is enabled by default. You can call enableLocalVideo (false) to disable the local video capture. If you want to re-enable the local video capture, call enableLocalVideo(true).After the local video capturer is successfully disabled or re-enabled, the SDK triggers the onRemoteVideoStateChanged callback on the remote client.You can call this method either before or after joining a channel.This method enables the internal engine and is valid after leaving the channel.
|
|
94
|
+
*
|
|
95
|
+
* @param enabled Whether to enable the local video capture.true: (Default) Enable the local video capture.false: Disable the local video capture. Once the local video is disabled, the remote users cannot receive the video stream of the local user, while the local user can still receive the video streams of remote users. When set to false, this method does not require a local camera.
|
|
96
|
+
*
|
|
97
|
+
* @returns
|
|
98
|
+
* 0: Success.< 0: Failure.
|
|
99
|
+
*/
|
|
100
|
+
enableRender(enabled?: boolean): void;
|
|
101
|
+
/**
|
|
102
|
+
* @ignore
|
|
103
|
+
*/
|
|
104
|
+
startRenderer(): void;
|
|
105
|
+
/**
|
|
106
|
+
* @ignore
|
|
107
|
+
*/
|
|
108
|
+
stopRender(): void;
|
|
109
|
+
/**
|
|
110
|
+
* @ignore
|
|
111
|
+
*/
|
|
112
|
+
restartRender(): void;
|
|
113
|
+
/**
|
|
114
|
+
* @ignore
|
|
115
|
+
*/
|
|
116
|
+
private createRenderer;
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
private getRender;
|
|
121
|
+
/**
|
|
122
|
+
* @ignore
|
|
123
|
+
*/
|
|
124
|
+
private getRenderers;
|
|
125
|
+
/**
|
|
126
|
+
* @ignore
|
|
127
|
+
*/
|
|
128
|
+
private bindHTMLElementToRender;
|
|
129
|
+
/**
|
|
130
|
+
* @ignore
|
|
131
|
+
*/
|
|
132
|
+
private forEachStream;
|
|
133
|
+
/**
|
|
134
|
+
* @ignore
|
|
135
|
+
*/
|
|
136
|
+
private enableVideoFrameCache;
|
|
137
|
+
/**
|
|
138
|
+
* @ignore
|
|
139
|
+
*/
|
|
140
|
+
private disableVideoFrameCache;
|
|
141
|
+
/**
|
|
142
|
+
* @ignore
|
|
143
|
+
*/
|
|
144
|
+
private ensureRendererConfig;
|
|
145
|
+
/**
|
|
146
|
+
* @ignore
|
|
147
|
+
*/
|
|
148
|
+
private resizeShareVideoFrame;
|
|
149
|
+
/**
|
|
150
|
+
* @ignore
|
|
151
|
+
*/
|
|
152
|
+
updateVideoFrameCacheInMap(config: VideoFrameCacheConfig, shareVideoFrame: ShareVideoFrame): void;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=RendererManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RendererManager.d.ts","sourceRoot":"","sources":["../../ts/Renderer/RendererManager.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EACL,mBAAmB,EACnB,OAAO,EAGP,WAAW,EAEX,SAAS,EACT,mBAAmB,EACnB,eAAe,EAEf,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAYlB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,gBAAgB;IACnD;;OAEG;IACH,WAAW,UAAS;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAC/B;;OAEG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;;IAkBzC;;;;;;;;OAQG;IACI,aAAa,CAAC,IAAI,EAAE,WAAW;IAOtC;;OAEG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM;IAKzB;;OAEG;IACI,eAAe,CACpB,IAAI,EAAE,WAAW,EACjB,WAAW,iBAA+B,EAC1C,MAAM,GAAE,OAAe,GACtB,IAAI;IAaP;;OAEG;IACI,uBAAuB,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IA0B3E;;OAEG;IACI,aAAa,IAAI,OAAO;IAgB/B;;OAEG;IACI,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,MAAM;IA8BnE;;OAEG;IACI,eAAe,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IAUnE;;OAEG;IACI,gBAAgB,CAAC,cAAc,EAAE,mBAAmB,GAAG,MAAM;IAUpE;;;;OAIG;IACI,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IA4BjD;;OAEG;IACI,wBAAwB,CAC7B,eAAe,EAAE,eAAe,EAChC,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,CAAC,EAAE,MAAM,GACX,IAAI;IAsBP;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAahC;;OAEG;IACI,KAAK,IAAI,IAAI;IAKpB;;;;;;;;OAQG;IACI,YAAY,CAAC,OAAO,UAAO,GAAG,IAAI;IAUzC;;OAEG;IACI,aAAa,IAAI,IAAI;IA8D5B;;OAEG;IACI,UAAU,IAAI,IAAI;IAQzB;;OAEG;IACI,aAAa,IAAI,IAAI;IAQ5B;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;OAEG;IACH,OAAO,CAAC,SAAS;IAQjB;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAmC/B;;OAEG;IACH,OAAO,CAAC,aAAa;IAyBrB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAO9B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA2C5B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAqB7B;;OAEG;IACI,0BAA0B,CAC/B,MAAM,EAAE,qBAAqB,EAC7B,eAAe,EAAE,eAAe,GAC/B,IAAI;CAUR"}
|
|
@@ -1,59 +1,49 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import { ShareVideoFrame } from '../../Types';
|
|
4
|
-
import { IRenderer, RenderFailCallback } from '../IRenderer';
|
|
5
|
-
export declare class GlRenderer extends IRenderer {
|
|
6
|
-
gl: WebGL2RenderingContext | undefined | null;
|
|
7
|
-
handleContextLost: any;
|
|
8
|
-
program: any;
|
|
9
|
-
positionLocation: any;
|
|
10
|
-
texCoordLocation: any;
|
|
11
|
-
yTexture: WebGLTexture | undefined | null;
|
|
12
|
-
uTexture: WebGLTexture | undefined | null;
|
|
13
|
-
vTexture: WebGLTexture | undefined | null;
|
|
14
|
-
texCoordBuffer: any;
|
|
15
|
-
surfaceBuffer: any;
|
|
16
|
-
parentElement: HTMLElement | undefined;
|
|
17
|
-
container: HTMLElement | undefined;
|
|
18
|
-
canvas: HTMLCanvasElement | undefined;
|
|
19
|
-
renderImageCount: number;
|
|
20
|
-
initWidth: number;
|
|
21
|
-
initHeight: number;
|
|
22
|
-
initRotation: number;
|
|
23
|
-
clientWidth: number;
|
|
24
|
-
clientHeight: number;
|
|
25
|
-
contentMode: number;
|
|
26
|
-
event: EventEmitter;
|
|
27
|
-
firstFrameRender: boolean;
|
|
28
|
-
lastImageWidth: number;
|
|
29
|
-
lastImageHeight: number;
|
|
30
|
-
lastImageRotation: number;
|
|
31
|
-
videoBuffer: {};
|
|
32
|
-
observer?: ResizeObserver;
|
|
33
|
-
failInitRenderCB: RenderFailCallback;
|
|
34
|
-
constructor(failCallback: RenderFailCallback);
|
|
35
|
-
bind(view: HTMLElement): void;
|
|
36
|
-
unbind(): void;
|
|
37
|
-
updateViewZoomLevel
|
|
38
|
-
updateCanvas
|
|
39
|
-
drawFrame(videoFrame: ShareVideoFrame): void;
|
|
40
|
-
refreshCanvas(): void;
|
|
41
|
-
renderImage
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
uplane: Uint8Array;
|
|
51
|
-
vplane: Uint8Array;
|
|
52
|
-
}): void;
|
|
53
|
-
uploadYuv(width: number, height: number, yplane: Uint8Array, uplane: Uint8Array, vplane: Uint8Array): void;
|
|
54
|
-
deleteBuffer(buffer: any): void;
|
|
55
|
-
deleteTexture(texture: any): void;
|
|
56
|
-
initCanvas(view: HTMLElement, width: number, height: number, rotation: number): void;
|
|
57
|
-
initTextures(): void;
|
|
58
|
-
}
|
|
59
|
-
export default GlRenderer;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { ShareVideoFrame } from '../../Types';
|
|
4
|
+
import { IRenderer, RenderFailCallback } from '../IRenderer';
|
|
5
|
+
export declare class GlRenderer extends IRenderer {
|
|
6
|
+
gl: WebGL2RenderingContext | undefined | null;
|
|
7
|
+
handleContextLost: any;
|
|
8
|
+
program: any;
|
|
9
|
+
positionLocation: any;
|
|
10
|
+
texCoordLocation: any;
|
|
11
|
+
yTexture: WebGLTexture | undefined | null;
|
|
12
|
+
uTexture: WebGLTexture | undefined | null;
|
|
13
|
+
vTexture: WebGLTexture | undefined | null;
|
|
14
|
+
texCoordBuffer: any;
|
|
15
|
+
surfaceBuffer: any;
|
|
16
|
+
parentElement: HTMLElement | undefined;
|
|
17
|
+
container: HTMLElement | undefined;
|
|
18
|
+
canvas: HTMLCanvasElement | undefined;
|
|
19
|
+
renderImageCount: number;
|
|
20
|
+
initWidth: number;
|
|
21
|
+
initHeight: number;
|
|
22
|
+
initRotation: number;
|
|
23
|
+
clientWidth: number;
|
|
24
|
+
clientHeight: number;
|
|
25
|
+
contentMode: number;
|
|
26
|
+
event: EventEmitter;
|
|
27
|
+
firstFrameRender: boolean;
|
|
28
|
+
lastImageWidth: number;
|
|
29
|
+
lastImageHeight: number;
|
|
30
|
+
lastImageRotation: number;
|
|
31
|
+
videoBuffer: {};
|
|
32
|
+
observer?: ResizeObserver;
|
|
33
|
+
failInitRenderCB: RenderFailCallback;
|
|
34
|
+
constructor(failCallback: RenderFailCallback);
|
|
35
|
+
bind(view: HTMLElement): void;
|
|
36
|
+
unbind(): void;
|
|
37
|
+
private updateViewZoomLevel;
|
|
38
|
+
private updateCanvas;
|
|
39
|
+
drawFrame(videoFrame: ShareVideoFrame): void;
|
|
40
|
+
refreshCanvas(): void;
|
|
41
|
+
private renderImage;
|
|
42
|
+
private uploadYuv;
|
|
43
|
+
private deleteBuffer;
|
|
44
|
+
private deleteTexture;
|
|
45
|
+
private initCanvas;
|
|
46
|
+
private initTextures;
|
|
47
|
+
}
|
|
48
|
+
export default GlRenderer;
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/Renderer/WebGLRenderer/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAwC7D,qBAAa,UAAW,SAAQ,SAAS;IACvC,EAAE,EAAE,sBAAsB,GAAG,SAAS,GAAG,IAAI,CAAC;IAC9C,iBAAiB,EAAE,GAAG,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,gBAAgB,EAAE,GAAG,CAAC;IACtB,gBAAgB,EAAE,GAAG,CAAC;IACtB,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;IAC1C,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;IAC1C,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;IAC1C,cAAc,EAAE,GAAG,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC;IAGnB,aAAa,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC,SAAS,EAAE,WAAW,GAAG,SAAS,CAAC;IAEnC,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC,gBAAgB,SAAK;IACrB,SAAS,SAAK;IACd,UAAU,SAAK;IACf,YAAY,SAAK;IACjB,WAAW,SAAK;IAChB,YAAY,SAAK;IACjB,WAAW,SAAK;IAChB,KAAK,eAAsB;IAC3B,gBAAgB,UAAS;IACzB,cAAc,SAAK;IACnB,eAAe,SAAK;IACpB,iBAAiB,SAAK;IACtB,WAAW,KAAM;IAEjB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B,gBAAgB,EAAE,kBAAkB,CAAC;gBAEzB,YAAY,EAAE,kBAAkB;IAKrC,IAAI,CAAC,IAAI,EAAE,WAAW;IAItB,MAAM;IA4Cb,OAAO,CAAC,mBAAmB;IAiD3B,OAAO,CAAC,YAAY;IAuFb,SAAS,CAAC,UAAU,EAAE,eAAe;IA4BrC,aAAa;IAUpB,OAAO,CAAC,WAAW;IAwEnB,OAAO,CAAC,SAAS;IA0DjB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,UAAU;IA8FlB,OAAO,CAAC,YAAY;CAkDrB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=webgl-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webgl-utils.d.ts","sourceRoot":"","sources":["../../../ts/Renderer/WebGLRenderer/webgl-utils.js"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { ShareVideoFrame } from '../../Types';
|
|
2
|
+
import { IRenderer } from '../IRenderer';
|
|
3
|
+
export declare class YUVCanvasRenderer extends IRenderer {
|
|
4
|
+
private _cacheCanvasOptions?;
|
|
5
|
+
private _yuvCanvasSink?;
|
|
6
|
+
private _container?;
|
|
7
|
+
private _videoFrame;
|
|
8
|
+
constructor();
|
|
9
|
+
bind(element: HTMLElement): void;
|
|
10
|
+
unbind(): void;
|
|
11
|
+
private zoom;
|
|
12
|
+
private updateCanvas;
|
|
13
|
+
drawFrame(frame: ShareVideoFrame): void;
|
|
14
|
+
refreshCanvas(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/Renderer/YUVCanvasRenderer/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiB,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAC5C,OAAO,CAAC,cAAc,CAAC,CAAM;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAc;IACjC,OAAO,CAAC,WAAW,CAAkB;;IAgB9B,IAAI,CAAC,OAAO,EAAE,WAAW;IAqBzB,MAAM;IAiBb,OAAO,CAAC,IAAI;IAqCZ,OAAO,CAAC,YAAY;IAwDb,SAAS,CAAC,KAAK,EAAE,eAAe;IAqEhC,aAAa;CAarB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ts/Renderer/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
|