项目作者: philnash

项目描述 :
A demo of Twilio Video for the Build your first Twilio Video application webinar.
高级语言: JavaScript
项目地址: git://github.com/philnash/first-twilio-video-application.git
创建时间: 2020-05-11T08:32:19Z
项目社区:https://github.com/philnash/first-twilio-video-application

开源协议:MIT License

下载


Build your first Twilio Video application

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

Running the demo

You will need Node.js installed to run this demo.

Download the code

Start by cloning or downloading the repo:

  1. git clone https://github.com/philnash/first-twilio-video-application.git

Install the dependencies

Change into the directory and install the dependencies:

  1. cd first-twilio-video-application
  2. npm install

Set up environment variables

Copy the .env.example file into .env.

  1. 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.

Run the application

To start the application, run:

  1. npm start

Then visit http://localhost:3000/index.html.

Enter your name in the box and join the video chat room.