video-connect-ui
v1.0.6-alpha.1
Published
This is a Simple UI for Video Chat App using WebRTC and Socket.io. Follow the steps below to run the app.
Downloads
5
Readme
Video connect
This is a Simple UI for Video Chat App using WebRTC and Socket.io. Follow the steps below to run the app.
Steps to run the app
- Install the library using npm or using yarn
npm install video-connect-ui
yarn add video-connect-ui
- Import the library in your project
import {JoinMeet} from 'video-connect-ui'
- Use the component in your project
<JoinMeet />
- Create room on the server side and pass the room id to the component
< JoinMeet roomId="room1" baseURL="https://meet.passwordless.com.au:4516/api" socketURL="https://meet.passwordless.com.au:4515" />
Props
| Prop | Type | Default | Description | | --- | --- | --- | --- | | socketUrl | string | " " | Socket URL | | logo | string | " " | Logo URL | | baseURL | string | " " | Base URL | | roomId | string | " "| Room ID | | role | string | 'participant' | Role of the user 'host' or 'participant' | | name | string | " " | Name of the user | | email | string | " " | Email of the user | | styles | object | {} | Styles for the component | | onDisconnect | function | () => {} | Callback function when the user disconnects | | iceServers | array | [] | ICE servers for WebRTC |