Build a Live Streaming App in Python

Create a virtual environment

pip3 install virtualenv
virtualenv venv
source venv/bin/activate

Install dependencies

pip3 install -r requirements.txt

Create a free OpenTok account and get API key and secret

https://tokbox.com/account/user/signup

Set Environmental Variables inside your vonage_unlocked directory

vim .env
API_KEY = 'Your OpenTok API Key'
API_SECRET = 'Your OpenTok API Secret'
:x enter

Run app.py

Open http://127.0.0.1:5000/admin in your web browser and create admin to stream with

Go to http://127.0.0.1:5000 in a new browser to view live stream