agora-electron-sdk 4.4.0 → 4.5.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 +2 -0
- package/js/Private/AgoraBase.js +98 -10
- package/js/Private/AgoraMediaBase.js +45 -1
- package/js/Private/IAgoraRtcEngine.js +8 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +16 -0
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +40 -0
- package/js/Private/impl/IAgoraRtcEngineImpl.js +149 -3
- package/js/Private/ti/IAgoraRtcEngine-ti.js +1 -1
- package/package.json +6 -6
- package/ts/Private/AgoraBase.ts +139 -6
- package/ts/Private/AgoraMediaBase.ts +82 -4
- package/ts/Private/IAgoraMediaEngine.ts +7 -15
- package/ts/Private/IAgoraMediaPlayerSource.ts +2 -2
- package/ts/Private/IAgoraMusicContentCenter.ts +1 -13
- package/ts/Private/IAgoraRtcEngine.ts +86 -24
- package/ts/Private/IAgoraRtcEngineEx.ts +27 -6
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +18 -0
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +73 -1
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +210 -5
- package/ts/Private/internal/RtcEngineExInternal.ts +1 -1
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +1 -1
- package/types/Private/AgoraBase.d.ts +135 -9
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +80 -4
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +6 -15
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +2 -2
- package/types/Private/IAgoraMusicContentCenter.d.ts +1 -13
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +65 -26
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +13 -6
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +2 -0
- package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +5 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +22 -4
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
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.
|
|
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 = exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = exports.StreamPublishState = exports.StreamSubscribeState = exports.PermissionType = exports.UploadErrorReason = exports.EncryptionErrorType = exports.EncryptionConfig = exports.EncryptionMode = exports.DownlinkNetworkInfo = exports.PeerDownlinkInfo = void 0;
|
|
3
|
+
exports.StreamLayerIndex = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.FocalLengthInfo = exports.CodecCapInfo = exports.CodecCapLevels = exports.CodecCapMask = exports.HdrCapability = exports.VideoModuleType = exports.CameraFormatType = 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.CameraFocalLengthType = 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.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.CameraStabilizationMode = 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 = exports.QualityAdaptIndication = exports.ClientRoleType = exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastConfig = exports.StreamLayerConfig = void 0;
|
|
5
|
+
exports.AreaCodeEx = exports.AreaCode = exports.AudioEncodedFrameObserverConfig = exports.AudioRecordingConfiguration = exports.AudioEncodedFrameObserverPosition = exports.AudioFileRecordingType = exports.AudioRecordingQualityType = exports.ScreenCaptureParameters = exports.VoiceAiTunerType = 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.FilterEffectOptions = exports.FaceShapeBeautyOptions = exports.FaceShapeBeautyStyle = exports.FaceShapeAreaOptions = exports.FaceShapeArea = exports.BeautyOptions = exports.LighteningContrastLevel = exports.VideoCanvas = exports.VideoViewSetupMode = exports.NetworkType = exports.WlAccStats = exports.WlaccSuggestAction = exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = exports.LastmileProbeResult = exports.LastmileProbeOneWayResult = exports.LastmileProbeResultState = exports.LastmileProbeConfig = exports.LocalAudioMixerConfiguration = exports.MixedAudioStream = exports.VideoTranscoderError = exports.LocalTranscoderConfiguration = void 0;
|
|
6
|
+
exports.VideoLayout = exports.SpatialAudioParams = exports.RecorderStreamInfo = exports.RecorderStreamType = exports.LocalAccessPointConfiguration = exports.AdvancedConfigInfo = exports.LogUploadServerInfo = exports.LocalProxyMode = exports.ConfigFetchType = exports.VideoRenderingTracingInfo = exports.MediaTraceEvent = exports.ScreenCaptureParameters2 = exports.ScreenAudioParameters = exports.ScreenVideoParameters = exports.ThreadPriorityType = 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 = void 0;
|
|
7
7
|
require("./extension/AgoraBaseExtension");
|
|
8
8
|
/**
|
|
9
9
|
* The channel profile.
|
|
@@ -622,7 +622,7 @@ var QualityType;
|
|
|
622
622
|
*/
|
|
623
623
|
QualityType[QualityType["QualityUnsupported"] = 7] = "QualityUnsupported";
|
|
624
624
|
/**
|
|
625
|
-
* 8:
|
|
625
|
+
* 8: The last-mile network probe test is in progress.
|
|
626
626
|
*/
|
|
627
627
|
QualityType[QualityType["QualityDetecting"] = 8] = "QualityDetecting";
|
|
628
628
|
})(QualityType = exports.QualityType || (exports.QualityType = {}));
|
|
@@ -771,6 +771,10 @@ var OrientationMode;
|
|
|
771
771
|
*/
|
|
772
772
|
var DegradationPreference;
|
|
773
773
|
(function (DegradationPreference) {
|
|
774
|
+
/**
|
|
775
|
+
* @ignore
|
|
776
|
+
*/
|
|
777
|
+
DegradationPreference[DegradationPreference["MaintainAuto"] = -1] = "MaintainAuto";
|
|
774
778
|
/**
|
|
775
779
|
* 0: (Default) Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
|
|
776
780
|
*/
|
|
@@ -1133,6 +1137,10 @@ exports.EncodedVideoFrameInfo = EncodedVideoFrameInfo;
|
|
|
1133
1137
|
*/
|
|
1134
1138
|
var CompressionPreference;
|
|
1135
1139
|
(function (CompressionPreference) {
|
|
1140
|
+
/**
|
|
1141
|
+
* @ignore
|
|
1142
|
+
*/
|
|
1143
|
+
CompressionPreference[CompressionPreference["PreferCompressionAuto"] = -1] = "PreferCompressionAuto";
|
|
1136
1144
|
/**
|
|
1137
1145
|
* 0: Low latency preference. The SDK compresses video frames to reduce latency. This preference is suitable for scenarios where smoothness is prioritized and reduced video quality is acceptable.
|
|
1138
1146
|
*/
|
|
@@ -1200,6 +1208,54 @@ var CameraFormatType;
|
|
|
1200
1208
|
*/
|
|
1201
1209
|
CameraFormatType[CameraFormatType["CameraFormatBgra"] = 1] = "CameraFormatBgra";
|
|
1202
1210
|
})(CameraFormatType = exports.CameraFormatType || (exports.CameraFormatType = {}));
|
|
1211
|
+
/**
|
|
1212
|
+
* @ignore
|
|
1213
|
+
*/
|
|
1214
|
+
var VideoModuleType;
|
|
1215
|
+
(function (VideoModuleType) {
|
|
1216
|
+
/**
|
|
1217
|
+
* @ignore
|
|
1218
|
+
*/
|
|
1219
|
+
VideoModuleType[VideoModuleType["VideoModuleCapturer"] = 0] = "VideoModuleCapturer";
|
|
1220
|
+
/**
|
|
1221
|
+
* @ignore
|
|
1222
|
+
*/
|
|
1223
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareEncoder"] = 1] = "VideoModuleSoftwareEncoder";
|
|
1224
|
+
/**
|
|
1225
|
+
* @ignore
|
|
1226
|
+
*/
|
|
1227
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareEncoder"] = 2] = "VideoModuleHardwareEncoder";
|
|
1228
|
+
/**
|
|
1229
|
+
* @ignore
|
|
1230
|
+
*/
|
|
1231
|
+
VideoModuleType[VideoModuleType["VideoModuleSoftwareDecoder"] = 3] = "VideoModuleSoftwareDecoder";
|
|
1232
|
+
/**
|
|
1233
|
+
* @ignore
|
|
1234
|
+
*/
|
|
1235
|
+
VideoModuleType[VideoModuleType["VideoModuleHardwareDecoder"] = 4] = "VideoModuleHardwareDecoder";
|
|
1236
|
+
/**
|
|
1237
|
+
* @ignore
|
|
1238
|
+
*/
|
|
1239
|
+
VideoModuleType[VideoModuleType["VideoModuleRenderer"] = 5] = "VideoModuleRenderer";
|
|
1240
|
+
})(VideoModuleType = exports.VideoModuleType || (exports.VideoModuleType = {}));
|
|
1241
|
+
/**
|
|
1242
|
+
* @ignore
|
|
1243
|
+
*/
|
|
1244
|
+
var HdrCapability;
|
|
1245
|
+
(function (HdrCapability) {
|
|
1246
|
+
/**
|
|
1247
|
+
* @ignore
|
|
1248
|
+
*/
|
|
1249
|
+
HdrCapability[HdrCapability["HdrCapabilityUnknown"] = -1] = "HdrCapabilityUnknown";
|
|
1250
|
+
/**
|
|
1251
|
+
* @ignore
|
|
1252
|
+
*/
|
|
1253
|
+
HdrCapability[HdrCapability["HdrCapabilityUnsupported"] = 0] = "HdrCapabilityUnsupported";
|
|
1254
|
+
/**
|
|
1255
|
+
* @ignore
|
|
1256
|
+
*/
|
|
1257
|
+
HdrCapability[HdrCapability["HdrCapabilitySupported"] = 1] = "HdrCapabilitySupported";
|
|
1258
|
+
})(HdrCapability = exports.HdrCapability || (exports.HdrCapability = {}));
|
|
1203
1259
|
/**
|
|
1204
1260
|
* The bit mask of the codec type.
|
|
1205
1261
|
*/
|
|
@@ -1617,6 +1673,10 @@ var VideoApplicationScenarioType;
|
|
|
1617
1673
|
* ApplicationScenario1v1 (2) is suitable for 1v1 video call scenarios. To meet the requirements for low latency and high-quality video in this scenario, the SDK optimizes its strategies, improving performance in terms of video quality, first frame rendering, latency on mid-to-low-end devices, and smoothness under weak network conditions. 2: 1v1 video call scenario.
|
|
1618
1674
|
*/
|
|
1619
1675
|
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenario1v1"] = 2] = "ApplicationScenario1v1";
|
|
1676
|
+
/**
|
|
1677
|
+
* @ignore
|
|
1678
|
+
*/
|
|
1679
|
+
VideoApplicationScenarioType[VideoApplicationScenarioType["ApplicationScenarioLiveshow"] = 3] = "ApplicationScenarioLiveshow";
|
|
1620
1680
|
})(VideoApplicationScenarioType = exports.VideoApplicationScenarioType || (exports.VideoApplicationScenarioType = {}));
|
|
1621
1681
|
/**
|
|
1622
1682
|
* @ignore
|
|
@@ -2441,6 +2501,18 @@ var VideoTranscoderError;
|
|
|
2441
2501
|
*/
|
|
2442
2502
|
VideoTranscoderError[VideoTranscoderError["VtErrInternal"] = 20] = "VtErrInternal";
|
|
2443
2503
|
})(VideoTranscoderError = exports.VideoTranscoderError || (exports.VideoTranscoderError = {}));
|
|
2504
|
+
/**
|
|
2505
|
+
* @ignore
|
|
2506
|
+
*/
|
|
2507
|
+
class MixedAudioStream {
|
|
2508
|
+
}
|
|
2509
|
+
exports.MixedAudioStream = MixedAudioStream;
|
|
2510
|
+
/**
|
|
2511
|
+
* @ignore
|
|
2512
|
+
*/
|
|
2513
|
+
class LocalAudioMixerConfiguration {
|
|
2514
|
+
}
|
|
2515
|
+
exports.LocalAudioMixerConfiguration = LocalAudioMixerConfiguration;
|
|
2444
2516
|
/**
|
|
2445
2517
|
* Configurations of the last-mile network test.
|
|
2446
2518
|
*/
|
|
@@ -2829,6 +2901,12 @@ var FaceShapeBeautyStyle;
|
|
|
2829
2901
|
class FaceShapeBeautyOptions {
|
|
2830
2902
|
}
|
|
2831
2903
|
exports.FaceShapeBeautyOptions = FaceShapeBeautyOptions;
|
|
2904
|
+
/**
|
|
2905
|
+
* @ignore
|
|
2906
|
+
*/
|
|
2907
|
+
class FilterEffectOptions {
|
|
2908
|
+
}
|
|
2909
|
+
exports.FilterEffectOptions = FilterEffectOptions;
|
|
2832
2910
|
/**
|
|
2833
2911
|
* The low-light enhancement mode.
|
|
2834
2912
|
*/
|
|
@@ -2890,10 +2968,6 @@ var VideoDenoiserLevel;
|
|
|
2890
2968
|
* 1: Promotes reducing performance consumption during video noise reduction. prioritizes reducing performance consumption over video noise reduction quality. The performance consumption is lower, and the video noise reduction speed is faster. To avoid a noticeable shadowing effect (shadows trailing behind moving objects) in the processed video, Agora recommends that you use this settinging when the camera is fixed.
|
|
2891
2969
|
*/
|
|
2892
2970
|
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelFast"] = 1] = "VideoDenoiserLevelFast";
|
|
2893
|
-
/**
|
|
2894
|
-
* 2: Enhanced video noise reduction. prioritizes video noise reduction quality over reducing performance consumption. The performance consumption is higher, the video noise reduction speed is slower, and the video noise reduction quality is better. If VideoDenoiserLevelHighQuality is not enough for your video noise reduction needs, you can use this enumerator.
|
|
2895
|
-
*/
|
|
2896
|
-
VideoDenoiserLevel[VideoDenoiserLevel["VideoDenoiserLevelStrength"] = 2] = "VideoDenoiserLevelStrength";
|
|
2897
2971
|
})(VideoDenoiserLevel = exports.VideoDenoiserLevel || (exports.VideoDenoiserLevel = {}));
|
|
2898
2972
|
/**
|
|
2899
2973
|
* Video noise reduction options.
|
|
@@ -2913,7 +2987,7 @@ exports.ColorEnhanceOptions = ColorEnhanceOptions;
|
|
|
2913
2987
|
var BackgroundSourceType;
|
|
2914
2988
|
(function (BackgroundSourceType) {
|
|
2915
2989
|
/**
|
|
2916
|
-
*
|
|
2990
|
+
* @ignore
|
|
2917
2991
|
*/
|
|
2918
2992
|
BackgroundSourceType[BackgroundSourceType["BackgroundNone"] = 0] = "BackgroundNone";
|
|
2919
2993
|
/**
|
|
@@ -3865,6 +3939,20 @@ exports.AdvancedConfigInfo = AdvancedConfigInfo;
|
|
|
3865
3939
|
class LocalAccessPointConfiguration {
|
|
3866
3940
|
}
|
|
3867
3941
|
exports.LocalAccessPointConfiguration = LocalAccessPointConfiguration;
|
|
3942
|
+
/**
|
|
3943
|
+
* @ignore
|
|
3944
|
+
*/
|
|
3945
|
+
var RecorderStreamType;
|
|
3946
|
+
(function (RecorderStreamType) {
|
|
3947
|
+
/**
|
|
3948
|
+
* @ignore
|
|
3949
|
+
*/
|
|
3950
|
+
RecorderStreamType[RecorderStreamType["Rtc"] = 0] = "Rtc";
|
|
3951
|
+
/**
|
|
3952
|
+
* @ignore
|
|
3953
|
+
*/
|
|
3954
|
+
RecorderStreamType[RecorderStreamType["Preview"] = 1] = "Preview";
|
|
3955
|
+
})(RecorderStreamType = exports.RecorderStreamType || (exports.RecorderStreamType = {}));
|
|
3868
3956
|
/**
|
|
3869
3957
|
* @ignore
|
|
3870
3958
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.AlphaStitchMode = exports.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
3
|
+
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.SnapshotConfig = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.AlphaStitchMode = exports.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.AudioSourceType = exports.VideoSourceType = exports.ExtensionContext = void 0;
|
|
4
4
|
require("./extension/AgoraMediaBaseExtension");
|
|
5
5
|
/**
|
|
6
6
|
* The context information of the extension.
|
|
@@ -90,6 +90,44 @@ var VideoSourceType;
|
|
|
90
90
|
*/
|
|
91
91
|
VideoSourceType[VideoSourceType["VideoSourceUnknown"] = 100] = "VideoSourceUnknown";
|
|
92
92
|
})(VideoSourceType = exports.VideoSourceType || (exports.VideoSourceType = {}));
|
|
93
|
+
/**
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
var AudioSourceType;
|
|
97
|
+
(function (AudioSourceType) {
|
|
98
|
+
/**
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
AudioSourceType[AudioSourceType["AudioSourceMicrophone"] = 0] = "AudioSourceMicrophone";
|
|
102
|
+
/**
|
|
103
|
+
* @ignore
|
|
104
|
+
*/
|
|
105
|
+
AudioSourceType[AudioSourceType["AudioSourceCustom"] = 1] = "AudioSourceCustom";
|
|
106
|
+
/**
|
|
107
|
+
* @ignore
|
|
108
|
+
*/
|
|
109
|
+
AudioSourceType[AudioSourceType["AudioSourceMediaPlayer"] = 2] = "AudioSourceMediaPlayer";
|
|
110
|
+
/**
|
|
111
|
+
* @ignore
|
|
112
|
+
*/
|
|
113
|
+
AudioSourceType[AudioSourceType["AudioSourceLoopbackRecording"] = 3] = "AudioSourceLoopbackRecording";
|
|
114
|
+
/**
|
|
115
|
+
* @ignore
|
|
116
|
+
*/
|
|
117
|
+
AudioSourceType[AudioSourceType["AudioSourceMixedStream"] = 4] = "AudioSourceMixedStream";
|
|
118
|
+
/**
|
|
119
|
+
* @ignore
|
|
120
|
+
*/
|
|
121
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteUser"] = 5] = "AudioSourceRemoteUser";
|
|
122
|
+
/**
|
|
123
|
+
* @ignore
|
|
124
|
+
*/
|
|
125
|
+
AudioSourceType[AudioSourceType["AudioSourceRemoteChannel"] = 6] = "AudioSourceRemoteChannel";
|
|
126
|
+
/**
|
|
127
|
+
* @ignore
|
|
128
|
+
*/
|
|
129
|
+
AudioSourceType[AudioSourceType["AudioSourceUnknown"] = 100] = "AudioSourceUnknown";
|
|
130
|
+
})(AudioSourceType = exports.AudioSourceType || (exports.AudioSourceType = {}));
|
|
93
131
|
/**
|
|
94
132
|
* The type of the audio route.
|
|
95
133
|
*/
|
|
@@ -788,6 +826,12 @@ var VideoModulePosition;
|
|
|
788
826
|
*/
|
|
789
827
|
VideoModulePosition[VideoModulePosition["PositionPostCapturerOrigin"] = 8] = "PositionPostCapturerOrigin";
|
|
790
828
|
})(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
|
|
829
|
+
/**
|
|
830
|
+
* @ignore
|
|
831
|
+
*/
|
|
832
|
+
class SnapshotConfig {
|
|
833
|
+
}
|
|
834
|
+
exports.SnapshotConfig = SnapshotConfig;
|
|
791
835
|
/**
|
|
792
836
|
* Audio frame type.
|
|
793
837
|
*/
|
|
@@ -91,6 +91,10 @@ var AudioMixingReasonType;
|
|
|
91
91
|
* 724: Successfully call stopAudioMixing to stop playing the music file.
|
|
92
92
|
*/
|
|
93
93
|
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonStoppedByUser"] = 724] = "AudioMixingReasonStoppedByUser";
|
|
94
|
+
/**
|
|
95
|
+
* @ignore
|
|
96
|
+
*/
|
|
97
|
+
AudioMixingReasonType[AudioMixingReasonType["AudioMixingReasonResumedByUser"] = 726] = "AudioMixingReasonResumedByUser";
|
|
94
98
|
/**
|
|
95
99
|
* 0: The SDK opens music file successfully.
|
|
96
100
|
*/
|
|
@@ -655,6 +659,10 @@ var MediaDeviceStateType;
|
|
|
655
659
|
* 2: The device is disabled.
|
|
656
660
|
*/
|
|
657
661
|
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStateDisabled"] = 2] = "MediaDeviceStateDisabled";
|
|
662
|
+
/**
|
|
663
|
+
* @ignore
|
|
664
|
+
*/
|
|
665
|
+
MediaDeviceStateType[MediaDeviceStateType["MediaDeviceStatePluggedIn"] = 3] = "MediaDeviceStatePluggedIn";
|
|
658
666
|
/**
|
|
659
667
|
* 4: The device is not found.
|
|
660
668
|
*/
|
|
@@ -117,6 +117,22 @@ class IMediaEngineImpl {
|
|
|
117
117
|
getApiTypeFromSetExternalVideoSource(enabled, useTexture, sourceType = AgoraMediaBase_1.ExternalVideoSourceType.VideoFrame, encodedVideoOption = new AgoraBase_1.SenderOptions()) {
|
|
118
118
|
return 'MediaEngine_setExternalVideoSource_fff99b6';
|
|
119
119
|
}
|
|
120
|
+
setExternalRemoteEglContext(eglContext) {
|
|
121
|
+
const apiType = this.getApiTypeFromSetExternalRemoteEglContext(eglContext);
|
|
122
|
+
const jsonParams = {
|
|
123
|
+
eglContext: eglContext,
|
|
124
|
+
toJSON: () => {
|
|
125
|
+
return {
|
|
126
|
+
eglContext: eglContext,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
131
|
+
return jsonResults.result;
|
|
132
|
+
}
|
|
133
|
+
getApiTypeFromSetExternalRemoteEglContext(eglContext) {
|
|
134
|
+
return 'MediaEngine_setExternalRemoteEglContext_f337cbf';
|
|
135
|
+
}
|
|
120
136
|
setExternalAudioSource(enabled, sampleRate, channels, localPlayback = false, publish = true) {
|
|
121
137
|
const apiType = this.getApiTypeFromSetExternalAudioSource(enabled, sampleRate, channels, localPlayback, publish);
|
|
122
138
|
const jsonParams = {
|
|
@@ -42,6 +42,26 @@ class IRtcEngineExImpl extends IAgoraRtcEngineImpl_1.IRtcEngineImpl {
|
|
|
42
42
|
getApiTypeFromLeaveChannelEx(connection, options) {
|
|
43
43
|
return 'RtcEngineEx_leaveChannelEx_b03ee9a';
|
|
44
44
|
}
|
|
45
|
+
leaveChannelWithUserAccountEx(channelId, userAccount, options) {
|
|
46
|
+
const apiType = this.getApiTypeFromLeaveChannelWithUserAccountEx(channelId, userAccount, options);
|
|
47
|
+
const jsonParams = {
|
|
48
|
+
channelId: channelId,
|
|
49
|
+
userAccount: userAccount,
|
|
50
|
+
options: options,
|
|
51
|
+
toJSON: () => {
|
|
52
|
+
return {
|
|
53
|
+
channelId: channelId,
|
|
54
|
+
userAccount: userAccount,
|
|
55
|
+
options: options,
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
60
|
+
return jsonResults.result;
|
|
61
|
+
}
|
|
62
|
+
getApiTypeFromLeaveChannelWithUserAccountEx(channelId, userAccount, options) {
|
|
63
|
+
return 'RtcEngineEx_leaveChannelWithUserAccountEx_8bbe372';
|
|
64
|
+
}
|
|
45
65
|
updateChannelMediaOptionsEx(options, connection) {
|
|
46
66
|
const apiType = this.getApiTypeFromUpdateChannelMediaOptionsEx(options, connection);
|
|
47
67
|
const jsonParams = {
|
|
@@ -997,6 +1017,26 @@ class IRtcEngineExImpl extends IAgoraRtcEngineImpl_1.IRtcEngineImpl {
|
|
|
997
1017
|
getApiTypeFromSendAudioMetadataEx(connection, metadata, length) {
|
|
998
1018
|
return 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4';
|
|
999
1019
|
}
|
|
1020
|
+
takeSnapshotWithConfigEx(connection, uid, config) {
|
|
1021
|
+
const apiType = this.getApiTypeFromTakeSnapshotWithConfigEx(connection, uid, config);
|
|
1022
|
+
const jsonParams = {
|
|
1023
|
+
connection: connection,
|
|
1024
|
+
uid: uid,
|
|
1025
|
+
config: config,
|
|
1026
|
+
toJSON: () => {
|
|
1027
|
+
return {
|
|
1028
|
+
connection: connection,
|
|
1029
|
+
uid: uid,
|
|
1030
|
+
config: config,
|
|
1031
|
+
};
|
|
1032
|
+
},
|
|
1033
|
+
};
|
|
1034
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
1035
|
+
return jsonResults.result;
|
|
1036
|
+
}
|
|
1037
|
+
getApiTypeFromTakeSnapshotWithConfigEx(connection, uid, config) {
|
|
1038
|
+
return 'RtcEngineEx_takeSnapshotEx_b856417';
|
|
1039
|
+
}
|
|
1000
1040
|
}
|
|
1001
1041
|
exports.IRtcEngineExImpl = IRtcEngineExImpl;
|
|
1002
1042
|
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|
|
@@ -107,7 +107,7 @@ function processIRtcEngineEventHandler(handler, event, jsonParams) {
|
|
|
107
107
|
break;
|
|
108
108
|
case 'onFirstLocalVideoFramePublished':
|
|
109
109
|
if (handler.onFirstLocalVideoFramePublished !== undefined) {
|
|
110
|
-
handler.onFirstLocalVideoFramePublished(jsonParams.
|
|
110
|
+
handler.onFirstLocalVideoFramePublished(jsonParams.connection, jsonParams.elapsed);
|
|
111
111
|
}
|
|
112
112
|
break;
|
|
113
113
|
case 'onFirstRemoteVideoDecoded':
|
|
@@ -1069,6 +1069,26 @@ class IRtcEngineImpl {
|
|
|
1069
1069
|
getApiTypeFromGetFaceShapeAreaOptions(shapeArea, type = AgoraMediaBase_1.MediaSourceType.PrimaryCameraSource) {
|
|
1070
1070
|
return 'RtcEngine_getFaceShapeAreaOptions_0783e2c';
|
|
1071
1071
|
}
|
|
1072
|
+
setFilterEffectOptions(enabled, options, type = AgoraMediaBase_1.MediaSourceType.PrimaryCameraSource) {
|
|
1073
|
+
const apiType = this.getApiTypeFromSetFilterEffectOptions(enabled, options, type);
|
|
1074
|
+
const jsonParams = {
|
|
1075
|
+
enabled: enabled,
|
|
1076
|
+
options: options,
|
|
1077
|
+
type: type,
|
|
1078
|
+
toJSON: () => {
|
|
1079
|
+
return {
|
|
1080
|
+
enabled: enabled,
|
|
1081
|
+
options: options,
|
|
1082
|
+
type: type,
|
|
1083
|
+
};
|
|
1084
|
+
},
|
|
1085
|
+
};
|
|
1086
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
1087
|
+
return jsonResults.result;
|
|
1088
|
+
}
|
|
1089
|
+
getApiTypeFromSetFilterEffectOptions(enabled, options, type = AgoraMediaBase_1.MediaSourceType.PrimaryCameraSource) {
|
|
1090
|
+
return 'RtcEngine_setFilterEffectOptions_53b4be3';
|
|
1091
|
+
}
|
|
1072
1092
|
setLowlightEnhanceOptions(enabled, options, type = AgoraMediaBase_1.MediaSourceType.PrimaryCameraSource) {
|
|
1073
1093
|
const apiType = this.getApiTypeFromSetLowlightEnhanceOptions(enabled, options, type);
|
|
1074
1094
|
const jsonParams = {
|
|
@@ -2571,6 +2591,40 @@ class IRtcEngineImpl {
|
|
|
2571
2591
|
getApiTypeFromSetRemoteRenderMode(uid, renderMode, mirrorMode) {
|
|
2572
2592
|
return 'RtcEngine_setRemoteRenderMode_6771ce0';
|
|
2573
2593
|
}
|
|
2594
|
+
setLocalRenderTargetFps(sourceType, targetFps) {
|
|
2595
|
+
const apiType = this.getApiTypeFromSetLocalRenderTargetFps(sourceType, targetFps);
|
|
2596
|
+
const jsonParams = {
|
|
2597
|
+
sourceType: sourceType,
|
|
2598
|
+
targetFps: targetFps,
|
|
2599
|
+
toJSON: () => {
|
|
2600
|
+
return {
|
|
2601
|
+
sourceType: sourceType,
|
|
2602
|
+
targetFps: targetFps,
|
|
2603
|
+
};
|
|
2604
|
+
},
|
|
2605
|
+
};
|
|
2606
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
2607
|
+
return jsonResults.result;
|
|
2608
|
+
}
|
|
2609
|
+
getApiTypeFromSetLocalRenderTargetFps(sourceType, targetFps) {
|
|
2610
|
+
return 'RtcEngine_setLocalRenderTargetFps_2ad83d8';
|
|
2611
|
+
}
|
|
2612
|
+
setRemoteRenderTargetFps(targetFps) {
|
|
2613
|
+
const apiType = this.getApiTypeFromSetRemoteRenderTargetFps(targetFps);
|
|
2614
|
+
const jsonParams = {
|
|
2615
|
+
targetFps: targetFps,
|
|
2616
|
+
toJSON: () => {
|
|
2617
|
+
return {
|
|
2618
|
+
targetFps: targetFps,
|
|
2619
|
+
};
|
|
2620
|
+
},
|
|
2621
|
+
};
|
|
2622
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
2623
|
+
return jsonResults.result;
|
|
2624
|
+
}
|
|
2625
|
+
getApiTypeFromSetRemoteRenderTargetFps(targetFps) {
|
|
2626
|
+
return 'RtcEngine_setRemoteRenderTargetFps_46f8ab7';
|
|
2627
|
+
}
|
|
2574
2628
|
setLocalVideoMirrorMode(mirrorMode) {
|
|
2575
2629
|
const apiType = this.getApiTypeFromSetLocalVideoMirrorMode(mirrorMode);
|
|
2576
2630
|
const jsonParams = {
|
|
@@ -3585,7 +3639,7 @@ class IRtcEngineImpl {
|
|
|
3585
3639
|
return jsonResults.result;
|
|
3586
3640
|
}
|
|
3587
3641
|
getApiTypeFromStartScreenCaptureByDisplayId(displayId, regionRect, captureParams) {
|
|
3588
|
-
return '
|
|
3642
|
+
return 'RtcEngine_startScreenCaptureByDisplayId_ce89867';
|
|
3589
3643
|
}
|
|
3590
3644
|
startScreenCaptureByScreenRect(screenRect, regionRect, captureParams) {
|
|
3591
3645
|
const apiType = this.getApiTypeFromStartScreenCaptureByScreenRect(screenRect, regionRect, captureParams);
|
|
@@ -3635,7 +3689,7 @@ class IRtcEngineImpl {
|
|
|
3635
3689
|
return jsonResults.result;
|
|
3636
3690
|
}
|
|
3637
3691
|
getApiTypeFromStartScreenCaptureByWindowId(windowId, regionRect, captureParams) {
|
|
3638
|
-
return '
|
|
3692
|
+
return 'RtcEngine_startScreenCaptureByWindowId_ce89867';
|
|
3639
3693
|
}
|
|
3640
3694
|
setScreenCaptureContentHint(contentHint) {
|
|
3641
3695
|
const apiType = this.getApiTypeFromSetScreenCaptureContentHint(contentHint);
|
|
@@ -3740,6 +3794,22 @@ class IRtcEngineImpl {
|
|
|
3740
3794
|
getApiTypeFromQueryCameraFocalLengthCapability() {
|
|
3741
3795
|
return 'RtcEngine_queryCameraFocalLengthCapability_2dee6af';
|
|
3742
3796
|
}
|
|
3797
|
+
setExternalMediaProjection(mediaProjection) {
|
|
3798
|
+
const apiType = this.getApiTypeFromSetExternalMediaProjection(mediaProjection);
|
|
3799
|
+
const jsonParams = {
|
|
3800
|
+
mediaProjection: mediaProjection,
|
|
3801
|
+
toJSON: () => {
|
|
3802
|
+
return {
|
|
3803
|
+
mediaProjection: mediaProjection,
|
|
3804
|
+
};
|
|
3805
|
+
},
|
|
3806
|
+
};
|
|
3807
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
3808
|
+
return jsonResults.result;
|
|
3809
|
+
}
|
|
3810
|
+
getApiTypeFromSetExternalMediaProjection(mediaProjection) {
|
|
3811
|
+
return 'RtcEngine_setExternalMediaProjection_f337cbf';
|
|
3812
|
+
}
|
|
3743
3813
|
setScreenCaptureScenario(screenScenario) {
|
|
3744
3814
|
const apiType = this.getApiTypeFromSetScreenCaptureScenario(screenScenario);
|
|
3745
3815
|
const jsonParams = {
|
|
@@ -3920,6 +3990,47 @@ class IRtcEngineImpl {
|
|
|
3920
3990
|
getApiTypeFromStopLocalVideoTranscoder() {
|
|
3921
3991
|
return 'RtcEngine_stopLocalVideoTranscoder';
|
|
3922
3992
|
}
|
|
3993
|
+
startLocalAudioMixer(config) {
|
|
3994
|
+
const apiType = this.getApiTypeFromStartLocalAudioMixer(config);
|
|
3995
|
+
const jsonParams = {
|
|
3996
|
+
config: config,
|
|
3997
|
+
toJSON: () => {
|
|
3998
|
+
return {
|
|
3999
|
+
config: config,
|
|
4000
|
+
};
|
|
4001
|
+
},
|
|
4002
|
+
};
|
|
4003
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
4004
|
+
return jsonResults.result;
|
|
4005
|
+
}
|
|
4006
|
+
getApiTypeFromStartLocalAudioMixer(config) {
|
|
4007
|
+
return 'RtcEngine_startLocalAudioMixer_a7ff78e';
|
|
4008
|
+
}
|
|
4009
|
+
updateLocalAudioMixerConfiguration(config) {
|
|
4010
|
+
const apiType = this.getApiTypeFromUpdateLocalAudioMixerConfiguration(config);
|
|
4011
|
+
const jsonParams = {
|
|
4012
|
+
config: config,
|
|
4013
|
+
toJSON: () => {
|
|
4014
|
+
return {
|
|
4015
|
+
config: config,
|
|
4016
|
+
};
|
|
4017
|
+
},
|
|
4018
|
+
};
|
|
4019
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
4020
|
+
return jsonResults.result;
|
|
4021
|
+
}
|
|
4022
|
+
getApiTypeFromUpdateLocalAudioMixerConfiguration(config) {
|
|
4023
|
+
return 'RtcEngine_updateLocalAudioMixerConfiguration_a7ff78e';
|
|
4024
|
+
}
|
|
4025
|
+
stopLocalAudioMixer() {
|
|
4026
|
+
const apiType = this.getApiTypeFromStopLocalAudioMixer();
|
|
4027
|
+
const jsonParams = {};
|
|
4028
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
4029
|
+
return jsonResults.result;
|
|
4030
|
+
}
|
|
4031
|
+
getApiTypeFromStopLocalAudioMixer() {
|
|
4032
|
+
return 'RtcEngine_stopLocalAudioMixer';
|
|
4033
|
+
}
|
|
3923
4034
|
startCameraCapture(sourceType, config) {
|
|
3924
4035
|
const apiType = this.getApiTypeFromStartCameraCapture(sourceType, config);
|
|
3925
4036
|
const jsonParams = {
|
|
@@ -4813,6 +4924,23 @@ class IRtcEngineImpl {
|
|
|
4813
4924
|
getApiTypeFromSendAudioMetadata(metadata, length) {
|
|
4814
4925
|
return 'RtcEngine_sendAudioMetadata_878f309';
|
|
4815
4926
|
}
|
|
4927
|
+
queryHDRCapability(videoModule) {
|
|
4928
|
+
const apiType = this.getApiTypeFromQueryHDRCapability(videoModule);
|
|
4929
|
+
const jsonParams = {
|
|
4930
|
+
videoModule: videoModule,
|
|
4931
|
+
toJSON: () => {
|
|
4932
|
+
return {
|
|
4933
|
+
videoModule: videoModule,
|
|
4934
|
+
};
|
|
4935
|
+
},
|
|
4936
|
+
};
|
|
4937
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
4938
|
+
const capability = jsonResults.capability;
|
|
4939
|
+
return capability;
|
|
4940
|
+
}
|
|
4941
|
+
getApiTypeFromQueryHDRCapability(videoModule) {
|
|
4942
|
+
return 'RtcEngine_queryHDRCapability_bebdacb';
|
|
4943
|
+
}
|
|
4816
4944
|
startScreenCaptureBySourceType(sourceType, config) {
|
|
4817
4945
|
const apiType = this.getApiTypeFromStartScreenCaptureBySourceType(sourceType, config);
|
|
4818
4946
|
const jsonParams = {
|
|
@@ -5016,6 +5144,24 @@ class IRtcEngineImpl {
|
|
|
5016
5144
|
getApiTypeFromGetNativeHandle() {
|
|
5017
5145
|
return 'RtcEngine_getNativeHandle';
|
|
5018
5146
|
}
|
|
5147
|
+
takeSnapshotWithConfig(uid, config) {
|
|
5148
|
+
const apiType = this.getApiTypeFromTakeSnapshotWithConfig(uid, config);
|
|
5149
|
+
const jsonParams = {
|
|
5150
|
+
uid: uid,
|
|
5151
|
+
config: config,
|
|
5152
|
+
toJSON: () => {
|
|
5153
|
+
return {
|
|
5154
|
+
uid: uid,
|
|
5155
|
+
config: config,
|
|
5156
|
+
};
|
|
5157
|
+
},
|
|
5158
|
+
};
|
|
5159
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
5160
|
+
return jsonResults.result;
|
|
5161
|
+
}
|
|
5162
|
+
getApiTypeFromTakeSnapshotWithConfig(uid, config) {
|
|
5163
|
+
return 'RtcEngine_takeSnapshot_5669ea6';
|
|
5164
|
+
}
|
|
5019
5165
|
}
|
|
5020
5166
|
exports.IRtcEngineImpl = IRtcEngineImpl;
|
|
5021
5167
|
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|
|
@@ -50,7 +50,7 @@ exports.IRtcEngineEventHandler = t.iface([], {
|
|
|
50
50
|
"onDownlinkNetworkInfoUpdated": t.opt(t.func("void", t.param("info", "DownlinkNetworkInfo"))),
|
|
51
51
|
"onLastmileQuality": t.opt(t.func("void", t.param("quality", "QualityType"))),
|
|
52
52
|
"onFirstLocalVideoFrame": t.opt(t.func("void", t.param("source", "VideoSourceType"), t.param("width", "number"), t.param("height", "number"), t.param("elapsed", "number"))),
|
|
53
|
-
"onFirstLocalVideoFramePublished": t.opt(t.func("void", t.param("
|
|
53
|
+
"onFirstLocalVideoFramePublished": t.opt(t.func("void", t.param("connection", "RtcConnection"), t.param("elapsed", "number"))),
|
|
54
54
|
"onFirstRemoteVideoDecoded": t.opt(t.func("void", t.param("connection", "RtcConnection"), t.param("remoteUid", "number"), t.param("width", "number"), t.param("height", "number"), t.param("elapsed", "number"))),
|
|
55
55
|
"onVideoSizeChanged": t.opt(t.func("void", t.param("connection", "RtcConnection"), t.param("sourceType", "VideoSourceType"), t.param("uid", "number"), t.param("width", "number"), t.param("height", "number"), t.param("rotation", "number"))),
|
|
56
56
|
"onLocalVideoStateChanged": t.opt(t.func("void", t.param("source", "VideoSourceType"), t.param("state", "LocalVideoStreamState"), t.param("reason", "LocalVideoStreamReason"))),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-electron-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-dev.1",
|
|
4
4
|
"description": "agora-electron-sdk",
|
|
5
5
|
"main": "js/AgoraSdk",
|
|
6
6
|
"types": "types/AgoraSdk.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"!**/__tests__"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"postinstall": "
|
|
19
|
+
"postinstall": "npm run checkElectron",
|
|
20
20
|
"totalBuild": "cross-env-shell gulp totalBuild \\\"--INIT_CWD=$INIT_CWD\\\"",
|
|
21
21
|
"build": "cross-env-shell gulp build \\\"--INIT_CWD=$INIT_CWD\\\"",
|
|
22
22
|
"clean": "cross-env-shell gulp clean \\\"--INIT_CWD=$INIT_CWD\\\"",
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
"yuv-canvas": "1.2.6"
|
|
143
143
|
},
|
|
144
144
|
"agora_electron": {
|
|
145
|
-
"iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.
|
|
146
|
-
"iris_sdk_mac": "https://download.agora.io/sdk/release/iris_4.
|
|
147
|
-
"native_sdk_win": "https://download.agora.io/sdk/release/
|
|
148
|
-
"native_sdk_mac": "https://download.agora.io/sdk/release/
|
|
145
|
+
"iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.5.0-dev.12_DCG_Windows_Video_Standalone_20241106_1153_560.zip",
|
|
146
|
+
"iris_sdk_mac": "https://download.agora.io/sdk/release/iris_4.5.0-dev.12_DCG_Mac_Video_Standalone_20241106_1153_521.zip",
|
|
147
|
+
"native_sdk_win": "https://download.agora.io/sdk/release/AgoraRtcEngine_windows_Preview_4.5.0-dev.12.zip",
|
|
148
|
+
"native_sdk_mac": "https://download.agora.io/sdk/release/AgoraRtcEngine_macOS_Preview_4.5.0-dev.12.zip"
|
|
149
149
|
}
|
|
150
150
|
}
|