Skip to content

Commit

Permalink
feat: js add getNativeHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Oct 22, 2020
1 parent 7f8f027 commit 60776af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/common/RtcEngine.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number> {
return RtcEngine._callMethod('getNativeHandle');
}
}

/**
Expand Down Expand Up @@ -2560,6 +2569,8 @@ interface RtcEngineInterface
setLogFileSize(fileSizeInKBytes: number): Promise<void>;

setParameters(parameters: string): Promise<void>;

getNativeHandle(): Promise<number>;
}

/**
Expand Down

0 comments on commit 60776af

Please sign in to comment.