agora-electron-sdk 4.3.0-dev.1 → 4.3.1-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.
Files changed (84) hide show
  1. package/CHANGELOG.md +11 -4
  2. package/gulpfile.js +11 -4
  3. package/js/Private/AgoraBase.js +121 -24
  4. package/js/Private/AgoraMediaBase.js +15 -3
  5. package/js/Private/IAgoraRtcEngine.js +3 -3
  6. package/js/Private/impl/AgoraMediaBaseImpl.js +11 -1
  7. package/js/Private/impl/IAgoraMediaEngineImpl.js +28 -0
  8. package/js/Private/impl/IAgoraMediaPlayerImpl.js +2 -2
  9. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +1 -1
  10. package/js/Private/impl/IAgoraRtcEngineExImpl.js +37 -0
  11. package/js/Private/impl/IAgoraRtcEngineImpl.js +123 -11
  12. package/js/Private/impl/IAudioDeviceManagerImpl.js +2 -2
  13. package/js/Private/internal/IrisApiEngine.js +6 -0
  14. package/js/Private/internal/MediaEngineInternal.js +25 -5
  15. package/js/Private/internal/MediaPlayerInternal.js +0 -6
  16. package/js/Private/internal/MusicContentCenterInternal.js +0 -4
  17. package/js/Private/internal/RtcEngineExInternal.js +10 -14
  18. package/js/Private/ti/AgoraMediaBase-ti.js +5 -1
  19. package/js/Private/ti/IAgoraRtcEngine-ti.js +1 -0
  20. package/package.json +5 -3
  21. package/scripts/buildJS.js +3 -3
  22. package/scripts/clean.js +6 -35
  23. package/scripts/downloadPrebuild.js +50 -3
  24. package/scripts/synclib.js +32 -12
  25. package/scripts/util.js +29 -0
  26. package/ts/Private/AgoraBase.ts +146 -33
  27. package/ts/Private/AgoraMediaBase.ts +77 -47
  28. package/ts/Private/IAgoraLog.ts +1 -1
  29. package/ts/Private/IAgoraMediaEngine.ts +35 -5
  30. package/ts/Private/IAgoraMediaPlayer.ts +10 -1
  31. package/ts/Private/IAgoraRtcEngine.ts +147 -102
  32. package/ts/Private/IAgoraRtcEngineEx.ts +39 -4
  33. package/ts/Private/IAudioDeviceManager.ts +2 -2
  34. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +3 -1
  35. package/ts/Private/impl/AgoraMediaBaseImpl.ts +15 -0
  36. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +37 -0
  37. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +2 -2
  38. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +1 -1
  39. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +53 -0
  40. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +153 -11
  41. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +2 -2
  42. package/ts/Private/internal/IrisApiEngine.ts +11 -1
  43. package/ts/Private/internal/MediaEngineInternal.ts +31 -0
  44. package/ts/Private/internal/MediaPlayerInternal.ts +0 -14
  45. package/ts/Private/internal/MusicContentCenterInternal.ts +0 -7
  46. package/ts/Private/internal/RtcEngineExInternal.ts +9 -28
  47. package/ts/Private/ti/AgoraMediaBase-ti.ts +5 -0
  48. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +1 -0
  49. package/types/Private/AgoraBase.d.ts +146 -36
  50. package/types/Private/AgoraBase.d.ts.map +1 -1
  51. package/types/Private/AgoraMediaBase.d.ts +77 -48
  52. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  53. package/types/Private/IAgoraLog.d.ts +1 -1
  54. package/types/Private/IAgoraMediaEngine.d.ts +33 -6
  55. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
  56. package/types/Private/IAgoraMediaPlayer.d.ts +10 -1
  57. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
  58. package/types/Private/IAgoraRtcEngine.d.ts +132 -103
  59. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  60. package/types/Private/IAgoraRtcEngineEx.d.ts +33 -4
  61. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  62. package/types/Private/IAudioDeviceManager.d.ts +2 -2
  63. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +2 -2
  64. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -1
  65. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +2 -1
  66. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -1
  67. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +5 -1
  68. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -1
  69. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +4 -0
  70. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
  71. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +18 -1
  72. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  73. package/types/Private/internal/IrisApiEngine.d.ts +3 -2
  74. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
  75. package/types/Private/internal/MediaEngineInternal.d.ts +4 -1
  76. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
  77. package/types/Private/internal/MediaPlayerInternal.d.ts +0 -2
  78. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -1
  79. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
  80. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -5
  81. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  82. package/types/Private/ti/AgoraMediaBase-ti.d.ts +1 -0
  83. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -1
  84. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,23 +1,30 @@
1
1
 
2
2
 
