Getting Started
Get the client token
To start working with Banuba SDK in your project, you need to have a client token. To receive it, please fill in the form on banuba.com, or contact us via info@banuba.com.
- iOS
- Android
- Web
- Flutter
- ReactNative
- Desktop
Installation
- Add BanubaSdk SPM packages into your project
Details about the SPM and CocoaPods packages see in Installation.
Integration
- Setup
banubaClientToken
loading...
- Initialize
BanubaSdkManager
loading...
- Create
Player
andload
the effect
loading...
- Run the application! 🎉 🚀 💅
See more use cases and code samples in the GitHub repo.
Installation
To get started, add the Banuba SDK packages to your project.
Add the custom maven repo to your build.gradle.kts
:
loading...
And add the dependency on Banuba SDK package to your build.gradle.kts
:
loading...
Details about the packages see in Installation.
Integration
loading...
Requirements
Integration
- Setup the client token
loading...
- Import the required types from the @banuba/webar NPM package
loading...
See the details about the NPM package in Installation.
- Initialize
Player
and apply theEffect
loading...
loading...
loading...
- Run a local web server from a terminal inside the folder
npx live-server
- Open localhost:8080 and start clicking 🎉 🚀 💅
Follow the instructions of the demo app README.md to get more info.
The demo app leverages jsDelivr CDN for ease of getting started, for a real life application please use the @banuba/webar npm package.
Banuba SDK for Flutter is available for iOS and Android and provides the following functionality:
- Load and interact with any Effect (including the
Makeup
effect). - Still image processing.
- Interaction with Camera (open/close, take photo, flashlight control, facing).
- Screen recording.
- Videocall powered by Agora.
If this is not enough, you should go with native integration.
Integration guide
- Android
- iOS
- Add
banuba_sdk
plugin:
flutter pub add banuba_sdk
- Add code from
the basic sample
into your app. Don't forget to
initialize
BanubaSdkManager
with the Client Token:
loading...
- Add
effects
folder into your project. Link it with your app: add the following code into appbuild.gradle
.
loading...
- Add
banuba_sdk
plugin:
flutter pub add banuba_sdk
- Link to Banuba SDK podspecs in
ios/Podfile
:
source 'https://github.com/sdk-banuba/banuba-sdk-podspecs.git'
- Add code from
the basic sample
into your app. Don't forget to
initialize
BanubaSdkManager
with the Client Token:
loading...
- Add
effects
folder into your project. Link it with your app: add the
folder intoRunner
Xcode project (File
->Add Files to 'Runner'...
).
Banuba SDK for React Native available for iOS and Android and provides the following functionality:
- Load and interact with any Effect (including
Makeup
effect). - Interaction with camera (open/close).
- Screen recording (screenshots and video).
- Videocall powered by Agora.
If this is not enough, you should go with native integration.
Integration guide
- Android
- iOS
- Add
@banuba/react-native
dependency
yarn add @banuba/react-native
- Add our Maven repository
loading...
- Add
effects
folder and add a task to copy them into app
loading...
- Copy code from this file into your app. Don't forget to intialize the SDK with the Client Token
loading...
- Add
@banuba/react-native
dependency
yarn add @banuba/react-native
- Add our podspecs repo to your
Podfile
loading...
-
Add
effects
folder and link it to Xcode project:(File -> Add Files to ...)
-
Copy code from this file into your app. Don't forget to intialize the SDK with the Client Token
loading...
The steps below apply to desktop integration (Windows and/or macOS) with C++.
-
Download Banuba SDK binaries from GitHub.
-
Integrate libraries downloaded on the previous step into your build system. If you use CMake, consider our quickstart-desktop-cpp sample.
Besides the Banuba SDK itself, you will require third party libraries from the bin
folder.
-
Create rendering context or copy and paste into your project ready-to-use helpers sources based on GLFW
-
Setup
BNB_CLIENT_TOKEN
loading...
- Initialize Banuba SDK with the Client Token and path to resources from the archive
with the binaries. Create
Player
,Camera
,Input
andOutput
and load the effect.
loading...
- Run the application! 🎉 🚀 💅
The effects are also resources, you may initialize Banuba SDK with several resource paths (one for effects and one for SDK assets).
Resources for MacOS are inside BanubaEffectPlayer.framework
.
Visit our FAQ or contact our support.