Using video calls with the Banuba SDK
In our example, AgoraRTC SDK is used for video streaming. But integration can be done based on any video streaming library. You can read more about Agora here.
Example of using video calling with the Banuba SDK
How To Run
- Get the client token for Banuba SDK. Please fill in our form on banuba.com website, or contact us via info@banuba.com.
- Open the the project.
- Download and import the Agora SDK package from Unity Asset Store with Unity Package Manager. If it is not available, contact Agora Support
- Download and import the BanubaSDK-import.unitypackage
- Visit agora.io to sign up and get a token, as well as an app and channel ID.
- Find the
Assets/Resources/BanubaClientToken.txt
and past your client token here. - Open the scene
VideoCallDemo/demo/MainScene.scene.
- Find the the VideoCanvas object in the scene and set AppID, Token, and your channel name in the properties of the DemoVideoCall script.
- Run the project in the Editor.
How It Works
- Initialize
AgoraSDK
inStart
method with methods below:
Assets/VideoCallDemo/demo/DemoVideoCall.cs
loading...
-
Initialize BanubaSDK. The MainScene.scene contains BanubaSDKManager reference from
BanubaSDK-import.unitypackage
-
Render Camera and any AR Effect with the
BNB.RenderToTexture.cs
to the RenderTexture
- Send Video Frames in
Update
method
Assets/VideoCallDemo/demo/DemoVideoCall.cs
loading...