http: add --http-listen=<ip4>, and listen by default on 127.0.0.1 (#81)

Co-authored-by: AndrolGenhald <AndrolGenhald@gmail.com>
This commit is contained in:
Kamil Trzciński
2023-07-01 16:38:36 +02:00
committed by GitHub
parent f1966ab2b9
commit 8d0c04ccd5
12 changed files with 37 additions and 6 deletions

View File

@ -22,6 +22,7 @@ fi
set -xeo pipefail
make -j$(nproc)
$GDB ./camera-streamer -camera-path="${CAMERA_PATH[0]}" \
--http-listen=0.0.0.0 \
-camera-options=vertical_blanking=728 \
-camera-options=exposure=2444 \
-camera-options=analogue_gain=600 \

View File

@ -6,6 +6,7 @@ cd "$SCRIPT_DIR/.."
set -xeo pipefail
make -j$(nproc)
$GDB ./camera-streamer \
--http-listen=0.0.0.0 \
-camera-type=libcamera \
-camera-format=YUYV \
"$@"

View File

@ -7,4 +7,7 @@ CAMERA_PATH=( $(echo /dev/v4l/by-id/usb-*-video-index0) )
set -xeo pipefail
make -j$(nproc)
$GDB ./camera-streamer -camera-path="${CAMERA_PATH[${CAMERA_INDEX:-0}]}" "$@"
$GDB ./camera-streamer \
-camera-path="${CAMERA_PATH[${CAMERA_INDEX:-0}]}"
--http-listen=0.0.0.0 \
"$@"