3
- # [4.3.0-dev.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.6...v4.3.0-dev.1) (2024-02-27)
3
+ ## [4.3.1-dev.1](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.3.0...v4.3.1-dev.1) (2024-04-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * allow unregister event handler by specific eventHandler ([87843c0](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/87843c04d0d291a4993539f4c96cb6408cf2ea3a))
9
+ * bump example electron version to 22.0.0 ([a8256c0](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/a8256c0f985431de48b6a2faad6a932b64c34382))
10
+ * support native 4.3.1 ([1526048](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/15260486de4ab4bc959a16071f81df7dcbbae989))
11
+
12
+ # [4.3.0](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.6...v4.3.0) (2024-02-28)
4
13
 
5
14
 
6
15
  ### Bug Fixes
7
16
 
8
- * destroymediarecorder NMS-18021 ([2da2d86](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/2da2d86c056e83c215294c5c5a51aae561ebd645))
9
17
  * yuv renderer issue ([#1136](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1136)) ([94c5ad1](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/94c5ad1bd1a8e2db09676b54d0b82c0751013dfb))
10
18
 
11
19
 
12
20
  ### Features
13
21
 
14
- * add IH265Transcoder ([e03c3f7](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/e03c3f72a82b73acf959421cdc010c49e0988df3))
15
22
  * optimize for renderer ([#1132](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1132)) ([d0098c1](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/d0098c1c9f6d44dbfa6b790cf127b070d2201ac8))
23
+ * support 4.3.0 ([#1130](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1130)) ([2ab7994](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/2ab79943338f27e454f173f67d5fb1749a39d98e))
16
24
 
17
25
 
18
26
  ### Performance Improvements
19
27
 
20
- * remove EncodedVideoFrame video renderer TES-14300 ([b735692](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/b7356924cd53f41cf91879059a66a1f52e679e24))
21
28
  * remove useless lib after isynclib ([#1150](https://github.com/AgoraIO-Extensions/Electron-SDK/issues/1150)) ([cb81a8c](https://github.com/AgoraIO-Extensions/Electron-SDK/commit/cb81a8ce48708755cc4600b218e8046d1f85bb35))
22
29
 
23
30
  ## [4.2.6](https://github.com/AgoraIO-Extensions/Electron-SDK/compare/v4.2.4...v4.2.6) (2023-11-22)
package/gulpfile.js CHANGED
@@ -2,7 +2,13 @@ const gulp = require('gulp');
2
2
 
3
3
  const build = require('./scripts/build');
4
4
  const buildJS = require('./scripts/buildJS');
5
- const { cleanBuildDir, cleanJSDir, cleanIrisDir } = require('./scripts/clean');
5
+ const {
6
+ buildDir,
7
+ jsDir,
8
+ cleanDir,
9
+ destIrisSDKDir,
10
+ destNativeSDKDir,
11
+ } = require('./scripts/clean');
6
12
  const downloadPrebuild = require('./scripts/downloadPrebuild');
7
13
  const getConfig = require('./scripts/getConfig');
8
14
  const logger = require('./scripts/logger');
@@ -13,9 +19,10 @@ const config = getConfig();
13
19
  logger.info(`Get Config: \n${JSON.stringify(config, undefined, 4)}`);
14
20
 
15
21
  const clean = async (cb) => {
16
- await cleanIrisDir();
17
- await cleanBuildDir();
18
- await cleanJSDir();
22
+ await cleanDir(destIrisSDKDir);
23
+ await cleanDir(destNativeSDKDir);
24
+ await cleanDir(buildDir);
25
+ await cleanDir(jsDir);
19
26
  cb();
20
27
  };
21
28
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.RtcStats = exports.WatermarkOptions = exports.WatermarkRatio = exports.Rectangle = exports.SimulcastStreamConfig = exports.SimulcastStreamMode = exports.DataStreamConfig = exports.VideoEncoderConfiguration = exports.FocalLengthInfo = 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.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.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.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 = void 0;
5
+ 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 = exports.WlaccMessageReason = exports.ClientRoleChangeFailedReason = exports.ConnectionChangedReasonType = 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 = exports.EarMonitoringFilterType = exports.UserInfo = exports.EchoTestConfiguration = void 0;
7
7
  require("./extension/AgoraBaseExtension");
8
8
  /**
9
9
  * The channel profile.
@@ -320,13 +320,17 @@ var ErrorCodeType;
320
320
  */
321
321
  ErrorCodeType[ErrorCodeType["ErrSetClientRoleNotAuthorized"] = 119] = "ErrSetClientRoleNotAuthorized";
322
322
  /**
323
- * 120: Decryption fails. The user might have entered an incorrect password to join the channel. Check the entered password, or tell the user to try rejoining the channel.
323
+ * 120: Media streams decryption fails. The user might use an incorrect password to join the channel. Check the entered password, or tell the user to try rejoining the channel.
324
324
  */
325
325
  ErrorCodeType[ErrorCodeType["ErrDecryptionFailed"] = 120] = "ErrDecryptionFailed";
326
326
  /**
327
327
  * 121: The user ID is invalid.
328
328
  */
329
329
  ErrorCodeType[ErrorCodeType["ErrInvalidUserId"] = 121] = "ErrInvalidUserId";
330
+ /**
331
+ * 122: Data streams decryption fails. The user might use an incorrect password to join the channel. Check the entered password, or tell the user to try rejoining the channel.
332
+ */
333
+ ErrorCodeType[ErrorCodeType["ErrDatastreamDecryptionFailed"] = 122] = "ErrDatastreamDecryptionFailed";
330
334
  /**
331
335
  * 123: The user is banned from the server.
332
336
  */
@@ -883,6 +887,28 @@ var VideoCodecType;
883
887
  */
884
888
  VideoCodecType[VideoCodecType["VideoCodecGenericJpeg"] = 20] = "VideoCodecGenericJpeg";
885
889
  })(VideoCodecType = exports.VideoCodecType || (exports.VideoCodecType = {}));
890
+ /**
891
+ * @ignore
892
+ */
893
+ var CameraFocalLengthType;
894
+ (function (CameraFocalLengthType) {
895
+ /**
896
+ * @ignore
897
+ */
898
+ CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthDefault"] = 0] = "CameraFocalLengthDefault";
899
+ /**
900
+ * @ignore
901
+ */
902
+ CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthWideAngle"] = 1] = "CameraFocalLengthWideAngle";
903
+ /**
904
+ * @ignore
905
+ */
906
+ CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthUltraWide"] = 2] = "CameraFocalLengthUltraWide";
907
+ /**
908
+ * @ignore
909
+ */
910
+ CameraFocalLengthType[CameraFocalLengthType["CameraFocalLengthTelephoto"] = 3] = "CameraFocalLengthTelephoto";
911
+ })(CameraFocalLengthType = exports.CameraFocalLengthType || (exports.CameraFocalLengthType = {}));
886
912
  /**
887
913
  * @ignore
888
914
  */
@@ -1200,6 +1226,15 @@ var CodecCapInfo = /** @class */ (function () {
1200
1226
  return CodecCapInfo;
1201
1227
  }());
1202
1228
  exports.CodecCapInfo = CodecCapInfo;
1229
+ /**
1230
+ * @ignore
1231
+ */
1232
+ var FocalLengthInfo = /** @class */ (function () {
1233
+ function FocalLengthInfo() {
1234
+ }
1235
+ return FocalLengthInfo;
1236
+ }());
1237
+ exports.FocalLengthInfo = FocalLengthInfo;
1203
1238
  /**
1204
1239
  * Video encoder configurations.
1205
1240
  */
@@ -1591,6 +1626,36 @@ var CaptureBrightnessLevelType;
1591
1626
  */
1592
1627
  CaptureBrightnessLevelType[CaptureBrightnessLevelType["CaptureBrightnessLevelDark"] = 2] = "CaptureBrightnessLevelDark";
1593
1628
  })(CaptureBrightnessLevelType = exports.CaptureBrightnessLevelType || (exports.CaptureBrightnessLevelType = {}));
1629
+ /**
1630
+ * @ignore
1631
+ */
1632
+ var CameraStabilizationMode;
1633
+ (function (CameraStabilizationMode) {
1634
+ /**
1635
+ * @ignore
1636
+ */
1637
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeOff"] = -1] = "CameraStabilizationModeOff";
1638
+ /**
1639
+ * @ignore
1640
+ */
1641
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeAuto"] = 0] = "CameraStabilizationModeAuto";
1642
+ /**
1643
+ * @ignore
1644
+ */
1645
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel1"] = 1] = "CameraStabilizationModeLevel1";
1646
+ /**
1647
+ * @ignore
1648
+ */
1649
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel2"] = 2] = "CameraStabilizationModeLevel2";
1650
+ /**
1651
+ * @ignore
1652
+ */
1653
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeLevel3"] = 3] = "CameraStabilizationModeLevel3";
1654
+ /**
1655
+ * @ignore
1656
+ */
1657
+ CameraStabilizationMode[CameraStabilizationMode["CameraStabilizationModeMaxLevel"] = 3] = "CameraStabilizationModeMaxLevel";
1658
+ })(CameraStabilizationMode = exports.CameraStabilizationMode || (exports.CameraStabilizationMode = {}));
1594
1659
  /**
1595
1660
  * The state of the local audio.
1596
1661
  */
@@ -1643,11 +1708,11 @@ var LocalAudioStreamReason;
1643
1708
  */
1644
1709
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonEncodeFailure"] = 5] = "LocalAudioStreamReasonEncodeFailure";
1645
1710
  /**
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.
1711
+ * 6: No local audio capture device. Remind your users to check whether the microphone is connected to the device properly in the control panel of the device or if the microphone is working properly.
1647
1712
  */
1648
1713
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoRecordingDevice"] = 6] = "LocalAudioStreamReasonNoRecordingDevice";
1649
1714
  /**
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.
1715
+ * 7: No local audio capture device. Remind your users to check whether the speaker is connected to the device properly in the control panel of the device or if the speaker is working properly.
1651
1716
  */
1652
1717
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonNoPlayoutDevice"] = 7] = "LocalAudioStreamReasonNoPlayoutDevice";
1653
1718
  /**
@@ -1655,11 +1720,11 @@ var LocalAudioStreamReason;
1655
1720
  */
1656
1721
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonInterrupted"] = 8] = "LocalAudioStreamReasonInterrupted";
1657
1722
  /**
1658
- * 9: (Windows only) The ID of the local audio-capture device is invalid. Check the audio capture device ID.
1723
+ * 9: (Windows only) The ID of the local audio-capture device is invalid. Prompt the user to check the audio capture device ID.
1659
1724
  */
1660
1725
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonRecordInvalidId"] = 9] = "LocalAudioStreamReasonRecordInvalidId";
1661
1726
  /**
1662
- * 10: (Windows only) The ID of the local audio-playback device is invalid. Check the audio playback device ID.
1727
+ * 10: (Windows only) The ID of the local audio-playback device is invalid. Prompt the user to check the audio playback device ID.
1663
1728
  */
1664
1729
  LocalAudioStreamReason[LocalAudioStreamReason["LocalAudioStreamReasonPlayoutInvalidId"] = 10] = "LocalAudioStreamReasonPlayoutInvalidId";
1665
1730
  })(LocalAudioStreamReason = exports.LocalAudioStreamReason || (exports.LocalAudioStreamReason = {}));
@@ -1699,15 +1764,15 @@ var LocalVideoStreamReason;
1699
1764
  */
1700
1765
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonFailure"] = 1] = "LocalVideoStreamReasonFailure";
1701
1766
  /**
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.
1767
+ * 2: No permission to use the local video capturing device. Prompt the user to grant permissions and rejoin the channel. Deprecated: This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
1703
1768
  */
1704
1769
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceNoPermission"] = 2] = "LocalVideoStreamReasonDeviceNoPermission";
1705
1770
  /**
1706
- * 3: The local video capturing device is in use. Remind the user to check whether another application occupies the camera.
1771
+ * 3: The local video capturing device is in use. Prompt the user to check if the camera is being used by another app, or try to rejoin the channel.
1707
1772
  */
1708
1773
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceBusy"] = 3] = "LocalVideoStreamReasonDeviceBusy";
1709
1774
  /**
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.
1775
+ * 4: The local video capture fails. Prompt the user to check whether the video capture device is working properly, whether the camera is used by another app, or try to rejoin the channel.
1711
1776
  */
1712
1777
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonCaptureFailure"] = 4] = "LocalVideoStreamReasonCaptureFailure";
1713
1778
  /**
@@ -1734,17 +1799,25 @@ var LocalVideoStreamReason;
1734
1799
  * 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.
1735
1800
  */
1736
1801
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInvalidId"] = 10] = "LocalVideoStreamReasonDeviceInvalidId";
1802
+ /**
1803
+ * @ignore
1804
+ */
1805
+ LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceInterrupt"] = 14] = "LocalVideoStreamReasonDeviceInterrupt";
1806
+ /**
1807
+ * @ignore
1808
+ */
1809
+ LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceFatalError"] = 15] = "LocalVideoStreamReasonDeviceFatalError";
1737
1810
  /**
1738
1811
  * 101: The current video capture device is unavailable due to excessive system pressure.
1739
1812
  */
1740
1813
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonDeviceSystemPressure"] = 101] = "LocalVideoStreamReasonDeviceSystemPressure";
1741
1814
  /**
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.
1815
+ * 11: (macOS and Windows only) The shared window is minimized when you call the startScreenCaptureByWindowId method to share a window. The SDK cannot share a minimized window. Please prompt the user to unminimize the shared window.
1743
1816
  */
1744
1817
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowMinimized"] = 11] = "LocalVideoStreamReasonScreenCaptureWindowMinimized";
1745
1818
  /**
1746
1819
  * 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:
1747
- * When the local user closes the shared window, the SDK reports this error code.
1820
+ * The local user closes the shared window.
1748
1821
  * 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.
1749
1822
  * 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.
1750
1823
  */
@@ -1778,7 +1851,7 @@ var LocalVideoStreamReason;
1778
1851
  */
1779
1852
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden"] = 26] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromHidden";
1780
1853
  /**
1781
- * @ignore
1854
+ * 27: The window for screen capture has been restored from the minimized state.
1782
1855
  */
1783
1856
  LocalVideoStreamReason[LocalVideoStreamReason["LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized"] = 27] = "LocalVideoStreamReasonScreenCaptureWindowRecoverFromMinimized";
1784
1857
  /**
@@ -1853,6 +1926,14 @@ var RemoteAudioStateReason;
1853
1926
  * 7: The remote user leaves the channel.
1854
1927
  */
1855
1928
  RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonRemoteOffline"] = 7] = "RemoteAudioReasonRemoteOffline";
1929
+ /**
1930
+ * @ignore
1931
+ */
1932
+ RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonNoPacketReceive"] = 8] = "RemoteAudioReasonNoPacketReceive";
1933
+ /**
1934
+ * @ignore
1935
+ */
1936
+ RemoteAudioStateReason[RemoteAudioStateReason["RemoteAudioReasonLocalPlayFailed"] = 9] = "RemoteAudioReasonLocalPlayFailed";
1856
1937
  })(RemoteAudioStateReason = exports.RemoteAudioStateReason || (exports.RemoteAudioStateReason = {}));
