Cleanup commit
This commit is contained in:
15
camera-rtc/rootfs/etc/services.d/aiortc/run
Normal file
15
camera-rtc/rootfs/etc/services.d/aiortc/run
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Add-on: aiortc
|
||||
# Runs aiortc
|
||||
# ==============================================================================
|
||||
declare -a options
|
||||
|
||||
if bashio::config.has_value 'webrtc_arguments'; then
|
||||
options+="$(bashio::config 'webrtc_arguments')"
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting aiortc..."
|
||||
|
||||
# Run aiortc
|
||||
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"
|
||||
Reference in New Issue
Block a user