Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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