1857
1938
  /**
1858
1939
  * The state of the remote video stream.
@@ -2201,7 +2282,7 @@ var RtmpStreamPublishReason;
2201
2282
  */
2202
2283
  RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidAppid"] = 15] = "RtmpStreamPublishReasonInvalidAppid";
2203
2284
  /**
2204
- * 16: Your project does not have permission to use streaming services. Refer to Media Push to enable the Media Push permission.
2285
+ * 16: Your project does not have permission to use streaming services.
2205
2286
  */
2206
2287
  RtmpStreamPublishReason[RtmpStreamPublishReason["RtmpStreamPublishReasonInvalidPrivilege"] = 16] = "RtmpStreamPublishReasonInvalidPrivilege";
2207
2288
  /**
@@ -2646,7 +2727,7 @@ exports.VideoCanvas = VideoCanvas;
2646
2727
  var LighteningContrastLevel;
2647
2728
  (function (LighteningContrastLevel) {
2648
2729
  /**
2649
- * @ignore
2730
+ * 0: Low contrast level.
2650
2731
  */
2651
2732
  LighteningContrastLevel[LighteningContrastLevel["LighteningContrastLow"] = 0] = "LighteningContrastLow";
2652
2733
  /**
@@ -2970,6 +3051,10 @@ var AudioEffectPreset;
2970
3051
  * Virtual surround sound, that is, the SDK generates a simulated surround sound field on the basis of stereo channels, thereby creating a surround sound effect. If the virtual surround sound is enabled, users need to use stereo audio playback devices to hear the anticipated audio effect.
2971
3052
  */
