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/js/Private/AgoraBase.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.
|
|
6
|
-
exports.SpatialAudioParams = exports.
|
|
3
|
+
exports.QualityAdaptIndication = exports.ClientRoleType = exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.CodecCapInfo = exports.CodecCapLevels = exports.CodecCapMask = exports.VideoMirrorModeType = exports.AdvanceOptions = exports.EncodingPreference = exports.CompressionPreference = exports.EncodedVideoFrameInfo = exports.MaxUserAccountLengthType = exports.VideoSubscriptionOptions = exports.VideoStreamType = exports.H264PacketizeMode = exports.AudioPcmDataInfo = exports.EncodedAudioFrameInfo = exports.EncodedAudioFrameAdvancedSettings = exports.WatermarkFitMode = exports.AudioEncodingType = exports.AudioCodecType = exports.SenderOptions = exports.TCcMode = exports.VideoCodecType = exports.VideoCodecCapabilityLevel = exports.ScreenCaptureFramerateCapability = exports.VideoDimensions = exports.DegradationPreference = exports.OrientationMode = exports.VideoFrameType = exports.FrameHeight = exports.FrameWidth = exports.FrameRate = exports.VideoOrientation = exports.FitModeType = exports.QualityType = exports.InterfaceIdType = exports.UserOfflineReasonType = exports.AudioSessionOperationRestriction = exports.LicenseErrorType = exports.ErrorCodeType = exports.WarnCodeType = exports.ChannelProfileType = void 0;
|
|
4
|
+
exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = exports.LastmileProbeResult = exports.LastmileProbeOneWayResult = exports.LastmileProbeResultState = exports.LastmileProbeConfig = exports.VideoTranscoderError = exports.LocalTranscoderConfiguration = exports.TranscodingVideoStream = exports.LiveTranscoding = exports.TranscodingUser = exports.ConnectionStateType = exports.LiveStreamAdvancedFeature = exports.RtcImage = exports.RtmpStreamingEvent = exports.RtmpStreamPublishReason = exports.RtmpStreamPublishState = exports.LocalAudioStats = exports.AudioCodecProfileType = exports.VideoCodecProfileType = exports.VideoCodecTypeForStream = exports.AudioSampleRateType = exports.Packet = exports.DeviceInfo = exports.AudioVolumeInfo = exports.RemoteVideoDownscaleLevel = exports.VideoTrackInfo = exports.RemoteUserState = exports.RemoteVideoStateReason = exports.RemoteVideoState = exports.RemoteAudioStateReason = exports.RemoteAudioState = exports.LocalVideoStreamReason = exports.LocalVideoStreamState = exports.LocalAudioStreamReason = exports.LocalAudioStreamState = exports.CaptureBrightnessLevelType = exports.VideoQoePreferenceType = exports.VideoApplicationScenarioType = exports.ScreenScenarioType = exports.VideoContentHint = exports.VideoFormat = exports.AudioScenarioType = exports.AudioProfileType = exports.AudioAinsMode = exports.ExperiencePoorReason = exports.ExperienceQualityType = exports.ClientRoleOptions = exports.AudienceLatencyLevelType = void 0;
|
|
5
|
+
exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.PermissionType = exports.UploadErrorReason = exports.EncryptionErrorType = exports.EncryptionConfig = exports.EncryptionMode = exports.DownlinkNetworkInfo = exports.PeerDownlinkInfo = exports.UplinkNetworkInfo = exports.ChannelMediaRelayConfiguration = exports.ChannelMediaInfo = exports.ChannelMediaRelayState = exports.ChannelMediaRelayError = exports.AreaCodeEx = exports.AreaCode = exports.AudioEncodedFrameObserverConfig = exports.AudioRecordingConfiguration = exports.AudioEncodedFrameObserverPosition = exports.AudioFileRecordingType = exports.AudioRecordingQualityType = exports.ScreenCaptureParameters = exports.HeadphoneEqualizerPreset = exports.VoiceConversionPreset = exports.AudioEffectPreset = exports.VoiceBeautifierPreset = exports.AudioTrackConfig = exports.AudioTrackType = exports.SegmentationProperty = exports.SegModelType = exports.VirtualBackgroundSource = exports.BackgroundBlurDegree = exports.BackgroundSourceType = exports.ColorEnhanceOptions = exports.VideoDenoiserOptions = exports.VideoDenoiserLevel = exports.VideoDenoiserMode = exports.LowlightEnhanceOptions = exports.LowLightEnhanceLevel = exports.LowLightEnhanceMode = exports.BeautyOptions = exports.LighteningContrastLevel = exports.VideoCanvas = exports.VideoViewSetupMode = exports.NetworkType = exports.WlAccStats = exports.WlaccSuggestAction = void 0;
|
|
6
|
+
exports.VideoLayout = exports.SpatialAudioParams = exports.RecorderStreamInfo = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.LocalProxyMode = exports.ConfigFetchType = exports.VideoRenderingTracingInfo = exports.MediaTraceEvent = exports.ScreenCaptureParameters2 = exports.ScreenAudioParameters = exports.ScreenVideoParameters = exports.ThreadPriorityType = void 0;
|
|
7
7
|
require("./extension/AgoraBaseExtension");
|
|
8
8
|
/**
|
|
9
9
|
* The channel profile.
|
|
@@ -443,10 +443,6 @@ var ErrorCodeType;
|
|
|
443
443
|
* 1501: Permission to access the camera is not granted. Check whether permission to access the camera permission is granted.
|
|
444
444
|
*/
|
|
445
445
|
ErrorCodeType[ErrorCodeType["ErrVdmCameraNotAuthorized"] = 1501] = "ErrVdmCameraNotAuthorized";
|
|
446
|
-
/**
|
|
447
|
-
* @ignore
|
|
448
|
-
*/
|
|
449
|
-
ErrorCodeType[ErrorCodeType["ErrAdmApplicationLoopback"] = 2007] = "ErrAdmApplicationLoopback";
|
|
450
446
|
})(ErrorCodeType = exports.ErrorCodeType || (exports.ErrorCodeType = {}));
|
|
451
447
|
/**
|
|
452
448
|
* @ignore
|
|
@@ -563,10 +559,6 @@ var InterfaceIdType;
|
|
|
563
559
|
* @ignore
|
|
564
560
|
*/
|
|
565
561
|
InterfaceIdType[InterfaceIdType["AgoraIidMediaEngineRegulator"] = 9] = "AgoraIidMediaEngineRegulator";
|
|
566
|
-
/**
|
|
567
|
-
* @ignore
|
|
568
|
-
*/
|
|
569
|
-
InterfaceIdType[InterfaceIdType["AgoraIidCloudSpatialAudio"] = 10] = "AgoraIidCloudSpatialAudio";
|
|
570
562
|
/**
|
|
571
563
|
* @ignore
|
|
572
564
|
*/
|
|
@@ -578,7 +570,7 @@ var InterfaceIdType;
|
|
|
578
570
|
/**
|
|
579
571
|
* @ignore
|
|
580
572
|
*/
|
|
581
|
-
InterfaceIdType[InterfaceIdType["
|
|
573
|
+
InterfaceIdType[InterfaceIdType["AgoraIidMetaService"] = 14] = "AgoraIidMetaService";
|
|
582
574
|
/**
|
|
583
575
|
* @ignore
|
|
584
576
|
*/
|
|
@@ -855,7 +847,7 @@ var VideoCodecCapabilityLevel;
|
|
|
855
847
|
var VideoCodecType;
|
|
856
848
|
(function (VideoCodecType) {
|
|
857
849
|
/**
|
|
858
|
-
*
|
|
850
|
+
* 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
851
|
*/
|
|
860
852
|
VideoCodecType[VideoCodecType["VideoCodecNone"] = 0] = "VideoCodecNone";
|
|
861
853
|
/**
|
|
@@ -863,7 +855,7 @@ var VideoCodecType;
|
|
|
863
855
|
*/
|
|
864
856
|
VideoCodecType[VideoCodecType["VideoCodecVp8"] = 1] = "VideoCodecVp8";
|
|
865
857
|
/**
|
|
866
|
-
* 2:
|
|
858
|
+
* 2: Standard H.264.
|
|
867
859
|
*/
|
|
868
860
|
VideoCodecType[VideoCodecType["VideoCodecH264"] = 2] = "VideoCodecH264";
|
|
869
861
|
/**
|
|
@@ -1084,6 +1076,16 @@ var VideoSubscriptionOptions = /** @class */ (function () {
|
|
|
1084
1076
|
return VideoSubscriptionOptions;
|
|
1085
1077
|
}());
|
|
1086
1078
|
exports.VideoSubscriptionOptions = VideoSubscriptionOptions;
|
|
1079
|
+
/**
|
|
1080
|
+
* The maximum length of the user account.
|
|
1081
|
+
*/
|
|
1082
|
+
var MaxUserAccountLengthType;
|
|
1083
|
+
(function (MaxUserAccountLengthType) {
|
|
1084
|
+
/**
|
|
1085
|
+
* The maximum length of the user account is 256 bytes.
|
|
1086
|
+
*/
|
|
1087
|
+
MaxUserAccountLengthType[MaxUserAccountLengthType["MaxUserAccountLength"] = 256] = "MaxUserAccountLength";
|
|
1088
|
+
})(MaxUserAccountLengthType = exports.MaxUserAccountLengthType || (exports.MaxUserAccountLengthType = {}));
|
|
1087
1089
|
/**
|
|
1088
1090
|
* Information about externally encoded video frames.
|
|
1089
1091
|
*/
|
|
@@ -1224,7 +1226,7 @@ exports.DataStreamConfig = DataStreamConfig;
|
|
|
1224
1226
|
var SimulcastStreamMode;
|
|
1225
1227
|
(function (SimulcastStreamMode) {
|
|
1226
1228
|
/**
|
|
1227
|
-
* -1: By default, the low-quality video
|
|
1229
|
+
* -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.
|
|
1228
1230
|
*/
|
|
1229
1231
|
SimulcastStreamMode[SimulcastStreamMode["AutoSimulcastStream"] = -1] = "AutoSimulcastStream";
|
|
1230
1232
|
/**
|
|
@@ -1545,6 +1547,28 @@ var VideoApplicationScenarioType;
|
|
|
1545
1547
|
*/
|
|
1546
1548
|
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioMeeting"] = 1] = "ApplicationScenarioMeeting";
|
|
1547
1549
|
})(VideoApplicationScenarioType = exports.VideoApplicationScenarioType || (exports.VideoApplicationScenarioType = {}));
|
|
1550
|
+
/**
|
|
1551
|
+
* @ignore
|
|
1552
|
+
*/
|
|
1553
|
+
var VideoQoePreferenceType;
|
|
1554
|
+
(function (VideoQoePreferenceType) {
|
|
1555
|
+
/**
|
|
1556
|
+
* @ignore
|
|
1557
|
+
*/
|
|
1558
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceBalance"] = 1] = "VideoQoePreferenceBalance";
|
|
1559
|
+
/**
|
|
1560
|
+
* @ignore
|
|
1561
|
+
*/
|
|
1562
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceDelayFirst"] = 2] = "VideoQoePreferenceDelayFirst";
|
|
1563
|
+
/**
|
|
1564
|
+
* @ignore
|
|
1565
|
+
*/
|
|
1566
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferencePictureQualityFirst"] = 3] = "VideoQoePreferencePictureQualityFirst";
|
|
1567
|
+
/**
|
|
1568
|
+
* @ignore
|
|
1569
|
+
*/
|
|
1570
|
+
VideoQoePreferenceType[VideoQoePreferenceType["VideoQoePreferenceFluencyFirst"] = 4] = "VideoQoePreferenceFluencyFirst";
|
|
1571
|
+
})(VideoQoePreferenceType = exports.VideoQoePreferenceType || (exports.VideoQoePreferenceType = {}));
|
|
1548
1572
|
/**
|
|
1549
1573
|
* The brightness level of the video image captured by the local camera.
|
|
1550
1574
|
*/
|
|
@@ -1590,55 +1614,55 @@ var LocalAudioStreamState;
|
|
|
1590
1614
|
LocalAudioStreamState[LocalAudioStreamState["LocalAudioStreamStateFailed"] = 3] = "LocalAudioStreamStateFailed";
|
|
1591
1615
|
})(LocalAudioStreamState = exports.LocalAudioStreamState || (exports.LocalAudioStreamState = {}));
|
|
1592
1616
|
/**
|
|
1593
|
-
*
|
|
1617
|
+
* Reasons for local audio state changes.
|
|
1594
1618
|
*/
|
|
1595
|
-
var
|
|
1596
|
-
(function (
|
|
1619
|
+
var LocalAudioStreamReason;
|
|
1620
|
+
(function (LocalAudioStreamReason) {
|
|
1597
1621
|
/**
|
|
1598
1622
|
* 0: The local audio is normal.
|
|
1599
1623
|
*/
|
|
1600
|
-
|
|
1624
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonOk"] = 0] = "LocalAudioStreamReasonOk";
|
|
1601
1625
|
/**
|
|
1602
1626
|
* 1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
|
|
1603
1627
|
*/
|
|
1604
|
-
|
|
1628
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonFailure"] = 1] = "LocalAudioStreamReasonFailure";
|
|
1605
1629
|
/**
|
|
1606
1630
|
* 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.
|
|
1607
1631
|
*/
|
|
1608
|
-
|
|
1632
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceNoPermission"] = 2] = "LocalAudioStreamReasonDeviceNoPermission";
|
|
1609
1633
|
/**
|
|
1610
1634
|
* @ignore
|
|
1611
1635
|
*/
|
|
1612
|
-
|
|
1636
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonDeviceBusy"] = 3] = "LocalAudioStreamReasonDeviceBusy";
|
|
1613
1637
|
/**
|
|
1614
1638
|
* 4: The local audio capture fails.
|
|
1615
1639
|
*/
|
|
1616
|
-
|
|
1640
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordFailure"] = 4] = "LocalAudioStreamReasonRecordFailure";
|
|
1617
1641
|
/**
|
|
1618
1642
|
* 5: The local audio encoding fails.
|
|
1619
1643
|
*/
|
|
1620
|
-
|
|
1644
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonEncodeFailure"] = 5] = "LocalAudioStreamReasonEncodeFailure";
|
|
1621
1645
|
/**
|
|
1622
|
-
* 6:
|
|
1646
|
+
* 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.
|
|
1623
1647
|
*/
|
|
1624
|
-
|
|
1648
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoRecordingDevice"] = 6] = "LocalAudioStreamReasonNoRecordingDevice";
|
|
1625
1649
|
/**
|
|
1626
|
-
* 7:
|
|
1650
|
+
* 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.
|
|
1627
1651
|
*/
|
|
1628
|
-
|
|
1652
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoPlayoutDevice"] = 7] = "LocalAudioStreamReasonNoPlayoutDevice";
|
|
1629
1653
|
/**
|
|
1630
1654
|
* @ignore
|
|
1631
1655
|
*/
|
|
1632
|
-
|
|
1656
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonInterrupted"] = 8] = "LocalAudioStreamReasonInterrupted";
|
|
1633
1657
|
/**
|
|
1634
1658
|
* 9: (Windows only) The ID of the local audio-capture device is invalid. Check the audio capture device ID.
|
|
1635
1659
|
*/
|
|
1636
|
-
|
|
1660
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordInvalidId"] = 9] = "LocalAudioStreamReasonRecordInvalidId";
|
|
1637
1661
|
/**
|
|
1638
1662
|
* 10: (Windows only) The ID of the local audio-playback device is invalid. Check the audio playback device ID.
|
|
1639
1663
|
*/
|
|
1640
|
-
|
|
1641
|
-
})(
|
|
1664
|
+
LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonPlayoutInvalidId"] = 10] = "LocalAudioStreamReasonPlayoutInvalidId";
|
|
1665
|
+
})(LocalAudioStreamReason = exports.LocalAudioStreamReason || (exports.LocalAudioStreamReason = {}));
|
|
1642
1666
|
/**
|
|
1643
1667
|
* Local video state types.
|
|
1644
1668
|
*/
|
|
@@ -1662,106 +1686,110 @@ var LocalVideoStreamState;
|
|
|
1662
1686
|
LocalVideoStreamState[LocalVideoStreamState["LocalVideoStreamStateFailed"] = 3] = "LocalVideoStreamStateFailed";
|
|
1663
1687
|
})(LocalVideoStreamState = exports.LocalVideoStreamState || (exports.LocalVideoStreamState = {}));
|
|
1664
1688
|
/**
|
|
1665
|
-
*
|
|
1689
|
+
* Reasons for local video state changes.
|
|
1666
1690
|
*/
|
|
1667
|
-
var
|
|
1668
|
-
(function (
|
|
1691
|
+
var LocalVideoStreamReason;
|
|
1692
|
+
(function (LocalVideoStreamReason) {
|
|
1669
1693
|
/**
|
|
1670
1694
|
* 0: The local video is normal.
|
|
1671
1695
|
*/
|
|
1672
|
-
|
|
1696
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonOk"] = 0] = "LocalVideoStreamReasonOk";
|
|
1673
1697
|
/**
|
|
1674
1698
|
* 1: No specified reason for the local video failure.
|
|
1675
1699
|
*/
|
|
1676
|
-
|
|
1700
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonFailure"] = 1] = "LocalVideoStreamReasonFailure";
|
|
1677
1701
|
/**
|
|
1678
1702
|
* 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.
|
|
1679
1703
|
*/
|
|
1680
|
-
|
|
1704
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNoPermission"] = 2] = "LocalVideoStreamReasonDeviceNoPermission";
|
|
1681
1705
|
/**
|
|
1682
1706
|
* 3: The local video capturing device is in use. Remind the user to check whether another application occupies the camera.
|
|
1683
1707
|
*/
|
|
1684
|
-
|
|
1708
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceBusy"] = 3] = "LocalVideoStreamReasonDeviceBusy";
|
|
1685
1709
|
/**
|
|
1686
1710
|
* 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.
|
|
1687
1711
|
*/
|
|
1688
|
-
|
|
1712
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureFailure"] = 4] = "LocalVideoStreamReasonCaptureFailure";
|
|
1689
1713
|
/**
|
|
1690
1714
|
* 5: The local video encoding fails.
|
|
1691
1715
|
*/
|
|
1692
|
-
|
|
1716
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCodecNotSupport"] = 5] = "LocalVideoStreamReasonCodecNotSupport";
|
|
1693
1717
|
/**
|
|
1694
1718
|
* @ignore
|
|
1695
1719
|
*/
|
|
1696
|
-
|
|
1720
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureInbackground"] = 6] = "LocalVideoStreamReasonCaptureInbackground";
|
|
1697
1721
|
/**
|
|
1698
1722
|
* @ignore
|
|
1699
1723
|
*/
|
|
1700
|
-
|
|
1724
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureMultipleForegroundApps"] = 7] = "LocalVideoStreamReasonCaptureMultipleForegroundApps";
|
|
1701
1725
|
/**
|
|
1702
1726
|
* 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.
|
|
1703
1727
|
*/
|
|
1704
|
-
|
|
1728
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNotFound"] = 8] = "LocalVideoStreamReasonDeviceNotFound";
|
|
1705
1729
|
/**
|
|
1706
1730
|
* 9: (macOS only) The video capture device currently in use is disconnected (such as being unplugged).
|
|
1707
1731
|
*/
|
|
1708
|
-
|
|
1732
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceDisconnected"] = 9] = "LocalVideoStreamReasonDeviceDisconnected";
|
|
1709
1733
|
/**
|
|
1710
1734
|
* 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.
|
|
1711
1735
|
*/
|
|
1712
|
-
|
|
1736
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInvalidId"] = 10] = "LocalVideoStreamReasonDeviceInvalidId";
|
|
1713
1737
|
/**
|
|
1714
1738
|
* 101: The current video capture device is unavailable due to excessive system pressure.
|
|
1715
1739
|
*/
|
|
1716
|
-
|
|
1740
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceSystemPressure"] = 101] = "LocalVideoStreamReasonDeviceSystemPressure";
|
|
1717
1741
|
/**
|
|
1718
|
-
* 11: (macOS only) The shared
|
|
1742
|
+
* 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.
|
|
1719
1743
|
*/
|
|
1720
|
-
|
|
1744
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowMinimized"] = 11] = "LocalVideoStreamReasonScreenCaptureWindowMinimized";
|
|
1721
1745
|
/**
|
|
1722
1746
|
* 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:
|
|
1723
1747
|
* When the local user closes the shared window, the SDK reports this error code.
|
|
1724
1748
|
* 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.
|
|
1725
1749
|
* 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.
|
|
1726
1750
|
*/
|
|
1727
|
-
|
|
1751
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowClosed"] = 12] = "LocalVideoStreamReasonScreenCaptureWindowClosed";
|
|
1728
1752
|
/**
|
|
1729
1753
|
* 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.
|
|
1730
1754
|
*/
|
|
1731
|
-
|
|
1755
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowOccluded"] = 13] = "LocalVideoStreamReasonScreenCaptureWindowOccluded";
|
|
1756
|
+
/**
|
|
1757
|
+
* @ignore
|
|
1758
|
+
*/
|
|
1759
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowNotSupported"] = 20] = "LocalVideoStreamReasonScreenCaptureWindowNotSupported";
|
|
1732
1760
|
/**
|
|
1733
1761
|
* @ignore
|
|
1734
1762
|
*/
|
|
1735
|
-
|
|
1763
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureFailure"] = 21] = "LocalVideoStreamReasonScreenCaptureFailure";
|
|
1736
1764
|
/**
|
|
1737
1765
|
* @ignore
|
|
1738
1766
|
*/
|
|
1739
|
-
|
|
1767
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureNoPermission"] = 22] = "LocalVideoStreamReasonScreenCaptureNoPermission";
|
|
1740
1768
|
/**
|
|
1741
1769
|
* @ignore
|
|
1742
1770
|
*/
|
|
1743
|
-
|
|
1771
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureAutoFallback"] = 24] = "LocalVideoStreamReasonScreenCaptureAutoFallback";
|
|
1744
1772
|
/**
|
|
1745
1773
|
* @ignore
|
|
1746
1774
|
*/
|
|
1747
|
-
|
|
1775
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowHidden"] = 25] = "LocalVideoStreamReasonScreenCaptureWindowHidden";
|
|
1748
1776
|
/**
|
|
1749
1777
|
* @ignore
|
|
1750
1778
|
*/
|
|
1751
|
-
|
|
1779
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden"] = 26] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden";
|
|
1752
1780
|
/**
|
|
1753
1781
|
* @ignore
|
|
1754
1782
|
*/
|
|
1755
|
-
|
|
1783
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized"] = 27] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized";
|
|
1756
1784
|
/**
|
|
1757
1785
|
* @ignore
|
|
1758
1786
|
*/
|
|
1759
|
-
|
|
1787
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCapturePaused"] = 28] = "LocalVideoStreamReasonScreenCapturePaused";
|
|
1760
1788
|
/**
|
|
1761
1789
|
* @ignore
|
|
1762
1790
|
*/
|
|
1763
|
-
|
|
1764
|
-
})(
|
|
1791
|
+
LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureResumed"] = 29] = "LocalVideoStreamReasonScreenCaptureResumed";
|
|
1792
|
+
})(LocalVideoStreamReason = exports.LocalVideoStreamReason || (exports.LocalVideoStreamReason = {}));
|
|
1765
1793
|
/**
|
|
1766
1794
|
* Remote audio states.
|
|
1767
1795
|
*/
|
|
@@ -1890,11 +1918,11 @@ var RemoteVideoStateReason;
|
|
|
1890
1918
|
*/
|
|
1891
1919
|
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonRemoteOffline"] = 7] = "RemoteVideoStateReasonRemoteOffline";
|
|
1892
1920
|
/**
|
|
1893
|
-
*
|
|
1921
|
+
* 8: The remote audio-and-video stream falls back to the audio-only stream due to poor network conditions.
|
|
1894
1922
|
*/
|
|
1895
1923
|
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallback"] = 8] = "RemoteVideoStateReasonAudioFallback";
|
|
1896
1924
|
/**
|
|
1897
|
-
*
|
|
1925
|
+
* 9: The remote audio-only stream switches back to the audio-and-video stream after the network conditions improve.
|
|
1898
1926
|
*/
|
|
1899
1927
|
RemoteVideoStateReason[RemoteVideoStateReason["RemoteVideoStateReasonAudioFallbackRecovery"] = 9] = "RemoteVideoStateReasonAudioFallbackRecovery";
|
|
1900
1928
|
/**
|
|
@@ -2108,79 +2136,79 @@ var RtmpStreamPublishState;
|
|
|
2108
2136
|
RtmpStreamPublishState[RtmpStreamPublishState["RtmpStreamPublishStateDisconnecting"] = 5] = "RtmpStreamPublishStateDisconnecting";
|
|
2109
2137
|
})(RtmpStreamPublishState = exports.RtmpStreamPublishState || (exports.RtmpStreamPublishState = {}));
|
|
2110
2138
|
/**
|
|
2111
|
-
*
|
|
2139
|
+
* Reasons for changes in the status of RTMP or RTMPS streaming.
|
|
2112
2140
|
*/
|
|
2113
|
-
var
|
|
2114
|
-
(function (
|
|
2141
|
+
var RtmpStreamPublishReason;
|
|
2142
|
+
(function (RtmpStreamPublishReason) {
|
|
2115
2143
|
/**
|
|
2116
2144
|
* 0: The RTMP or RTMPS streaming has not started or has ended.
|
|
2117
2145
|
*/
|
|
2118
|
-
|
|
2146
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonOk"] = 0] = "RtmpStreamPublishReasonOk";
|
|
2119
2147
|
/**
|
|
2120
2148
|
* 1: Invalid argument used. Check the parameter setting.
|
|
2121
2149
|
*/
|
|
2122
|
-
|
|
2150
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidArgument"] = 1] = "RtmpStreamPublishReasonInvalidArgument";
|
|
2123
2151
|
/**
|
|
2124
2152
|
* 2: The RTMP or RTMPS streaming is encrypted and cannot be published.
|
|
2125
2153
|
*/
|
|
2126
|
-
|
|
2154
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonEncryptedStreamNotAllowed"] = 2] = "RtmpStreamPublishReasonEncryptedStreamNotAllowed";
|
|
2127
2155
|
/**
|
|
2128
2156
|
* 3: Timeout for the RTMP or RTMPS streaming.
|
|
2129
2157
|
*/
|
|
2130
|
-
|
|
2158
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonConnectionTimeout"] = 3] = "RtmpStreamPublishReasonConnectionTimeout";
|
|
2131
2159
|
/**
|
|
2132
2160
|
* 4: An error occurs in Agora's streaming server.
|
|
2133
2161
|
*/
|
|
2134
|
-
|
|
2162
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInternalServerError"] = 4] = "RtmpStreamPublishReasonInternalServerError";
|
|
2135
2163
|
/**
|
|
2136
2164
|
* 5: An error occurs in the CDN server.
|
|
2137
2165
|
*/
|
|
2138
|
-
|
|
2166
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonRtmpServerError"] = 5] = "RtmpStreamPublishReasonRtmpServerError";
|
|
2139
2167
|
/**
|
|
2140
2168
|
* 6: The RTMP or RTMPS streaming publishes too frequently.
|
|
2141
2169
|
*/
|
|
2142
|
-
|
|
2170
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTooOften"] = 6] = "RtmpStreamPublishReasonTooOften";
|
|
2143
2171
|
/**
|
|
2144
2172
|
* 7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
|
2145
2173
|
*/
|
|
2146
|
-
|
|
2174
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonReachLimit"] = 7] = "RtmpStreamPublishReasonReachLimit";
|
|
2147
2175
|
/**
|
|
2148
2176
|
* 8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
|
|
2149
2177
|
*/
|
|
2150
|
-
|
|
2178
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotAuthorized"] = 8] = "RtmpStreamPublishReasonNotAuthorized";
|
|
2151
2179
|
/**
|
|
2152
2180
|
* 9: Agora's server fails to find the RTMP or RTMPS streaming.
|
|
2153
2181
|
*/
|
|
2154
|
-
|
|
2182
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonStreamNotFound"] = 9] = "RtmpStreamPublishReasonStreamNotFound";
|
|
2155
2183
|
/**
|
|
2156
2184
|
* 10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
|
|
2157
2185
|
*/
|
|
2158
|
-
|
|
2186
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonFormatNotSupported"] = 10] = "RtmpStreamPublishReasonFormatNotSupported";
|
|
2159
2187
|
/**
|
|
2160
2188
|
* 11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
|
|
2161
2189
|
*/
|
|
2162
|
-
|
|
2190
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNotBroadcaster"] = 11] = "RtmpStreamPublishReasonNotBroadcaster";
|
|
2163
2191
|
/**
|
|
2164
2192
|
* 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.
|
|
2165
2193
|
*/
|
|
2166
|
-
|
|
2194
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonTranscodingNoMixStream"] = 13] = "RtmpStreamPublishReasonTranscodingNoMixStream";
|
|
2167
2195
|
/**
|
|
2168
2196
|
* 14: Errors occurred in the host's network.
|
|
2169
2197
|
*/
|
|
2170
|
-
|
|
2198
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonNetDown"] = 14] = "RtmpStreamPublishReasonNetDown";
|
|
2171
2199
|
/**
|
|
2172
2200
|
* @ignore
|
|
2173
2201
|
*/
|
|
2174
|
-
|
|
2202
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidAppid"] = 15] = "RtmpStreamPublishReasonInvalidAppid";
|
|
2175
2203
|
/**
|
|
2176
2204
|
* 16: Your project does not have permission to use streaming services. Refer to Media Push to enable the Media Push permission.
|
|
2177
2205
|
*/
|
|
2178
|
-
|
|
2206
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidPrivilege"] = 16] = "RtmpStreamPublishReasonInvalidPrivilege";
|
|
2179
2207
|
/**
|
|
2180
|
-
*
|
|
2208
|
+
* @ignore
|
|
2181
2209
|
*/
|
|
2182
|
-
|
|
2183
|
-
})(
|
|
2210
|
+
RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamUnpublishReasonOk"] = 100] = "RtmpStreamUnpublishReasonOk";
|
|
2211
|
+
})(RtmpStreamPublishReason = exports.RtmpStreamPublishReason || (exports.RtmpStreamPublishReason = {}));
|
|
2184
2212
|
/**
|
|
2185
2213
|
* Events during the Media Push.
|
|
2186
2214
|
*/
|
|
@@ -2471,6 +2499,14 @@ var ConnectionChangedReasonType;
|
|
|
2471
2499
|
* @ignore
|
|
2472
2500
|
*/
|
|
2473
2501
|
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedCertificationVeryfyFailure"] = 22] = "ConnectionChangedCertificationVeryfyFailure";
|
|
2502
|
+
/**
|
|
2503
|
+
* @ignore
|
|
2504
|
+
*/
|
|
2505
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedStreamChannelNotAvailable"] = 23] = "ConnectionChangedStreamChannelNotAvailable";
|
|
2506
|
+
/**
|
|
2507
|
+
* @ignore
|
|
2508
|
+
*/
|
|
2509
|
+
ConnectionChangedReasonType[ConnectionChangedReasonType["ConnectionChangedInconsistentAppid"] = 24] = "ConnectionChangedInconsistentAppid";
|
|
2474
2510
|
})(ConnectionChangedReasonType = exports.ConnectionChangedReasonType || (exports.ConnectionChangedReasonType = {}));
|
|
2475
2511
|
/**
|
|
2476
2512
|
* The reason for a user role switch failure.
|
|
@@ -3270,76 +3306,6 @@ var ChannelMediaRelayError;
|
|
|
3270
3306
|
*/
|
|
3271
3307
|
ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorDestTokenExpired"] = 11] = "RelayErrorDestTokenExpired";
|
|
3272
3308
|
})(ChannelMediaRelayError = exports.ChannelMediaRelayError || (exports.ChannelMediaRelayError = {}));
|
|
3273
|
-
/**
|
|
3274
|
-
* The event code of channel media relay.
|
|
3275
|
-
*/
|
|
3276
|
-
var ChannelMediaRelayEvent;
|
|
3277
|
-
(function (ChannelMediaRelayEvent) {
|
|
3278
|
-
/**
|
|
3279
|
-
* 0: The user disconnects from the server due to a poor network connection.
|
|
3280
|
-
*/
|
|
3281
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventNetworkDisconnected"] = 0] = "RelayEventNetworkDisconnected";
|
|
3282
|
-
/**
|
|
3283
|
-
* 1: The user is connected to the server.
|
|
3284
|
-
*/
|
|
3285
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventNetworkConnected"] = 1] = "RelayEventNetworkConnected";
|
|
3286
|
-
/**
|
|
3287
|
-
* 2: The user joins the source channel.
|
|
3288
|
-
*/
|
|
3289
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketJoinedSrcChannel"] = 2] = "RelayEventPacketJoinedSrcChannel";
|
|
3290
|
-
/**
|
|
3291
|
-
* 3: The user joins the target channel.
|
|
3292
|
-
*/
|
|
3293
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketJoinedDestChannel"] = 3] = "RelayEventPacketJoinedDestChannel";
|
|
3294
|
-
/**
|
|
3295
|
-
* 4: The SDK starts relaying the media stream to the target channel.
|
|
3296
|
-
*/
|
|
3297
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketSentToDestChannel"] = 4] = "RelayEventPacketSentToDestChannel";
|
|
3298
|
-
/**
|
|
3299
|
-
* 5: The server receives the audio stream from the source channel.
|
|
3300
|
-
*/
|
|
3301
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketReceivedVideoFromSrc"] = 5] = "RelayEventPacketReceivedVideoFromSrc";
|
|
3302
|
-
/**
|
|
3303
|
-
* 6: The server receives the audio stream from the source channel.
|
|
3304
|
-
*/
|
|
3305
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketReceivedAudioFromSrc"] = 6] = "RelayEventPacketReceivedAudioFromSrc";
|
|
3306
|
-
/**
|
|
3307
|
-
* 7: The target channel is updated.
|
|
3308
|
-
*/
|
|
3309
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketUpdateDestChannel"] = 7] = "RelayEventPacketUpdateDestChannel";
|
|
3310
|
-
/**
|
|
3311
|
-
* @ignore
|
|
3312
|
-
*/
|
|
3313
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketUpdateDestChannelRefused"] = 8] = "RelayEventPacketUpdateDestChannelRefused";
|
|
3314
|
-
/**
|
|
3315
|
-
* 9: The target channel does not change, which means that the target channel fails to be updated.
|
|
3316
|
-
*/
|
|
3317
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketUpdateDestChannelNotChange"] = 9] = "RelayEventPacketUpdateDestChannelNotChange";
|
|
3318
|
-
/**
|
|
3319
|
-
* 10: The target channel name is NULL.
|
|
3320
|
-
*/
|
|
3321
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPacketUpdateDestChannelIsNull"] = 10] = "RelayEventPacketUpdateDestChannelIsNull";
|
|
3322
|
-
/**
|
|
3323
|
-
* 11: The video profile is sent to the server.
|
|
3324
|
-
*/
|
|
3325
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventVideoProfileUpdate"] = 11] = "RelayEventVideoProfileUpdate";
|
|
3326
|
-
/**
|
|
3327
|
-
* 12: The SDK successfully pauses relaying the media stream to target channels.
|
|
3328
|
-
*/
|
|
3329
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPauseSendPacketToDestChannelSuccess"] = 12] = "RelayEventPauseSendPacketToDestChannelSuccess";
|
|
3330
|
-
/**
|
|
3331
|
-
* 13: The SDK fails to pause relaying the media stream to target channels.
|
|
3332
|
-
*/
|
|
3333
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventPauseSendPacketToDestChannelFailed"] = 13] = "RelayEventPauseSendPacketToDestChannelFailed";
|
|
3334
|
-
/**
|
|
3335
|
-
* 14: The SDK successfully resumes relaying the media stream to target channels.
|
|
3336
|
-
*/
|
|
3337
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventResumeSendPacketToDestChannelSuccess"] = 14] = "RelayEventResumeSendPacketToDestChannelSuccess";
|
|
3338
|
-
/**
|
|
3339
|
-
* 15: The SDK fails to resume relaying the media stream to target channels.
|
|
3340
|
-
*/
|
|
3341
|
-
ChannelMediaRelayEvent[ChannelMediaRelayEvent["RelayEventResumeSendPacketToDestChannelFailed"] = 15] = "RelayEventResumeSendPacketToDestChannelFailed";
|
|
3342
|
-
})(ChannelMediaRelayEvent = exports.ChannelMediaRelayEvent || (exports.ChannelMediaRelayEvent = {}));
|
|
3343
3309
|
/**
|
|
3344
3310
|
* The state code of the channel media relay.
|
|
3345
3311
|
*/
|
|
@@ -3514,16 +3480,6 @@ var PermissionType;
|
|
|
3514
3480
|
*/
|
|
3515
3481
|
PermissionType[PermissionType["ScreenCapture"] = 2] = "ScreenCapture";
|
|
3516
3482
|
})(PermissionType = exports.PermissionType || (exports.PermissionType = {}));
|
|
3517
|
-
/**
|
|
3518
|
-
* The maximum length of the user account.
|
|
3519
|
-
*/
|
|
3520
|
-
var MaxUserAccountLengthType;
|
|
3521
|
-
(function (MaxUserAccountLengthType) {
|
|
3522
|
-
/**
|
|
3523
|
-
* The maximum length of the user account is 256 bytes.
|
|
3524
|
-
*/
|
|
3525
|
-
MaxUserAccountLengthType[MaxUserAccountLengthType["MaxUserAccountLength"] = 256] = "MaxUserAccountLength";
|
|
3526
|
-
})(MaxUserAccountLengthType = exports.MaxUserAccountLengthType || (exports.MaxUserAccountLengthType = {}));
|
|
3527
3483
|
/**
|
|
3528
3484
|
* The subscribing state.
|
|
3529
3485
|
*/
|
|
@@ -3712,15 +3668,6 @@ var ConfigFetchType;
|
|
|
3712
3668
|
*/
|
|
3713
3669
|
ConfigFetchType[ConfigFetchType["ConfigFetchTypeJoinChannel"] = 2] = "ConfigFetchTypeJoinChannel";
|
|
3714
3670
|
})(ConfigFetchType = exports.ConfigFetchType || (exports.ConfigFetchType = {}));
|
|
3715
|
-
/**
|
|
3716
|
-
* @ignore
|
|
3717
|
-
*/
|
|
3718
|
-
var RecorderStreamInfo = /** @class */ (function () {
|
|
3719
|
-
function RecorderStreamInfo() {
|
|
3720
|
-
}
|
|
3721
|
-
return RecorderStreamInfo;
|
|
3722
|
-
}());
|
|
3723
|
-
exports.RecorderStreamInfo = RecorderStreamInfo;
|
|
3724
3671
|
/**
|
|
3725
3672
|
* @ignore
|
|
3726
3673
|
*/
|
|
@@ -3762,6 +3709,15 @@ var LocalAccessPointConfiguration = /** @class */ (function () {
|
|
|
3762
3709
|
return LocalAccessPointConfiguration;
|
|
3763
3710
|
}());
|
|
3764
3711
|
exports.LocalAccessPointConfiguration = LocalAccessPointConfiguration;
|
|
3712
|
+
/**
|
|
3713
|
+
* @ignore
|
|
3714
|
+
*/
|
|
3715
|
+
var RecorderStreamInfo = /** @class */ (function () {
|
|
3716
|
+
function RecorderStreamInfo() {
|
|
3717
|
+
}
|
|
3718
|
+
return RecorderStreamInfo;
|
|
3719
|
+
}());
|
|
3720
|
+
exports.RecorderStreamInfo = RecorderStreamInfo;
|
|
3765
3721
|
/**
|
|
3766
3722
|
* The spatial audio parameters.
|
|
3767
3723
|
*/
|
|
@@ -3771,3 +3727,12 @@ var SpatialAudioParams = /** @class */ (function () {
|
|
|
3771
3727
|
return SpatialAudioParams;
|
|
3772
3728
|
}());
|
|
3773
3729
|
exports.SpatialAudioParams = SpatialAudioParams;
|
|
3730
|
+
/**
|
|
3731
|
+
* @ignore
|
|
3732
|
+
*/
|
|
3733
|
+
var VideoLayout = /** @class */ (function () {
|
|
3734
|
+
function VideoLayout() {
|
|
3735
|
+
}
|
|
3736
|
+
return VideoLayout;
|
|
3737
|
+
}());
|
|
3738
|
+
exports.VideoLayout = VideoLayout;
|