-
Install and make a venv:
Install -
sudo apt-get install python3-venv
Make -
python3 -m venv rtc_env
source rtc_env/bin/activate
pip install -U pip
-
Install AIORTC, AIOHTTP and opencv:
pip install aiohttp aiortc opencv-contrib-python
-
Install dependencies:
sudo apt-get install build-essential python3-numpy python3-cffi python3-aiohttp \ libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \ libswscale-dev libswresample-dev libavfilter-dev libopus-dev \ libvpx-dev pkg-config libsrtp2-dev python3-opencv pulseaudio
-
Install rtcbot library:
pip install rtcbot
-
Clone the repository and cd into the dir.
-
Run
python m_kb_svr.py
in one terminal. OR run it on a server Instance as applicable. -
Run
python remote_box.py
in other terminal after making sure the Websocket is correctly defined in the file as per use case. -
Open http://Your_Server_Public_IPv4_Address:8080/{remote-name} if running on server OR http://localhost:8080/{remote-name} if running on local network.