Sendbird Calls for Unity enables group calls using real time audio among users within your Sendbird-integrated app. Our development kit can initialize, configure, and build group call functionality in your Unity app.
The minimum requirements for Calls SDK for Unity are:
Unity 2019.4 or higher
Note: Sendbird Calls SDK for Unity supports iOS, Android, Windows, and macOS. The SDK doesn't support 32-bit versions or iOS simulators.
You can start Group call by installing Sendbird Calls for Unity.
You can install Calls for Unity by following the steps below:
Select Package Manager in the menu bar.
Click the + button at the top left of the window. Then, select Add package from git URL...
SendbirdCallsinto your package repository with the following URL:
Click Add button to start the installation of the package.
Once the package has been added, create a new source code file and add the following code at the top to start using Sendbird Calls SDK.
To integrate and run Sendbird Calls in your application, you need to initialize it first. Initialize the
SendBirdCall instance by using the
APP_ID of your Sendbird application, which can be found on the Sendbird Dashboard after creating an application. If the instance is initialized with a different
APP_ID, all existing call-related data in a client app will be cleared and the
SendBirdCall instance will be initialized again with the new
Note: Each Sendbird application can be integrated with a single client app. Within the same application, users can communicate with each other across all platforms, whether they are on mobile devices or on the web.
To start a group call, authenticate a user to Sendbird server by using their user ID through the
To start a group call, you need to create a room, which can support up to 100 participants with audio. You can create a room as shown below and once it has been created, a room ID will be generated.
You can now enter a room and start your first group call. When you enter a room, a participant is created with a unique participant ID to represent the user in the room.
To enter a room, you must acquire the room instance from Sendbird server with the room ID. To fetch the most up-to-date room instance from Sendbird server, use the
SendbirdCall.FetchRoomById() method. Also, you can use the
SendbirdCall.GetCachedRoomById() method that returns the most recently cached room instance from Sendbird Calls SDK.
You can also enter a room by using the room instance that is returned after calling
Note: A user can enter the room using multiple devices or browser tabs. Entering from each device or browser tab will create a new participant.
Once the room is retrieved, call the
SbRoom.Enter() method to enter the room.
Note: Share the room ID with other users for them to enter the room from the client app.
To access camera and microphone when building client app using iOS and macOS, go to PlayerSettings and add Microphone Usage Description. If description is left empty, build fails.