agora-electron-sdk 4.2.6 → 4.3.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/CHANGELOG.md +20 -0
- package/js/Private/AgoraBase.js +139 -174
- package/js/Private/AgoraMediaBase.js +49 -20
- package/js/Private/AgoraMediaPlayerTypes.js +32 -23
- package/js/Private/IAgoraH265Transcoder.js +39 -0
- package/js/Private/IAgoraMediaStreamingSource.js +32 -32
- package/js/Private/IAgoraMusicContentCenter.js +19 -19
- package/js/Private/IAgoraRhythmPlayer.js +9 -9
- package/js/Private/IAgoraRtcEngine.js +12 -12
- package/js/Private/IAgoraSpatialAudio.js +3 -31
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +26 -2
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +119 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +13 -13
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +92 -74
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +12 -2
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +2 -2
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +20 -20
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +66 -84
- package/js/Private/impl/IAgoraRtcEngineImpl.js +456 -440
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +157 -181
- package/js/Private/impl/IAudioDeviceManagerImpl.js +22 -22
- package/js/Private/internal/AgoraH265TranscoderInternal.js +86 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +34 -0
- package/js/Private/internal/IrisApiEngine.js +35 -20
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +0 -39
- package/js/Private/internal/MediaPlayerInternal.js +22 -21
- package/js/Private/internal/MusicContentCenterInternal.js +1 -4
- package/js/Private/internal/RtcEngineExInternal.js +101 -134
- package/js/Private/ti/AgoraMediaBase-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +4 -2
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +5 -5
- package/js/Private/ti/IAgoraRtcEngine-ti.js +12 -11
- package/js/Renderer/AgoraView.js +28 -14
- package/js/Renderer/IRenderer.js +65 -17
- package/js/Renderer/IRendererManager.js +230 -0
- package/js/Renderer/RendererCache.js +170 -0
- package/js/Renderer/RendererManager.js +49 -460
- package/js/Renderer/WebGLRenderer/index.js +82 -234
- package/js/Renderer/YUVCanvasRenderer/index.js +27 -147
- package/js/Types.js +6 -6
- package/js/Utils.js +37 -88
- package/package.json +4 -3
- package/scripts/clean.js +12 -0
- package/scripts/synclib.js +8 -2
- package/ts/Private/AgoraBase.ts +225 -201
- package/ts/Private/AgoraMediaBase.ts +63 -25
- package/ts/Private/AgoraMediaPlayerTypes.ts +67 -24
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +1 -0
- package/ts/Private/IAgoraMediaEngine.ts +12 -7
- package/ts/Private/IAgoraMediaPlayer.ts +47 -21
- package/ts/Private/IAgoraMediaPlayerSource.ts +27 -6
- package/ts/Private/IAgoraMediaStreamingSource.ts +38 -37
- package/ts/Private/IAgoraMusicContentCenter.ts +20 -20
- package/ts/Private/IAgoraRhythmPlayer.ts +7 -6
- package/ts/Private/IAgoraRtcEngine.ts +407 -364
- package/ts/Private/IAgoraRtcEngineEx.ts +25 -61
- package/ts/Private/IAgoraSpatialAudio.ts +80 -191
- package/ts/Private/IAudioDeviceManager.ts +27 -14
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +25 -1
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +13 -13
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +110 -81
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +17 -2
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +2 -2
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +21 -21
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +71 -106
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +589 -572
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +211 -218
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +22 -22
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/IrisApiEngine.ts +42 -27
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +1 -86
- package/ts/Private/internal/MediaPlayerInternal.ts +20 -29
- package/ts/Private/internal/MusicContentCenterInternal.ts +1 -5
- package/ts/Private/internal/RtcEngineExInternal.ts +91 -204
- package/ts/Private/ti/AgoraMediaBase-ti.ts +1 -1
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +4 -2
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +5 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +12 -11
- package/ts/Renderer/AgoraView.ts +29 -19
- package/ts/Renderer/IRenderer.ts +71 -22
- package/ts/Renderer/IRendererManager.ts +273 -19
- package/ts/Renderer/RendererCache.ts +167 -0
- package/ts/Renderer/RendererManager.ts +62 -607
- package/ts/Renderer/WebGLRenderer/index.ts +117 -295
- package/ts/Renderer/YUVCanvasRenderer/index.ts +45 -198
- package/ts/Types.ts +17 -194
- package/ts/Utils.ts +36 -100
- package/types/Private/AgoraBase.d.ts +219 -200
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +63 -27
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +65 -24
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +11 -6
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +42 -20
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +23 -6
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts +19 -19
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +6 -6
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +329 -293
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +21 -53
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +56 -167
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +27 -14
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +5 -1
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +6 -4
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +2 -4
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +30 -25
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +20 -22
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -1
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +5 -2
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -15
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +0 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +7 -13
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -1
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -1
- package/types/Renderer/AgoraView.d.ts +4 -4
- package/types/Renderer/AgoraView.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts +11 -9
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts +50 -12
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Renderer/RendererCache.d.ts +36 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +13 -139
- package/types/Renderer/RendererManager.d.ts.map +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts +3 -18
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -1
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +4 -10
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -1
- package/types/Types.d.ts +11 -187
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +3 -20
- package/types/Utils.d.ts.map +1 -1
package/ts/Private/AgoraBase.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import './extension/AgoraBaseExtension';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
RenderModeType,
|
|
4
|
+
VideoModulePosition,
|
|
5
|
+
VideoSourceType,
|
|
6
|
+
} from './AgoraMediaBase';
|
|
3
7
|
|
|
4
8
|
/**
|
|
5
9
|
* The channel profile.
|
|
@@ -438,10 +442,6 @@ export enum ErrorCodeType {
|
|
|
438
442
|
* 1501: Permission to access the camera is not granted. Check whether permission to access the camera permission is granted.
|
|
439
443
|
*/
|
|
440
444
|
ErrVdmCameraNotAuthorized = 1501,
|
|
441
|
-
/**
|
|
442
|
-
* @ignore
|
|
443
|
-
*/
|
|
444
|
-
ErrAdmApplicationLoopback = 2007,
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
/**
|
|
@@ -558,10 +558,6 @@ export enum InterfaceIdType {
|
|
|
558
558
|
* @ignore
|
|
559
559
|
*/
|
|
560
560
|
AgoraIidMediaEngineRegulator = 9,
|
|
561
|
-
/**
|
|
562
|
-
* @ignore
|
|
563
|
-
*/
|
|
564
|
-
AgoraIidCloudSpatialAudio = 10,
|
|
565
561
|
/**
|
|
566
562
|
* @ignore
|
|
567
563
|
*/
|
|
@@ -573,7 +569,7 @@ export enum InterfaceIdType {
|
|
|
573
569
|
/**
|
|
574
570
|
* @ignore
|
|
575
571
|
*/
|
|
576
|
-
|
|
572
|
+
AgoraIidMetaService = 14,
|
|
577
573
|
/**
|
|
578
574
|
* @ignore
|
|
579
575
|
*/
|
|
@@ -855,7 +851,7 @@ export enum VideoCodecCapabilityLevel {
|
|
|
855
851
|
*/
|
|
856
852
|
export enum VideoCodecType {
|
|
857
853
|
/**
|
|
858
|
-
*
|
|
854
|
+
* 0: (Default) Unspecified codec format. The SDK automatically matches the appropriate codec format based on the current video stream's resolution and device performance.
|
|
859
855
|
*/
|
|
860
856
|
VideoCodecNone = 0,
|
|
861
857
|
/**
|
|
@@ -863,7 +859,7 @@ export enum VideoCodecType {
|
|
|
863
859
|
*/
|
|
864
860
|
VideoCodecVp8 = 1,
|
|
865
861
|
/**
|
|
866
|
-
* 2:
|
|
862
|
+
* 2: Standard H.264.
|
|
867
863
|
*/
|
|
868
864
|
VideoCodecH264 = 2,
|
|
869
865
|
/**
|
|
@@ -1142,10 +1138,24 @@ export class VideoSubscriptionOptions {
|
|
|
1142
1138
|
encodedFrameOnly?: boolean;
|
|
1143
1139
|
}
|
|
1144
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* The maximum length of the user account.
|
|
1143
|
+
*/
|
|
1144
|
+
export enum MaxUserAccountLengthType {
|
|
1145
|
+
/**
|
|
1146
|
+
* The maximum length of the user account is 256 bytes.
|
|
1147
|
+
*/
|
|
1148
|
+
MaxUserAccountLength = 256,
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1145
1151
|
/**
|
|
1146
1152
|
* Information about externally encoded video frames.
|
|
1147
1153
|
*/
|
|
1148
1154
|
export class EncodedVideoFrameInfo {
|
|
1155
|
+
/**
|
|
1156
|
+
* The user ID to push the externally encoded video frame.
|
|
1157
|
+
*/
|
|
1158
|
+
uid?: number;
|
|
1149
1159
|
/**
|
|
1150
1160
|
* The codec type of the local video stream. See VideoCodecType. The default value is VideoCodecH264 (2).
|
|
1151
1161
|
*/
|
|
@@ -1182,10 +1192,6 @@ export class EncodedVideoFrameInfo {
|
|
|
1182
1192
|
* @ignore
|
|
1183
1193
|
*/
|
|
1184
1194
|
decodeTimeMs?: number;
|
|
1185
|
-
/**
|
|
1186
|
-
* The user ID to push the externally encoded video frame.
|
|
1187
|
-
*/
|
|
1188
|
-
uid?: number;
|
|
1189
1195
|
/**
|
|
1190
1196
|
* The type of video streams. See VideoStreamType.
|
|
1191
1197
|
*/
|
|
@@ -1333,7 +1339,7 @@ export class VideoEncoderConfiguration {
|
|
|
1333
1339
|
*/
|
|
1334
1340
|
frameRate?: number;
|
|
1335
1341
|
/**
|
|
1336
|
-
* The encoding bitrate (Kbps) of the video.
|
|
1342
|
+
* The encoding bitrate (Kbps) of the video. This parameter does not need to be set; keeping the default value STANDARD_BITRATE is sufficient. The SDK automatically matches the most suitable bitrate based on the video resolution and frame rate you have set. For the correspondence between video resolution, frame rate, and bitrate, please refer to. STANDARD_BITRATE (0): (Recommended) Standard bitrate mode. COMPATIBLE_BITRATE (-1): Adaptive bitrate mode. In general, Agora suggests that you do not use this value.
|
|
1337
1343
|
*/
|
|
1338
1344
|
bitrate?: number;
|
|
1339
1345
|
/**
|
|
@@ -1379,7 +1385,7 @@ export class DataStreamConfig {
|
|
|
1379
1385
|
*/
|
|
1380
1386
|
export enum SimulcastStreamMode {
|
|
1381
1387
|
/**
|
|
1382
|
-
* -1: By default, the low-quality video
|
|
1388
|
+
* -1: By default, do not send the low-quality video stream until a subscription request for the low-quality video stream is received from the receiving end, then automatically start sending low-quality video stream.
|
|
1383
1389
|
*/
|
|
1384
1390
|
AutoSimulcastStream = -1,
|
|
1385
1391
|
/**
|
|
@@ -1459,7 +1465,7 @@ export class WatermarkRatio {
|
|
|
1459
1465
|
*/
|
|
1460
1466
|
export class WatermarkOptions {
|
|
1461
1467
|
/**
|
|
1462
|
-
*
|
|
1468
|
+
* Is the watermark visible in the local preview view? true : (Default) The watermark is visible in the local preview view. false : The watermark is not visible in the local preview view.
|
|
1463
1469
|
*/
|
|
1464
1470
|
visibleInPreview?: boolean;
|
|
1465
1471
|
/**
|
|
@@ -1513,11 +1519,11 @@ export class RtcStats {
|
|
|
1513
1519
|
*/
|
|
1514
1520
|
rxVideoBytes?: number;
|
|
1515
1521
|
/**
|
|
1516
|
-
*
|
|
1522
|
+
* The actual bitrate (Kbps) while sending the local video stream.
|
|
1517
1523
|
*/
|
|
1518
1524
|
txKBitRate?: number;
|
|
1519
1525
|
/**
|
|
1520
|
-
* The receiving bitrate (Kbps)
|
|
1526
|
+
* The receiving bitrate (Kbps).
|
|
1521
1527
|
*/
|
|
1522
1528
|
rxKBitRate?: number;
|
|
1523
1529
|
/**
|
|
@@ -1890,6 +1896,28 @@ export enum VideoApplicationScenarioType {
|
|
|
1890
1896
|
ApplicationScenarioMeeting = 1,
|
|
1891
1897
|
}
|
|
1892
1898
|
|
|
1899
|
+
/**
|
|
1900
|
+
* @ignore
|
|
1901
|
+
*/
|
|
1902
|
+
export enum VideoQoePreferenceType {
|
|
1903
|
+
/**
|
|
1904
|
+
* @ignore
|
|
1905
|
+
*/
|
|
1906
|
+
VideoQoePreferenceBalance = 1,
|
|
1907
|
+
/**
|
|
1908
|
+
* @ignore
|
|
1909
|
+
*/
|
|
1910
|
+
VideoQoePreferenceDelayFirst = 2,
|
|
1911
|
+
/**
|
|
1912
|
+
* @ignore
|
|
1913
|
+
*/
|
|
1914
|
+
VideoQoePreferencePictureQualityFirst = 3,
|
|
1915
|
+
/**
|
|
1916
|
+
* @ignore
|
|
1917
|
+
*/
|
|
1918
|
+
VideoQoePreferenceFluencyFirst = 4,
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1893
1921
|
/**
|
|
1894
1922
|
* The brightness level of the video image captured by the local camera.
|
|
1895
1923
|
*/
|
|
@@ -1935,53 +1963,53 @@ export enum LocalAudioStreamState {
|
|
|
1935
1963
|
}
|
|
1936
1964
|
|
|
1937
1965
|
/**
|
|
1938
|
-
*
|
|
1966
|
+
* Reasons for local audio state changes.
|
|
1939
1967
|
*/
|
|
1940
|
-
export enum
|
|
1968
|
+
export enum LocalAudioStreamReason {
|
|
1941
1969
|
/**
|
|
1942
1970
|
* 0: The local audio is normal.
|
|
1943
1971
|
*/
|
|
1944
|
-
|
|
1972
|
+
LocalAudioStreamReasonOk = 0,
|
|
1945
1973
|
/**
|
|
1946
1974
|
* 1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
|
|
1947
1975
|
*/
|
|
1948
|
-
|
|
1976
|
+
LocalAudioStreamReasonFailure = 1,
|
|
1949
1977
|
/**
|
|
1950
1978
|
* 2: No permission to use the local audio capturing device. Remind your users to grant permission. Deprecated: This enumerator is deprecated. Please use RecordAudio in the onPermissionError callback instead.
|
|
1951
1979
|
*/
|
|
1952
|
-
|
|
1980
|
+
LocalAudioStreamReasonDeviceNoPermission = 2,
|
|
1953
1981
|
/**
|
|
1954
1982
|
* @ignore
|
|
1955
1983
|
*/
|
|
1956
|
-
|
|
1984
|
+
LocalAudioStreamReasonDeviceBusy = 3,
|
|
1957
1985
|
/**
|
|
1958
1986
|
* 4: The local audio capture fails.
|
|
1959
1987
|
*/
|
|
1960
|
-
|
|
1988
|
+
LocalAudioStreamReasonRecordFailure = 4,
|
|
1961
1989
|
/**
|
|
1962
1990
|
* 5: The local audio encoding fails.
|
|
1963
1991
|
*/
|
|
1964
|
-
|
|
1992
|
+
LocalAudioStreamReasonEncodeFailure = 5,
|
|
1965
1993
|
/**
|
|
1966
|
-
* 6:
|
|
1994
|
+
* 6: No local audio capture device. Remind your users to check whether the microphone is connected to the device properly in the control plane of the device or if the microphone is working properly.
|
|
1967
1995
|
*/
|
|
1968
|
-
|
|
1996
|
+
LocalAudioStreamReasonNoRecordingDevice = 6,
|
|
1969
1997
|
/**
|
|
1970
|
-
* 7:
|
|
1998
|
+
* 7: No local audio capture device. Remind your users to check whether the speaker is connected to the device properly in the control plane of the device or if the speaker is working properly.
|
|
1971
1999
|
*/
|
|
1972
|
-
|
|
2000
|
+
LocalAudioStreamReasonNoPlayoutDevice = 7,
|
|
1973
2001
|
/**
|
|
1974
2002
|
* @ignore
|
|
1975
2003
|
*/
|
|
1976
|
-
|
|
2004
|
+
LocalAudioStreamReasonInterrupted = 8,
|
|
1977
2005
|
/**
|
|
1978
2006
|
* 9: (Windows only) The ID of the local audio-capture device is invalid. Check the audio capture device ID.
|
|
1979
2007
|
*/
|
|
1980
|
-
|
|
2008
|
+
LocalAudioStreamReasonRecordInvalidId = 9,
|
|
1981
2009
|
/**
|
|
1982
2010
|
* 10: (Windows only) The ID of the local audio-playback device is invalid. Check the audio playback device ID.
|
|
1983
2011
|
*/
|
|
1984
|
-
|
|
2012
|
+
LocalAudioStreamReasonPlayoutInvalidId = 10,
|
|
1985
2013
|
}
|
|
1986
2014
|
|
|
1987
2015
|
/**
|
|
@@ -2007,104 +2035,108 @@ export enum LocalVideoStreamState {
|
|
|
2007
2035
|
}
|
|
2008
2036
|
|
|
2009
2037
|
/**
|
|
2010
|
-
*
|
|
2038
|
+
* Reasons for local video state changes.
|
|
2011
2039
|
*/
|
|
2012
|
-
export enum
|
|
2040
|
+
export enum LocalVideoStreamReason {
|
|
2013
2041
|
/**
|
|
2014
2042
|
* 0: The local video is normal.
|
|
2015
2043
|
*/
|
|
2016
|
-
|
|
2044
|
+
LocalVideoStreamReasonOk = 0,
|
|
2017
2045
|
/**
|
|
2018
2046
|
* 1: No specified reason for the local video failure.
|
|
2019
2047
|
*/
|
|
2020
|
-
|
|
2048
|
+
LocalVideoStreamReasonFailure = 1,
|
|
2021
2049
|
/**
|
|
2022
2050
|
* 2: No permission to use the local video capturing device. Remind the user to grant permissions and rejoin the channel. Deprecated: This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
|
|
2023
2051
|
*/
|
|
2024
|
-
|
|
2052
|
+
LocalVideoStreamReasonDeviceNoPermission = 2,
|
|
2025
2053
|
/**
|
|
2026
2054
|
* 3: The local video capturing device is in use. Remind the user to check whether another application occupies the camera.
|
|
2027
2055
|
*/
|
|
2028
|
-
|
|
2056
|
+
LocalVideoStreamReasonDeviceBusy = 3,
|
|
2029
2057
|
/**
|
|
2030
2058
|
* 4: The local video capture fails. Remind your user to check whether the video capture device is working properly, whether the camera is occupied by another application, or try to rejoin the channel.
|
|
2031
2059
|
*/
|
|
2032
|
-
|
|
2060
|
+
LocalVideoStreamReasonCaptureFailure = 4,
|
|
2033
2061
|
/**
|
|
2034
2062
|
* 5: The local video encoding fails.
|
|
2035
2063
|
*/
|
|
2036
|
-
|
|
2064
|
+
LocalVideoStreamReasonCodecNotSupport = 5,
|
|
2037
2065
|
/**
|
|
2038
2066
|
* @ignore
|
|
2039
2067
|
*/
|
|
2040
|
-
|
|
2068
|
+
LocalVideoStreamReasonCaptureInbackground = 6,
|
|
2041
2069
|
/**
|
|
2042
2070
|
* @ignore
|
|
2043
2071
|
*/
|
|
2044
|
-
|
|
2072
|
+
LocalVideoStreamReasonCaptureMultipleForegroundApps = 7,
|
|
2045
2073
|
/**
|
|
2046
2074
|
* 8: Fails to find a local video capture device. Remind the user to check whether the camera is connected to the device properly or the camera is working properly, and then to rejoin the channel.
|
|
2047
2075
|
*/
|
|
2048
|
-
|
|
2076
|
+
LocalVideoStreamReasonDeviceNotFound = 8,
|
|
2049
2077
|
/**
|
|
2050
2078
|
* 9: (macOS only) The video capture device currently in use is disconnected (such as being unplugged).
|
|
2051
2079
|
*/
|
|
2052
|
-
|
|
2080
|
+
LocalVideoStreamReasonDeviceDisconnected = 9,
|
|
2053
2081
|
/**
|
|
2054
2082
|
* 10: (macOS and Windows only) The SDK cannot find the video device in the video device list. Check whether the ID of the video device is valid.
|
|
2055
2083
|
*/
|
|
2056
|
-
|
|
2084
|
+
LocalVideoStreamReasonDeviceInvalidId = 10,
|
|
2057
2085
|
/**
|
|
2058
2086
|
* 101: The current video capture device is unavailable due to excessive system pressure.
|
|
2059
2087
|
*/
|
|
2060
|
-
|
|
2088
|
+
LocalVideoStreamReasonDeviceSystemPressure = 101,
|
|
2061
2089
|
/**
|
|
2062
|
-
* 11: (macOS only) The shared
|
|
2090
|
+
* 11: (macOS and Windows only) The shared windows is minimized when you call the startScreenCaptureByWindowId method to share a window. The SDK cannot share a minimized window. You can cancel the minimization of this window at the application layer, for example by maximizing this window.
|
|
2063
2091
|
*/
|
|
2064
|
-
|
|
2092
|
+
LocalVideoStreamReasonScreenCaptureWindowMinimized = 11,
|
|
2065
2093
|
/**
|
|
2066
2094
|
* 12: (macOS and Windows only) The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing. Common scenarios reporting this error code:
|
|
2067
2095
|
* When the local user closes the shared window, the SDK reports this error code.
|
|
2068
2096
|
* The local user shows some slides in full-screen mode first, and then shares the windows of the slides. After the user exits full-screen mode, the SDK reports this error code.
|
|
2069
2097
|
* The local user watches a web video or reads a web document in full-screen mode first, and then shares the window of the web video or document. After the user exits full-screen mode, the SDK reports this error code.
|
|
2070
2098
|
*/
|
|
2071
|
-
|
|
2099
|
+
LocalVideoStreamReasonScreenCaptureWindowClosed = 12,
|
|
2072
2100
|
/**
|
|
2073
2101
|
* 13: (Windows only) The window being shared is overlapped by another window, so the overlapped area is blacked out by the SDK during window sharing.
|
|
2074
2102
|
*/
|
|
2075
|
-
|
|
2103
|
+
LocalVideoStreamReasonScreenCaptureWindowOccluded = 13,
|
|
2076
2104
|
/**
|
|
2077
2105
|
* @ignore
|
|
2078
2106
|
*/
|
|
2079
|
-
|
|
2107
|
+
LocalVideoStreamReasonScreenCaptureWindowNotSupported = 20,
|
|
2080
2108
|
/**
|
|
2081
2109
|
* @ignore
|
|
2082
2110
|
*/
|
|
2083
|
-
|
|
2111
|
+
LocalVideoStreamReasonScreenCaptureFailure = 21,
|
|
2084
2112
|
/**
|
|
2085
2113
|
* @ignore
|
|
2086
2114
|
*/
|
|
2087
|
-
|
|
2115
|
+
LocalVideoStreamReasonScreenCaptureNoPermission = 22,
|
|
2088
2116
|
/**
|
|
2089
2117
|
* @ignore
|
|
2090
2118
|
*/
|
|
2091
|
-
|
|
2119
|
+
LocalVideoStreamReasonScreenCaptureAutoFallback = 24,
|
|
2092
2120
|
/**
|
|
2093
2121
|
* @ignore
|
|
2094
2122
|
*/
|
|
2095
|
-
|
|
2123
|
+
LocalVideoStreamReasonScreenCaptureWindowHidden = 25,
|
|
2096
2124
|
/**
|
|
2097
2125
|
* @ignore
|
|
2098
2126
|
*/
|
|
2099
|
-
|
|
2127
|
+
LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden = 26,
|
|
2100
2128
|
/**
|
|
2101
2129
|
* @ignore
|
|
2102
2130
|
*/
|
|
2103
|
-
|
|
2131
|
+
LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized = 27,
|
|
2104
2132
|
/**
|
|
2105
2133
|
* @ignore
|
|
2106
2134
|
*/
|
|
2107
|
-
|
|
2135
|
+
LocalVideoStreamReasonScreenCapturePaused = 28,
|
|
2136
|
+
/**
|
|
2137
|
+
* @ignore
|
|
2138
|
+
*/
|
|
2139
|
+
LocalVideoStreamReasonScreenCaptureResumed = 29,
|
|
2108
2140
|
}
|
|
2109
2141
|
|
|
2110
2142
|
/**
|
|
@@ -2234,11 +2266,11 @@ export enum RemoteVideoStateReason {
|
|
|
2234
2266
|
*/
|
|
2235
2267
|
RemoteVideoStateReasonRemoteOffline = 7,
|
|
2236
2268
|
/**
|
|
2237
|
-
*
|
|
2269
|
+
* 8: The remote audio-and-video stream falls back to the audio-only stream due to poor network conditions.
|
|
2238
2270
|
*/
|
|
2239
2271
|
RemoteVideoStateReasonAudioFallback = 8,
|
|
2240
2272
|
/**
|
|
2241
|
-
*
|
|
2273
|
+
* 9: The remote audio-only stream switches back to the audio-and-video stream after the network conditions improve.
|
|
2242
2274
|
*/
|
|
2243
2275
|
RemoteVideoStateReasonAudioFallbackRecovery = 9,
|
|
2244
2276
|
/**
|
|
@@ -2494,9 +2526,21 @@ export class LocalAudioStats {
|
|
|
2494
2526
|
*/
|
|
2495
2527
|
txPacketLossRate?: number;
|
|
2496
2528
|
/**
|
|
2497
|
-
* The
|
|
2529
|
+
* The audio device module delay (ms) when playing or recording audio.
|
|
2498
2530
|
*/
|
|
2499
2531
|
audioDeviceDelay?: number;
|
|
2532
|
+
/**
|
|
2533
|
+
* @ignore
|
|
2534
|
+
*/
|
|
2535
|
+
audioPlayoutDelay?: number;
|
|
2536
|
+
/**
|
|
2537
|
+
* The ear monitor delay (ms), which is the delay from microphone input to headphone output.
|
|
2538
|
+
*/
|
|
2539
|
+
earMonitorDelay?: number;
|
|
2540
|
+
/**
|
|
2541
|
+
* Acoustic echo cancellation (AEC) module estimated delay (ms), which is the signal delay between when audio is played locally before being locally captured.
|
|
2542
|
+
*/
|
|
2543
|
+
aecEstimatedDelay?: number;
|
|
2500
2544
|
}
|
|
2501
2545
|
|
|
2502
2546
|
/**
|
|
@@ -2532,77 +2576,77 @@ export enum RtmpStreamPublishState {
|
|
|
2532
2576
|
}
|
|
2533
2577
|
|
|
2534
2578
|
/**
|
|
2535
|
-
*
|
|
2579
|
+
* Reasons for changes in the status of RTMP or RTMPS streaming.
|
|
2536
2580
|
*/
|
|
2537
|
-
export enum
|
|
2581
|
+
export enum RtmpStreamPublishReason {
|
|
2538
2582
|
/**
|
|
2539
2583
|
* 0: The RTMP or RTMPS streaming has not started or has ended.
|
|
2540
2584
|
*/
|
|
2541
|
-
|
|
2585
|
+
RtmpStreamPublishReasonOk = 0,
|
|
2542
2586
|
/**
|
|
2543
2587
|
* 1: Invalid argument used. Check the parameter setting.
|
|
2544
2588
|
*/
|
|
2545
|
-
|
|
2589
|
+
RtmpStreamPublishReasonInvalidArgument = 1,
|
|
2546
2590
|
/**
|
|
2547
2591
|
* 2: The RTMP or RTMPS streaming is encrypted and cannot be published.
|
|
2548
2592
|
*/
|
|
2549
|
-
|
|
2593
|
+
RtmpStreamPublishReasonEncryptedStreamNotAllowed = 2,
|
|
2550
2594
|
/**
|
|
2551
2595
|
* 3: Timeout for the RTMP or RTMPS streaming.
|
|
2552
2596
|
*/
|
|
2553
|
-
|
|
2597
|
+
RtmpStreamPublishReasonConnectionTimeout = 3,
|
|
2554
2598
|
/**
|
|
2555
2599
|
* 4: An error occurs in Agora's streaming server.
|
|
2556
2600
|
*/
|
|
2557
|
-
|
|
2601
|
+
RtmpStreamPublishReasonInternalServerError = 4,
|
|
2558
2602
|
/**
|
|
2559
2603
|
* 5: An error occurs in the CDN server.
|
|
2560
2604
|
*/
|
|
2561
|
-
|
|
2605
|
+
RtmpStreamPublishReasonRtmpServerError = 5,
|
|
2562
2606
|
/**
|
|
2563
2607
|
* 6: The RTMP or RTMPS streaming publishes too frequently.
|
|
2564
2608
|
*/
|
|
2565
|
-
|
|
2609
|
+
RtmpStreamPublishReasonTooOften = 6,
|
|
2566
2610
|
/**
|
|
2567
2611
|
* 7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
|
2568
2612
|
*/
|
|
2569
|
-
|
|
2613
|
+
RtmpStreamPublishReasonReachLimit = 7,
|
|
2570
2614
|
/**
|
|
2571
2615
|
* 8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
|
|
2572
2616
|
*/
|
|
2573
|
-
|
|
2617
|
+
RtmpStreamPublishReasonNotAuthorized = 8,
|
|
2574
2618
|
/**
|
|
2575
2619
|
* 9: Agora's server fails to find the RTMP or RTMPS streaming.
|
|
2576
2620
|
*/
|
|
2577
|
-
|
|
2621
|
+
RtmpStreamPublishReasonStreamNotFound = 9,
|
|
2578
2622
|
/**
|
|
2579
2623
|
* 10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
|
|
2580
2624
|
*/
|
|
2581
|
-
|
|
2625
|
+
RtmpStreamPublishReasonFormatNotSupported = 10,
|
|
2582
2626
|
/**
|
|
2583
2627
|
* 11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
|
|
2584
2628
|
*/
|
|
2585
|
-
|
|
2629
|
+
RtmpStreamPublishReasonNotBroadcaster = 11,
|
|
2586
2630
|
/**
|
|
2587
2631
|
* 13: The updateRtmpTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic.
|
|
2588
2632
|
*/
|
|
2589
|
-
|
|
2633
|
+
RtmpStreamPublishReasonTranscodingNoMixStream = 13,
|
|
2590
2634
|
/**
|
|
2591
2635
|
* 14: Errors occurred in the host's network.
|
|
2592
2636
|
*/
|
|
2593
|
-
|
|
2637
|
+
RtmpStreamPublishReasonNetDown = 14,
|
|
2594
2638
|
/**
|
|
2595
2639
|
* @ignore
|
|
2596
2640
|
*/
|
|
2597
|
-
|
|
2641
|
+
RtmpStreamPublishReasonInvalidAppid = 15,
|
|
2598
2642
|
/**
|
|
2599
2643
|
* 16: Your project does not have permission to use streaming services. Refer to Media Push to enable the Media Push permission.
|
|
2600
2644
|
*/
|
|
2601
|
-
|
|
2645
|
+
RtmpStreamPublishReasonInvalidPrivilege = 16,
|
|
2602
2646
|
/**
|
|
2603
|
-
*
|
|
2647
|
+
* @ignore
|
|
2604
2648
|
*/
|
|
2605
|
-
|
|
2649
|
+
RtmpStreamUnpublishReasonOk = 100,
|
|
2606
2650
|
}
|
|
2607
2651
|
|
|
2608
2652
|
/**
|
|
@@ -2638,19 +2682,19 @@ export class RtcImage {
|
|
|
2638
2682
|
*/
|
|
2639
2683
|
url?: string;
|
|
2640
2684
|
/**
|
|
2641
|
-
* The x
|
|
2685
|
+
* The x-coordinate (px) of the image on the video frame (taking the upper left corner of the video frame as the origin).
|
|
2642
2686
|
*/
|
|
2643
2687
|
x?: number;
|
|
2644
2688
|
/**
|
|
2645
|
-
* The y
|
|
2689
|
+
* The y-coordinate (px) of the image on the video frame (taking the upper left corner of the video frame as the origin).
|
|
2646
2690
|
*/
|
|
2647
2691
|
y?: number;
|
|
2648
2692
|
/**
|
|
2649
|
-
* The width (
|
|
2693
|
+
* The width (px) of the image on the video frame.
|
|
2650
2694
|
*/
|
|
2651
2695
|
width?: number;
|
|
2652
2696
|
/**
|
|
2653
|
-
* The height (
|
|
2697
|
+
* The height (px) of the image on the video frame.
|
|
2654
2698
|
*/
|
|
2655
2699
|
height?: number;
|
|
2656
2700
|
/**
|
|
@@ -3150,6 +3194,14 @@ export enum ConnectionChangedReasonType {
|
|
|
3150
3194
|
* @ignore
|
|
3151
3195
|
*/
|
|
3152
3196
|
ConnectionChangedCertificationVeryfyFailure = 22,
|
|
3197
|
+
/**
|
|
3198
|
+
* @ignore
|
|
3199
|
+
*/
|
|
3200
|
+
ConnectionChangedStreamChannelNotAvailable = 23,
|
|
3201
|
+
/**
|
|
3202
|
+
* @ignore
|
|
3203
|
+
*/
|
|
3204
|
+
ConnectionChangedInconsistentAppid = 24,
|
|
3153
3205
|
}
|
|
3154
3206
|
|
|
3155
3207
|
/**
|
|
@@ -3288,14 +3340,18 @@ export enum VideoViewSetupMode {
|
|
|
3288
3340
|
* Attributes of the video canvas object.
|
|
3289
3341
|
*/
|
|
3290
3342
|
export class VideoCanvas {
|
|
3291
|
-
/**
|
|
3292
|
-
* The video display window.
|
|
3293
|
-
*/
|
|
3294
|
-
view?: any;
|
|
3295
3343
|
/**
|
|
3296
3344
|
* The user ID.
|
|
3297
3345
|
*/
|
|
3298
3346
|
uid?: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Reserved for future use.
|
|
3349
|
+
*/
|
|
3350
|
+
subviewUid?: number;
|
|
3351
|
+
/**
|
|
3352
|
+
* The video display window.
|
|
3353
|
+
*/
|
|
3354
|
+
view?: any;
|
|
3299
3355
|
/**
|
|
3300
3356
|
* The background color of the video canvas in RGBA format. The default value is 0x00000000, which represents completely transparent black.
|
|
3301
3357
|
*/
|
|
@@ -3327,12 +3383,16 @@ export class VideoCanvas {
|
|
|
3327
3383
|
*/
|
|
3328
3384
|
cropArea?: Rectangle;
|
|
3329
3385
|
/**
|
|
3330
|
-
* (Optional) Whether the receiver enables alpha mask rendering: true : The receiver enables alpha mask rendering. false : (default) The receiver disables alpha mask rendering. Alpha mask rendering can create images with transparent effects and extract portraits from videos. When used in combination with other methods, you can implement effects such as
|
|
3386
|
+
* (Optional) Whether the receiver enables alpha mask rendering: true : The receiver enables alpha mask rendering. false : (default) The receiver disables alpha mask rendering. Alpha mask rendering can create images with transparent effects and extract portraits from videos. When used in combination with other methods, you can implement effects such as portrait-in-picture and watermarking.
|
|
3331
3387
|
* This property applies to macOS only.
|
|
3332
3388
|
* The receiver can render alpha channel information only when the sender enables alpha transmission.
|
|
3333
3389
|
* To enable alpha transmission,.
|
|
3334
3390
|
*/
|
|
3335
3391
|
enableAlphaMask?: boolean;
|
|
3392
|
+
/**
|
|
3393
|
+
* The observation position of the video frame in the video link. See VideoModulePosition.
|
|
3394
|
+
*/
|
|
3395
|
+
position?: VideoModulePosition;
|
|
3336
3396
|
}
|
|
3337
3397
|
|
|
3338
3398
|
/**
|
|
@@ -3536,11 +3596,11 @@ export class VirtualBackgroundSource {
|
|
|
3536
3596
|
*/
|
|
3537
3597
|
background_source_type?: BackgroundSourceType;
|
|
3538
3598
|
/**
|
|
3539
|
-
* The type of the custom background image. The color of the custom background image. The format is a hexadecimal integer defined by RGB, without the # sign, such as 0xFFB6C1 for light pink. The default value is 0xFFFFFF, which signifies white. The value range is [0x000000, 0xffffff]. If the value is invalid, the SDK replaces the original background image with a white background image. This parameter
|
|
3599
|
+
* The type of the custom background image. The color of the custom background image. The format is a hexadecimal integer defined by RGB, without the # sign, such as 0xFFB6C1 for light pink. The default value is 0xFFFFFF, which signifies white. The value range is [0x000000, 0xffffff]. If the value is invalid, the SDK replaces the original background image with a white background image. This parameter is only applicable to custom backgrounds of the following types: BackgroundColor : The background image is a solid-colored image of the color passed in by the parameter. BackgroundImg : If the image in source has a transparent background, the transparent background will be filled with the color passed in by the parameter.
|
|
3540
3600
|
*/
|
|
3541
3601
|
color?: number;
|
|
3542
3602
|
/**
|
|
3543
|
-
* The local absolute path of the custom background image. PNG and
|
|
3603
|
+
* The local absolute path of the custom background image. Supports PNG, JPG, MP4, AVI, MKV, and FLV formats. If the path is invalid, the SDK will use either the original background image or the solid color image specified by color. This parameter takes effect only when the type of the custom background image is BackgroundImg or BackgroundVideo.
|
|
3544
3604
|
*/
|
|
3545
3605
|
source?: string;
|
|
3546
3606
|
/**
|
|
@@ -4191,76 +4251,6 @@ export enum ChannelMediaRelayError {
|
|
|
4191
4251
|
RelayErrorDestTokenExpired = 11,
|
|
4192
4252
|
}
|
|
4193
4253
|
|
|
4194
|
-
/**
|
|
4195
|
-
* The event code of channel media relay.
|
|
4196
|
-
*/
|
|
4197
|
-
export enum ChannelMediaRelayEvent {
|
|
4198
|
-
/**
|
|
4199
|
-
* 0: The user disconnects from the server due to a poor network connection.
|
|
4200
|
-
*/
|
|
4201
|
-
RelayEventNetworkDisconnected = 0,
|
|
4202
|
-
/**
|
|
4203
|
-
* 1: The user is connected to the server.
|
|
4204
|
-
*/
|
|
4205
|
-
RelayEventNetworkConnected = 1,
|
|
4206
|
-
/**
|
|
4207
|
-
* 2: The user joins the source channel.
|
|
4208
|
-
*/
|
|
4209
|
-
RelayEventPacketJoinedSrcChannel = 2,
|
|
4210
|
-
/**
|
|
4211
|
-
* 3: The user joins the target channel.
|
|
4212
|
-
*/
|
|
4213
|
-
RelayEventPacketJoinedDestChannel = 3,
|
|
4214
|
-
/**
|
|
4215
|
-
* 4: The SDK starts relaying the media stream to the target channel.
|
|
4216
|
-
*/
|
|
4217
|
-
RelayEventPacketSentToDestChannel = 4,
|
|
4218
|
-
/**
|
|
4219
|
-
* 5: The server receives the audio stream from the source channel.
|
|
4220
|
-
*/
|
|
4221
|
-
RelayEventPacketReceivedVideoFromSrc = 5,
|
|
4222
|
-
/**
|
|
4223
|
-
* 6: The server receives the audio stream from the source channel.
|
|
4224
|
-
*/
|
|
4225
|
-
RelayEventPacketReceivedAudioFromSrc = 6,
|
|
4226
|
-
/**
|
|
4227
|
-
* 7: The target channel is updated.
|
|
4228
|
-
*/
|
|
4229
|
-
RelayEventPacketUpdateDestChannel = 7,
|
|
4230
|
-
/**
|
|
4231
|
-
* @ignore
|
|
4232
|
-
*/
|
|
4233
|
-
RelayEventPacketUpdateDestChannelRefused = 8,
|
|
4234
|
-
/**
|
|
4235
|
-
* 9: The target channel does not change, which means that the target channel fails to be updated.
|
|
4236
|
-
*/
|
|
4237
|
-
RelayEventPacketUpdateDestChannelNotChange = 9,
|
|
4238
|
-
/**
|
|
4239
|
-
* 10: The target channel name is NULL.
|
|
4240
|
-
*/
|
|
4241
|
-
RelayEventPacketUpdateDestChannelIsNull = 10,
|
|
4242
|
-
/**
|
|
4243
|
-
* 11: The video profile is sent to the server.
|
|
4244
|
-
*/
|
|
4245
|
-
RelayEventVideoProfileUpdate = 11,
|
|
4246
|
-
/**
|
|
4247
|
-
* 12: The SDK successfully pauses relaying the media stream to target channels.
|
|
4248
|
-
*/
|
|
4249
|
-
RelayEventPauseSendPacketToDestChannelSuccess = 12,
|
|
4250
|
-
/**
|
|
4251
|
-
* 13: The SDK fails to pause relaying the media stream to target channels.
|
|
4252
|
-
*/
|
|
4253
|
-
RelayEventPauseSendPacketToDestChannelFailed = 13,
|
|
4254
|
-
/**
|
|
4255
|
-
* 14: The SDK successfully resumes relaying the media stream to target channels.
|
|
4256
|
-
*/
|
|
4257
|
-
RelayEventResumeSendPacketToDestChannelSuccess = 14,
|
|
4258
|
-
/**
|
|
4259
|
-
* 15: The SDK fails to resume relaying the media stream to target channels.
|
|
4260
|
-
*/
|
|
4261
|
-
RelayEventResumeSendPacketToDestChannelFailed = 15,
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
4254
|
/**
|
|
4265
4255
|
* The state code of the channel media relay.
|
|
4266
4256
|
*/
|
|
@@ -4287,6 +4277,10 @@ export enum ChannelMediaRelayState {
|
|
|
4287
4277
|
* Channel media information.
|
|
4288
4278
|
*/
|
|
4289
4279
|
export class ChannelMediaInfo {
|
|
4280
|
+
/**
|
|
4281
|
+
* The user ID.
|
|
4282
|
+
*/
|
|
4283
|
+
uid?: number;
|
|
4290
4284
|
/**
|
|
4291
4285
|
* The channel name.
|
|
4292
4286
|
*/
|
|
@@ -4295,10 +4289,6 @@ export class ChannelMediaInfo {
|
|
|
4295
4289
|
* The token that enables the user to join the channel.
|
|
4296
4290
|
*/
|
|
4297
4291
|
token?: string;
|
|
4298
|
-
/**
|
|
4299
|
-
* The user ID.
|
|
4300
|
-
*/
|
|
4301
|
-
uid?: number;
|
|
4302
4292
|
}
|
|
4303
4293
|
|
|
4304
4294
|
/**
|
|
@@ -4306,14 +4296,14 @@ export class ChannelMediaInfo {
|
|
|
4306
4296
|
*/
|
|
4307
4297
|
export class ChannelMediaRelayConfiguration {
|
|
4308
4298
|
/**
|
|
4309
|
-
* The information of the source channel. See ChannelMediaInfo. It contains the following members: channelName : The name of the source channel. The default value is
|
|
4310
|
-
* If you have not enabled the App Certificate, set this parameter as the default value
|
|
4299
|
+
* The information of the source channel. See ChannelMediaInfo. It contains the following members: channelName : The name of the source channel. The default value is null, which means the SDK applies the name of the current channel. token : The token for joining the source channel. This token is generated with the channelName and uid you set in srcInfo.
|
|
4300
|
+
* If you have not enabled the App Certificate, set this parameter as the default value null, which means the SDK applies the App ID.
|
|
4311
4301
|
* If you have enabled the App Certificate, you must use the token generated with the channelName and uid, and the uid must be set as 0. uid : The unique user ID to identify the relay stream in the source channel. Agora recommends leaving the default value of 0 unchanged.
|
|
4312
4302
|
*/
|
|
4313
4303
|
srcInfo?: ChannelMediaInfo;
|
|
4314
4304
|
/**
|
|
4315
4305
|
* The information of the target channel ChannelMediaInfo. It contains the following members: channelName : The name of the target channel. token : The token for joining the target channel. It is generated with the channelName and uid you set in destInfos.
|
|
4316
|
-
* If you have not enabled the App Certificate, set this parameter as the default value
|
|
4306
|
+
* If you have not enabled the App Certificate, set this parameter as the default value null, which means the SDK applies the App ID.
|
|
4317
4307
|
* If you have enabled the App Certificate, you must use the token generated with the channelName and uid. If the token of any target channel expires, the whole media relay stops; hence Agora recommends that you specify the same expiration time for the tokens of all the target channels. uid : The unique user ID to identify the relay stream in the target channel. The value ranges from 0 to (2 32 -1). To avoid user ID conflicts, this user ID must be different from any other user ID in the target channel. The default value is 0, which means the SDK generates a random user ID.
|
|
4318
4308
|
*/
|
|
4319
4309
|
destInfos?: ChannelMediaInfo[];
|
|
@@ -4340,7 +4330,7 @@ export class PeerDownlinkInfo {
|
|
|
4340
4330
|
/**
|
|
4341
4331
|
* @ignore
|
|
4342
4332
|
*/
|
|
4343
|
-
|
|
4333
|
+
userId?: string;
|
|
4344
4334
|
/**
|
|
4345
4335
|
* @ignore
|
|
4346
4336
|
*/
|
|
@@ -4434,7 +4424,7 @@ export class EncryptionConfig {
|
|
|
4434
4424
|
*/
|
|
4435
4425
|
encryptionMode?: EncryptionMode;
|
|
4436
4426
|
/**
|
|
4437
|
-
* Encryption key in string type with unlimited length. Agora recommends using a 32-byte key. If you do not set an encryption key or set it as
|
|
4427
|
+
* Encryption key in string type with unlimited length. Agora recommends using a 32-byte key. If you do not set an encryption key or set it as null, you cannot use the built-in encryption, and the SDK returns -2.
|
|
4438
4428
|
*/
|
|
4439
4429
|
encryptionKey?: string;
|
|
4440
4430
|
/**
|
|
@@ -4497,16 +4487,6 @@ export enum PermissionType {
|
|
|
4497
4487
|
ScreenCapture = 2,
|
|
4498
4488
|
}
|
|
4499
4489
|
|
|
4500
|
-
/**
|
|
4501
|
-
* The maximum length of the user account.
|
|
4502
|
-
*/
|
|
4503
|
-
export enum MaxUserAccountLengthType {
|
|
4504
|
-
/**
|
|
4505
|
-
* The maximum length of the user account is 256 bytes.
|
|
4506
|
-
*/
|
|
4507
|
-
MaxUserAccountLength = 256,
|
|
4508
|
-
}
|
|
4509
|
-
|
|
4510
4490
|
/**
|
|
4511
4491
|
* The subscribing state.
|
|
4512
4492
|
*/
|
|
@@ -4576,7 +4556,7 @@ export class EchoTestConfiguration {
|
|
|
4576
4556
|
*/
|
|
4577
4557
|
enableAudio?: boolean;
|
|
4578
4558
|
/**
|
|
4579
|
-
* Whether to enable the video device for the loop test
|
|
4559
|
+
* Whether to enable the video device for the loop test. Currently, video device loop test is not supported. Please set this parameter to false.
|
|
4580
4560
|
*/
|
|
4581
4561
|
enableVideo?: boolean;
|
|
4582
4562
|
/**
|
|
@@ -4588,7 +4568,9 @@ export class EchoTestConfiguration {
|
|
|
4588
4568
|
*/
|
|
4589
4569
|
channelId?: string;
|
|
4590
4570
|
/**
|
|
4591
|
-
*
|
|
4571
|
+
* Set the time interval or delay for returning the results of the audio and video loop test. The value range is [2,10], in seconds, with the default value being 2 seconds.
|
|
4572
|
+
* For audio loop tests, the test results will be returned according to the time interval you set.
|
|
4573
|
+
* For video loop tests, the video will be displayed in a short time, after which the delay will gradually increase until it reaches the delay you set.
|
|
4592
4574
|
*/
|
|
4593
4575
|
intervalInSeconds?: number;
|
|
4594
4576
|
}
|
|
@@ -4793,20 +4775,6 @@ export enum ConfigFetchType {
|
|
|
4793
4775
|
ConfigFetchTypeJoinChannel = 2,
|
|
4794
4776
|
}
|
|
4795
4777
|
|
|
4796
|
-
/**
|
|
4797
|
-
* @ignore
|
|
4798
|
-
*/
|
|
4799
|
-
export class RecorderStreamInfo {
|
|
4800
|
-
/**
|
|
4801
|
-
* @ignore
|
|
4802
|
-
*/
|
|
4803
|
-
channelId?: string;
|
|
4804
|
-
/**
|
|
4805
|
-
* @ignore
|
|
4806
|
-
*/
|
|
4807
|
-
uid?: number;
|
|
4808
|
-
}
|
|
4809
|
-
|
|
4810
4778
|
/**
|
|
4811
4779
|
* @ignore
|
|
4812
4780
|
*/
|
|
@@ -4885,6 +4853,24 @@ export class LocalAccessPointConfiguration {
|
|
|
4885
4853
|
* @ignore
|
|
4886
4854
|
*/
|
|
4887
4855
|
advancedConfig?: AdvancedConfigInfo;
|
|
4856
|
+
/**
|
|
4857
|
+
* @ignore
|
|
4858
|
+
*/
|
|
4859
|
+
disableAut?: boolean;
|
|
4860
|
+
}
|
|
4861
|
+
|
|
4862
|
+
/**
|
|
4863
|
+
* @ignore
|
|
4864
|
+
*/
|
|
4865
|
+
export class RecorderStreamInfo {
|
|
4866
|
+
/**
|
|
4867
|
+
* @ignore
|
|
4868
|
+
*/
|
|
4869
|
+
channelId?: string;
|
|
4870
|
+
/**
|
|
4871
|
+
* @ignore
|
|
4872
|
+
*/
|
|
4873
|
+
uid?: number;
|
|
4888
4874
|
}
|
|
4889
4875
|
|
|
4890
4876
|
/**
|
|
@@ -4940,3 +4926,41 @@ export class SpatialAudioParams {
|
|
|
4940
4926
|
*/
|
|
4941
4927
|
enable_doppler?: boolean;
|
|
4942
4928
|
}
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* @ignore
|
|
4932
|
+
*/
|
|
4933
|
+
export class VideoLayout {
|
|
4934
|
+
/**
|
|
4935
|
+
* @ignore
|
|
4936
|
+
*/
|
|
4937
|
+
channelId?: string;
|
|
4938
|
+
/**
|
|
4939
|
+
* @ignore
|
|
4940
|
+
*/
|
|
4941
|
+
uid?: number;
|
|
4942
|
+
/**
|
|
4943
|
+
* @ignore
|
|
4944
|
+
*/
|
|
4945
|
+
strUid?: string;
|
|
4946
|
+
/**
|
|
4947
|
+
* @ignore
|
|
4948
|
+
*/
|
|
4949
|
+
x?: number;
|
|
4950
|
+
/**
|
|
4951
|
+
* @ignore
|
|
4952
|
+
*/
|
|
4953
|
+
y?: number;
|
|
4954
|
+
/**
|
|
4955
|
+
* @ignore
|
|
4956
|
+
*/
|
|
4957
|
+
width?: number;
|
|
4958
|
+
/**
|
|
4959
|
+
* @ignore
|
|
4960
|
+
*/
|
|
4961
|
+
height?: number;
|
|
4962
|
+
/**
|
|
4963
|
+
* @ignore
|
|
4964
|
+
*/
|
|
4965
|
+
videoState?: number;
|
|
4966
|
+
}
|