agora-electron-sdk 4.3.2 → 4.4.0-dev.1
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/gulpfile.js +3 -1
- package/js/AgoraSdk.js +4 -4
- package/js/Private/AgoraBase.js +367 -326
- package/js/Private/AgoraMediaBase.js +265 -76
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +2 -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 +2 -5
- 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 +2445 -2423
- 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 +213 -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 +100 -145
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +106 -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 +9 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +56 -24
- package/scripts/synclib.js +6 -6
- package/ts/Private/AgoraBase.ts +269 -4
- package/ts/Private/AgoraMediaBase.ts +343 -1
- package/ts/Private/IAgoraMediaEngine.ts +3 -3
- package/ts/Private/IAgoraRtcEngine.ts +130 -119
- package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +21 -12
- package/ts/Utils.ts +15 -0
- package/types/Private/AgoraBase.d.ts +264 -8
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +336 -1
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +3 -3
- package/types/Private/IAgoraRtcEngine.d.ts +106 -116
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- 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 -5
- 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/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
package/ts/Private/AgoraBase.ts
CHANGED
|
@@ -617,7 +617,7 @@ export enum QualityType {
|
|
|
617
617
|
*/
|
|
618
618
|
QualityDown = 6,
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* @ignore
|
|
621
621
|
*/
|
|
622
622
|
QualityUnsupported = 7,
|
|
623
623
|
/**
|
|
@@ -986,6 +986,10 @@ export enum AudioCodecType {
|
|
|
986
986
|
* @ignore
|
|
987
987
|
*/
|
|
988
988
|
AudioCodecLpcnet = 12,
|
|
989
|
+
/**
|
|
990
|
+
* @ignore
|
|
991
|
+
*/
|
|
992
|
+
AudioCodecOpusmc = 13,
|
|
989
993
|
}
|
|
990
994
|
|
|
991
995
|
/**
|
|
@@ -1148,6 +1152,30 @@ export enum VideoStreamType {
|
|
|
1148
1152
|
* 1: Low-quality video stream.
|
|
1149
1153
|
*/
|
|
1150
1154
|
VideoStreamLow = 1,
|
|
1155
|
+
/**
|
|
1156
|
+
* @ignore
|
|
1157
|
+
*/
|
|
1158
|
+
VideoStreamLayer1 = 4,
|
|
1159
|
+
/**
|
|
1160
|
+
* @ignore
|
|
1161
|
+
*/
|
|
1162
|
+
VideoStreamLayer2 = 5,
|
|
1163
|
+
/**
|
|
1164
|
+
* @ignore
|
|
1165
|
+
*/
|
|
1166
|
+
VideoStreamLayer3 = 6,
|
|
1167
|
+
/**
|
|
1168
|
+
* @ignore
|
|
1169
|
+
*/
|
|
1170
|
+
VideoStreamLayer4 = 7,
|
|
1171
|
+
/**
|
|
1172
|
+
* @ignore
|
|
1173
|
+
*/
|
|
1174
|
+
VideoStreamLayer5 = 8,
|
|
1175
|
+
/**
|
|
1176
|
+
* @ignore
|
|
1177
|
+
*/
|
|
1178
|
+
VideoStreamLayer6 = 9,
|
|
1151
1179
|
}
|
|
1152
1180
|
|
|
1153
1181
|
/**
|
|
@@ -1294,6 +1322,20 @@ export enum VideoMirrorModeType {
|
|
|
1294
1322
|
VideoMirrorModeDisabled = 2,
|
|
1295
1323
|
}
|
|
1296
1324
|
|
|
1325
|
+
/**
|
|
1326
|
+
* @ignore
|
|
1327
|
+
*/
|
|
1328
|
+
export enum CameraFormatType {
|
|
1329
|
+
/**
|
|
1330
|
+
* @ignore
|
|
1331
|
+
*/
|
|
1332
|
+
CameraFormatNv12 = 0,
|
|
1333
|
+
/**
|
|
1334
|
+
* @ignore
|
|
1335
|
+
*/
|
|
1336
|
+
CameraFormatBgra = 1,
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1297
1339
|
/**
|
|
1298
1340
|
* The bit mask of the codec type.
|
|
1299
1341
|
*/
|
|
@@ -1460,6 +1502,72 @@ export class SimulcastStreamConfig {
|
|
|
1460
1502
|
framerate?: number;
|
|
1461
1503
|
}
|
|
1462
1504
|
|
|
1505
|
+
/**
|
|
1506
|
+
* @ignore
|
|
1507
|
+
*/
|
|
1508
|
+
export enum StreamLayerIndex {
|
|
1509
|
+
/**
|
|
1510
|
+
* @ignore
|
|
1511
|
+
*/
|
|
1512
|
+
StreamLayer1 = 0,
|
|
1513
|
+
/**
|
|
1514
|
+
* @ignore
|
|
1515
|
+
*/
|
|
1516
|
+
StreamLayer2 = 1,
|
|
1517
|
+
/**
|
|
1518
|
+
* @ignore
|
|
1519
|
+
*/
|
|
1520
|
+
StreamLayer3 = 2,
|
|
1521
|
+
/**
|
|
1522
|
+
* @ignore
|
|
1523
|
+
*/
|
|
1524
|
+
StreamLayer4 = 3,
|
|
1525
|
+
/**
|
|
1526
|
+
* @ignore
|
|
1527
|
+
*/
|
|
1528
|
+
StreamLayer5 = 4,
|
|
1529
|
+
/**
|
|
1530
|
+
* @ignore
|
|
1531
|
+
*/
|
|
1532
|
+
StreamLayer6 = 5,
|
|
1533
|
+
/**
|
|
1534
|
+
* @ignore
|
|
1535
|
+
*/
|
|
1536
|
+
StreamLow = 6,
|
|
1537
|
+
/**
|
|
1538
|
+
* @ignore
|
|
1539
|
+
*/
|
|
1540
|
+
StreamLayerCountMax = 7,
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* @ignore
|
|
1545
|
+
*/
|
|
1546
|
+
export class StreamLayerConfig {
|
|
1547
|
+
/**
|
|
1548
|
+
* @ignore
|
|
1549
|
+
*/
|
|
1550
|
+
dimensions?: VideoDimensions;
|
|
1551
|
+
/**
|
|
1552
|
+
* @ignore
|
|
1553
|
+
*/
|
|
1554
|
+
framerate?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* @ignore
|
|
1557
|
+
*/
|
|
1558
|
+
enable?: boolean;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* @ignore
|
|
1563
|
+
*/
|
|
1564
|
+
export class SimulcastConfig {
|
|
1565
|
+
/**
|
|
1566
|
+
* @ignore
|
|
1567
|
+
*/
|
|
1568
|
+
configs?: StreamLayerConfig[];
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1463
1571
|
/**
|
|
1464
1572
|
* The location of the target area relative to the screen or window. If you do not set this parameter, the SDK selects the whole screen or window.
|
|
1465
1573
|
*/
|
|
@@ -1938,6 +2046,10 @@ export enum VideoApplicationScenarioType {
|
|
|
1938
2046
|
* Bitrate: 500 Kbps 1: The meeting scenario.
|
|
1939
2047
|
*/
|
|
1940
2048
|
ApplicationScenarioMeeting = 1,
|
|
2049
|
+
/**
|
|
2050
|
+
* @ignore
|
|
2051
|
+
*/
|
|
2052
|
+
ApplicationScenario1v1 = 2,
|
|
1941
2053
|
}
|
|
1942
2054
|
|
|
1943
2055
|
/**
|
|
@@ -2219,6 +2331,10 @@ export enum LocalVideoStreamReason {
|
|
|
2219
2331
|
* @ignore
|
|
2220
2332
|
*/
|
|
2221
2333
|
LocalVideoStreamReasonScreenCaptureResumed = 29,
|
|
2334
|
+
/**
|
|
2335
|
+
* @ignore
|
|
2336
|
+
*/
|
|
2337
|
+
LocalVideoStreamReasonScreenCaptureDisplayDisconnected = 30,
|
|
2222
2338
|
}
|
|
2223
2339
|
|
|
2224
2340
|
/**
|
|
@@ -3217,7 +3333,6 @@ export enum ConnectionChangedReasonType {
|
|
|
3217
3333
|
* All lowercase English letters: a to z.
|
|
3218
3334
|
* All uppercase English letters: A to Z.
|
|
3219
3335
|
* All numeric characters: 0 to 9.
|
|
3220
|
-
* Space
|
|
3221
3336
|
* "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
|
|
3222
3337
|
*/
|
|
3223
3338
|
ConnectionChangedInvalidChannelName = 7,
|
|
@@ -3436,7 +3551,7 @@ export enum VideoViewSetupMode {
|
|
|
3436
3551
|
*/
|
|
3437
3552
|
export class VideoCanvas {
|
|
3438
3553
|
/**
|
|
3439
|
-
*
|
|
3554
|
+
* User ID that publishes the video source.
|
|
3440
3555
|
*/
|
|
3441
3556
|
uid?: number;
|
|
3442
3557
|
/**
|
|
@@ -3444,7 +3559,7 @@ export class VideoCanvas {
|
|
|
3444
3559
|
*/
|
|
3445
3560
|
subviewUid?: number;
|
|
3446
3561
|
/**
|
|
3447
|
-
* The video display window.
|
|
3562
|
+
* The video display window.
|
|
3448
3563
|
*/
|
|
3449
3564
|
view?: any;
|
|
3450
3565
|
/**
|
|
@@ -3533,6 +3648,106 @@ export class BeautyOptions {
|
|
|
3533
3648
|
sharpnessLevel?: number;
|
|
3534
3649
|
}
|
|
3535
3650
|
|
|
3651
|
+
/**
|
|
3652
|
+
* @ignore
|
|
3653
|
+
*/
|
|
3654
|
+
export enum FaceShapeArea {
|
|
3655
|
+
/**
|
|
3656
|
+
* @ignore
|
|
3657
|
+
*/
|
|
3658
|
+
FaceShapeAreaNone = -1,
|
|
3659
|
+
/**
|
|
3660
|
+
* @ignore
|
|
3661
|
+
*/
|
|
3662
|
+
FaceShapeAreaHeadscale = 0,
|
|
3663
|
+
/**
|
|
3664
|
+
* @ignore
|
|
3665
|
+
*/
|
|
3666
|
+
FaceShapeAreaForehead = 1,
|
|
3667
|
+
/**
|
|
3668
|
+
* @ignore
|
|
3669
|
+
*/
|
|
3670
|
+
FaceShapeAreaFacecontour = 2,
|
|
3671
|
+
/**
|
|
3672
|
+
* @ignore
|
|
3673
|
+
*/
|
|
3674
|
+
FaceShapeAreaFacelength = 3,
|
|
3675
|
+
/**
|
|
3676
|
+
* @ignore
|
|
3677
|
+
*/
|
|
3678
|
+
FaceShapeAreaFacewidth = 4,
|
|
3679
|
+
/**
|
|
3680
|
+
* @ignore
|
|
3681
|
+
*/
|
|
3682
|
+
FaceShapeAreaCheekbone = 5,
|
|
3683
|
+
/**
|
|
3684
|
+
* @ignore
|
|
3685
|
+
*/
|
|
3686
|
+
FaceShapeAreaCheek = 6,
|
|
3687
|
+
/**
|
|
3688
|
+
* @ignore
|
|
3689
|
+
*/
|
|
3690
|
+
FaceShapeAreaChin = 7,
|
|
3691
|
+
/**
|
|
3692
|
+
* @ignore
|
|
3693
|
+
*/
|
|
3694
|
+
FaceShapeAreaEyescale = 8,
|
|
3695
|
+
/**
|
|
3696
|
+
* @ignore
|
|
3697
|
+
*/
|
|
3698
|
+
FaceShapeAreaNoselength = 9,
|
|
3699
|
+
/**
|
|
3700
|
+
* @ignore
|
|
3701
|
+
*/
|
|
3702
|
+
FaceShapeAreaNosewidth = 10,
|
|
3703
|
+
/**
|
|
3704
|
+
* @ignore
|
|
3705
|
+
*/
|
|
3706
|
+
FaceShapeAreaMouthscale = 11,
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
/**
|
|
3710
|
+
* @ignore
|
|
3711
|
+
*/
|
|
3712
|
+
export class FaceShapeAreaOptions {
|
|
3713
|
+
/**
|
|
3714
|
+
* @ignore
|
|
3715
|
+
*/
|
|
3716
|
+
shapeArea?: FaceShapeArea;
|
|
3717
|
+
/**
|
|
3718
|
+
* @ignore
|
|
3719
|
+
*/
|
|
3720
|
+
shapeIntensity?: number;
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
/**
|
|
3724
|
+
* @ignore
|
|
3725
|
+
*/
|
|
3726
|
+
export enum FaceShapeBeautyStyle {
|
|
3727
|
+
/**
|
|
3728
|
+
* @ignore
|
|
3729
|
+
*/
|
|
3730
|
+
FaceShapeBeautyStyleFemale = 0,
|
|
3731
|
+
/**
|
|
3732
|
+
* @ignore
|
|
3733
|
+
*/
|
|
3734
|
+
FaceShapeBeautyStyleMale = 1,
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* @ignore
|
|
3739
|
+
*/
|
|
3740
|
+
export class FaceShapeBeautyOptions {
|
|
3741
|
+
/**
|
|
3742
|
+
* @ignore
|
|
3743
|
+
*/
|
|
3744
|
+
shapeStyle?: FaceShapeBeautyStyle;
|
|
3745
|
+
/**
|
|
3746
|
+
* @ignore
|
|
3747
|
+
*/
|
|
3748
|
+
styleIntensity?: number;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3536
3751
|
/**
|
|
3537
3752
|
* The low-light enhancement mode.
|
|
3538
3753
|
*/
|
|
@@ -4005,6 +4220,52 @@ export enum HeadphoneEqualizerPreset {
|
|
|
4005
4220
|
HeadphoneEqualizerInear = 0x04000002,
|
|
4006
4221
|
}
|
|
4007
4222
|
|
|
4223
|
+
/**
|
|
4224
|
+
* @ignore
|
|
4225
|
+
*/
|
|
4226
|
+
export enum VoiceAiTunerType {
|
|
4227
|
+
/**
|
|
4228
|
+
* @ignore
|
|
4229
|
+
*/
|
|
4230
|
+
VoiceAiTunerMatureMale = 0,
|
|
4231
|
+
/**
|
|
4232
|
+
* @ignore
|
|
4233
|
+
*/
|
|
4234
|
+
VoiceAiTunerFreshMale = 1,
|
|
4235
|
+
/**
|
|
4236
|
+
* @ignore
|
|
4237
|
+
*/
|
|
4238
|
+
VoiceAiTunerElegantFemale = 2,
|
|
4239
|
+
/**
|
|
4240
|
+
* @ignore
|
|
4241
|
+
*/
|
|
4242
|
+
VoiceAiTunerSweetFemale = 3,
|
|
4243
|
+
/**
|
|
4244
|
+
* @ignore
|
|
4245
|
+
*/
|
|
4246
|
+
VoiceAiTunerWarmMaleSinging = 4,
|
|
4247
|
+
/**
|
|
4248
|
+
* @ignore
|
|
4249
|
+
*/
|
|
4250
|
+
VoiceAiTunerGentleFemaleSinging = 5,
|
|
4251
|
+
/**
|
|
4252
|
+
* @ignore
|
|
4253
|
+
*/
|
|
4254
|
+
VoiceAiTunerHuskyMaleSinging = 6,
|
|
4255
|
+
/**
|
|
4256
|
+
* @ignore
|
|
4257
|
+
*/
|
|
4258
|
+
VoiceAiTunerWarmElegantFemaleSinging = 7,
|
|
4259
|
+
/**
|
|
4260
|
+
* @ignore
|
|
4261
|
+
*/
|
|
4262
|
+
VoiceAiTunerPowerfulMaleSinging = 8,
|
|
4263
|
+
/**
|
|
4264
|
+
* @ignore
|
|
4265
|
+
*/
|
|
4266
|
+
VoiceAiTunerDreamyFemaleSinging = 9,
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4008
4269
|
/**
|
|
4009
4270
|
* Screen sharing configurations.
|
|
4010
4271
|
*/
|
|
@@ -4293,6 +4554,10 @@ export enum AreaCodeEx {
|
|
|
4293
4554
|
* @ignore
|
|
4294
4555
|
*/
|
|
4295
4556
|
AreaCodeUs = 0x00000800,
|
|
4557
|
+
/**
|
|
4558
|
+
* @ignore
|
|
4559
|
+
*/
|
|
4560
|
+
AreaCodeRu = 0x00001000,
|
|
4296
4561
|
/**
|
|
4297
4562
|
* @ignore
|
|
4298
4563
|
*/
|