Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moshfeu/mobile-as-webcam
Turn your mobile phone into webcam using socket and webRCT
https://github.com/moshfeu/mobile-as-webcam
nodejs webcam webrtc
Last synced: 3 months ago
JSON representation
Turn your mobile phone into webcam using socket and webRCT
- Host: GitHub
- URL: https://github.com/moshfeu/mobile-as-webcam
- Owner: moshfeu
- Created: 2020-03-22T09:15:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-22T20:11:02.000Z (8 months ago)
- Last Synced: 2024-06-23T02:48:06.386Z (8 months ago)
- Topics: nodejs, webcam, webrtc
- Language: JavaScript
- Size: 557 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Turn your mobile phone into webcam even without internet connection using websocket and webRTC
Based on https://github.com/Miczeq22/simple-chat-app
## Installation
1. `mkdir security && cd security`
2. Create `cert.pem` and `key.pem`
You can use `openssl` and
```
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
openssl rsa -in keytmp.pem -out key.pem
```
3. `yarn`
4. `yarn start`Your console should prting
```
Server is listening on https://localhost:5000,
or on your network https://[your-local-network-ip]:5000
```## How to use?
Make sure that both of the devices are on the same network
**In the "webcam" device**
1. Go to `https://[your-local-network-ip]:5000/webcam.html` (ignore the security warning if any)
2. Click on the ⏺ button and allow the browser to access the device's camera**In the "viewer" device**
1. Go to `https://[your-local-network-ip]:5000` (ignore the security warning if any)
2. Click on the "play" button in the video