# Video Chat code sample for React Native for ConnectyCube platform
This README introduces [ConnectyCube](https://connectycube.com) Video Chat code sample for React Native
Project contains the following features implemented:
- User authorization
- Group video calls (up to 4 users)
- Mute/unmute microphone
- Switch cameras
- CallKit
## Documentation
ConnectyCube React Native getting started - [https://developers.connectycube.com/reactnative](https://developers.connectycube.com/reactnative)
ConnectyCube Video Chat API documentation - [https://developers.connectycube.com/reactnative/videocalling](https://developers.connectycube.com/reactnative/videocalling)
## Screenshots
<kbd><img alt="React Native video chat code sample, login" src="https://developers.connectycube.com/docs/_images/code_samples/reactnative/reactnative_codesample_video_login.PNG" width="200" /></kbd> <kbd><img alt="React Native video chat code sample, select users" src="https://developers.connectycube.com/docs/_images/code_samples/reactnative/reactnative_codesample_video_select_users.PNG" width="200" /></kbd> <kbd><img alt="React Native video chat code sample, video chat" src="https://developers.connectycube.com/docs/_images/code_samples/reactnative/reactnative_codesample_video_video.PNG" width="200" /></kbd>
## Getting started
To make the sample works for your own app, please do the following:
1. Clone the project
2. Install node_modules: `cd RNVideoChat && yarn`;
3. Register new account and application at `https://admin.connectycube.com` and then put Application credentials from 'Overview' page into `connectycube_config.json` file, like this:
```javascript
{
"name": "RNVideoChat",
"displayName": "RNVideoChat",
"senderID": "147299227261",
"connectyCubeConfig": [
{
"appId": 385,
"authKey": "DFBMs5-dKBBCXcd",
"authSecret": "SkCW-ThdnmRg9Za"
},
{
"chat": {
"streamManagement": {
"enable": true
}
},
"debug": {
"mode": 1
}
}
]
}
```
4. At `https://admin.connectycube.com`, create from 2 to 4 users in 'Users' module and put them into `src/config-users.js` file, like this:
```javascript
export const users = [
{
id: 1,
name: "User1",
login: "videouser1",
password: "videouser1",
color: "#34ad86"
},
{
id: 2,
name: "User2",
login: "videouser2",
password: "videouser2",
color: "#077988"
},
{
id: 3,
name: "User3",
login: "videouser3",
password: "videouser3",
color: "#13aaae"
},
{
id: 4,
name: "User4",
login: "videouser4",
password: "videouser4",
color: "#056a96"
}
];
```
(Optional) If you are at [Enterprise](https://connectycube.com/pricing/) plan - provide your API server and Chat server endpoints in `connectycube_config.json` file to point the sample against your own server:
```javascript
{
"chat": {
"streamManagement": {
"enable": true
}
},
"debug": {
"mode": 1
},
"endpoints": {
"api": "",
"chat": ""
},
}
```
5. In order to use push notifications on Android, you need to create `google-services.json` file and copy it into project's `android/app` folder. Also, you need to update the `applicationId` in `android/app/build.gradle` to the one which is specified in `google-services.json`, so they must match. If you have no existing API project yet, the easiest way to go about in creating one is using this [step-by-step installation process](https://firebase.google.com/docs/android/setup`)
6. In order for push notifications to work properly - it requires to do create a key/certificate and upload to ConnectyCube Admin panel. The complete guide is available here `https://developers.connectycube.com/reactnative/push-notifications`
7. Run `yarn ios` or `yarn android`.
## Can't build yourself?
Got troubles with building React Native code sample? Just create an issue at [Issues page](https://github.com/ConnectyCube/connectycube-reactnative-samples/issues)
没有合适的资源?快使用搜索试试~ 我知道了~
ReactNative、ConnectyCube的聊天和视频聊天代码示例_JavaScript_Java_下载.zip
共406个文件
png:118个
js:107个
xml:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 121 浏览量
2023-04-24
13:46:53
上传
评论
收藏 2.39MB ZIP 举报
温馨提示
ReactNative、ConnectyCube的聊天和视频聊天代码示例_JavaScript_Java_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
ReactNative、ConnectyCube的聊天和视频聊天代码示例_JavaScript_Java_下载.zip (406个子文件)
gradlew.bat 3KB
gradlew.bat 3KB
gradlew.bat 3KB
BUCK 1KB
BUCK 1KB
.buckconfig 114B
.buckconfig 114B
build_defs.bzl 602B
build_defs.bzl 602B
config 59B
config 59B
config 59B
MainComponentsRegistry.cpp 2KB
MainComponentsRegistry.cpp 2KB
MainApplicationTurboModuleManagerDelegate.cpp 1KB
MainApplicationTurboModuleManagerDelegate.cpp 1KB
MainApplicationModuleProvider.cpp 769B
MainApplicationModuleProvider.cpp 769B
OnLoad.cpp 381B
OnLoad.cpp 381B
Chat.entitlements 246B
RNVideoChat.entitlements 246B
.xcode.env 482B
.flowconfig 1KB
.flowconfig 1KB
Gemfile 168B
Gemfile 168B
Gemfile 158B
.gitignore 989B
.gitignore 968B
.gitignore 844B
.gitignore 844B
build.gradle 14KB
build.gradle 14KB
build.gradle 7KB
build.gradle 2KB
build.gradle 2KB
settings.gradle 797B
settings.gradle 639B
build.gradle 601B
settings.gradle 415B
gradlew 8KB
gradlew 8KB
gradlew 8KB
MainApplicationTurboModuleManagerDelegate.h 1KB
MainApplicationTurboModuleManagerDelegate.h 1KB
MainComponentsRegistry.h 908B
MainComponentsRegistry.h 901B
MainApplicationModuleProvider.h 321B
MainApplicationModuleProvider.h 321B
AppDelegate.h 196B
AppDelegate.h 196B
AppDelegate.h 98B
gradle-wrapper.jar 60KB
gradle-wrapper.jar 58KB
gradle-wrapper.jar 58KB
MainApplicationReactNativeHost.java 5KB
MainApplicationReactNativeHost.java 4KB
ReactNativeFlipper.java 3KB
ReactNativeFlipper.java 3KB
ReactNativeFlipper.java 3KB
MainApplication.java 3KB
MainApplication.java 3KB
MainApplication.java 2KB
MainApplicationTurboModuleManagerDelegate.java 2KB
MainApplicationTurboModuleManagerDelegate.java 2KB
MainActivity.java 1KB
MainActivity.java 1KB
MainComponentsRegistry.java 1KB
MainComponentsRegistry.java 1KB
MainActivity.java 1KB
ReactNativeFlipper.java 685B
call-service.js 15KB
chat-service.js 13KB
call-service.js 10KB
pushnotifications-service.js 9KB
groupDetails.js 8KB
index.js 7KB
index.js 6KB
index.js 6KB
initiate-call-screen.js 6KB
push-notification.js 6KB
ToolBar.js 5KB
index.js 4KB
message.js 4KB
createDialog.js 4KB
App.js 4KB
index.js 3KB
auth-service.js 3KB
login-screen.js 3KB
incoming-call-screen.js 3KB
index.js 3KB
RTCViewGrid.js 3KB
avatar.js 3KB
video-grid.js 3KB
AuthForm.js 3KB
video-toolbar.js 3KB
contactDetails.js 2KB
users-service.js 2KB
message.js 2KB
共 406 条
- 1
- 2
- 3
- 4
- 5
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功