AgoraIO-Extensions / react-native-agora

React Native around the Agora RTC SDKs for Android and iOS agora
https://www.agora.io
MIT License
622 stars 228 forks source link

Banuba AR Face Filter SDK API Library for Video Call #689

Closed wlvideocalldev closed 10 months ago

wlvideocalldev commented 1 year ago

I want to integrate Banuba with Agora in React Native. I found this link to integrate Banuba with Agora, but how do I implement this code into Agora for React Native? This is the reference link for integrating Banuba with Agora using the Agora Library Extension: https://console.agora.io/marketplace/extension/introduce?serviceName=banuba

LichKing-2234 commented 1 year ago

you need knowledge about Android and iOS, it same as on React Native.

wlvideocalldev commented 1 year ago

In the mentioned reference, to integrate the Banuba extension with Agora, the code snippet is as follows:

RtcEngineConfig().apply {
    ...
    System.loadLibrary("banuba")
    addExtension(BanubaExtensionManager.EXTENSION_NAME)
    ContextProvider.setContext(mContext)
    ...
}

However, in this particular package, Agora is initialized using the Iris API engine. How can I incorporate the addExtension method into the Iris API engine setup?

LichKing-2234 commented 1 year ago

no need to call addExtension

wlvideocalldev commented 1 year ago

After I run the initialization, I proceed to enable the extension like this:

Screenshot 2023-08-09 at 14 54 23

But, the result I'm getting is -3

wlvideocalldev commented 1 year ago
callApi RtcEngine_enableExtension {"provider":"Banuba","extension":"BanubaFilter","enable":true,"type":100} {"result":-3}
LichKing-2234 commented 1 year ago

have you called System.loadLibrary("banuba") on native?

wlvideocalldev commented 1 year ago

@LichKing-2234 Yes, I have loaded the Banuba library using loadLibrary("banuba"). I used the mapLibraryName function to check whether the library has been fully loaded or not, and I received this output: 'libbanuba.so'.

263163979-e2fcfff1-76cc-45fc-b3e4-52941f6f231c

But I'm still getting a result of -3.

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.