agora-electron-sdk 4.4.0-dev.1 → 4.4.0
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 +7 -0
- package/js/AgoraSdk.js +1 -1
- package/js/Private/AgoraBase.js +28 -28
- package/js/Private/AgoraMediaBase.js +30 -4
- package/js/Private/IAgoraLog.js +4 -0
- package/js/Private/IAgoraRhythmPlayer.js +12 -12
- package/js/Private/IAgoraRtcEngine.js +64 -64
- package/js/Private/impl/IAgoraRtcEngineImpl.js +0 -32
- package/js/Private/internal/RtcEngineExInternal.js +9 -3
- package/js/Renderer/AgoraView.js +21 -2
- package/js/Renderer/IRendererManager.js +15 -2
- package/js/Renderer/RendererCache.js +2 -2
- package/package.json +9 -5
- package/scripts/downloadPrebuild.js +9 -3
- package/ts/AgoraSdk.ts +1 -1
- package/ts/Private/AgoraBase.ts +35 -31
- package/ts/Private/AgoraMediaBase.ts +60 -40
- package/ts/Private/IAgoraLog.ts +4 -0
- package/ts/Private/IAgoraMediaEngine.ts +8 -19
- package/ts/Private/IAgoraMediaPlayer.ts +13 -12
- package/ts/Private/IAgoraMusicContentCenter.ts +13 -1
- package/ts/Private/IAgoraRhythmPlayer.ts +12 -12
- package/ts/Private/IAgoraRtcEngine.ts +296 -262
- package/ts/Private/IAgoraRtcEngineEx.ts +35 -34
- package/ts/Private/IAudioDeviceManager.ts +4 -4
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +0 -42
- package/ts/Private/internal/RtcEngineExInternal.ts +7 -2
- package/ts/Renderer/AgoraView.ts +33 -4
- package/ts/Renderer/IRendererManager.ts +20 -2
- package/ts/Renderer/RendererCache.ts +2 -2
- package/ts/Types.ts +1 -1
- package/types/AgoraSdk.d.ts +1 -1
- package/types/Private/AgoraBase.d.ts +35 -31
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +59 -40
- 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 +8 -19
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +13 -12
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts +13 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +12 -12
- package/types/Private/IAgoraRtcEngine.d.ts +296 -260
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +35 -34
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +4 -4
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -4
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- 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/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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
# [4.4.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.2...v4.4.0) (2024-08-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support 4.4.0 ([#1197](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1197)) ([490192f](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/490192ff7c2a6120ff56838191b8788b1a5599f1))
|
|
9
|
+
|
|
3
10
|
## [4.3.2](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.1...v4.3.2) (2024-06-06)
|
|
4
11
|
|
|
5
12
|
|
package/js/AgoraSdk.js
CHANGED
|
@@ -51,7 +51,7 @@ exports.createAgoraRtcEngine = createAgoraRtcEngine;
|
|
|
51
51
|
/**
|
|
52
52
|
* Gets one IMediaPlayerCacheManager instance.
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* Before calling any APIs in the IMediaPlayerCacheManager class, you need to call this method to get a cache manager instance of a media player.
|
|
55
55
|
*
|
|
56
56
|
* @returns
|
|
57
57
|
* The IMediaPlayerCacheManager instance.
|
package/js/Private/AgoraBase.js
CHANGED
|
@@ -239,7 +239,7 @@ var ErrorCodeType;
|
|
|
239
239
|
ErrorCodeType[ErrorCodeType["ErrNetDown"] = 14] = "ErrNetDown";
|
|
240
240
|
/**
|
|
241
241
|
* 17: The request to join the channel is rejected. Possible reasons include the following:
|
|
242
|
-
* The user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to
|
|
242
|
+
* The user is already in the channel. Agora recommends that you use the onConnectionStateChanged callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the ConnectionStateDisconnected (1) state.
|
|
243
243
|
* After calling startEchoTest for the call test, the user tries to join the channel without calling stopEchoTest to end the current test. To join a channel, the call test must be ended by calling stopEchoTest.
|
|
244
244
|
*/
|
|
245
245
|
ErrorCodeType[ErrorCodeType["ErrJoinChannelRejected"] = 17] = "ErrJoinChannelRejected";
|
|
@@ -1525,7 +1525,7 @@ var AudioScenarioType;
|
|
|
1525
1525
|
*/
|
|
1526
1526
|
AudioScenarioType[AudioScenarioType["AudioScenarioGameStreaming"] = 3] = "AudioScenarioGameStreaming";
|
|
1527
1527
|
/**
|
|
1528
|
-
* 5: Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. For example, education scenarios.
|
|
1528
|
+
* 5: Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. For example, education scenarios.
|
|
1529
1529
|
*/
|
|
1530
1530
|
AudioScenarioType[AudioScenarioType["AudioScenarioChatroom"] = 5] = "AudioScenarioChatroom";
|
|
1531
1531
|
/**
|
|
@@ -1597,7 +1597,7 @@ var VideoApplicationScenarioType;
|
|
|
1597
1597
|
*/
|
|
1598
1598
|
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioGeneral"] = 0] = "ApplicationScenarioGeneral";
|
|
1599
1599
|
/**
|
|
1600
|
-
*
|
|
1600
|
+
* ApplicationScenarioMeeting (1) is suitable for meeting scenarios. The SDK automatically enables the following strategies:
|
|
1601
1601
|
* In meeting scenarios where low-quality video streams are required to have a high bitrate, the SDK automatically enables multiple technologies used to deal with network congestions, to enhance the performance of the low-quality streams and to ensure the smooth reception by subscribers.
|
|
1602
1602
|
* The SDK monitors the number of subscribers to the high-quality video stream in real time and dynamically adjusts its configuration based on the number of subscribers.
|
|
1603
1603
|
* If nobody subscribers to the high-quality stream, the SDK automatically reduces its bitrate and frame rate to save upstream bandwidth.
|
|
@@ -1614,7 +1614,7 @@ var VideoApplicationScenarioType;
|
|
|
1614
1614
|
*/
|
|
1615
1615
|
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioMeeting"] = 1] = "ApplicationScenarioMeeting";
|
|
1616
1616
|
/**
|
|
1617
|
-
*
|
|
1617
|
+
* ApplicationScenario1v1 (2) is suitable for 1v1 video call scenarios. To meet the requirements for low latency and high-quality video in this scenario, the SDK optimizes its strategies, improving performance in terms of video quality, first frame rendering, latency on mid-to-low-end devices, and smoothness under weak network conditions. 2: 1v1 video call scenario.
|
|
1618
1618
|
*/
|
|
1619
1619
|
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenario1v1"] = 2] = "ApplicationScenario1v1";
|
|
1620
1620
|
})(VideoApplicationScenarioType = exports.VideoApplicationScenarioType || (exports.VideoApplicationScenarioType = {}));
|
|
@@ -1867,23 +1867,23 @@ var LocalVideoStreamReason;
|
|
|
1867
1867
|
*/
|
|
1868
1868
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowNotSupported"] = 20] = "LocalVideoStreamReasonScreenCaptureWindowNotSupported";
|
|
1869
1869
|
/**
|
|
1870
|
-
*
|
|
1870
|
+
* 21: (Windows only) The screen has not captured any data available for window sharing.
|
|
1871
1871
|
*/
|
|
1872
1872
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureFailure"] = 21] = "LocalVideoStreamReasonScreenCaptureFailure";
|
|
1873
1873
|
/**
|
|
1874
|
-
*
|
|
1874
|
+
* 22: No permission for screen capture.
|
|
1875
1875
|
*/
|
|
1876
1876
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureNoPermission"] = 22] = "LocalVideoStreamReasonScreenCaptureNoPermission";
|
|
1877
1877
|
/**
|
|
1878
|
-
*
|
|
1878
|
+
* 24: (Windows only) An unexpected error occurred during screen sharing (possibly due to window blocking failure), resulting in decreased performance, but the screen sharing process itself was not affected.
|
|
1879
1879
|
*/
|
|
1880
1880
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureAutoFallback"] = 24] = "LocalVideoStreamReasonScreenCaptureAutoFallback";
|
|
1881
1881
|
/**
|
|
1882
|
-
*
|
|
1882
|
+
* 25: (Windows only) The window for the current screen capture is hidden and not visible on the current screen.
|
|
1883
1883
|
*/
|
|
1884
1884
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowHidden"] = 25] = "LocalVideoStreamReasonScreenCaptureWindowHidden";
|
|
1885
1885
|
/**
|
|
1886
|
-
*
|
|
1886
|
+
* 26: (Windows only) The window for screen capture has been restored from hidden state.
|
|
1887
1887
|
*/
|
|
1888
1888
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden"] = 26] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden";
|
|
1889
1889
|
/**
|
|
@@ -1891,15 +1891,15 @@ var LocalVideoStreamReason;
|
|
|
1891
1891
|
*/
|
|
1892
1892
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized"] = 27] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized";
|
|
1893
1893
|
/**
|
|
1894
|
-
*
|
|
1894
|
+
* 28: (Windows only) Screen capture has been paused. Common scenarios reporting this error code: The current screen may have been switched to a secure desktop, such as a UAC dialog box or Winlogon desktop.
|
|
1895
1895
|
*/
|
|
1896
1896
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCapturePaused"] = 28] = "LocalVideoStreamReasonScreenCapturePaused";
|
|
1897
1897
|
/**
|
|
1898
|
-
*
|
|
1898
|
+
* 29: (Windows only) Screen capture has resumed from paused state.
|
|
1899
1899
|
*/
|
|
1900
1900
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureResumed"] = 29] = "LocalVideoStreamReasonScreenCaptureResumed";
|
|
1901
1901
|
/**
|
|
1902
|
-
*
|
|
1902
|
+
* 30: The displayer used for screen capture is disconnected.
|
|
1903
1903
|
*/
|
|
1904
1904
|
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureDisplayDisconnected"] = 30] = "LocalVideoStreamReasonScreenCaptureDisplayDisconnected";
|
|
1905
1905
|
})(LocalVideoStreamReason = exports.LocalVideoStreamReason || (exports.LocalVideoStreamReason = {}));
|
|
@@ -2601,7 +2601,7 @@ var ConnectionChangedReasonType;
|
|
|
2601
2601
|
var ClientRoleChangeFailedReason;
|
|
2602
2602
|
(function (ClientRoleChangeFailedReason) {
|
|
2603
2603
|
/**
|
|
2604
|
-
* 1: The number of hosts in the channel
|
|
2604
|
+
* 1: The number of hosts in the channel exceeds the limit. This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
|
|
2605
2605
|
*/
|
|
2606
2606
|
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedTooManyBroadcasters"] = 1] = "ClientRoleChangeFailedTooManyBroadcasters";
|
|
2607
2607
|
/**
|
|
@@ -2609,11 +2609,11 @@ var ClientRoleChangeFailedReason;
|
|
|
2609
2609
|
*/
|
|
2610
2610
|
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedNotAuthorized"] = 2] = "ClientRoleChangeFailedNotAuthorized";
|
|
2611
2611
|
/**
|
|
2612
|
-
* 3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.
|
|
2612
|
+
* 3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
|
|
2613
2613
|
*/
|
|
2614
2614
|
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedRequestTimeOut"] = 3] = "ClientRoleChangeFailedRequestTimeOut";
|
|
2615
2615
|
/**
|
|
2616
|
-
* 4: The SDK
|
|
2616
|
+
* 4: The SDK is disconnected from the Agora edge server. You can troubleshoot the failure through the reason reported by onConnectionStateChanged. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
|
|
2617
2617
|
*/
|
|
2618
2618
|
ClientRoleChangeFailedReason[ClientRoleChangeFailedReason["ClientRoleChangeFailedConnectionFailed"] = 4] = "ClientRoleChangeFailedConnectionFailed";
|
|
2619
2619
|
})(ClientRoleChangeFailedReason = exports.ClientRoleChangeFailedReason || (exports.ClientRoleChangeFailedReason = {}));
|
|
@@ -2703,7 +2703,7 @@ var NetworkType;
|
|
|
2703
2703
|
var VideoViewSetupMode;
|
|
2704
2704
|
(function (VideoViewSetupMode) {
|
|
2705
2705
|
/**
|
|
2706
|
-
* 0: (Default)
|
|
2706
|
+
* 0: (Default) Clear all added views and replace with a new view.
|
|
2707
2707
|
*/
|
|
2708
2708
|
VideoViewSetupMode[VideoViewSetupMode["VideoViewSetupReplace"] = 0] = "VideoViewSetupReplace";
|
|
2709
2709
|
/**
|
|
@@ -2913,7 +2913,7 @@ exports.ColorEnhanceOptions = ColorEnhanceOptions;
|
|
|
2913
2913
|
var BackgroundSourceType;
|
|
2914
2914
|
(function (BackgroundSourceType) {
|
|
2915
2915
|
/**
|
|
2916
|
-
* 0: Process the background as alpha
|
|
2916
|
+
* 0: Process the background as alpha data without replacement, only separating the portrait and the background. After setting this value, you can call startLocalVideoTranscoder to implement the picture-in-picture effect.
|
|
2917
2917
|
*/
|
|
2918
2918
|
BackgroundSourceType[BackgroundSourceType["BackgroundNone"] = 0] = "BackgroundNone";
|
|
2919
2919
|
/**
|
|
@@ -3248,48 +3248,48 @@ var HeadphoneEqualizerPreset;
|
|
|
3248
3248
|
HeadphoneEqualizerPreset[HeadphoneEqualizerPreset["HeadphoneEqualizerInear"] = 67108866] = "HeadphoneEqualizerInear";
|
|
3249
3249
|
})(HeadphoneEqualizerPreset = exports.HeadphoneEqualizerPreset || (exports.HeadphoneEqualizerPreset = {}));
|
|
3250
3250
|
/**
|
|
3251
|
-
*
|
|
3251
|
+
* Voice AI tuner sound types.
|
|
3252
3252
|
*/
|
|
3253
3253
|
var VoiceAiTunerType;
|
|
3254
3254
|
(function (VoiceAiTunerType) {
|
|
3255
3255
|
/**
|
|
3256
|
-
*
|
|
3256
|
+
* 0: Mature male voice. A deep and magnetic male voice.
|
|
3257
3257
|
*/
|
|
3258
3258
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerMatureMale"] = 0] = "VoiceAiTunerMatureMale";
|
|
3259
3259
|
/**
|
|
3260
|
-
*
|
|
3260
|
+
* 1: Fresh male voice. A fresh and slightly sweet male voice.
|
|
3261
3261
|
*/
|
|
3262
3262
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerFreshMale"] = 1] = "VoiceAiTunerFreshMale";
|
|
3263
3263
|
/**
|
|
3264
|
-
*
|
|
3264
|
+
* 2: Elegant female voice. A deep and charming female voice.
|
|
3265
3265
|
*/
|
|
3266
3266
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerElegantFemale"] = 2] = "VoiceAiTunerElegantFemale";
|
|
3267
3267
|
/**
|
|
3268
|
-
*
|
|
3268
|
+
* 3: Sweet female voice. A high-pitched and cute female voice.
|
|
3269
3269
|
*/
|
|
3270
3270
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerSweetFemale"] = 3] = "VoiceAiTunerSweetFemale";
|
|
3271
3271
|
/**
|
|
3272
|
-
*
|
|
3272
|
+
* 4: Warm male singing. A warm and melodious male voice.
|
|
3273
3273
|
*/
|
|
3274
3274
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmMaleSinging"] = 4] = "VoiceAiTunerWarmMaleSinging";
|
|
3275
3275
|
/**
|
|
3276
|
-
*
|
|
3276
|
+
* 5: Gentle female singing. A soft and delicate female voice.
|
|
3277
3277
|
*/
|
|
3278
3278
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerGentleFemaleSinging"] = 5] = "VoiceAiTunerGentleFemaleSinging";
|
|
3279
3279
|
/**
|
|
3280
|
-
*
|
|
3280
|
+
* 6: Husky male singing. A unique husky male voice.
|
|
3281
3281
|
*/
|
|
3282
3282
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerHuskyMaleSinging"] = 6] = "VoiceAiTunerHuskyMaleSinging";
|
|
3283
3283
|
/**
|
|
3284
|
-
*
|
|
3284
|
+
* 7: Warm elegant female singing. A warm and mature female voice.
|
|
3285
3285
|
*/
|
|
3286
3286
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerWarmElegantFemaleSinging"] = 7] = "VoiceAiTunerWarmElegantFemaleSinging";
|
|
3287
3287
|
/**
|
|
3288
|
-
*
|
|
3288
|
+
* 8: Powerful male singing. A strong and powerful male voice.
|
|
3289
3289
|
*/
|
|
3290
3290
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerPowerfulMaleSinging"] = 8] = "VoiceAiTunerPowerfulMaleSinging";
|
|
3291
3291
|
/**
|
|
3292
|
-
*
|
|
3292
|
+
* 9: Dreamy female singing. A dreamy and soft female voice.
|
|
3293
3293
|
*/
|
|
3294
3294
|
VoiceAiTunerType[VoiceAiTunerType["VoiceAiTunerDreamyFemaleSinging"] = 9] = "VoiceAiTunerDreamyFemaleSinging";
|
|
3295
3295
|
})(VoiceAiTunerType = exports.VoiceAiTunerType || (exports.VoiceAiTunerType = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
3
|
+
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.AlphaStitchMode = exports.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
4
4
|
require("./extension/AgoraMediaBaseExtension");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The context information of the extension.
|
|
7
7
|
*/
|
|
8
8
|
class ExtensionContext {
|
|
9
9
|
}
|
|
@@ -281,13 +281,13 @@ var ContentInspectType;
|
|
|
281
281
|
ContentInspectType[ContentInspectType["ContentInspectImageModeration"] = 3] = "ContentInspectImageModeration";
|
|
282
282
|
})(ContentInspectType = exports.ContentInspectType || (exports.ContentInspectType = {}));
|
|
283
283
|
/**
|
|
284
|
-
* A
|
|
284
|
+
* ContentInspectModule A structure used to configure the frequency of video screenshot and upload.
|
|
285
285
|
*/
|
|
286
286
|
class ContentInspectModule {
|
|
287
287
|
}
|
|
288
288
|
exports.ContentInspectModule = ContentInspectModule;
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
290
|
+
* Screenshot and upload configuration.
|
|
291
291
|
*/
|
|
292
292
|
class ContentInspectConfig {
|
|
293
293
|
}
|
|
@@ -674,6 +674,32 @@ exports.ColorSpace = ColorSpace;
|
|
|
674
674
|
class Hdr10MetadataInfo {
|
|
675
675
|
}
|
|
676
676
|
exports.Hdr10MetadataInfo = Hdr10MetadataInfo;
|
|
677
|
+
/**
|
|
678
|
+
* @ignore
|
|
679
|
+
*/
|
|
680
|
+
var AlphaStitchMode;
|
|
681
|
+
(function (AlphaStitchMode) {
|
|
682
|
+
/**
|
|
683
|
+
* @ignore
|
|
684
|
+
*/
|
|
685
|
+
AlphaStitchMode[AlphaStitchMode["NoAlphaStitch"] = 0] = "NoAlphaStitch";
|
|
686
|
+
/**
|
|
687
|
+
* @ignore
|
|
688
|
+
*/
|
|
689
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchUp"] = 1] = "AlphaStitchUp";
|
|
690
|
+
/**
|
|
691
|
+
* @ignore
|
|
692
|
+
*/
|
|
693
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchBelow"] = 2] = "AlphaStitchBelow";
|
|
694
|
+
/**
|
|
695
|
+
* @ignore
|
|
696
|
+
*/
|
|
697
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchLeft"] = 3] = "AlphaStitchLeft";
|
|
698
|
+
/**
|
|
699
|
+
* @ignore
|
|
700
|
+
*/
|
|
701
|
+
AlphaStitchMode[AlphaStitchMode["AlphaStitchRight"] = 4] = "AlphaStitchRight";
|
|
702
|
+
})(AlphaStitchMode = exports.AlphaStitchMode || (exports.AlphaStitchMode = {}));
|
|
677
703
|
/**
|
|
678
704
|
* @ignore
|
|
679
705
|
*/
|
package/js/Private/IAgoraLog.js
CHANGED
|
@@ -31,6 +31,10 @@ var LogLevel;
|
|
|
31
31
|
* @ignore
|
|
32
32
|
*/
|
|
33
33
|
LogLevel[LogLevel["LogLevelApiCall"] = 16] = "LogLevelApiCall";
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
LogLevel[LogLevel["LogLevelDebug"] = 32] = "LogLevelDebug";
|
|
34
38
|
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
35
39
|
/**
|
|
36
40
|
* The output log level of the SDK.
|
|
@@ -3,54 +3,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgoraRhythmPlayerConfig = exports.RhythmPlayerReason = exports.RhythmPlayerStateType = void 0;
|
|
4
4
|
require("./extension/IAgoraRhythmPlayerExtension");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Virtual metronome state.
|
|
7
7
|
*/
|
|
8
8
|
var RhythmPlayerStateType;
|
|
9
9
|
(function (RhythmPlayerStateType) {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* (810): The virtual metronome is not enabled or disabled already.
|
|
12
12
|
*/
|
|
13
13
|
RhythmPlayerStateType[RhythmPlayerStateType["RhythmPlayerStateIdle"] = 810] = "RhythmPlayerStateIdle";
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 811: Opening the beat files.
|
|
16
16
|
*/
|
|
17
17
|
RhythmPlayerStateType[RhythmPlayerStateType["RhythmPlayerStateOpening"] = 811] = "RhythmPlayerStateOpening";
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 812: Decoding the beat files.
|
|
20
20
|
*/
|
|
21
21
|
RhythmPlayerStateType[RhythmPlayerStateType["RhythmPlayerStateDecoding"] = 812] = "RhythmPlayerStateDecoding";
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* 813: The beat files are playing.
|
|
24
24
|
*/
|
|
25
25
|
RhythmPlayerStateType[RhythmPlayerStateType["RhythmPlayerStatePlaying"] = 813] = "RhythmPlayerStatePlaying";
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 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.
|
|
28
28
|
*/
|
|
29
29
|
RhythmPlayerStateType[RhythmPlayerStateType["RhythmPlayerStateFailed"] = 814] = "RhythmPlayerStateFailed";
|
|
30
30
|
})(RhythmPlayerStateType = exports.RhythmPlayerStateType || (exports.RhythmPlayerStateType = {}));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Virtual Metronome error message.
|
|
33
33
|
*/
|
|
34
34
|
var RhythmPlayerReason;
|
|
35
35
|
(function (RhythmPlayerReason) {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* (0): The beat files are played normally without errors.
|
|
38
38
|
*/
|
|
39
39
|
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonOk"] = 0] = "RhythmPlayerReasonOk";
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* 1: A general error; no specific reason.
|
|
42
42
|
*/
|
|
43
43
|
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonFailed"] = 1] = "RhythmPlayerReasonFailed";
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* 801: There is an error when opening the beat files.
|
|
46
46
|
*/
|
|
47
47
|
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonCanNotOpen"] = 801] = "RhythmPlayerReasonCanNotOpen";
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 802: There is an error when playing the beat files.
|
|
50
50
|
*/
|
|
51
51
|
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonCanNotPlay"] = 802] = "RhythmPlayerReasonCanNotPlay";
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* (803): The duration of the beat file exceeds the limit. The maximum duration is 1.2 seconds.
|
|
54
54
|
*/
|
|
55
55
|
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonFileOverDurationLimit"] = 803] = "RhythmPlayerReasonFileOverDurationLimit";
|
|
56
56
|
})(RhythmPlayerReason = exports.RhythmPlayerReason || (exports.RhythmPlayerReason = {}));
|