Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: js add getNativeHandle
  • Loading branch information
LichKing-2234 committed Oct 22, 2020
commit 201c82a66fe86eee86d24b2188b9bfd5ecaca04f
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