To change the labels in the app, you can modify en.json and change the labels as necessary. To add a new string, add a new key-value pair to the JSON file. You can then reference that new key in the code as follows:
// en.json
{
//... other keys
"yourNewKey" : "your new value",
}
// your own code file
import {Text} from '@dolbyio/comms-uikit-react';
<Text labelKey="yourNewKey" type="H2" />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
.envfile:
VITE_MUSIC_MODE=trueYou can learn more about music mode on our docs pages 2. To start the application run the following command in the root directory
yarn devIn 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 /backend folder.
If your application has been started in previous steps, please kill the process and proceed with instructions below.
- In the project root folder's
.envfile set the following variable
VITE_RTMP_STREAMING=trueYou can set any value for port and hostname in the .env files, as long as they are the same.
The app theme is controlled by the Dolby.io UI Kit. Refer to this guide on how to stylize your app.
You can re-arrange the rendered layout for your live stream viewers by configuring the Communications API Mixer app. A mixer app is a web app based on the Dolby.io communications APIs that composes multiple streams of videos into a single stream and passes that on to any RTMP or webRTC based consumer. Refer to this blog for more details.