Fix to arguments

This commit is contained in:
Fredrik Baberg 2022-07-07 19:19:57 +02:00
parent 5c06fa702b
commit 43720e9a75
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: "Camera-RTC" name: "Camera-RTC"
version: "2022.7.009" version: "2022.7.010"
slug: "camera-aiortc" slug: "camera-aiortc"
description: "Camera stream with support for WebRTC." description: "Camera stream with support for WebRTC."
url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/camera-rtc" url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/camera-rtc"

View File

@ -5,12 +5,11 @@
# ============================================================================== # ==============================================================================
declare -a options declare -a options
if bashio::config.has_value 'webrtc_arguments'; then
options+="$(bashio::config 'webrtc_arguments')"
fi
basio::log.info "Starting aiortc with arguments: '$options'" basio::log.info "Starting aiortc with arguments: '$options'"
if bashio::config.has_value 'webrtc_arguments'; then
options+="${bashio::config 'webrtc_arguments'}"
fi
# Run aiortc # Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}" exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"