2972
3053
  AudioEffectPreset[AudioEffectPreset["RoomAcousticsVirtualSurroundSound"] = 33622272] = "RoomAcousticsVirtualSurroundSound";
3054
+ /**
3055
+ * The audio effect of chorus. Agora recommends using this effect in chorus scenarios to enhance the sense of depth and dimension in the vocals.
3056
+ */
3057
+ AudioEffectPreset[AudioEffectPreset["RoomAcousticsChorus"] = 33623296] = "RoomAcousticsChorus";
2973
3058
  /**
2974
3059
  * A middle-aged man's voice. Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
2975
3060
  */
@@ -3266,7 +3351,7 @@ var ChannelMediaRelayError;
3266
3351
  */
3267
3352
  ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerErrorResponse"] = 1] = "RelayErrorServerErrorResponse";
3268
3353
  /**
3269
- * 2: No server response. You can call leaveChannel to leave the channel. This error can also occur if your project has not enabled co-host token authentication. You can to enable the service for cohosting across channels before starting a channel media relay.
3354
+ * 2: No server response. This error may be caused by poor network connections. If this error occurs when initiating a channel media relay, you can try again later; if this error occurs during channel media relay, you can call leaveChannel to leave the channel. This error can also occur if the channel media relay service is not enabled in the project. You can contact to enable the service.
3270
3355
  */
