A demo of Twilio Video for the Build your first Twilio Video application webinar.
This application shows a multiparty group chat that does the following:
- Creates a Twilio Video group room using the REST API
- Creates an Access Token that can access the room
- Has an interface that asks for a username and uses it to request the token from the server
- Joins the Video room and adds all participants' video streams to the page
You will need Node.js installed to run this demo.
Start by cloning or downloading the repo:
git clone https://github.com/philnash/first-twilio-video-application.git
Change into the directory and install the dependencies:
cd first-twilio-video-application
npm install
Copy the .env.example
file into .env
.
cp .env.example .env
Fill in your Twilio Account SID and Auth Token which you can find in the Twilio console.
Create an API Key and Secret in the Twilio console and add them to the .env
file.
To start the application, run:
npm start
Then visit https://localhost:3000/index.html.
Enter your name in the box and join the video chat room.