Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 2.16 KB

additional-configurations.md

File metadata and controls

73 lines (47 loc) · 2.16 KB

Additional Configuration Options for the Video Call App

Base URL configuration

In the event that you need to serve production content from a path other than / root, (e.g. extend example.app to example.app/videoconference/) please add the /.env.production file with the following content:

BASE_URL=<YOUR BASE URL PATH>

Additional information about Base URL configuration can be found here.

Setting up music mode

  1. In the project root folder, add the following variable in .env file:
VITE_MUSIC_MODE=true
  1. To start the application run the following command in the root directory
yarn dev

Using live streaming features

In order to use live streaming features, you need to run an additional proxy server so that POST methods can be properly handled. An example of such a server is placed in the /api folder.

If your application has been started in previous steps, please kill the process and proceed with instructions below.

Setting up live streaming

  1. In the project root folder, create an .env file and add the following variables
VITE_API_PROXY=localhost
VITE_PROXY_PORT=4000
VITE_PROXY_PROTOCOL=http
VITE_STREAMING=true
  1. In the /api directory, create an .env file and fill it with the following properties.
PORT=4000
KEY=APP_KEY
SECRET=APP_SECRET
HOSTNAME=localhost

Your APP_KEY and APP_SECRET can be found in your Dolby.io dashboard, under the app section. Do not wrap them in quote marks.

Keys and secrets

  1. Staying inside the /api directory, install all dependencies by running the following command
yarn
  1. To start both the server and application together, run the following command in the root directory:
yarn run dev-proxy

You can set any value for port and hostname in the .env files, as long as they are the same.

Adding Custom layouts to your live stream

Please visit this blog post if you want to explore adding a custom layout to your live stream.