3271
3356
  ChannelMediaRelayError[ChannelMediaRelayError["RelayErrorServerNoResponse"] = 2] = "RelayErrorServerNoResponse";
3272
3357
  /**
@@ -3436,13 +3521,21 @@ var EncryptionErrorType;
3436
3521
  */
3437
3522
  EncryptionErrorType[EncryptionErrorType["EncryptionErrorInternalFailure"] = 0] = "EncryptionErrorInternalFailure";
3438
3523
  /**
3439
- * 1: Decryption errors. Ensure that the receiver and the sender use the same encryption mode and key.
3524
+ * 1: Media stream decryption error. Ensure that the receiver and the sender use the same encryption mode and key.
3440
3525
  */
3441
3526
  EncryptionErrorType[EncryptionErrorType["EncryptionErrorDecryptionFailure"] = 1] = "EncryptionErrorDecryptionFailure";
3442
3527
  /**
3443
- * 2: Encryption errors.
3528
+ * 2: Media stream encryption error.
3444
3529
  */
3445
3530
  EncryptionErrorType[EncryptionErrorType["EncryptionErrorEncryptionFailure"] = 2] = "EncryptionErrorEncryptionFailure";
3531
+ /**
3532
+ * 3: Data stream decryption error. Ensure that the receiver and the sender use the same encryption mode and key.
3533
+ */
3534
+ EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamDecryptionFailure"] = 3] = "EncryptionErrorDatastreamDecryptionFailure";
3535
+ /**
3536
+ * 4: Data stream encryption error.
3537
+ */
3538
+ EncryptionErrorType[EncryptionErrorType["EncryptionErrorDatastreamEncryptionFailure"] = 4] = "EncryptionErrorDatastreamEncryptionFailure";
3446
3539
  })(EncryptionErrorType = exports.EncryptionErrorType || (exports.EncryptionErrorType = {}));
