try with snapcraft hooks

pull/214/head
mpromonet 4 years ago
parent 4e28bfbe02
commit 3b17aa6bfb

@ -0,0 +1,4 @@
#!/bin/sh -e
rtsp_port="$(snapctl get rtsp-port)"
echo "rtsp_port:$rtsp_port"

@ -0,0 +1,4 @@
#!/bin/sh -e
snapctl set rtsp-port=554
snapctl set devices=/dev/video0

@ -36,6 +36,6 @@
apps:
v4l2rtspserver:
command: v4l2rtspserver -b $SNAP/share/v4l2rtspserver/ -S
command: v4l2rtspserver -b $SNAP/share/v4l2rtspserver/ -S -P $(snapctl get rtsp_port)
daemon: simple
plugs: [network-bind]

Loading…
Cancel
Save