diff --git a/camera-rtc/config.yaml b/camera-rtc/config.yaml index 81e07e9..cca5bfe 100644 --- a/camera-rtc/config.yaml +++ b/camera-rtc/config.yaml @@ -1,5 +1,5 @@ name: "Camera-RTC" -version: "2022.7.009" +version: "2022.7.010" slug: "camera-aiortc" description: "Camera stream with support for WebRTC." url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/camera-rtc" diff --git a/camera-rtc/rootfs/etc/services.d/aiortc/run b/camera-rtc/rootfs/etc/services.d/aiortc/run index 6d5c4ee..b868443 100644 --- a/camera-rtc/rootfs/etc/services.d/aiortc/run +++ b/camera-rtc/rootfs/etc/services.d/aiortc/run @@ -5,12 +5,11 @@ # ============================================================================== 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'" -if bashio::config.has_value 'webrtc_arguments'; then - options+="${bashio::config 'webrtc_arguments'}" -fi - # Run aiortc exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"