3447
3540
  /**
3448
3541
  * @ignore
@@ -3555,22 +3648,26 @@ var UserInfo = /** @class */ (function () {
3555
3648
  }());
3556
3649
  exports.UserInfo = UserInfo;
3557
3650
  /**
3558
- * The audio filter of in-ear monitoring.
3651
+ * The audio filter types of in-ear monitoring.
3559
3652
  */
3560
3653
  var EarMonitoringFilterType;
3561
3654
  (function (EarMonitoringFilterType) {
3562
3655
  /**
3563
- * 1<<0: Do not add an audio filter to the in-ear monitor.
3656
+ * 1<<0: No audio filter added to in-ear monitoring.
3564
3657
  */
3565
3658
  EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNone"] = 1] = "EarMonitoringFilterNone";
3566
3659
  /**
3567
- * 1<<1: Add an audio filter to the in-ear monitor. If you implement functions such as voice beautifier and audio effect, users can hear the voice after adding these effects.
3660
+ * 1<<1: Add vocal effects audio filter to in-ear monitoring. If you implement functions such as voice beautifier and audio effect, users can hear the voice after adding these effects.
3568
3661
  */
3569
3662
  EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterBuiltInAudioFilters"] = 2] = "EarMonitoringFilterBuiltInAudioFilters";
3570
3663
  /**
3571
- * 1<<2: Enable noise suppression to the in-ear monitor.
3664
+ * 1<<2: Add noise suppression audio filter to in-ear monitoring.
3572
3665
  */
3573
3666
  EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterNoiseSuppression"] = 4] = "EarMonitoringFilterNoiseSuppression";
3667
+ /**
3668
+ * 1<<15: Reuse the audio filter that has been processed on the sending end for in-ear monitoring. This enumerator reduces CPU usage while increasing in-ear monitoring latency, which is suitable for latency-tolerant scenarios requiring low CPU consumption.
3669
+ */
3670
+ EarMonitoringFilterType[EarMonitoringFilterType["EarMonitoringFilterReusePostProcessingFilter"] = 32768] = "EarMonitoringFilterReusePostProcessingFilter";
3574
3671
  })(EarMonitoringFilterType = exports.EarMonitoringFilterType || (exports.EarMonitoringFilterType = {}));
3575
3672
  /**
3576
3673
  * @ignore
@@ -75,6 +75,10 @@ var VideoSourceType;
75
75
  * 14: The fourth screen.
76
76
  */
77
77
  VideoSourceType[VideoSourceType["VideoSourceScreenFourth"] = 14] = "VideoSourceScreenFourth";
78
+ /**
79
+ * @ignore
80
+ */
81
+ VideoSourceType[VideoSourceType["VideoSourceSpeechDriven"] = 15] = "VideoSourceSpeechDriven";
78
82
  /**
79
83
  * 100: An unknown video source.
80
84
  */
@@ -114,11 +118,11 @@ var AudioRoute;
114
118
  */
115
119
  AudioRoute[AudioRoute["RouteBluetoothDeviceHfp"] = 5] = "RouteBluetoothDeviceHfp";
116
120
  /**
117
- * 7: The audio route is a USB peripheral device. (For macOS only)
121
+ * 6: The audio route is a USB peripheral device. (For macOS only)
118
122
  */
119
123
  AudioRoute[AudioRoute["RouteUsb"] = 6] = "RouteUsb";
120
124
  /**
121
- * 6: The audio route is an HDMI peripheral device. (For macOS only)
125
+ * 7: The audio route is an HDMI peripheral device. (For macOS only)
122
126
  */
123
127
  AudioRoute[AudioRoute["RouteHdmi"] = 7] = "RouteHdmi";
124
128
  /**
@@ -197,7 +201,7 @@ var MediaSourceType;
197
201
  */
198
202
  MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
199
203
  /**
200
- * 6. Custom video source.
204
+ * 6: Custom video source.
201
205
  */
202
206
  MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
203
207
  /**
@@ -224,6 +228,10 @@ var MediaSourceType;
224
228
  * @ignore
225
229
  */
226
230
  MediaSourceType[MediaSourceType["TranscodedVideoSource"] = 12] = "TranscodedVideoSource";
