Turn your phone's camera into a wireless webcam for your PC using WebRTC technology. This solution provides high-quality camera streaming that continues to work even after disconnecting from the initial server.
botCam creates a peer-to-peer connection between your phone and PC using WebRTC, allowing your phone's camera to function as a wireless webcam. The connection persists even after the signaling server is shut down, thanks to the direct WebRTC connection.
- Wireless camera streaming from phone to PC
- Multiple camera support (switch between front/back cameras)
- Video rotation capabilities
- Real-time stream monitoring and debugging tools
- Secure HTTPS connections with signed certificates
- Persistent connection (continues after server shutdown)
- NAT traversal using Google STUN servers
The system consists of three main components:
- Phone Client (phone.html): Handles camera access and WebRTC streaming
- PC Client (pc.html): Receives and displays the video stream
- Signaling Server: Facilitates initial connection establishment
- Both devices connect to the WebSocket signaling server
- Phone initiates WebRTC peer connection
- SDP and ICE candidate exchange occurs through the signaling server
- Direct P2P connection established between phone and PC
- Video streams directly from phone to PC
- Signaling server can be disconnected
- WebRTC (UDP connection)
- Node.js with Express
- WebSocket for signaling
- Google STUN servers for NAT traversal
- OpenSSL for certificate generation
- Python for certificate management
- Node.js
- Python 3.x
- OpenSSL
- Modern web browser with WebRTC support
- Phone with working camera
- OBS Studio installed in PC
- Clone the repository
- Install dependencies:
npm install
- Generate certificates using the provided Python script
- Start the signaling server:
node server.js
For detailed instructions on how to use botCam, please refer to How_To_Use_Guide_botCam.pdf
in the repository.
- HTTPS encryption for all connections
- Secure WebSocket (WSS) for signaling
- Custom certificate generation and management
- Direct P2P encryption for video streams
Contributions are welcome! Please feel free to submit a Pull Request.