diff --git a/src/common/RtcEngine.native.ts b/src/common/RtcEngine.native.ts index 3867db0c8..75c22aad2 100644 --- a/src/common/RtcEngine.native.ts +++ b/src/common/RtcEngine.native.ts @@ -2379,8 +2379,18 @@ export default class RtcEngine implements RtcEngineInterface { * - In the [`LiveBroadcasting`]{@link ChannelProfile.LiveBroadcasting} profile, only a host can call this method. * @param intervalInSeconds The time interval (s) between when you speak and when the recording plays back. */ - startEchoTest(intervalInSeconds: number): Promise { - return RtcEngine._callMethod('startEchoTest', { intervalInSeconds }); + startEchoTest( + intervalInSeconds?: number, + config?: EchoTestConfiguration + ): Promise { + console.assert( + intervalInSeconds === undefined || config === undefined, + 'Only need one of the params' + ); + return RtcEngine._callMethod('startEchoTest', { + intervalInSeconds, + config, + }); } /** diff --git a/src/common/RtcEvents.ts b/src/common/RtcEvents.ts index fc94ad134..46968a43f 100644 --- a/src/common/RtcEvents.ts +++ b/src/common/RtcEvents.ts @@ -1469,6 +1469,25 @@ export interface RtcEngineEvents { */ UploadLogResult: UploadLogResultCallback; + /** + * @ignore + */ + AirPlayIsConnected: EmptyCallback; + + /** + * Reports whether the virtual background is successfully enabled. (beta function) + * + * **since** v3.5.0.3 + * + * After you call [`enableVirtualBackground`]{@link enableVirtualBackground}, the SDK triggers this callback to report whether the virtual background is successfully enabled. + * + * **Note** + * + * If the background image customized in the virtual background is in PNG or JPG format, the triggering of this callback is delayed until the image is read. + * + */ + VirtualBackgroundSourceEnabled: VirtualBackgroundSourceEnabledCallback; + /** * Reports the information of an audio file. * @@ -1865,23 +1884,4 @@ export interface RtcChannelEvents { * After calling `enableRemoteSuperResolution`, the SDK triggers this callback to report whether the super-resolution algorithm is successfully enabled. If not successfully enabled, you can use `reason` for troubleshooting. */ UserSuperResolutionEnabled: UserSuperResolutionEnabledCallback; - - /** - * @ignore - */ - AirPlayIsConnected: EmptyCallback; - - /** - * Reports whether the virtual background is successfully enabled. (beta function) - * - * **since** v3.5.0.3 - * - * After you call [`enableVirtualBackground`]{@link enableVirtualBackground}, the SDK triggers this callback to report whether the virtual background is successfully enabled. - * - * **Note** - * - * If the background image customized in the virtual background is in PNG or JPG format, the triggering of this callback is delayed until the image is read. - * - */ - VirtualBackgroundSourceEnabled: VirtualBackgroundSourceEnabledCallback; }