1.0.6-alpha.1 • Published 2 years ago

video-connect-ui v1.0.6-alpha.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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

  1. Install the library using npm or using yarn
npm install video-connect-ui

yarn add video-connect-ui
  1. Import the library in your project
import {JoinMeet} from 'video-connect-ui'
  1. Use the component in your project
<JoinMeet />
  1. 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

PropTypeDefaultDescription
socketUrlstring" "Socket URL
logostring" "Logo URL
baseURLstring" "Base URL
roomIdstring" "Room ID
rolestring'participant'Role of the user 'host' or 'participant'
namestring" "Name of the user
emailstring" "Email of the user
stylesobject{}Styles for the component
onDisconnectfunction() => {}Callback function when the user disconnects
iceServersarray[]ICE servers for WebRTC

Author