Skip to content

Commit

Permalink
Merge pull request #95 from twilio/VIDEO-7546-setup-proxy
Browse files Browse the repository at this point in the history
Video 7546 setup proxy
  • Loading branch information
olipyskoty committed Feb 15, 2022
2 parents f207208 + e8e1a41 commit 9240aba
Show file tree
Hide file tree
Showing 36 changed files with 132 additions and 3,428 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


# WEB_PROXY_URL is used for local development with the 'npm start' command.
# To get a URL, first deploy the app with 'npm run serverless:deploy'.
# Then take note of the URL that is printed to the console. Do not include
# the passcode.
# WEB_PROXY_URL=https://twilio-live-interactive-video-1234-5678-dev.twil.io

# Uncomment to run in stage environment.
# Must also use correct credentials for stage.
# REACT_APP_TWILIO_ENVIRONMENT=stage
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ If you make any changes to this application, you can run `npm run serverless:rem

**NOTE:** The Twilio Function that provides access tokens via a passcode should _NOT_ be used in a production environment. This token server supports seamlessly getting started with the collaboration app, and while convenient, the passcode is not secure enough for production environments. You should use an authentication provider to securely provide access tokens to your client applications. You can find more information about Programmable Video access tokens [in this tutorial](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens).

The passcode will expire after one week. To generate a new passcode, run `npm run serverless:deploy -- --override`.
The passcode will expire after one week. To generate a new passcode, run `npm run serverless:deploy -- --override`. Additionally, you may run `npm run serverless:list` to see your deployed app's URL and passcode, or you can run `npm run serverless:remove` to delete the Serverless app from Twilio.

#### Max Stream Duration

Expand All @@ -65,6 +65,12 @@ If you join a stream as an audience member, you can raise your hand to request t

The application uses the [`video-composer-v1` Media Extension](https://www.twilio.com/docs/live/video-composer), which formats the Video Room contents in a responsive grid for streaming to audience members. People viewing the live stream will see all of the Video Room participants, and the grid will change as participants enter or exit.

#### Web app local development

To run the web app locally, you must first deploy the backend functions to Twilio Serverless. First, run `npm run serverless:deploy`, and then copy the URL of the deployed app to your `.env` file as the `WEB_PROXY_URL` variable (see [.env.example](.env.example) for an example). Then, run `npm run develop:web` to start the local development server. Any API requests made by the locally running app will be proxied to the URL provided as the `WEB_PROXY_URL`.

If you want to edit the functions that have been deployed to Twilio Serverless, you can do so in the [Twilio Console Functions Editor](https://www.twilio.com/changelog/all-new-functions-and-assets-ui-now-available).

### Run the iOS App

#### Open the Project in Xcode
Expand Down
38 changes: 0 additions & 38 deletions apps/web/.env.example

This file was deleted.

22 changes: 0 additions & 22 deletions apps/web/.gcloudignore

This file was deleted.

161 changes: 0 additions & 161 deletions apps/web/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 9240aba

Please sign in to comment.