231
+ /**
232
+ * @ignore
233
+ */
234
+ MediaSourceType[MediaSourceType["SpeechDrivenVideoSource"] = 13] = "SpeechDrivenVideoSource";
227
235
  /**
228
236
  * 100: Unknown media source.
229
237
  */
@@ -393,6 +401,10 @@ var VideoPixelFormat;
393
401
  * @ignore
394
402
  */
395
403
  VideoPixelFormat[VideoPixelFormat["VideoTextureId3d11texture2d"] = 17] = "VideoTextureId3d11texture2d";
404
+ /**
405
+ * @ignore
406
+ */
407
+ VideoPixelFormat[VideoPixelFormat["VideoPixelI010"] = 18] = "VideoPixelI010";
396
408
  })(VideoPixelFormat = exports.VideoPixelFormat || (exports.VideoPixelFormat = {}));
397
409
  /**
398
410
  * Video display modes.
@@ -335,11 +335,11 @@ exports.PublisherConfiguration = PublisherConfiguration;
335
335
  var CameraDirection;
336
336
  (function (CameraDirection) {
337
337
  /**
338
- * The rear camera.
338
+ * 0: The rear camera.
339
339
  */
340
340
  CameraDirection[CameraDirection["CameraRear"] = 0] = "CameraRear";
341
341
  /**
342
- * The front camera.
342
+ * 1: (Default) The front camera.
343
343
  */
344
344
  CameraDirection[CameraDirection["CameraFront"] = 1] = "CameraFront";
345
345
  })(CameraDirection = exports.CameraDirection || (exports.CameraDirection = {}));
@@ -1018,7 +1018,7 @@ var VideoDeviceInfo = /** @class */ (function () {
1018
1018
  }());
1019
1019
  exports.VideoDeviceInfo = VideoDeviceInfo;
1020
1020
  /**
1021
- * The AudioDeviceInfo class that contains the ID and device name of the audio devices.
1021
+ * The AudioDeviceInfo class that contains the ID, name and type of the audio devices.
1022
1022
  */
