Fix to arguments
This commit is contained in:
parent
5c06fa702b
commit
43720e9a75
@ -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"
|
||||||
|
|||||||
@ -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[@]}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user