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.
- In the project root folder, add the following variable in
.env
file:
VITE_MUSIC_MODE=true
- To start the application run the following command in the root directory
yarn dev
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.
- 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
- 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.
- Staying inside the
/api
directory, install all dependencies by running the following command
yarn
- 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.
Please visit this blog post if you want to explore adding a custom layout to your live stream.