From 57442de58138c34a932cef4131a82c2be4f98ddb Mon Sep 17 00:00:00 2001 From: gxz Date: Wed, 14 Aug 2024 16:31:44 +0800 Subject: [PATCH] feat: upgrade to 4.4.0 --- packages/@iris/rtc/generate/AgoraBase.ts | 123 +++- packages/@iris/rtc/generate/AgoraMediaBase.ts | 149 ++++- packages/@iris/rtc/generate/IAgoraLog.ts | 1 + .../@iris/rtc/generate/IAgoraMediaEngine.ts | 5 + .../rtc/generate/IAgoraMusicContentCenter.ts | 12 +- .../@iris/rtc/generate/IAgoraRtcEngine.ts | 132 +++- .../@iris/rtc/generate/IAgoraRtcEngineEx.ts | 17 + .../@iris/rtc/generate/IAudioDeviceManager.ts | 4 + packages/@iris/rtc/index.ts | 2 +- packages/@iris/rtc/package.json | 2 +- .../rtc/src/binding/AgoraMediaBaseDispatch.ts | 19 + .../src/binding/IAgoraMediaEngineDispatch.ts | 8 + .../IAgoraMusicContentCenterDispatch.ts | 16 + .../src/binding/IAgoraRtcEngineDispatch.ts | 215 +++--- .../src/binding/IAgoraRtcEngineExDispatch.ts | 24 + .../binding/IAudioDeviceManagerDispatch.ts | 16 + packages/rtc/src/util/AgoraTranslate.ts | 4 + .../rtc/src/util/iris_rtc_api_type_gen.ts | 76 ++- .../binding/AgoraMediaBaseDispatch.test.ts | 18 + .../binding/IAgoraMediaEngineDispatch.test.ts | 28 + .../IAgoraMusicContentCenterDispatch.test.ts | 58 +- .../binding/IAgoraRtcEngineDispatch.test.ts | 627 ++++++++++++------ .../binding/IAgoraRtcEngineExDispatch.test.ts | 88 +++ .../IAudioDeviceManagerDispatch.test.ts | 56 ++ scripts/terra/config/binding_configs.yaml | 9 +- scripts/terra/config/types_configs.yaml | 11 +- 26 files changed, 1378 insertions(+), 342 deletions(-) diff --git a/packages/@iris/rtc/generate/AgoraBase.ts b/packages/@iris/rtc/generate/AgoraBase.ts index f162aada..eb8a0f96 100644 --- a/packages/@iris/rtc/generate/AgoraBase.ts +++ b/packages/@iris/rtc/generate/AgoraBase.ts @@ -85,6 +85,7 @@ export enum ERROR_CODE_TYPE { ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119, ERR_DECRYPTION_FAILED = 120, ERR_INVALID_USER_ID = 121, + ERR_DATASTREAM_DECRYPTION_FAILED = 122, ERR_CLIENT_IS_BANNED_BY_SERVER = 123, ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH = 130, ERR_LICENSE_CREDENTIAL_INVALID = 131, @@ -253,6 +254,13 @@ export enum VIDEO_CODEC_TYPE { VIDEO_CODEC_GENERIC_JPEG = 20, } +export enum CAMERA_FOCAL_LENGTH_TYPE { + CAMERA_FOCAL_LENGTH_DEFAULT = 0, + CAMERA_FOCAL_LENGTH_WIDE_ANGLE = 1, + CAMERA_FOCAL_LENGTH_ULTRA_WIDE = 2, + CAMERA_FOCAL_LENGTH_TELEPHOTO = 3, +} + export enum TCcMode { CC_ENABLED = 0, CC_DISABLED = 1, @@ -276,6 +284,7 @@ export enum AUDIO_CODEC_TYPE { AUDIO_CODEC_JC1 = 10, AUDIO_CODEC_HEAAC2 = 11, AUDIO_CODEC_LPCNET = 12, + AUDIO_CODEC_OPUSMC = 13, } export enum AUDIO_ENCODING_TYPE { @@ -337,6 +346,12 @@ export enum H264PacketizeMode { export enum VIDEO_STREAM_TYPE { VIDEO_STREAM_HIGH = 0, VIDEO_STREAM_LOW = 1, + VIDEO_STREAM_LAYER_1 = 4, + VIDEO_STREAM_LAYER_2 = 5, + VIDEO_STREAM_LAYER_3 = 6, + VIDEO_STREAM_LAYER_4 = 7, + VIDEO_STREAM_LAYER_5 = 8, + VIDEO_STREAM_LAYER_6 = 9, } export class VideoSubscriptionOptions { @@ -371,6 +386,8 @@ export class EncodedVideoFrameInfo { decodeTimeMs?: number; streamType?: VIDEO_STREAM_TYPE; + + presentationMs?: number; } export enum COMPRESSION_PREFERENCE { @@ -388,6 +405,8 @@ export class AdvanceOptions { encodingPreference?: ENCODING_PREFERENCE; compressionPreference?: COMPRESSION_PREFERENCE; + + encodeAlpha?: boolean; } export enum VIDEO_MIRROR_MODE_TYPE { @@ -396,6 +415,11 @@ export enum VIDEO_MIRROR_MODE_TYPE { VIDEO_MIRROR_MODE_DISABLED = 2, } +export enum CAMERA_FORMAT_TYPE { + CAMERA_FORMAT_NV12 = 0, + CAMERA_FORMAT_BGRA = 1, +} + export enum CODEC_CAP_MASK { CODEC_CAP_MASK_NONE = 0, CODEC_CAP_MASK_HW_DEC = 1, @@ -418,6 +442,12 @@ export class CodecCapInfo { codecLevels?: CodecCapLevels; } +export class FocalLengthInfo { + cameraDirection?: number; + + focalLengthType?: CAMERA_FOCAL_LENGTH_TYPE; +} + export class VideoEncoderConfiguration { codecType?: VIDEO_CODEC_TYPE; @@ -458,6 +488,29 @@ export class SimulcastStreamConfig { framerate?: number; } +export enum StreamLayerIndex { + STREAM_LAYER_1 = 0, + STREAM_LAYER_2 = 1, + STREAM_LAYER_3 = 2, + STREAM_LAYER_4 = 3, + STREAM_LAYER_5 = 4, + STREAM_LAYER_6 = 5, + STREAM_LOW = 6, + STREAM_LAYER_COUNT_MAX = 7, +} + +export class StreamLayerConfig { + dimensions?: VideoDimensions; + + framerate?: number; + + enable?: boolean; +} + +export class SimulcastConfig { + configs?: StreamLayerConfig[]; +} + export class Rectangle { x?: number; @@ -639,6 +692,7 @@ export enum SCREEN_SCENARIO_TYPE { export enum VIDEO_APPLICATION_SCENARIO_TYPE { APPLICATION_SCENARIO_GENERAL = 0, APPLICATION_SCENARIO_MEETING = 1, + APPLICATION_SCENARIO_1V1 = 2, } export enum VIDEO_QOE_PREFERENCE_TYPE { @@ -655,6 +709,15 @@ export enum CAPTURE_BRIGHTNESS_LEVEL_TYPE { CAPTURE_BRIGHTNESS_LEVEL_DARK = 2, } +export enum CAMERA_STABILIZATION_MODE { + CAMERA_STABILIZATION_MODE_OFF = -1, + CAMERA_STABILIZATION_MODE_AUTO = 0, + CAMERA_STABILIZATION_MODE_LEVEL_1 = 1, + CAMERA_STABILIZATION_MODE_LEVEL_2 = 2, + CAMERA_STABILIZATION_MODE_LEVEL_3 = 3, + CAMERA_STABILIZATION_MODE_MAX_LEVEL = 3, +} + export enum LOCAL_AUDIO_STREAM_STATE { LOCAL_AUDIO_STREAM_STATE_STOPPED = 0, LOCAL_AUDIO_STREAM_STATE_RECORDING = 1, @@ -695,6 +758,8 @@ export enum LOCAL_VIDEO_STREAM_REASON { LOCAL_VIDEO_STREAM_REASON_DEVICE_NOT_FOUND = 8, LOCAL_VIDEO_STREAM_REASON_DEVICE_DISCONNECTED = 9, LOCAL_VIDEO_STREAM_REASON_DEVICE_INVALID_ID = 10, + LOCAL_VIDEO_STREAM_REASON_DEVICE_INTERRUPT = 14, + LOCAL_VIDEO_STREAM_REASON_DEVICE_FATAL_ERROR = 15, LOCAL_VIDEO_STREAM_REASON_DEVICE_SYSTEM_PRESSURE = 101, LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_WINDOW_MINIMIZED = 11, LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_WINDOW_CLOSED = 12, @@ -708,6 +773,7 @@ export enum LOCAL_VIDEO_STREAM_REASON { LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_WINDOW_RECOVER_FROM_MINIMIZED = 27, LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_PAUSED = 28, LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_RESUMED = 29, + LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_DISPLAY_DISCONNECTED = 30, } export enum REMOTE_AUDIO_STATE { @@ -727,6 +793,8 @@ export enum REMOTE_AUDIO_STATE_REASON { REMOTE_AUDIO_REASON_REMOTE_MUTED = 5, REMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6, REMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7, + REMOTE_AUDIO_REASON_NO_PACKET_RECEIVE = 8, + REMOTE_AUDIO_REASON_LOCAL_PLAY_FAILED = 9, } export enum REMOTE_VIDEO_STATE { @@ -770,8 +838,6 @@ export class VideoTrackInfo { channelId?: string; - streamType?: VIDEO_STREAM_TYPE; - codecType?: VIDEO_CODEC_TYPE; encodedFrameOnly?: boolean; @@ -1187,6 +1253,39 @@ export class BeautyOptions { sharpnessLevel?: number; } +export enum FACE_SHAPE_AREA { + FACE_SHAPE_AREA_NONE = -1, + FACE_SHAPE_AREA_HEADSCALE = 0, + FACE_SHAPE_AREA_FOREHEAD = 1, + FACE_SHAPE_AREA_FACECONTOUR = 2, + FACE_SHAPE_AREA_FACELENGTH = 3, + FACE_SHAPE_AREA_FACEWIDTH = 4, + FACE_SHAPE_AREA_CHEEKBONE = 5, + FACE_SHAPE_AREA_CHEEK = 6, + FACE_SHAPE_AREA_CHIN = 7, + FACE_SHAPE_AREA_EYESCALE = 8, + FACE_SHAPE_AREA_NOSELENGTH = 9, + FACE_SHAPE_AREA_NOSEWIDTH = 10, + FACE_SHAPE_AREA_MOUTHSCALE = 11, +} + +export class FaceShapeAreaOptions { + shapeArea?: FACE_SHAPE_AREA; + + shapeIntensity?: number; +} + +export enum FACE_SHAPE_BEAUTY_STYLE { + FACE_SHAPE_BEAUTY_STYLE_FEMALE = 0, + FACE_SHAPE_BEAUTY_STYLE_MALE = 1, +} + +export class FaceShapeBeautyOptions { + shapeStyle?: FACE_SHAPE_BEAUTY_STYLE; + + styleIntensity?: number; +} + export enum LOW_LIGHT_ENHANCE_MODE { LOW_LIGHT_ENHANCE_AUTO = 0, LOW_LIGHT_ENHANCE_MANUAL = 1, @@ -1299,6 +1398,7 @@ export enum AUDIO_EFFECT_PRESET { ROOM_ACOUSTICS_ETHEREAL = 33621760, ROOM_ACOUSTICS_3D_VOICE = 33622016, ROOM_ACOUSTICS_VIRTUAL_SURROUND_SOUND = 33622272, + ROOM_ACOUSTICS_CHORUS = 33623296, VOICE_CHANGER_EFFECT_UNCLE = 33685760, VOICE_CHANGER_EFFECT_OLDMAN = 33686016, VOICE_CHANGER_EFFECT_BOY = 33686272, @@ -1336,6 +1436,19 @@ export enum HEADPHONE_EQUALIZER_PRESET { HEADPHONE_EQUALIZER_INEAR = 67108866, } +export enum VOICE_AI_TUNER_TYPE { + VOICE_AI_TUNER_MATURE_MALE = 0, + VOICE_AI_TUNER_FRESH_MALE = 1, + VOICE_AI_TUNER_ELEGANT_FEMALE = 2, + VOICE_AI_TUNER_SWEET_FEMALE = 3, + VOICE_AI_TUNER_WARM_MALE_SINGING = 4, + VOICE_AI_TUNER_GENTLE_FEMALE_SINGING = 5, + VOICE_AI_TUNER_HUSKY_MALE_SINGING = 6, + VOICE_AI_TUNER_WARM_ELEGANT_FEMALE_SINGING = 7, + VOICE_AI_TUNER_POWERFUL_MALE_SINGING = 8, + VOICE_AI_TUNER_DREAMY_FEMALE_SINGING = 9, +} + export class ScreenCaptureParameters { dimensions?: VideoDimensions; @@ -1434,6 +1547,7 @@ export enum AREA_CODE_EX { AREA_CODE_KR = 512, AREA_CODE_HKMC = 1024, AREA_CODE_US = 2048, + AREA_CODE_RU = 4096, AREA_CODE_OVS = 4294967294, } @@ -1519,12 +1633,16 @@ export class EncryptionConfig { encryptionKey?: string; encryptionKdfSalt?: number[]; + + datastreamEncryptionEnabled?: boolean; } export enum ENCRYPTION_ERROR_TYPE { ENCRYPTION_ERROR_INTERNAL_FAILURE = 0, ENCRYPTION_ERROR_DECRYPTION_FAILURE = 1, ENCRYPTION_ERROR_ENCRYPTION_FAILURE = 2, + ENCRYPTION_ERROR_DATASTREAM_DECRYPTION_FAILURE = 3, + ENCRYPTION_ERROR_DATASTREAM_ENCRYPTION_FAILURE = 4, } export enum UPLOAD_ERROR_REASON { @@ -1577,6 +1695,7 @@ export enum EAR_MONITORING_FILTER_TYPE { EAR_MONITORING_FILTER_NONE = 1, EAR_MONITORING_FILTER_BUILT_IN_AUDIO_FILTERS = 2, EAR_MONITORING_FILTER_NOISE_SUPPRESSION = 4, + EAR_MONITORING_FILTER_REUSE_POST_PROCESSING_FILTER = 32768, } export enum THREAD_PRIORITY_TYPE { diff --git a/packages/@iris/rtc/generate/AgoraMediaBase.ts b/packages/@iris/rtc/generate/AgoraMediaBase.ts index fc91cfd1..a533c3f3 100644 --- a/packages/@iris/rtc/generate/AgoraMediaBase.ts +++ b/packages/@iris/rtc/generate/AgoraMediaBase.ts @@ -4,6 +4,16 @@ import { CallApiReturnType } from 'iris-web-core'; import { EncodedVideoFrameInfo } from './AgoraBase'; +export class ExtensionContext { + isValid?: boolean; + + uid?: number; + + providerName?: string; + + extensionName?: string; +} + export enum VIDEO_SOURCE_TYPE { VIDEO_SOURCE_CAMERA_PRIMARY = 0, VIDEO_SOURCE_CAMERA = 0, @@ -22,6 +32,7 @@ export enum VIDEO_SOURCE_TYPE { VIDEO_SOURCE_CAMERA_FOURTH = 12, VIDEO_SOURCE_SCREEN_THIRD = 13, VIDEO_SOURCE_SCREEN_FOURTH = 14, + VIDEO_SOURCE_SPEECH_DRIVEN = 15, VIDEO_SOURCE_UNKNOWN = 100, } @@ -71,6 +82,7 @@ export enum MEDIA_SOURCE_TYPE { RTC_IMAGE_GIF_SOURCE = 10, REMOTE_VIDEO_SOURCE = 11, TRANSCODED_VIDEO_SOURCE = 12, + SPEECH_DRIVEN_VIDEO_SOURCE = 13, UNKNOWN_MEDIA_SOURCE = 100, } @@ -127,6 +139,8 @@ export class AudioPcmFrame { bytes_per_sample?: BYTES_PER_SAMPLE; data_?: number[]; + + is_stereo_?: boolean; } export enum AUDIO_DUAL_MONO_MODE { @@ -148,8 +162,10 @@ export enum VIDEO_PIXEL_FORMAT { VIDEO_CVPIXEL_NV12 = 12, VIDEO_CVPIXEL_I420 = 13, VIDEO_CVPIXEL_BGRA = 14, + VIDEO_CVPIXEL_P010 = 15, VIDEO_PIXEL_I422 = 16, VIDEO_TEXTURE_ID3D11TEXTURE2D = 17, + VIDEO_PIXEL_I010 = 18, } export enum RENDER_MODE_TYPE { @@ -172,6 +188,109 @@ export interface IVideoFrameMetaInfo { getMetaInfoStr_c81192f(key: META_INFO_KEY): CallApiReturnType; } +export enum PrimaryID { + PRIMARYID_BT709 = 1, + PRIMARYID_UNSPECIFIED = 2, + PRIMARYID_BT470M = 4, + PRIMARYID_BT470BG = 5, + PRIMARYID_SMPTE170M = 6, + PRIMARYID_SMPTE240M = 7, + PRIMARYID_FILM = 8, + PRIMARYID_BT2020 = 9, + PRIMARYID_SMPTEST428 = 10, + PRIMARYID_SMPTEST431 = 11, + PRIMARYID_SMPTEST432 = 12, + PRIMARYID_JEDECP22 = 22, +} + +export enum RangeID { + RANGEID_INVALID = 0, + RANGEID_LIMITED = 1, + RANGEID_FULL = 2, + RANGEID_DERIVED = 3, +} + +export enum MatrixID { + MATRIXID_RGB = 0, + MATRIXID_BT709 = 1, + MATRIXID_UNSPECIFIED = 2, + MATRIXID_FCC = 4, + MATRIXID_BT470BG = 5, + MATRIXID_SMPTE170M = 6, + MATRIXID_SMPTE240M = 7, + MATRIXID_YCOCG = 8, + MATRIXID_BT2020_NCL = 9, + MATRIXID_BT2020_CL = 10, + MATRIXID_SMPTE2085 = 11, + MATRIXID_CDNCLS = 12, + MATRIXID_CDCLS = 13, + MATRIXID_BT2100_ICTCP = 14, +} + +export enum TransferID { + TRANSFERID_BT709 = 1, + TRANSFERID_UNSPECIFIED = 2, + TRANSFERID_GAMMA22 = 4, + TRANSFERID_GAMMA28 = 5, + TRANSFERID_SMPTE170M = 6, + TRANSFERID_SMPTE240M = 7, + TRANSFERID_LINEAR = 8, + TRANSFERID_LOG = 9, + TRANSFERID_LOG_SQRT = 10, + TRANSFERID_IEC61966_2_4 = 11, + TRANSFERID_BT1361_ECG = 12, + TRANSFERID_IEC61966_2_1 = 13, + TRANSFERID_BT2020_10 = 14, + TRANSFERID_BT2020_12 = 15, + TRANSFERID_SMPTEST2084 = 16, + TRANSFERID_SMPTEST428 = 17, + TRANSFERID_ARIB_STD_B67 = 18, +} + +export class ColorSpace { + primaries?: PrimaryID; + + transfer?: TransferID; + + matrix?: MatrixID; + + range?: RangeID; +} + +export class Hdr10MetadataInfo { + redPrimaryX?: number; + + redPrimaryY?: number; + + greenPrimaryX?: number; + + greenPrimaryY?: number; + + bluePrimaryX?: number; + + bluePrimaryY?: number; + + whitePointX?: number; + + whitePointY?: number; + + maxMasteringLuminance?: number; + + minMasteringLuminance?: number; + + maxContentLightLevel?: number; + + maxFrameAverageLightLevel?: number; +} + +export enum ALPHA_STITCH_MODE { + NO_ALPHA_STITCH = 0, + ALPHA_STITCH_UP = 1, + ALPHA_STITCH_BELOW = 2, + ALPHA_STITCH_LEFT = 3, + ALPHA_STITCH_RIGHT = 4, +} + export enum EGL_CONTEXT_TYPE { EGL_CONTEXT10 = 0, EGL_CONTEXT14 = 1, @@ -210,15 +329,27 @@ export class ExternalVideoFrame { textureId?: number; + fenceObject?: number; + matrix?: number[]; - metadata_buffer?: Uint8Array; + metadataBuffer?: Uint8Array; - metadata_size?: number; + metadataSize?: number; alphaBuffer?: Uint8Array; - texture_slice_index?: number; + fillAlphaBuffer?: boolean; + + alphaStitchMode?: ALPHA_STITCH_MODE; + + d3d11Texture2d?: any; + + textureSliceIndex?: number; + + hdr10MetadataInfo?: Hdr10MetadataInfo; + + colorSpace?: ColorSpace; } export class VideoFrame { @@ -256,9 +387,15 @@ export class VideoFrame { alphaBuffer?: Uint8Array; + alphaStitchMode?: ALPHA_STITCH_MODE; + pixelBuffer?: Uint8Array; metaInfo?: IVideoFrameMetaInfo; + + hdr10MetadataInfo?: Hdr10MetadataInfo; + + colorSpace?: ColorSpace; } export enum MEDIA_PLAYER_SOURCE_TYPE { @@ -302,6 +439,8 @@ export class AudioFrame { presentationMs?: number; audioTrackNumber?: number; + + rtpTimestamp?: number; } export enum AUDIO_FRAME_POSITION { @@ -492,6 +631,10 @@ export class MediaRecorderConfiguration { recorderInfoUpdateInterval?: number; } +export interface IFaceInfoObserver { + onFaceInfo_3a2037f(outFaceInfo: string): void; +} + export class RecorderInfo { fileName?: string; diff --git a/packages/@iris/rtc/generate/IAgoraLog.ts b/packages/@iris/rtc/generate/IAgoraLog.ts index 98adbb5a..b246e9b2 100644 --- a/packages/@iris/rtc/generate/IAgoraLog.ts +++ b/packages/@iris/rtc/generate/IAgoraLog.ts @@ -7,6 +7,7 @@ export enum LOG_LEVEL { LOG_LEVEL_ERROR = 4, LOG_LEVEL_FATAL = 8, LOG_LEVEL_API_CALL = 16, + LOG_LEVEL_DEBUG = 32, } export enum LOG_FILTER_TYPE { diff --git a/packages/@iris/rtc/generate/IAgoraMediaEngine.ts b/packages/@iris/rtc/generate/IAgoraMediaEngine.ts index 41475b58..fa52289f 100644 --- a/packages/@iris/rtc/generate/IAgoraMediaEngine.ts +++ b/packages/@iris/rtc/generate/IAgoraMediaEngine.ts @@ -13,6 +13,7 @@ import { EXTERNAL_VIDEO_SOURCE_TYPE, ExternalVideoFrame, IAudioFrameObserver, + IFaceInfoObserver, IVideoEncodedFrameObserver, IVideoFrameObserver, } from './AgoraMediaBase'; @@ -37,6 +38,10 @@ export interface IMediaEngine { observer: IVideoEncodedFrameObserver ): CallApiReturnType; + registerFaceInfoObserver_0303ed6( + observer: IFaceInfoObserver + ): CallApiReturnType; + pushAudioFrame_c71f4ab(frame: AudioFrame, trackId: number): CallApiReturnType; pullAudioFrame_2c74a9c(frame: AudioFrame): CallApiReturnType; diff --git a/packages/@iris/rtc/generate/IAgoraMusicContentCenter.ts b/packages/@iris/rtc/generate/IAgoraMusicContentCenter.ts index e41efd50..593aa19c 100644 --- a/packages/@iris/rtc/generate/IAgoraMusicContentCenter.ts +++ b/packages/@iris/rtc/generate/IAgoraMusicContentCenter.ts @@ -2,6 +2,12 @@ import { CallApiReturnType } from 'iris-web-core'; +export enum MusicPlayMode { + kMusicPlayModeOriginal = 0, + kMusicPlayModeAccompany = 1, + kMusicPlayModeLeadSing = 2, +} + export enum PreloadState { kPreloadStateCompleted = 0, kPreloadStateFailed = 1, @@ -148,6 +154,8 @@ export class MusicContentCenterConfiguration { export interface IMusicPlayer { open_303b92e(songCode: number, startPos: number): CallApiReturnType; + + setPlayMode_748bee0(mode: MusicPlayMode): CallApiReturnType; } export interface IMusicContentCenter { @@ -167,6 +175,8 @@ export interface IMusicContentCenter { createMusicPlayer(): CallApiReturnType; + destroyMusicPlayer_876d086(music_player: IMusicPlayer): CallApiReturnType; + getMusicCharts_66d4ecd(requestId: string): CallApiReturnType; getMusicCollectionByMusicChartId_8cd0b4d( @@ -201,7 +211,7 @@ export interface IMusicContentCenter { getLyric_5ab5efd( requestId: string, songCode: number, - LyricType: number + lyricType: number ): CallApiReturnType; getSongSimpleInfo_d3baeab( diff --git a/packages/@iris/rtc/generate/IAgoraRtcEngine.ts b/packages/@iris/rtc/generate/IAgoraRtcEngine.ts index 0e87edc0..d3a698d8 100644 --- a/packages/@iris/rtc/generate/IAgoraRtcEngine.ts +++ b/packages/@iris/rtc/generate/IAgoraRtcEngine.ts @@ -15,6 +15,8 @@ import { AudioRecordingConfiguration, AudioVolumeInfo, BeautyOptions, + CAMERA_FOCAL_LENGTH_TYPE, + CAMERA_STABILIZATION_MODE, CAPTURE_BRIGHTNESS_LEVEL_TYPE, CHANNEL_MEDIA_RELAY_ERROR, CHANNEL_MEDIA_RELAY_STATE, @@ -35,6 +37,10 @@ import { ERROR_CODE_TYPE, EchoTestConfiguration, EncryptionConfig, + FACE_SHAPE_AREA, + FaceShapeAreaOptions, + FaceShapeBeautyOptions, + FocalLengthInfo, HEADPHONE_EQUALIZER_PRESET, IAudioEncodedFrameObserver, INTERFACE_ID_TYPE, @@ -76,6 +82,7 @@ import { ScreenCaptureParameters2, SegmentationProperty, SenderOptions, + SimulcastConfig, SimulcastStreamConfig, SpatialAudioParams, THREAD_PRIORITY_TYPE, @@ -92,10 +99,12 @@ import { VIDEO_QOE_PREFERENCE_TYPE, VIDEO_STREAM_TYPE, VIDEO_TRANSCODER_ERROR, + VOICE_AI_TUNER_TYPE, VOICE_BEAUTIFIER_PRESET, VOICE_CONVERSION_PRESET, VideoCanvas, VideoDenoiserOptions, + VideoDimensions, VideoEncoderConfiguration, VideoFormat, VideoLayout, @@ -110,6 +119,7 @@ import { import { CONTENT_INSPECT_RESULT, ContentInspectConfig, + ExtensionContext, IAudioSpectrumObserver, MEDIA_SOURCE_TYPE, RAW_AUDIO_FRAME_OP_MODE_TYPE, @@ -194,6 +204,12 @@ export enum STREAM_FALLBACK_OPTIONS { STREAM_FALLBACK_OPTION_DISABLED = 0, STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1, STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1 = 3, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2 = 4, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3 = 5, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4 = 6, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5 = 7, + STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6 = 8, } export enum PRIORITY_TYPE { @@ -247,6 +263,8 @@ export class LocalVideoStats { dualStreamEnabled?: boolean; hwEncoderAccelerating?: number; + + simulcastDimensions?: VideoDimensions[]; } export class RemoteAudioStats { @@ -285,6 +303,8 @@ export class RemoteAudioStats { qualityChangedReason?: number; rxAudioBytes?: number; + + e2eDelay?: number; } export class RemoteVideoStats { @@ -300,6 +320,8 @@ export class RemoteVideoStats { receivedBitrate?: number; + decoderInputFrameRate?: number; + decoderOutputFrameRate?: number; rendererOutputFrameRate?: number; @@ -424,11 +446,15 @@ export enum CLOUD_PROXY_TYPE { export class CameraCapturerConfiguration { cameraDirection?: CAMERA_DIRECTION; + cameraFocalLengthType?: CAMERA_FOCAL_LENGTH_TYPE; + deviceId?: string; - format?: VideoFormat; + cameraId?: string; followEncodeDimensionRatio?: boolean; + + format?: VideoFormat; } export class ScreenCaptureConfiguration { @@ -545,6 +571,8 @@ export class ChannelMediaOptions { publishMixedAudioTrack?: boolean; + publishLipSyncTrack?: boolean; + autoSubscribeAudio?: boolean; autoSubscribeVideo?: boolean; @@ -576,6 +604,8 @@ export class ChannelMediaOptions { customVideoTrackId?: number; isAudioFilterable?: boolean; + + parameters?: string; } export enum PROXY_TYPE { @@ -983,20 +1013,24 @@ export interface IRtcEngineEventHandler { layoutlist: VideoLayout[] ): void; - onExtensionEvent_062d13c( - provider: string, - extension: string, + onAudioMetadataReceived_77edd82( + uid: number, + metadata: string, + length: number + ): void; + + onExtensionEventWithContext_a5fb27a( + context: ExtensionContext, key: string, value: string ): void; - onExtensionStarted_ccad422(provider: string, extension: string): void; + onExtensionStartedWithContext_67c38e3(context: ExtensionContext): void; - onExtensionStopped_ccad422(provider: string, extension: string): void; + onExtensionStoppedWithContext_67c38e3(context: ExtensionContext): void; - onExtensionError_bd3489b( - provider: string, - extension: string, + onExtensionErrorWithContext_a452f11( + context: ExtensionContext, error: number, message: string ): void; @@ -1063,12 +1097,6 @@ export interface IRtcEngineEventHandler { rotation: number ): void; - onLocalVideoStateChanged_b202b1b( - connection: RtcConnection, - state: LOCAL_VIDEO_STREAM_STATE, - reason: LOCAL_VIDEO_STREAM_REASON - ): void; - onRemoteVideoStateChanged_a14e9d1( connection: RtcConnection, remoteUid: number, @@ -1313,6 +1341,13 @@ export interface IRtcEngineEventHandler { layoutCount: number, layoutlist: VideoLayout[] ): void; + + onAudioMetadataReceived_0d4eb96( + connection: RtcConnection, + uid: number, + metadata: string, + length: number + ): void; } export interface IVideoDeviceManager { @@ -1371,6 +1406,8 @@ export enum MAX_METADATA_SIZE_TYPE { } export class Metadata { + channelId?: string; + uid?: number; size?: number; @@ -1519,10 +1556,6 @@ export interface IRtcEngine { options: ClientRoleOptions ): CallApiReturnType; - startEchoTest(): CallApiReturnType; - - startEchoTest_46f8ab7(intervalInSeconds: number): CallApiReturnType; - startEchoTest_16140d7(config: EchoTestConfiguration): CallApiReturnType; stopEchoTest(): CallApiReturnType; @@ -1560,6 +1593,28 @@ export interface IRtcEngine { type: MEDIA_SOURCE_TYPE ): CallApiReturnType; + setFaceShapeBeautyOptions_a862ce7( + enabled: boolean, + options: FaceShapeBeautyOptions, + type: MEDIA_SOURCE_TYPE + ): CallApiReturnType; + + setFaceShapeAreaOptions_2e242a3( + options: FaceShapeAreaOptions, + type: MEDIA_SOURCE_TYPE + ): CallApiReturnType; + + getFaceShapeBeautyOptions_8382895( + options: FaceShapeBeautyOptions, + type: MEDIA_SOURCE_TYPE + ): CallApiReturnType; + + getFaceShapeAreaOptions_0783e2c( + shapeArea: FACE_SHAPE_AREA, + options: FaceShapeAreaOptions, + type: MEDIA_SOURCE_TYPE + ): CallApiReturnType; + setLowlightEnhanceOptions_4f9f013( enabled: boolean, options: LowlightEnhanceOptions, @@ -1616,8 +1671,6 @@ export interface IRtcEngine { muteAllRemoteAudioStreams_5039d15(mute: boolean): CallApiReturnType; - setDefaultMuteAllRemoteAudioStreams_5039d15(mute: boolean): CallApiReturnType; - muteRemoteAudioStream_dbdc15a(uid: number, mute: boolean): CallApiReturnType; muteLocalVideoStream_5039d15(mute: boolean): CallApiReturnType; @@ -1626,8 +1679,6 @@ export interface IRtcEngine { muteAllRemoteVideoStreams_5039d15(mute: boolean): CallApiReturnType; - setDefaultMuteAllRemoteVideoStreams_5039d15(mute: boolean): CallApiReturnType; - setRemoteDefaultVideoStreamType_5a94eb0( streamType: VIDEO_STREAM_TYPE ): CallApiReturnType; @@ -1747,6 +1798,8 @@ export interface IRtcEngine { setAudioMixingPitch_46f8ab7(pitch: number): CallApiReturnType; + setAudioMixingPlaybackSpeed_46f8ab7(speed: number): CallApiReturnType; + getEffectsVolume(): CallApiReturnType; setEffectsVolume_46f8ab7(volume: number): CallApiReturnType; @@ -1868,6 +1921,11 @@ export interface IRtcEngine { highGain: number ): CallApiReturnType; + enableVoiceAITuner_28f5d5b( + enabled: boolean, + type: VOICE_AI_TUNER_TYPE + ): CallApiReturnType; + setLogFile_3a2037f(filePath: string): CallApiReturnType; setLogFilter_2626ac7(filter: LOG_FILTER_TYPE): CallApiReturnType; @@ -1878,6 +1936,8 @@ export interface IRtcEngine { uploadLogFile_66d4ecd(requestId: string): CallApiReturnType; + writeLog_62889f6(level: LOG_LEVEL, fmt: string): CallApiReturnType; + setLocalRenderMode_cfb201b( renderMode: RENDER_MODE_TYPE, mirrorMode: VIDEO_MIRROR_MODE_TYPE @@ -1904,6 +1964,10 @@ export interface IRtcEngine { setDualStreamMode_3a7f662(mode: SIMULCAST_STREAM_MODE): CallApiReturnType; + setSimulcastConfig_3dcdfd7( + simulcastConfig: SimulcastConfig + ): CallApiReturnType; + setDualStreamMode_b3a4f6c( mode: SIMULCAST_STREAM_MODE, streamConfig: SimulcastStreamConfig @@ -2126,6 +2190,10 @@ export interface IRtcEngine { enabled: boolean ): CallApiReturnType; + setCameraStabilizationMode_701b981( + mode: CAMERA_STABILIZATION_MODE + ): CallApiReturnType; + setDefaultAudioRouteToSpeakerphone_5039d15( defaultToSpeaker: boolean ): CallApiReturnType; @@ -2136,6 +2204,10 @@ export interface IRtcEngine { setRouteInCommunicationMode_46f8ab7(route: number): CallApiReturnType; + isCameraCenterStageSupported(): CallApiReturnType; + + enableCameraCenterStage_5039d15(enabled: boolean): CallApiReturnType; + getScreenCaptureSources_f3e02cb( thumbSize: SIZE, iconSize: SIZE, @@ -2186,6 +2258,11 @@ export interface IRtcEngine { queryScreenCaptureCapability(): CallApiReturnType; + queryCameraFocalLengthCapability_2dee6af( + focalLengthInfos: FocalLengthInfo[], + size: number + ): CallApiReturnType; + setScreenCaptureScenario_13de7b4( screenScenario: SCREEN_SCENARIO_TYPE ): CallApiReturnType; @@ -2266,10 +2343,6 @@ export interface IRtcEngine { registerPacketObserver_f8b44dd(observer: IPacketObserver): CallApiReturnType; - setEncryptionMode_3a2037f(encryptionMode: string): CallApiReturnType; - - setEncryptionSecret_3a2037f(secret: string): CallApiReturnType; - enableEncryption_421c27b( enabled: boolean, config: EncryptionConfig @@ -2466,6 +2539,11 @@ export interface IRtcEngine { getNtpWallTimeInMs(): CallApiReturnType; isFeatureAvailableOnDevice_a694b62(type: FeatureType): CallApiReturnType; + + sendAudioMetadata_878f309( + metadata: string, + length: number + ): CallApiReturnType; } export enum QUALITY_REPORT_FORMAT_TYPE { diff --git a/packages/@iris/rtc/generate/IAgoraRtcEngineEx.ts b/packages/@iris/rtc/generate/IAgoraRtcEngineEx.ts index 3b0a25fd..495766d5 100644 --- a/packages/@iris/rtc/generate/IAgoraRtcEngineEx.ts +++ b/packages/@iris/rtc/generate/IAgoraRtcEngineEx.ts @@ -8,6 +8,7 @@ import { EncryptionConfig, LiveTranscoding, SIMULCAST_STREAM_MODE, + SimulcastConfig, SimulcastStreamConfig, SpatialAudioParams, UserInfo, @@ -280,6 +281,11 @@ export interface IRtcEngineEx { connection: RtcConnection ): CallApiReturnType; + setSimulcastConfigEx_bd8d7d0( + simulcastConfig: SimulcastConfig, + connection: RtcConnection + ): CallApiReturnType; + setHighPriorityUserListEx_8736b5c( uidList: number[], uidNum: number, @@ -307,4 +313,15 @@ export interface IRtcEngineEx { connection: RtcConnection, parameters: string ): CallApiReturnType; + + getCallIdEx_b13f7c4( + callId: string, + connection: RtcConnection + ): CallApiReturnType; + + sendAudioMetadataEx_e2bf1c4( + connection: RtcConnection, + metadata: string, + length: number + ): CallApiReturnType; } diff --git a/packages/@iris/rtc/generate/IAudioDeviceManager.ts b/packages/@iris/rtc/generate/IAudioDeviceManager.ts index ce51991f..b00e380c 100644 --- a/packages/@iris/rtc/generate/IAudioDeviceManager.ts +++ b/packages/@iris/rtc/generate/IAudioDeviceManager.ts @@ -17,6 +17,8 @@ export interface IAudioDeviceManager { getPlaybackDeviceInfo_5540658(): CallApiReturnType; + getPlaybackDeviceInfo_ed3a96d(deviceTypeName: string): CallApiReturnType; + setPlaybackDeviceVolume_46f8ab7(volume: number): CallApiReturnType; getPlaybackDeviceVolume_915cb25(volume: number): CallApiReturnType; @@ -27,6 +29,8 @@ export interface IAudioDeviceManager { getRecordingDeviceInfo_5540658(): CallApiReturnType; + getRecordingDeviceInfo_ed3a96d(deviceTypeName: string): CallApiReturnType; + setRecordingDeviceVolume_46f8ab7(volume: number): CallApiReturnType; getRecordingDeviceVolume_915cb25(volume: number): CallApiReturnType; diff --git a/packages/@iris/rtc/index.ts b/packages/@iris/rtc/index.ts index fbf5a304..e5632de2 100644 --- a/packages/@iris/rtc/index.ts +++ b/packages/@iris/rtc/index.ts @@ -14,4 +14,4 @@ export * from './generate/IAgoraRtcEngine'; export * from './generate/IAgoraRtcEngineEx'; export * from './generate/IAgoraSpatialAudio'; export * from './generate/IAudioDeviceManager'; -export const NATIVE_RTC_VERSION = '4.3.0'; +export const NATIVE_RTC_VERSION = '4.4.0'; diff --git a/packages/@iris/rtc/package.json b/packages/@iris/rtc/package.json index 0db9d757..da286476 100644 --- a/packages/@iris/rtc/package.json +++ b/packages/@iris/rtc/package.json @@ -11,5 +11,5 @@ "dependencies": { "iris-web-core": "workspace:*" }, - "nativeSdkVersion": "4.3.0" + "nativeSdkVersion": "4.4.0" } diff --git a/packages/rtc/src/binding/AgoraMediaBaseDispatch.ts b/packages/rtc/src/binding/AgoraMediaBaseDispatch.ts index d02a842f..0756ca64 100644 --- a/packages/rtc/src/binding/AgoraMediaBaseDispatch.ts +++ b/packages/rtc/src/binding/AgoraMediaBaseDispatch.ts @@ -391,6 +391,25 @@ export class IVideoFrameObserver { } } +export class IFaceInfoObserver { + _engine: IrisRtcEngine; + + constructor(engine: IrisRtcEngine) { + this._engine = engine; + } + + notifyEvent(param: ApiParam): void { + this._engine.irisEventHandlerManager.notifyEvent('RtcEngine', param); + } + + onFaceInfo_3a2037f(outFaceInfo: string): void { + AgoraConsole.warn( + 'FaceInfoObserver_onFaceInfo_3a2037f not supported in this platform!' + ); + this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } +} + export class IMediaRecorderObserver { _engine: IrisRtcEngine; diff --git a/packages/rtc/src/binding/IAgoraMediaEngineDispatch.ts b/packages/rtc/src/binding/IAgoraMediaEngineDispatch.ts index 31aad35a..67b3cf30 100644 --- a/packages/rtc/src/binding/IAgoraMediaEngineDispatch.ts +++ b/packages/rtc/src/binding/IAgoraMediaEngineDispatch.ts @@ -43,6 +43,14 @@ export class IMediaEngineDispatch implements IMediaEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + registerFaceInfoObserver_0303ed6(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'MediaEngine_registerFaceInfoObserver_0303ed6 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore pushAudioFrame_c71f4ab(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( diff --git a/packages/rtc/src/binding/IAgoraMusicContentCenterDispatch.ts b/packages/rtc/src/binding/IAgoraMusicContentCenterDispatch.ts index 2ea0cea3..9fa1cf38 100644 --- a/packages/rtc/src/binding/IAgoraMusicContentCenterDispatch.ts +++ b/packages/rtc/src/binding/IAgoraMusicContentCenterDispatch.ts @@ -174,6 +174,14 @@ export class IMusicPlayerDispatch extends IMediaPlayerDispatch ); return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + + // @ts-ignore + setPlayMode_748bee0(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'MusicPlayer_setPlayMode_748bee0 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } } export class IMusicContentCenterDispatch implements IMusicContentCenter { @@ -230,6 +238,14 @@ export class IMusicContentCenterDispatch implements IMusicContentCenter { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + destroyMusicPlayer_876d086(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'MusicContentCenter_destroyMusicPlayer_876d086 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore getMusicCharts_66d4ecd(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( diff --git a/packages/rtc/src/binding/IAgoraRtcEngineDispatch.ts b/packages/rtc/src/binding/IAgoraRtcEngineDispatch.ts index bb85b257..6ab6b854 100644 --- a/packages/rtc/src/binding/IAgoraRtcEngineDispatch.ts +++ b/packages/rtc/src/binding/IAgoraRtcEngineDispatch.ts @@ -18,6 +18,7 @@ import { DownlinkNetworkInfo, ENCRYPTION_ERROR_TYPE, ERROR_CODE_TYPE, + ExtensionContext, IRtcEngine, IVideoDeviceManager, LICENSE_ERROR_TYPE, @@ -1016,40 +1017,49 @@ export class IRtcEngineEventHandler { this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - onExtensionEvent_062d13c( - provider: string, - extension: string, + onAudioMetadataReceived_77edd82( + uid: number, + metadata: string, + length: number + ): void { + AgoraConsole.warn( + 'RtcEngineEventHandler_onAudioMetadataReceived_77edd82 not supported in this platform!' + ); + this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + onExtensionEventWithContext_a5fb27a( + context: ExtensionContext, key: string, value: string ): void { AgoraConsole.warn( - 'RtcEngineEventHandler_onExtensionEvent_062d13c not supported in this platform!' + 'RtcEngineEventHandler_onExtensionEventWithContext_a5fb27a not supported in this platform!' ); this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - onExtensionStarted_ccad422(provider: string, extension: string): void { + onExtensionStartedWithContext_67c38e3(context: ExtensionContext): void { AgoraConsole.warn( - 'RtcEngineEventHandler_onExtensionStarted_ccad422 not supported in this platform!' + 'RtcEngineEventHandler_onExtensionStartedWithContext_67c38e3 not supported in this platform!' ); this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - onExtensionStopped_ccad422(provider: string, extension: string): void { + onExtensionStoppedWithContext_67c38e3(context: ExtensionContext): void { AgoraConsole.warn( - 'RtcEngineEventHandler_onExtensionStopped_ccad422 not supported in this platform!' + 'RtcEngineEventHandler_onExtensionStoppedWithContext_67c38e3 not supported in this platform!' ); this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - onExtensionError_bd3489b( - provider: string, - extension: string, + onExtensionErrorWithContext_a452f11( + context: ExtensionContext, error: number, message: string ): void { AgoraConsole.warn( - 'RtcEngineEventHandler_onExtensionError_bd3489b not supported in this platform!' + 'RtcEngineEventHandler_onExtensionErrorWithContext_a452f11 not supported in this platform!' ); this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } @@ -1238,17 +1248,6 @@ export class IRtcEngineEventHandler { this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - onLocalVideoStateChanged_b202b1b( - connection: RtcConnection, - state: LOCAL_VIDEO_STREAM_STATE, - reason: LOCAL_VIDEO_STREAM_REASON - ): void { - AgoraConsole.warn( - 'RtcEngineEventHandler_onLocalVideoStateChanged_b202b1b not supported in this platform!' - ); - this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - onRemoteVideoStateChanged_a14e9d1( connection: RtcConnection, remoteUid: number, @@ -1959,6 +1958,18 @@ export class IRtcEngineEventHandler { ); this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + + onAudioMetadataReceived_0d4eb96( + connection: RtcConnection, + uid: number, + metadata: string, + length: number + ): void { + AgoraConsole.warn( + 'RtcEngineEventHandler_onAudioMetadataReceived_0d4eb96 not supported in this platform!' + ); + this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } } export class IVideoDeviceManagerDispatch implements IVideoDeviceManager { @@ -2313,22 +2324,6 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._impl.setClientRole_b46cc48(role, options); } - // @ts-ignore - startEchoTest(): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_startEchoTest not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - - // @ts-ignore - startEchoTest_46f8ab7(apiParam: ApiParam): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_startEchoTest_46f8ab7 not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - // @ts-ignore startEchoTest_16140d7(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -2431,6 +2426,38 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + setFaceShapeBeautyOptions_a862ce7(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_setFaceShapeBeautyOptions_a862ce7 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + // @ts-ignore + setFaceShapeAreaOptions_2e242a3(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_setFaceShapeAreaOptions_2e242a3 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + // @ts-ignore + getFaceShapeBeautyOptions_8382895(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_getFaceShapeBeautyOptions_8382895 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + // @ts-ignore + getFaceShapeAreaOptions_0783e2c(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_getFaceShapeAreaOptions_0783e2c not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setLowlightEnhanceOptions_4f9f013(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -2582,16 +2609,6 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._impl.muteAllRemoteAudioStreams_5039d15(mute); } - // @ts-ignore - setDefaultMuteAllRemoteAudioStreams_5039d15( - apiParam: ApiParam - ): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_setDefaultMuteAllRemoteAudioStreams_5039d15 not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - // @ts-ignore muteRemoteAudioStream_dbdc15a(apiParam: ApiParam): CallApiReturnType { let obj = JSON.parse(apiParam.data) as any; @@ -2645,16 +2662,6 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._impl.muteAllRemoteVideoStreams_5039d15(mute); } - // @ts-ignore - setDefaultMuteAllRemoteVideoStreams_5039d15( - apiParam: ApiParam - ): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_setDefaultMuteAllRemoteVideoStreams_5039d15 not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - // @ts-ignore setRemoteDefaultVideoStreamType_5a94eb0( apiParam: ApiParam @@ -2972,6 +2979,14 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + setAudioMixingPlaybackSpeed_46f8ab7(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_setAudioMixingPlaybackSpeed_46f8ab7 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore getEffectsVolume(): CallApiReturnType { AgoraConsole.warn( @@ -3295,6 +3310,14 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + enableVoiceAITuner_28f5d5b(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_enableVoiceAITuner_28f5d5b not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setLogFile_3a2037f(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -3339,6 +3362,14 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + writeLog_62889f6(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_writeLog_62889f6 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setLocalRenderMode_cfb201b(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -3395,6 +3426,14 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + setSimulcastConfig_3dcdfd7(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_setSimulcastConfig_3dcdfd7 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setDualStreamMode_b3a4f6c(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -3859,6 +3898,14 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + setCameraStabilizationMode_701b981(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_setCameraStabilizationMode_701b981 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setDefaultAudioRouteToSpeakerphone_5039d15( apiParam: ApiParam @@ -3893,6 +3940,22 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + isCameraCenterStageSupported(): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_isCameraCenterStageSupported not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + // @ts-ignore + enableCameraCenterStage_5039d15(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_enableCameraCenterStage_5039d15 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore getScreenCaptureSources_f3e02cb(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -3997,6 +4060,16 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + queryCameraFocalLengthCapability_2dee6af( + apiParam: ApiParam + ): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_queryCameraFocalLengthCapability_2dee6af not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setScreenCaptureScenario_13de7b4(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -4190,22 +4263,6 @@ export class IRtcEngineDispatch implements IRtcEngine { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } - // @ts-ignore - setEncryptionMode_3a2037f(apiParam: ApiParam): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_setEncryptionMode_3a2037f not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - - // @ts-ignore - setEncryptionSecret_3a2037f(apiParam: ApiParam): CallApiReturnType { - AgoraConsole.warn( - 'RtcEngine_setEncryptionSecret_3a2037f not supported in this platform!' - ); - return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); - } - // @ts-ignore enableEncryption_421c27b(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -4698,4 +4755,12 @@ export class IRtcEngineDispatch implements IRtcEngine { ); return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + + // @ts-ignore + sendAudioMetadata_878f309(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngine_sendAudioMetadata_878f309 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } } diff --git a/packages/rtc/src/binding/IAgoraRtcEngineExDispatch.ts b/packages/rtc/src/binding/IAgoraRtcEngineExDispatch.ts index 66853350..c5610a3f 100644 --- a/packages/rtc/src/binding/IAgoraRtcEngineExDispatch.ts +++ b/packages/rtc/src/binding/IAgoraRtcEngineExDispatch.ts @@ -546,6 +546,14 @@ export class IRtcEngineExDispatch extends IRtcEngineDispatch return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + setSimulcastConfigEx_bd8d7d0(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngineEx_setSimulcastConfigEx_bd8d7d0 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setHighPriorityUserListEx_8736b5c(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -585,4 +593,20 @@ export class IRtcEngineExDispatch extends IRtcEngineDispatch ); return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + + // @ts-ignore + getCallIdEx_b13f7c4(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngineEx_getCallIdEx_b13f7c4 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + + // @ts-ignore + sendAudioMetadataEx_e2bf1c4(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4 not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } } diff --git a/packages/rtc/src/binding/IAudioDeviceManagerDispatch.ts b/packages/rtc/src/binding/IAudioDeviceManagerDispatch.ts index 594a24ef..e8198cb2 100644 --- a/packages/rtc/src/binding/IAudioDeviceManagerDispatch.ts +++ b/packages/rtc/src/binding/IAudioDeviceManagerDispatch.ts @@ -54,6 +54,14 @@ export class IAudioDeviceManagerDispatch implements IAudioDeviceManager { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + getPlaybackDeviceInfo_ed3a96d(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'AudioDeviceManager_getPlaybackDeviceInfo_ed3a96d not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setPlaybackDeviceVolume_46f8ab7(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( @@ -98,6 +106,14 @@ export class IAudioDeviceManagerDispatch implements IAudioDeviceManager { return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); } + // @ts-ignore + getRecordingDeviceInfo_ed3a96d(apiParam: ApiParam): CallApiReturnType { + AgoraConsole.warn( + 'AudioDeviceManager_getRecordingDeviceInfo_ed3a96d not supported in this platform!' + ); + return this._engine.returnResult(false, -ERROR_CODE_TYPE.ERR_NOT_SUPPORTED); + } + // @ts-ignore setRecordingDeviceVolume_46f8ab7(apiParam: ApiParam): CallApiReturnType { AgoraConsole.warn( diff --git a/packages/rtc/src/util/AgoraTranslate.ts b/packages/rtc/src/util/AgoraTranslate.ts index 3e0330c2..0ba4bca1 100644 --- a/packages/rtc/src/util/AgoraTranslate.ts +++ b/packages/rtc/src/util/AgoraTranslate.ts @@ -349,6 +349,8 @@ export class AgoraTranslate { return RemoteStreamType.HIGH_STREAM; case NATIVE_RTC.VIDEO_STREAM_TYPE.VIDEO_STREAM_LOW: return RemoteStreamType.LOW_STREAM; + default: + return RemoteStreamType.HIGH_STREAM; } } @@ -363,6 +365,8 @@ export class AgoraTranslate { return RemoteStreamFallbackType.LOW_STREAM; case NATIVE_RTC.STREAM_FALLBACK_OPTIONS.STREAM_FALLBACK_OPTION_AUDIO_ONLY: return RemoteStreamFallbackType.AUDIO_ONLY; + default: + return RemoteStreamFallbackType.DISABLE; } } diff --git a/packages/rtc/src/util/iris_rtc_api_type_gen.ts b/packages/rtc/src/util/iris_rtc_api_type_gen.ts index ca07c287..e8bbd375 100644 --- a/packages/rtc/src/util/iris_rtc_api_type_gen.ts +++ b/packages/rtc/src/util/iris_rtc_api_type_gen.ts @@ -65,6 +65,8 @@ export const IVIDEOFRAMEOBSERVER_GETMIRRORAPPLIED = 'VideoFrameObserver_getMirrorApplied'; export const IVIDEOFRAMEOBSERVER_GETOBSERVEDFRAMEPOSITION = 'VideoFrameObserver_getObservedFramePosition'; +export const IFACEINFOOBSERVER_ONFACEINFO_3a2037f = + 'FaceInfoObserver_onFaceInfo_3a2037f'; export const IMEDIARECORDEROBSERVER_ONRECORDERSTATECHANGED_c38849f = 'MediaRecorderObserver_onRecorderStateChanged_c38849f'; export const IMEDIARECORDEROBSERVER_ONRECORDERINFOUPDATED_64fa74a = @@ -91,6 +93,8 @@ export const IMEDIAENGINE_REGISTERVIDEOFRAMEOBSERVER_2cc0ef1 = 'MediaEngine_registerVideoFrameObserver_2cc0ef1'; export const IMEDIAENGINE_REGISTERVIDEOENCODEDFRAMEOBSERVER_d45d579 = 'MediaEngine_registerVideoEncodedFrameObserver_d45d579'; +export const IMEDIAENGINE_REGISTERFACEINFOOBSERVER_0303ed6 = + 'MediaEngine_registerFaceInfoObserver_0303ed6'; export const IMEDIAENGINE_PUSHAUDIOFRAME_c71f4ab = 'MediaEngine_pushAudioFrame_c71f4ab'; export const IMEDIAENGINE_PULLAUDIOFRAME_2c74a9c = @@ -286,6 +290,8 @@ export const IMUSICCONTENTCENTEREVENTHANDLER_ONSONGSIMPLEINFORESULT_9ad9c90 = export const IMUSICCONTENTCENTEREVENTHANDLER_ONPRELOADEVENT_20170bc = 'MusicContentCenterEventHandler_onPreLoadEvent_20170bc'; export const IMUSICPLAYER_OPEN_303b92e = 'MusicPlayer_open_303b92e'; +export const IMUSICPLAYER_SETPLAYMODE_748bee0 = + 'MusicPlayer_setPlayMode_748bee0'; export const IMUSICCONTENTCENTER_INITIALIZE_df70304 = 'MusicContentCenter_initialize_df70304'; export const IMUSICCONTENTCENTER_RENEWTOKEN_3a2037f = @@ -297,6 +303,8 @@ export const IMUSICCONTENTCENTER_UNREGISTEREVENTHANDLER = 'MusicContentCenter_unregisterEventHandler'; export const IMUSICCONTENTCENTER_CREATEMUSICPLAYER = 'MusicContentCenter_createMusicPlayer'; +export const IMUSICCONTENTCENTER_DESTROYMUSICPLAYER_876d086 = + 'MusicContentCenter_destroyMusicPlayer_876d086'; export const IMUSICCONTENTCENTER_GETMUSICCHARTS_66d4ecd = 'MusicContentCenter_getMusicCharts_66d4ecd'; export const IMUSICCONTENTCENTER_GETMUSICCOLLECTIONBYMUSICCHARTID_8cd0b4d = @@ -497,14 +505,16 @@ export const IRTCENGINEEVENTHANDLER_ONVIDEOPUBLISHSTATECHANGED_5b45b6e = 'RtcEngineEventHandler_onVideoPublishStateChanged_5b45b6e'; export const IRTCENGINEEVENTHANDLER_ONTRANSCODEDSTREAMLAYOUTINFO_3bfb91b = 'RtcEngineEventHandler_onTranscodedStreamLayoutInfo_3bfb91b'; -export const IRTCENGINEEVENTHANDLER_ONEXTENSIONEVENT_062d13c = - 'RtcEngineEventHandler_onExtensionEvent_062d13c'; -export const IRTCENGINEEVENTHANDLER_ONEXTENSIONSTARTED_ccad422 = - 'RtcEngineEventHandler_onExtensionStarted_ccad422'; -export const IRTCENGINEEVENTHANDLER_ONEXTENSIONSTOPPED_ccad422 = - 'RtcEngineEventHandler_onExtensionStopped_ccad422'; -export const IRTCENGINEEVENTHANDLER_ONEXTENSIONERROR_bd3489b = - 'RtcEngineEventHandler_onExtensionError_bd3489b'; +export const IRTCENGINEEVENTHANDLER_ONAUDIOMETADATARECEIVED_77edd82 = + 'RtcEngineEventHandler_onAudioMetadataReceived_77edd82'; +export const IRTCENGINEEVENTHANDLER_ONEXTENSIONEVENTWITHCONTEXT_a5fb27a = + 'RtcEngineEventHandler_onExtensionEventWithContext_a5fb27a'; +export const IRTCENGINEEVENTHANDLER_ONEXTENSIONSTARTEDWITHCONTEXT_67c38e3 = + 'RtcEngineEventHandler_onExtensionStartedWithContext_67c38e3'; +export const IRTCENGINEEVENTHANDLER_ONEXTENSIONSTOPPEDWITHCONTEXT_67c38e3 = + 'RtcEngineEventHandler_onExtensionStoppedWithContext_67c38e3'; +export const IRTCENGINEEVENTHANDLER_ONEXTENSIONERRORWITHCONTEXT_a452f11 = + 'RtcEngineEventHandler_onExtensionErrorWithContext_a452f11'; export const IRTCENGINEEVENTHANDLER_ONSETRTMFLAGRESULT_46f8ab7 = 'RtcEngineEventHandler_onSetRtmFlagResult_46f8ab7'; export const IRTCENGINEEVENTHANDLER_ONJOINCHANNELSUCCESS_263e4cd = @@ -529,8 +539,6 @@ export const IRTCENGINEEVENTHANDLER_ONFIRSTREMOTEVIDEODECODED_a68170a = 'RtcEngineEventHandler_onFirstRemoteVideoDecoded_a68170a'; export const IRTCENGINEEVENTHANDLER_ONVIDEOSIZECHANGED_99bf45c = 'RtcEngineEventHandler_onVideoSizeChanged_99bf45c'; -export const IRTCENGINEEVENTHANDLER_ONLOCALVIDEOSTATECHANGED_b202b1b = - 'RtcEngineEventHandler_onLocalVideoStateChanged_b202b1b'; export const IRTCENGINEEVENTHANDLER_ONREMOTEVIDEOSTATECHANGED_a14e9d1 = 'RtcEngineEventHandler_onRemoteVideoStateChanged_a14e9d1'; export const IRTCENGINEEVENTHANDLER_ONFIRSTREMOTEVIDEOFRAME_a68170a = @@ -615,6 +623,8 @@ export const IRTCENGINEEVENTHANDLER_ONSETRTMFLAGRESULT_263e4cd = 'RtcEngineEventHandler_onSetRtmFlagResult_263e4cd'; export const IRTCENGINEEVENTHANDLER_ONTRANSCODEDSTREAMLAYOUTINFO_48f6419 = 'RtcEngineEventHandler_onTranscodedStreamLayoutInfo_48f6419'; +export const IRTCENGINEEVENTHANDLER_ONAUDIOMETADATARECEIVED_0d4eb96 = + 'RtcEngineEventHandler_onAudioMetadataReceived_0d4eb96'; export const IVIDEODEVICEMANAGER_ENUMERATEVIDEODEVICES = 'VideoDeviceManager_enumerateVideoDevices'; export const IVIDEODEVICEMANAGER_SETDEVICE_4ad5f6e = @@ -668,9 +678,6 @@ export const IRTCENGINE_SETCLIENTROLE_3426fa6 = 'RtcEngine_setClientRole_3426fa6'; export const IRTCENGINE_SETCLIENTROLE_b46cc48 = 'RtcEngine_setClientRole_b46cc48'; -export const IRTCENGINE_STARTECHOTEST = 'RtcEngine_startEchoTest'; -export const IRTCENGINE_STARTECHOTEST_46f8ab7 = - 'RtcEngine_startEchoTest_46f8ab7'; export const IRTCENGINE_STARTECHOTEST_16140d7 = 'RtcEngine_startEchoTest_16140d7'; export const IRTCENGINE_STOPECHOTEST = 'RtcEngine_stopEchoTest'; @@ -690,6 +697,14 @@ export const IRTCENGINE_SETVIDEOENCODERCONFIGURATION_89677d8 = 'RtcEngine_setVideoEncoderConfiguration_89677d8'; export const IRTCENGINE_SETBEAUTYEFFECTOPTIONS_e7635d1 = 'RtcEngine_setBeautyEffectOptions_e7635d1'; +export const IRTCENGINE_SETFACESHAPEBEAUTYOPTIONS_a862ce7 = + 'RtcEngine_setFaceShapeBeautyOptions_a862ce7'; +export const IRTCENGINE_SETFACESHAPEAREAOPTIONS_2e242a3 = + 'RtcEngine_setFaceShapeAreaOptions_2e242a3'; +export const IRTCENGINE_GETFACESHAPEBEAUTYOPTIONS_8382895 = + 'RtcEngine_getFaceShapeBeautyOptions_8382895'; +export const IRTCENGINE_GETFACESHAPEAREAOPTIONS_0783e2c = + 'RtcEngine_getFaceShapeAreaOptions_0783e2c'; export const IRTCENGINE_SETLOWLIGHTENHANCEOPTIONS_4f9f013 = 'RtcEngine_setLowlightEnhanceOptions_4f9f013'; export const IRTCENGINE_SETVIDEODENOISEROPTIONS_4e9fccc = @@ -720,8 +735,6 @@ export const IRTCENGINE_MUTELOCALAUDIOSTREAM_5039d15 = 'RtcEngine_muteLocalAudioStream_5039d15'; export const IRTCENGINE_MUTEALLREMOTEAUDIOSTREAMS_5039d15 = 'RtcEngine_muteAllRemoteAudioStreams_5039d15'; -export const IRTCENGINE_SETDEFAULTMUTEALLREMOTEAUDIOSTREAMS_5039d15 = - 'RtcEngine_setDefaultMuteAllRemoteAudioStreams_5039d15'; export const IRTCENGINE_MUTEREMOTEAUDIOSTREAM_dbdc15a = 'RtcEngine_muteRemoteAudioStream_dbdc15a'; export const IRTCENGINE_MUTELOCALVIDEOSTREAM_5039d15 = @@ -730,8 +743,6 @@ export const IRTCENGINE_ENABLELOCALVIDEO_5039d15 = 'RtcEngine_enableLocalVideo_5039d15'; export const IRTCENGINE_MUTEALLREMOTEVIDEOSTREAMS_5039d15 = 'RtcEngine_muteAllRemoteVideoStreams_5039d15'; -export const IRTCENGINE_SETDEFAULTMUTEALLREMOTEVIDEOSTREAMS_5039d15 = - 'RtcEngine_setDefaultMuteAllRemoteVideoStreams_5039d15'; export const IRTCENGINE_SETREMOTEDEFAULTVIDEOSTREAMTYPE_5a94eb0 = 'RtcEngine_setRemoteDefaultVideoStreamType_5a94eb0'; export const IRTCENGINE_MUTEREMOTEVIDEOSTREAM_dbdc15a = @@ -796,6 +807,8 @@ export const IRTCENGINE_SETAUDIOMIXINGDUALMONOMODE_38a5515 = 'RtcEngine_setAudioMixingDualMonoMode_38a5515'; export const IRTCENGINE_SETAUDIOMIXINGPITCH_46f8ab7 = 'RtcEngine_setAudioMixingPitch_46f8ab7'; +export const IRTCENGINE_SETAUDIOMIXINGPLAYBACKSPEED_46f8ab7 = + 'RtcEngine_setAudioMixingPlaybackSpeed_46f8ab7'; export const IRTCENGINE_GETEFFECTSVOLUME = 'RtcEngine_getEffectsVolume'; export const IRTCENGINE_SETEFFECTSVOLUME_46f8ab7 = 'RtcEngine_setEffectsVolume_46f8ab7'; @@ -854,6 +867,8 @@ export const IRTCENGINE_SETHEADPHONEEQPRESET_b679644 = 'RtcEngine_setHeadphoneEQPreset_b679644'; export const IRTCENGINE_SETHEADPHONEEQPARAMETERS_4e92b3c = 'RtcEngine_setHeadphoneEQParameters_4e92b3c'; +export const IRTCENGINE_ENABLEVOICEAITUNER_28f5d5b = + 'RtcEngine_enableVoiceAITuner_28f5d5b'; export const IRTCENGINE_SETLOGFILE_3a2037f = 'RtcEngine_setLogFile_3a2037f'; export const IRTCENGINE_SETLOGFILTER_2626ac7 = 'RtcEngine_setLogFilter_2626ac7'; export const IRTCENGINE_SETLOGLEVEL_f125d83 = 'RtcEngine_setLogLevel_f125d83'; @@ -861,6 +876,7 @@ export const IRTCENGINE_SETLOGFILESIZE_2626ac7 = 'RtcEngine_setLogFileSize_2626ac7'; export const IRTCENGINE_UPLOADLOGFILE_66d4ecd = 'RtcEngine_uploadLogFile_66d4ecd'; +export const IRTCENGINE_WRITELOG_62889f6 = 'RtcEngine_writeLog_62889f6'; export const IRTCENGINE_SETLOCALRENDERMODE_cfb201b = 'RtcEngine_setLocalRenderMode_cfb201b'; export const IRTCENGINE_SETREMOTERENDERMODE_6771ce0 = @@ -875,6 +891,8 @@ export const IRTCENGINE_ENABLEDUALSTREAMMODE_9822d8a = 'RtcEngine_enableDualStreamMode_9822d8a'; export const IRTCENGINE_SETDUALSTREAMMODE_3a7f662 = 'RtcEngine_setDualStreamMode_3a7f662'; +export const IRTCENGINE_SETSIMULCASTCONFIG_3dcdfd7 = + 'RtcEngine_setSimulcastConfig_3dcdfd7'; export const IRTCENGINE_SETDUALSTREAMMODE_b3a4f6c = 'RtcEngine_setDualStreamMode_b3a4f6c'; export const IRTCENGINE_ENABLECUSTOMAUDIOLOCALPLAYBACK_9566341 = @@ -984,6 +1002,8 @@ export const IRTCENGINE_ISCAMERAAUTOEXPOSUREFACEMODESUPPORTED = 'RtcEngine_isCameraAutoExposureFaceModeSupported'; export const IRTCENGINE_SETCAMERAAUTOEXPOSUREFACEMODEENABLED_5039d15 = 'RtcEngine_setCameraAutoExposureFaceModeEnabled_5039d15'; +export const IRTCENGINE_SETCAMERASTABILIZATIONMODE_701b981 = + 'RtcEngine_setCameraStabilizationMode_701b981'; export const IRTCENGINE_SETDEFAULTAUDIOROUTETOSPEAKERPHONE_5039d15 = 'RtcEngine_setDefaultAudioRouteToSpeakerphone_5039d15'; export const IRTCENGINE_SETENABLESPEAKERPHONE_5039d15 = @@ -992,6 +1012,10 @@ export const IRTCENGINE_ISSPEAKERPHONEENABLED = 'RtcEngine_isSpeakerphoneEnabled'; export const IRTCENGINE_SETROUTEINCOMMUNICATIONMODE_46f8ab7 = 'RtcEngine_setRouteInCommunicationMode_46f8ab7'; +export const IRTCENGINE_ISCAMERACENTERSTAGESUPPORTED = + 'RtcEngine_isCameraCenterStageSupported'; +export const IRTCENGINE_ENABLECAMERACENTERSTAGE_5039d15 = + 'RtcEngine_enableCameraCenterStage_5039d15'; export const IRTCENGINE_GETSCREENCAPTURESOURCES_f3e02cb = 'RtcEngine_getScreenCaptureSources_f3e02cb'; export const IRTCENGINE_SETAUDIOSESSIONOPERATIONRESTRICTION_c492897 = @@ -1016,6 +1040,8 @@ export const IRTCENGINE_UPDATESCREENCAPTURE_270da41 = 'RtcEngine_updateScreenCapture_270da41'; export const IRTCENGINE_QUERYSCREENCAPTURECAPABILITY = 'RtcEngine_queryScreenCaptureCapability'; +export const IRTCENGINE_QUERYCAMERAFOCALLENGTHCAPABILITY_2dee6af = + 'RtcEngine_queryCameraFocalLengthCapability_2dee6af'; export const IRTCENGINE_SETSCREENCAPTURESCENARIO_13de7b4 = 'RtcEngine_setScreenCaptureScenario_13de7b4'; export const IRTCENGINE_STOPSCREENCAPTURE = 'RtcEngine_stopScreenCapture'; @@ -1057,10 +1083,6 @@ export const IRTCENGINE_SETREMOTEUSERPRIORITY_f34115b = 'RtcEngine_setRemoteUserPriority_f34115b'; export const IRTCENGINE_REGISTERPACKETOBSERVER_f8b44dd = 'RtcEngine_registerPacketObserver_f8b44dd'; -export const IRTCENGINE_SETENCRYPTIONMODE_3a2037f = - 'RtcEngine_setEncryptionMode_3a2037f'; -export const IRTCENGINE_SETENCRYPTIONSECRET_3a2037f = - 'RtcEngine_setEncryptionSecret_3a2037f'; export const IRTCENGINE_ENABLEENCRYPTION_421c27b = 'RtcEngine_enableEncryption_421c27b'; export const IRTCENGINE_CREATEDATASTREAM_b897a63 = @@ -1155,6 +1177,8 @@ export const IRTCENGINE_ENABLEINSTANTMEDIARENDERING = export const IRTCENGINE_GETNTPWALLTIMEINMS = 'RtcEngine_getNtpWallTimeInMs'; export const IRTCENGINE_ISFEATUREAVAILABLEONDEVICE_a694b62 = 'RtcEngine_isFeatureAvailableOnDevice_a694b62'; +export const IRTCENGINE_SENDAUDIOMETADATA_878f309 = + 'RtcEngine_sendAudioMetadata_878f309'; export const IRTCENGINEEX_JOINCHANNELEX_a3cd08c = 'RtcEngineEx_joinChannelEx_a3cd08c'; export const IRTCENGINEEX_LEAVECHANNELEX_c81e1a4 = @@ -1247,6 +1271,8 @@ export const IRTCENGINEEX_ENABLEDUALSTREAMMODEEX_4b18f41 = 'RtcEngineEx_enableDualStreamModeEx_4b18f41'; export const IRTCENGINEEX_SETDUALSTREAMMODEEX_622d0f3 = 'RtcEngineEx_setDualStreamModeEx_622d0f3'; +export const IRTCENGINEEX_SETSIMULCASTCONFIGEX_bd8d7d0 = + 'RtcEngineEx_setSimulcastConfigEx_bd8d7d0'; export const IRTCENGINEEX_SETHIGHPRIORITYUSERLISTEX_8736b5c = 'RtcEngineEx_setHighPriorityUserListEx_8736b5c'; export const IRTCENGINEEX_TAKESNAPSHOTEX_de1c015 = @@ -1257,6 +1283,10 @@ export const IRTCENGINEEX_STARTMEDIARENDERINGTRACINGEX_c81e1a4 = 'RtcEngineEx_startMediaRenderingTracingEx_c81e1a4'; export const IRTCENGINEEX_SETPARAMETERSEX_8225ea3 = 'RtcEngineEx_setParametersEx_8225ea3'; +export const IRTCENGINEEX_GETCALLIDEX_b13f7c4 = + 'RtcEngineEx_getCallIdEx_b13f7c4'; +export const IRTCENGINEEX_SENDAUDIOMETADATAEX_e2bf1c4 = + 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4'; export const ILOCALSPATIALAUDIOENGINE_RELEASE = 'LocalSpatialAudioEngine_release'; export const ILOCALSPATIALAUDIOENGINE_INITIALIZE_cf94fbf = @@ -1309,6 +1339,8 @@ export const IAUDIODEVICEMANAGER_GETPLAYBACKDEVICE_73b9872 = 'AudioDeviceManager_getPlaybackDevice_73b9872'; export const IAUDIODEVICEMANAGER_GETPLAYBACKDEVICEINFO_5540658 = 'AudioDeviceManager_getPlaybackDeviceInfo_5540658'; +export const IAUDIODEVICEMANAGER_GETPLAYBACKDEVICEINFO_ed3a96d = + 'AudioDeviceManager_getPlaybackDeviceInfo_ed3a96d'; export const IAUDIODEVICEMANAGER_SETPLAYBACKDEVICEVOLUME_46f8ab7 = 'AudioDeviceManager_setPlaybackDeviceVolume_46f8ab7'; export const IAUDIODEVICEMANAGER_GETPLAYBACKDEVICEVOLUME_915cb25 = @@ -1319,6 +1351,8 @@ export const IAUDIODEVICEMANAGER_GETRECORDINGDEVICE_73b9872 = 'AudioDeviceManager_getRecordingDevice_73b9872'; export const IAUDIODEVICEMANAGER_GETRECORDINGDEVICEINFO_5540658 = 'AudioDeviceManager_getRecordingDeviceInfo_5540658'; +export const IAUDIODEVICEMANAGER_GETRECORDINGDEVICEINFO_ed3a96d = + 'AudioDeviceManager_getRecordingDeviceInfo_ed3a96d'; export const IAUDIODEVICEMANAGER_SETRECORDINGDEVICEVOLUME_46f8ab7 = 'AudioDeviceManager_setRecordingDeviceVolume_46f8ab7'; export const IAUDIODEVICEMANAGER_GETRECORDINGDEVICEVOLUME_915cb25 = diff --git a/packages/rtc/test/binding/AgoraMediaBaseDispatch.test.ts b/packages/rtc/test/binding/AgoraMediaBaseDispatch.test.ts index 8606a9e9..7fc3533e 100644 --- a/packages/rtc/test/binding/AgoraMediaBaseDispatch.test.ts +++ b/packages/rtc/test/binding/AgoraMediaBaseDispatch.test.ts @@ -657,6 +657,24 @@ describe('IVideoFrameObserver', () => { ); }); }); +describe('IFaceInfoObserver', () => { + test('FaceInfoObserver_onFaceInfo_3a2037f impl call', async () => { + let eventHandler = new bindingAPI.IFaceInfoObserver(irisRtcEngine); + jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + eventHandler.onFaceInfo_3a2037f(undefined); + expect( + eventHandler._engine.irisEventHandlerManager.notifyEvent + ).toBeCalledTimes(0); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); +}); describe('IMediaRecorderObserver', () => { test('MediaRecorderObserver_onRecorderStateChanged_c38849f impl call', async () => { let eventHandler = new bindingAPI.IMediaRecorderObserver(irisRtcEngine); diff --git a/packages/rtc/test/binding/IAgoraMediaEngineDispatch.test.ts b/packages/rtc/test/binding/IAgoraMediaEngineDispatch.test.ts index 635e4072..1c9ab782 100644 --- a/packages/rtc/test/binding/IAgoraMediaEngineDispatch.test.ts +++ b/packages/rtc/test/binding/IAgoraMediaEngineDispatch.test.ts @@ -124,6 +124,34 @@ describe('IMediaEngine', () => { ); }); + test('MediaEngine_registerFaceInfoObserver_0303ed6 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + observer: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'MediaEngine_registerFaceInfoObserver_0303ed6', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('MediaEngine')._impl + ?.registerFaceInfoObserver_0303ed6 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('MediaEngine_pushAudioFrame_c71f4ab impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') diff --git a/packages/rtc/test/binding/IAgoraMusicContentCenterDispatch.test.ts b/packages/rtc/test/binding/IAgoraMusicContentCenterDispatch.test.ts index 71834547..f4219851 100644 --- a/packages/rtc/test/binding/IAgoraMusicContentCenterDispatch.test.ts +++ b/packages/rtc/test/binding/IAgoraMusicContentCenterDispatch.test.ts @@ -364,6 +364,34 @@ describe('IMusicPlayer', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); + + test('MusicPlayer_setPlayMode_748bee0 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + mode: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'MusicPlayer_setPlayMode_748bee0', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('MusicPlayer')._impl + ?.setPlayMode_748bee0 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); }); describe('IMusicContentCenter', () => { test('MusicContentCenter_initialize_df70304 impl call', async () => { @@ -527,6 +555,34 @@ describe('IMusicContentCenter', () => { ); }); + test('MusicContentCenter_destroyMusicPlayer_876d086 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + music_player: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'MusicContentCenter_destroyMusicPlayer_876d086', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('MusicContentCenter')._impl + ?.destroyMusicPlayer_876d086 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('MusicContentCenter_getMusicCharts_66d4ecd impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -769,7 +825,7 @@ describe('IMusicContentCenter', () => { let nParam = { requestId: 'test', songCode: 'test', - LyricType: 'test', + lyricType: 'test', }; let apiParam = new IrisCore.EventParam( 'MusicContentCenter_getLyric_5ab5efd', diff --git a/packages/rtc/test/binding/IAgoraRtcEngineDispatch.test.ts b/packages/rtc/test/binding/IAgoraRtcEngineDispatch.test.ts index 67b17a25..424ca13f 100644 --- a/packages/rtc/test/binding/IAgoraRtcEngineDispatch.test.ts +++ b/packages/rtc/test/binding/IAgoraRtcEngineDispatch.test.ts @@ -1542,14 +1542,33 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); - test('RtcEngineEventHandler_onExtensionEvent_062d13c impl call', async () => { + test('RtcEngineEventHandler_onAudioMetadataReceived_77edd82 impl call', async () => { let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); jest .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); - eventHandler.onExtensionEvent_062d13c( + eventHandler.onAudioMetadataReceived_77edd82( undefined, + undefined, + undefined + ); + expect( + eventHandler._engine.irisEventHandlerManager.notifyEvent + ).toBeCalledTimes(0); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngineEventHandler_onExtensionEventWithContext_a5fb27a impl call', async () => { + let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); + jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + eventHandler.onExtensionEventWithContext_a5fb27a( undefined, undefined, undefined @@ -1563,13 +1582,13 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); - test('RtcEngineEventHandler_onExtensionStarted_ccad422 impl call', async () => { + test('RtcEngineEventHandler_onExtensionStartedWithContext_67c38e3 impl call', async () => { let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); jest .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); - eventHandler.onExtensionStarted_ccad422(undefined, undefined); + eventHandler.onExtensionStartedWithContext_67c38e3(undefined); expect( eventHandler._engine.irisEventHandlerManager.notifyEvent ).toBeCalledTimes(0); @@ -1579,13 +1598,13 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); - test('RtcEngineEventHandler_onExtensionStopped_ccad422 impl call', async () => { + test('RtcEngineEventHandler_onExtensionStoppedWithContext_67c38e3 impl call', async () => { let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); jest .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); - eventHandler.onExtensionStopped_ccad422(undefined, undefined); + eventHandler.onExtensionStoppedWithContext_67c38e3(undefined); expect( eventHandler._engine.irisEventHandlerManager.notifyEvent ).toBeCalledTimes(0); @@ -1595,14 +1614,13 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); - test('RtcEngineEventHandler_onExtensionError_bd3489b impl call', async () => { + test('RtcEngineEventHandler_onExtensionErrorWithContext_a452f11 impl call', async () => { let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); jest .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); - eventHandler.onExtensionError_bd3489b( - undefined, + eventHandler.onExtensionErrorWithContext_a452f11( undefined, undefined, undefined @@ -1797,26 +1815,6 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); - test('RtcEngineEventHandler_onLocalVideoStateChanged_b202b1b impl call', async () => { - let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); - jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - eventHandler.onLocalVideoStateChanged_b202b1b( - undefined, - undefined, - undefined - ); - expect( - eventHandler._engine.irisEventHandlerManager.notifyEvent - ).toBeCalledTimes(0); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); test('RtcEngineEventHandler_onRemoteVideoStateChanged_a14e9d1 impl call', async () => { let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); @@ -2423,6 +2421,27 @@ describe('IRtcEngineEventHandler', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); + test('RtcEngineEventHandler_onAudioMetadataReceived_0d4eb96 impl call', async () => { + let eventHandler = new bindingAPI.IRtcEngineEventHandler(irisRtcEngine); + jest.spyOn(eventHandler._engine.irisEventHandlerManager, 'notifyEvent'); + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + eventHandler.onAudioMetadataReceived_0d4eb96( + undefined, + undefined, + undefined, + undefined + ); + expect( + eventHandler._engine.irisEventHandlerManager.notifyEvent + ).toBeCalledTimes(0); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); }); describe('IVideoDeviceManager', () => { test('VideoDeviceManager_enumerateVideoDevices impl call', async () => { @@ -3609,59 +3628,6 @@ describe('IRtcEngine', () => { ).toBeCalledWith('test', 'test'); }); - test('RtcEngine_startEchoTest impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = {}; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_startEchoTest', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl?.startEchoTest - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - - test('RtcEngine_startEchoTest_46f8ab7 impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = { - intervalInSeconds: 'test', - }; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_startEchoTest_46f8ab7', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.startEchoTest_46f8ab7 - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - test('RtcEngine_startEchoTest_16140d7 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -4092,6 +4058,124 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_setFaceShapeBeautyOptions_a862ce7 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + enabled: 'test', + options: 'test', + type: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_setFaceShapeBeautyOptions_a862ce7', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.setFaceShapeBeautyOptions_a862ce7 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngine_setFaceShapeAreaOptions_2e242a3 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + options: 'test', + type: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_setFaceShapeAreaOptions_2e242a3', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.setFaceShapeAreaOptions_2e242a3 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngine_getFaceShapeBeautyOptions_8382895 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + options: 'test', + type: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_getFaceShapeBeautyOptions_8382895', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.getFaceShapeBeautyOptions_8382895 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngine_getFaceShapeAreaOptions_0783e2c impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + shapeArea: 'test', + options: 'test', + type: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_getFaceShapeAreaOptions_0783e2c', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.getFaceShapeAreaOptions_0783e2c + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setLowlightEnhanceOptions_4f9f013 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -4721,34 +4805,6 @@ describe('IRtcEngine', () => { ).toBeCalledWith('test'); }); - test('RtcEngine_setDefaultMuteAllRemoteAudioStreams_5039d15 impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = { - mute: 'test', - }; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_setDefaultMuteAllRemoteAudioStreams_5039d15', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setDefaultMuteAllRemoteAudioStreams_5039d15 - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - test('RtcEngine_muteRemoteAudioStream_dbdc15a parameter', async () => { let nParam = { uid: undefined, @@ -4985,34 +5041,6 @@ describe('IRtcEngine', () => { ).toBeCalledWith('test'); }); - test('RtcEngine_setDefaultMuteAllRemoteVideoStreams_5039d15 impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = { - mute: 'test', - }; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_setDefaultMuteAllRemoteVideoStreams_5039d15', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setDefaultMuteAllRemoteVideoStreams_5039d15 - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - test('RtcEngine_setRemoteDefaultVideoStreamType_5a94eb0 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -6043,10 +6071,38 @@ describe('IRtcEngine', () => { .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); let nParam = { - mode: 'test', + mode: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_setAudioMixingDualMonoMode_38a5515', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.setAudioMixingDualMonoMode_38a5515 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngine_setAudioMixingPitch_46f8ab7 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + pitch: 'test', }; let apiParam = new IrisCore.EventParam( - 'RtcEngine_setAudioMixingDualMonoMode_38a5515', + 'RtcEngine_setAudioMixingPitch_46f8ab7', JSON.stringify(nParam), 0, '', @@ -6057,7 +6113,7 @@ describe('IRtcEngine', () => { await IrisCore.callIrisApi(apiEnginePtr, apiParam); expect( irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setAudioMixingDualMonoMode_38a5515 + ?.setAudioMixingPitch_46f8ab7 ).toBeUndefined(); expect(irisRtcEngine.returnResult).toBeCalledTimes(1); expect(irisRtcEngine.returnResult).toBeCalledWith( @@ -6066,15 +6122,15 @@ describe('IRtcEngine', () => { ); }); - test('RtcEngine_setAudioMixingPitch_46f8ab7 impl call', async () => { + test('RtcEngine_setAudioMixingPlaybackSpeed_46f8ab7 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') .mockResolvedValue(new CallIrisApiResult(0, '')); let nParam = { - pitch: 'test', + speed: 'test', }; let apiParam = new IrisCore.EventParam( - 'RtcEngine_setAudioMixingPitch_46f8ab7', + 'RtcEngine_setAudioMixingPlaybackSpeed_46f8ab7', JSON.stringify(nParam), 0, '', @@ -6085,7 +6141,7 @@ describe('IRtcEngine', () => { await IrisCore.callIrisApi(apiEnginePtr, apiParam); expect( irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setAudioMixingPitch_46f8ab7 + ?.setAudioMixingPlaybackSpeed_46f8ab7 ).toBeUndefined(); expect(irisRtcEngine.returnResult).toBeCalledTimes(1); expect(irisRtcEngine.returnResult).toBeCalledWith( @@ -7249,6 +7305,35 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_enableVoiceAITuner_28f5d5b impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + enabled: 'test', + type: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_enableVoiceAITuner_28f5d5b', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.enableVoiceAITuner_28f5d5b + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setLogFile_3a2037f impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -7412,6 +7497,34 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_writeLog_62889f6 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + level: 'test', + fmt: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_writeLog_62889f6', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl?.writeLog_62889f6 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setLocalRenderMode_cfb201b impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -7612,6 +7725,34 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_setSimulcastConfig_3dcdfd7 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + simulcastConfig: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_setSimulcastConfig_3dcdfd7', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.setSimulcastConfig_3dcdfd7 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setDualStreamMode_b3a4f6c impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -9175,6 +9316,34 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_setCameraStabilizationMode_701b981 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + mode: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_setCameraStabilizationMode_701b981', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.setCameraStabilizationMode_701b981 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setDefaultAudioRouteToSpeakerphone_5039d15 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -9285,6 +9454,60 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_isCameraCenterStageSupported impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = {}; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_isCameraCenterStageSupported', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.isCameraCenterStageSupported + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngine_enableCameraCenterStage_5039d15 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + enabled: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_enableCameraCenterStage_5039d15', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.enableCameraCenterStage_5039d15 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_getScreenCaptureSources_f3e02cb impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -9653,6 +9876,35 @@ describe('IRtcEngine', () => { ); }); + test('RtcEngine_queryCameraFocalLengthCapability_2dee6af impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + focalLengthInfos: 'test', + size: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_queryCameraFocalLengthCapability_2dee6af', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.queryCameraFocalLengthCapability_2dee6af + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngine_setScreenCaptureScenario_13de7b4 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -10374,62 +10626,6 @@ describe('IRtcEngine', () => { ); }); - test('RtcEngine_setEncryptionMode_3a2037f impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = { - encryptionMode: 'test', - }; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_setEncryptionMode_3a2037f', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setEncryptionMode_3a2037f - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - - test('RtcEngine_setEncryptionSecret_3a2037f impl call', async () => { - jest - .spyOn(irisRtcEngine, 'returnResult') - .mockResolvedValue(new CallIrisApiResult(0, '')); - let nParam = { - secret: 'test', - }; - let apiParam = new IrisCore.EventParam( - 'RtcEngine_setEncryptionSecret_3a2037f', - JSON.stringify(nParam), - 0, - '', - ['test'], - [], - 1 - ); - await IrisCore.callIrisApi(apiEnginePtr, apiParam); - expect( - irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl - ?.setEncryptionSecret_3a2037f - ).toBeUndefined(); - expect(irisRtcEngine.returnResult).toBeCalledTimes(1); - expect(irisRtcEngine.returnResult).toBeCalledWith( - false, - -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED - ); - }); - test('RtcEngine_enableEncryption_421c27b impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -12145,4 +12341,33 @@ describe('IRtcEngine', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); + + test('RtcEngine_sendAudioMetadata_878f309 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + metadata: 'test', + length: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngine_sendAudioMetadata_878f309', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngine')._impl + ?.sendAudioMetadata_878f309 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); }); diff --git a/packages/rtc/test/binding/IAgoraRtcEngineExDispatch.test.ts b/packages/rtc/test/binding/IAgoraRtcEngineExDispatch.test.ts index 03274301..150d021e 100644 --- a/packages/rtc/test/binding/IAgoraRtcEngineExDispatch.test.ts +++ b/packages/rtc/test/binding/IAgoraRtcEngineExDispatch.test.ts @@ -2003,6 +2003,35 @@ describe('IRtcEngineEx', () => { ); }); + test('RtcEngineEx_setSimulcastConfigEx_bd8d7d0 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + simulcastConfig: 'test', + connection: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngineEx_setSimulcastConfigEx_bd8d7d0', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngineEx')._impl + ?.setSimulcastConfigEx_bd8d7d0 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('RtcEngineEx_setHighPriorityUserListEx_8736b5c impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -2150,4 +2179,63 @@ describe('IRtcEngineEx', () => { -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED ); }); + + test('RtcEngineEx_getCallIdEx_b13f7c4 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + callId: 'test', + connection: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngineEx_getCallIdEx_b13f7c4', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngineEx')._impl + ?.getCallIdEx_b13f7c4 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + + test('RtcEngineEx_sendAudioMetadataEx_e2bf1c4 impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + connection: 'test', + metadata: 'test', + length: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'RtcEngineEx_sendAudioMetadataEx_e2bf1c4', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('RtcEngineEx')._impl + ?.sendAudioMetadataEx_e2bf1c4 + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); }); diff --git a/packages/rtc/test/binding/IAudioDeviceManagerDispatch.test.ts b/packages/rtc/test/binding/IAudioDeviceManagerDispatch.test.ts index 113ba629..b0826689 100644 --- a/packages/rtc/test/binding/IAudioDeviceManagerDispatch.test.ts +++ b/packages/rtc/test/binding/IAudioDeviceManagerDispatch.test.ts @@ -212,6 +212,34 @@ describe('IAudioDeviceManager', () => { ); }); + test('AudioDeviceManager_getPlaybackDeviceInfo_ed3a96d impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + deviceTypeName: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'AudioDeviceManager_getPlaybackDeviceInfo_ed3a96d', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('AudioDeviceManager')._impl + ?.getPlaybackDeviceInfo_ed3a96d + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('AudioDeviceManager_setPlaybackDeviceVolume_46f8ab7 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') @@ -384,6 +412,34 @@ describe('IAudioDeviceManager', () => { ); }); + test('AudioDeviceManager_getRecordingDeviceInfo_ed3a96d impl call', async () => { + jest + .spyOn(irisRtcEngine, 'returnResult') + .mockResolvedValue(new CallIrisApiResult(0, '')); + let nParam = { + deviceTypeName: 'test', + }; + let apiParam = new IrisCore.EventParam( + 'AudioDeviceManager_getRecordingDeviceInfo_ed3a96d', + JSON.stringify(nParam), + 0, + '', + ['test'], + [], + 1 + ); + await IrisCore.callIrisApi(apiEnginePtr, apiParam); + expect( + irisRtcEngine.implDispatchesMap.get('AudioDeviceManager')._impl + ?.getRecordingDeviceInfo_ed3a96d + ).toBeUndefined(); + expect(irisRtcEngine.returnResult).toBeCalledTimes(1); + expect(irisRtcEngine.returnResult).toBeCalledWith( + false, + -NATIVE_RTC.ERROR_CODE_TYPE.ERR_NOT_SUPPORTED + ); + }); + test('AudioDeviceManager_setRecordingDeviceVolume_46f8ab7 impl call', async () => { jest .spyOn(irisRtcEngine, 'returnResult') diff --git a/scripts/terra/config/binding_configs.yaml b/scripts/terra/config/binding_configs.yaml index ebbb9eca..779c6891 100644 --- a/scripts/terra/config/binding_configs.yaml +++ b/scripts/terra/config/binding_configs.yaml @@ -4,13 +4,14 @@ parsers: package: '@agoraio-extensions/cxx-parser' args: includeHeaderDirs: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include' parseFiles: include: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/*.h' exclude: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/time_utils.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/IAgoraMediaComponentFactory.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/time_utils.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/rte_*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/IAgoraMediaComponentFactory.h' - name: IrisApiIdParser package: '@agoraio-extensions/terra_shared_configs' diff --git a/scripts/terra/config/types_configs.yaml b/scripts/terra/config/types_configs.yaml index cc6b44a0..2e0fdd70 100644 --- a/scripts/terra/config/types_configs.yaml +++ b/scripts/terra/config/types_configs.yaml @@ -4,13 +4,14 @@ parsers: package: '@agoraio-extensions/cxx-parser' args: includeHeaderDirs: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include' parseFiles: include: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/*.h' exclude: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/time_utils.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.0/include/IAgoraMediaComponentFactory.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/time_utils.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/rte_*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.4.0/include/IAgoraMediaComponentFactory.h' - name: IrisApiIdParser package: '@agoraio-extensions/terra_shared_configs' @@ -45,4 +46,4 @@ parsers: renderers: - path: ../index.ts -version: 4.3.0 +version: 4.4.0