A React frontend for real-time audio/video calling using WebRTC.
- User authentication (with context)
- Audio and video call interface
- Mute/unmute microphone and camera
- Call duration and status indicators
- User avatars and call controls
- Remote/local stream management
- React (with hooks)
- TypeScript
- WebRTC for real-time media
- Tailwind CSS for styling
- Lucide-react for icons
- Node.js (v16+ recommended)
- npm or yarn
git clone https://github.com/your-username/webRTC-call-frontend.git
cd webRTC-call-frontend
npm install
# or
yarn installnpm start
# or
yarn startThe app will run at http://localhost:3000.
npm run build
# or
yarn buildsrc/
components/ # React components (CallInterface, etc.)
contexts/ # React context (AuthContext)
services/ # API and WebRTC logic
App.tsx # Main app entry
index.tsx # ReactDOM entry
Authentication state is managed via React Context (AuthContext). User and token are stored in localStorage.
- Video and audio calls are supported.
- Local and remote streams are handled via refs.
- Mute/unmute and camera toggle supported.
- Call duration and audio status are displayed.
MIT
Note: This is only the frontend. You need a compatible backend signaling server for WebRTC to function.