Starting Stream Configurator UI
The Stream Configurator UI makes quick and easy passline configuration and management possible.
Setting Up Stream Configurator UI
To set up the Stream Configurator UI, run config.sh
in base mode.
This runs the generate_stream_configurator_ui.sh
script with default settings,
intended to work with the default UVAP configuration.
The UI can be built with a custom configuration by directly calling
generate_stream_configurator_ui.sh
. Use the provided parameters to specify the
output location and the Docker image used for the process.
Running config.sh
Note: For Stream Configurator UI to be built, the
--demo-mode
argument has to be set tobase
.
Building the UI this way results in the followings:
- The properties file is read from
../config
. - The UI is generated to location
../ui
. - The Docker image used to generate the UI is determined automatically by Git tags.
The following arguments provided to config.sh
can be used to configure the UI:
Argument | --host-name |
---|---|
Description | Sets host name |
Requirement | Optional |
Default Value | localhost |
Argument | --web-player-port-number |
---|---|
Description | Sets port number |
Requirement | Optional |
Default Value | 9999 |
Running generate_stream_configurator_ui.sh
Stream Configurator UI can also be built by running generate_stream_configurator_ui.sh
.
Use with the --help
parameter to get more details.
Starting the Stream Configurator UI service
Prerequisites
To be able to display the video stream and topics, make sure the following components are up and running:
Note It is important that the components are started up in this order.
To start the components:
Start Zookeeper:
$ docker run --net=uvap -d --name=zookeeper \ -e ZOOKEEPER_CLIENT_PORT=2181 ultinous/cp-zookeeper:5.4.0
Start Kafka:
$ docker run --net=uvap -d -p 9092:9092 --name=kafka \ -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 \ -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092 \ -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \ -e KAFKA_MESSAGE_MAX_BYTES=10485760 \ -e KAFKA_LOG_SEGMENT_DELETE_DELAY_MS=1000 \ -e ZOOKEEPER_CLIENT_PORT=2181 \ ultinous/cp-kafka:5.4.0
Start MGR:
$ "${UVAP_HOME}"/scripts/run_mgr.sh -- --net=uvap
Attention First startup of MGR can be slow. Please consult Starting Multi-Graph Runner for details.
Start Web player:
$ "${UVAP_HOME}"/scripts/run_uvap_web_player.sh -- --net uvap
Starting the UI
Only Google Chrome™ version 76 and later is supported.
Google Chrome™ version check:
$ google-chrome --version
Google Chrome™ install process:
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb $ sudo dpkg -i google-chrome-stable_current_amd64.deb
Stream Configurator UI can be started by opening in a web browser:
$ google-chrome ${UVAP_HOME}/ui/uvap_stream_configurator_ui/index.html
See the Stream Configurator UI Guide for further information on the settings and usage of the Stream Configurator UI.