1023
1023
  var AudioDeviceInfo = /** @class */ (function () {
1024
1024
  function AudioDeviceInfo() {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.processIMediaRecorderObserver = exports.processIVideoFrameObserver = exports.processIVideoEncodedFrameObserver = exports.processIAudioSpectrumObserver = exports.processIAudioFrameObserver = exports.processIAudioFrameObserverBase = exports.processIAudioPcmFrameSink = exports.IVideoFrameMetaInfoImpl = void 0;
3
+ exports.processIMediaRecorderObserver = exports.processIFaceInfoObserver = exports.processIVideoFrameObserver = exports.processIVideoEncodedFrameObserver = exports.processIAudioSpectrumObserver = exports.processIAudioFrameObserver = exports.processIAudioFrameObserverBase = exports.processIAudioPcmFrameSink = exports.IVideoFrameMetaInfoImpl = void 0;
4
4
  // @ts-ignore
5
5
  var IVideoFrameMetaInfoImpl = /** @class */ (function () {
6
6
  function IVideoFrameMetaInfoImpl() {
@@ -124,6 +124,16 @@ function processIVideoFrameObserver(handler, event, jsonParams) {
124
124
  }
125
125
  }
126
126
  exports.processIVideoFrameObserver = processIVideoFrameObserver;
127
+ function processIFaceInfoObserver(handler, event, jsonParams) {
128
+ switch (event) {
129
+ case 'onFaceInfo':
130
+ if (handler.onFaceInfo !== undefined) {
131
+ handler.onFaceInfo(jsonParams.outFaceInfo);
132
+ }
133
+ break;
134
+ }
135
+ }
136
+ exports.processIFaceInfoObserver = processIFaceInfoObserver;
127
137
  function processIMediaRecorderObserver(handler, event, jsonParams) {
128
138
  switch (event) {
129
139
  case 'onRecorderStateChanged':
@@ -49,6 +49,20 @@ var IMediaEngineImpl = /** @class */ (function () {
49
49
  IMediaEngineImpl.prototype.getApiTypeFromRegisterVideoEncodedFrameObserver = function (observer) {
50
50
  return 'MediaEngine_registerVideoEncodedFrameObserver_d45d579';
51
51
  };
52
+ IMediaEngineImpl.prototype.registerFaceInfoObserver = function (observer) {
53
+ var apiType = this.getApiTypeFromRegisterFaceInfoObserver(observer);
54
+ var jsonParams = {
55
+ observer: observer,
56
+ toJSON: function () {
57
+ return {};
58
+ },
59
+ };
60
+ var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
61
+ return jsonResults.result;
62
+ };
63
+ IMediaEngineImpl.prototype.getApiTypeFromRegisterFaceInfoObserver = function (observer) {
64
+ return 'MediaEngine_registerFaceInfoObserver_0303ed6';
65
+ };
52
66
  IMediaEngineImpl.prototype.pushAudioFrame = function (frame, trackId) {
53
67
  if (trackId === void 0) { trackId = 0; }
54
68
  var apiType = this.getApiTypeFromPushAudioFrame(frame, trackId);
@@ -304,6 +318,20 @@ var IMediaEngineImpl = /** @class */ (function () {
304
318
  IMediaEngineImpl.prototype.getApiTypeFromUnregisterVideoEncodedFrameObserver = function (observer) {
305
319
  return 'MediaEngine_unregisterVideoEncodedFrameObserver';
306
320
  };
321
+ IMediaEngineImpl.prototype.unregisterFaceInfoObserver = function (observer) {
322
+ var apiType = this.getApiTypeFromUnregisterFaceInfoObserver(observer);
323
+ var jsonParams = {
324
+ observer: observer,
325
+ toJSON: function () {
326
+ return {};
327
+ },
328
+ };
329
+ var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
330
+ return jsonResults.result;
331
+ };
332
+ IMediaEngineImpl.prototype.getApiTypeFromUnregisterFaceInfoObserver = function (observer) {
333
+ return 'MediaEngine_unregisterFaceInfoObserver';
334
+ };
307
335
  return IMediaEngineImpl;
308
336
  }());
309
337
  exports.IMediaEngineImpl = IMediaEngineImpl;
@@ -777,7 +777,7 @@ var IMediaPlayerImpl = /** @class */ (function () {
777
777
  return jsonResults.result;
778
778
  };
779
779
  IMediaPlayerImpl.prototype.getApiTypeFromSetPlayerOptionInInt = function (key, value) {
780
- return 'MediaPlayer_setPlayerOptionInInt';
780
+ return 'MediaPlayer_setPlayerOption_4d05d29';
781
781
  };
782
782
  IMediaPlayerImpl.prototype.setPlayerOptionInString = function (key, value) {
783
783
  var apiType = this.getApiTypeFromSetPlayerOptionInString(key, value);
@@ -795,7 +795,7 @@ var IMediaPlayerImpl = /** @class */ (function () {
795
795
  return jsonResults.result;
796
796
  };
797
797
  IMediaPlayerImpl.prototype.getApiTypeFromSetPlayerOptionInString = function (key, value) {
798
- return 'MediaPlayer_setPlayerOptionInString';
798
+ return 'MediaPlayer_setPlayerOption_ccad422';
799
799
  };
800
800
  return IMediaPlayerImpl;
801
801
  }());
@@ -162,7 +162,7 @@ var IMusicPlayerImpl = /** @class */ (function (_super) {
162
162
  };
163
163
  IMusicPlayerImpl.prototype.getApiTypeFromOpenWithSongCode = function (songCode, startPos) {
164
164
  if (startPos === void 0) { startPos = 0; }
165
- return 'MusicPlayer_openWithSongCode';
165
+ return 'MusicPlayer_open_303b92e';
166
166
  };
167
167
  return IMusicPlayerImpl;
168
168
  }(IAgoraMediaPlayerImpl_1.IMediaPlayerImpl));
@@ -961,6 +961,43 @@ var IRtcEngineExImpl = /** @class */ (function (_super) {
961
961
  IRtcEngineExImpl.prototype.getApiTypeFromSetParametersEx = function (connection, parameters) {
962
962
  return 'RtcEngineEx_setParametersEx_8225ea3';
963
963
  };
964
+ IRtcEngineExImpl.prototype.getCallIdEx = function (connection) {
965
+ var apiType = this.getApiTypeFromGetCallIdEx(connection);
966
+ var jsonParams = {
967
+ connection: connection,
968
+ toJSON: function () {
969
+ return {
970
+ connection: connection,
971
+ };
972
+ },
973
+ };
974
+ var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
975
+ var callId = jsonResults.callId;
976
+ return callId;
977
+ };
978
+ IRtcEngineExImpl.prototype.getApiTypeFromGetCallIdEx = function (connection) {
979
+ return 'RtcEngineEx_getCallIdEx_b13f7c4';
980
+ };
981
+ IRtcEngineExImpl.prototype.sendAudioMetadataEx = function (connection, metadata, length) {
982
+ var apiType = this.getApiTypeFromSendAudioMetadataEx(connection, metadata, length);
983
+ var jsonParams = {
984
+ connection: connection,
985
+ metadata: metadata,
986
+ length: length,
987
+ toJSON: function () {
988
+ return {
989
+ connection: connection,
990
+ metadata: metadata,
991
+ length: length,
992
+ };
993
+ },
994
+ };
995
+ var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
996
+ return jsonResults.result;
997
+ };
998
+ IRtcEngineExImpl.prototype.getApiTypeFromSendAudioMetadataEx = function (connection, metadata, length) {
999
+ return 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4';
1000
+ };
964
1001
  return IRtcEngineExImpl;
965
1002
  }(IAgoraRtcEngineImpl_1.IRtcEngineImpl));
966
1003
  exports.IRtcEngineExImpl = IRtcEngineExImpl;