Frontend Project for Stage Stream: A zero-latency streaming solution built on MediaMTX.
Follow the Setup Guide for detailed instructions.
- NodeJS: Version 20 or newer
- TypeScript
-
Install Dependencies:
npm install
-
Build the Project:
Run the TypeScript compiler:npm tsc
To enable watch mode for automatic rebuilds:
npm tsc -w
-
Start the Development Server:
Use the following command to start the frontend development server:npm start
There are two ways to configure the environment:
- Edit the
defaults.jsonfile: Located in thesrc/directory. - Set Environment Variables: Use your system or
.envfile.
| Variable | Description |
|---|---|
| WEB_PORT | Port for the development server to bind to. |
| Variable | Description |
|---|---|
| STREAM_URL | URL where MediaMTX runs. |
| API_URL | URL where the backend API runs. |
The compiled project will be placed in the /build folder after building.