This is a code sample for QuickBlox platform. It is a great way for developers using QuickBlox platform to learn how to integrate audio and video calling features into your application.
- Login/logout
- Make and receive 1-to-1 and group audio call
- Make and receive 1-to-1 and group video call
- Search for users to make a call with
- Mute/unmute the microphone
- Display a list of call participants and their statuses
- Switch speaker
- Switch camera
- Mirror local video
QuickBlox application includes everything that brings messaging right into your application - chat, video calling, users, push notifications, etc. To create a QuickBlox application, follow the steps below:
- Register a new account following this link. Type in your email and password to sign in. You can also sign in with your Google or Github accounts.
- Create the app clicking New app button.
- Configure the app. Type in the information about your organization into corresponding fields and click Add button.
- Go to Dashboard => YOUR_APP => Overview section and copy your Application ID, Authorization Key, Authorization Secret, and Account Key.
- Setup the React Native environment.
- Clone repository with the sample.
- Open a terminal and enter the commands below in your project path.
npm install
- Extra steps for iOS: in file
ios/Podfile
changeplatform
to12
platform :ios, '12.0'
then in terminal run
cd ios
pod install
- Get appId, authKey, authSecret, accountKey from your app and put these values in
src/QBConfig.js
file .
export default {
appId: xxxxxxx,
authKey: 'xxxxxxxxxxxxxxx',
authSecret: 'xxxxxxxxxxxxx',
accountKey: 'xxxxxxxxxxxx',
apiEndpoint: '',
chatEndpoint: '',
}
- Run the code sample.
react-native run-android
ORreact-native run-ios
Please note, processing of incoming calls in the background is not implemented in this sample. This functionality will be developed later, meanwhile, you can implement it in your way.