agora-electron-sdk 4.3.2 → 4.4.0-dev.2
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/CHANGELOG.md +12 -0
- package/gulpfile.js +3 -1
- package/js/AgoraSdk.js +5 -5
- package/js/Private/AgoraBase.js +374 -333
- package/js/Private/AgoraMediaBase.js +293 -78
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +6 -5
- package/js/Private/IAgoraMediaEngine.js +2 -5
- package/js/Private/IAgoraMediaPlayer.js +4 -10
- package/js/Private/IAgoraMediaRecorder.js +2 -5
- package/js/Private/IAgoraMediaStreamingSource.js +2 -5
- package/js/Private/IAgoraMusicContentCenter.js +21 -68
- package/js/Private/IAgoraRhythmPlayer.js +14 -17
- package/js/Private/IAgoraRtcEngine.js +76 -130
- package/js/Private/IAgoraRtcEngineEx.js +5 -28
- package/js/Private/IAgoraSpatialAudio.js +6 -15
- package/js/Private/IAudioDeviceManager.js +2 -5
- package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
- package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
- package/js/Private/impl/IAgoraRtcEngineImpl.js +2429 -2439
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
- package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
- package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
- package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
- package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
- package/js/Private/internal/IrisApiEngine.js +94 -145
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
- package/js/Private/internal/MediaEngineInternal.js +69 -94
- package/js/Private/internal/MediaPlayerInternal.js +105 -125
- package/js/Private/internal/MediaRecorderInternal.js +37 -64
- package/js/Private/internal/MusicContentCenterInternal.js +92 -129
- package/js/Private/internal/RtcEngineExInternal.js +219 -243
- package/js/Private/ti/AgoraBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
- package/js/Private/ti/IAgoraLog-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
- package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
- package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
- package/js/Renderer/AgoraView.js +120 -146
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +119 -132
- package/js/Renderer/RendererCache.js +63 -96
- package/js/Renderer/RendererManager.js +35 -69
- package/js/Renderer/WebGLRenderer/index.js +77 -106
- package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
- package/js/Utils.js +45 -64
- package/package.json +13 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +54 -16
- package/scripts/synclib.js +6 -6
- package/ts/AgoraSdk.ts +1 -1
- package/ts/Private/AgoraBase.ts +282 -13
- package/ts/Private/AgoraMediaBase.ts +390 -32
- package/ts/Private/IAgoraLog.ts +4 -0
- package/ts/Private/IAgoraMediaEngine.ts +10 -21
- package/ts/Private/IAgoraMediaPlayer.ts +2 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +12 -12
- package/ts/Private/IAgoraRtcEngine.ts +243 -237
- package/ts/Private/IAgoraRtcEngineEx.ts +34 -26
- package/ts/Private/IAudioDeviceManager.ts +4 -4
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -103
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +14 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/AgoraView.ts +33 -4
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +41 -14
- package/ts/Renderer/RendererCache.ts +2 -2
- package/ts/Types.ts +1 -1
- package/ts/Utils.ts +15 -0
- package/types/AgoraSdk.d.ts +1 -1
- package/types/Private/AgoraBase.d.ts +277 -17
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +382 -32
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +5 -1
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +10 -21
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +2 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +12 -12
- package/types/Private/IAgoraRtcEngine.d.ts +219 -232
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +30 -27
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +4 -4
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -9
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/AgoraView.d.ts +8 -2
- package/types/Renderer/AgoraView.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Renderer/RendererCache.d.ts +1 -1
- package/types/Renderer/RendererCache.d.ts.map +1 -1
- package/types/Types.d.ts +1 -1
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import './extension/IAgoraRhythmPlayerExtension';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Virtual metronome state.
|
|
5
5
|
*/
|
|
6
6
|
export enum RhythmPlayerStateType {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* (810): The virtual metronome is not enabled or disabled already.
|
|
9
9
|
*/
|
|
10
10
|
RhythmPlayerStateIdle = 810,
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 811: Opening the beat files.
|
|
13
13
|
*/
|
|
14
14
|
RhythmPlayerStateOpening = 811,
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 812: Decoding the beat files.
|
|
17
17
|
*/
|
|
18
18
|
RhythmPlayerStateDecoding = 812,
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 813: The beat files are playing.
|
|
21
21
|
*/
|
|
22
22
|
RhythmPlayerStatePlaying = 813,
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* 814: Failed to start virtual metronome. You can use the reported errorCode to troubleshoot the cause of the error, or you can try to start the virtual metronome again.
|
|
25
25
|
*/
|
|
26
26
|
RhythmPlayerStateFailed = 814,
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Virtual Metronome error message.
|
|
31
31
|
*/
|
|
32
32
|
export enum RhythmPlayerReason {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* (0): The beat files are played normally without errors.
|
|
35
35
|
*/
|
|
36
36
|
RhythmPlayerReasonOk = 0,
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* 1: A general error; no specific reason.
|
|
39
39
|
*/
|
|
40
40
|
RhythmPlayerReasonFailed = 1,
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* 801: There is an error when opening the beat files.
|
|
43
43
|
*/
|
|
44
44
|
RhythmPlayerReasonCanNotOpen = 801,
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 802: There is an error when playing the beat files.
|
|
47
47
|
*/
|
|
48
48
|
RhythmPlayerReasonCanNotPlay = 802,
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* (803): The duration of the beat file exceeds the limit. The maximum duration is 1.2 seconds.
|
|
51
51
|
*/
|
|
52
52
|
RhythmPlayerReasonFileOverDurationLimit = 803,
|
|
53
53
|
}
|