From 60776af2b608be6322abd433887cd248081a6ebb Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 22 Oct 2020 22:11:09 +0800 Subject: [PATCH] feat: js add getNativeHandle --- src/common/RtcEngine.native.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/common/RtcEngine.native.ts b/src/common/RtcEngine.native.ts index 1c0309931..ef0419511 100644 --- a/src/common/RtcEngine.native.ts +++ b/src/common/RtcEngine.native.ts @@ -2486,6 +2486,15 @@ export default class RtcEngine implements RtcEngineInterface { restriction, }); } + + /** + * Gets the native handle of the SDK engine. + * + * This interface is used to retrieve the native C++ handle of the SDK engine used in special scenarios, such as registering the audio and video frame observer. + */ + getNativeHandle(): Promise { + return RtcEngine._callMethod('getNativeHandle'); + } } /** @@ -2560,6 +2569,8 @@ interface RtcEngineInterface setLogFileSize(fileSizeInKBytes: number): Promise; setParameters(parameters: string): Promise; + + getNativeHandle(): Promise; } /**