aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/control-server
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-02-27 20:54:00 +0000
committerJonas Smedegaard <dr@jones.dk>2017-02-27 20:54:00 +0000
commit6ce57b47f050c39fbf28f4af639ef19608a74cfa (patch)
treeb6ef01437b5b8d9f0038ce9965792f7e69eb86f1 /example-scripts/control-server
parentf953824dd2a18f15c2beeb5bd792f5f13fb75a44 (diff)
Use voctobox (not localhost) as voctocore host.
Diffstat (limited to 'example-scripts/control-server')
-rwxr-xr-xexample-scripts/control-server/set-audio-cam1.sh9
-rwxr-xr-xexample-scripts/control-server/set-audio-cam2.sh9
-rwxr-xr-xexample-scripts/control-server/set-composite-fullscreen.sh9
-rwxr-xr-xexample-scripts/control-server/set-composite-picture-in-picture.sh9
-rwxr-xr-xexample-scripts/control-server/set-composite-side-by-side-equal.sh9
-rwxr-xr-xexample-scripts/control-server/set-composite-side-by-side-preview.sh9
-rwxr-xr-xexample-scripts/control-server/set-stream-blank-nostream.sh9
-rwxr-xr-xexample-scripts/control-server/set-stream-blank-pause.sh9
-rwxr-xr-xexample-scripts/control-server/set-stream-live.sh9
-rwxr-xr-xexample-scripts/control-server/set-video-cam1.sh9
-rwxr-xr-xexample-scripts/control-server/set-video-cam2.sh9
-rwxr-xr-xexample-scripts/control-server/set-video-grabber.sh9
12 files changed, 96 insertions, 12 deletions
diff --git a/example-scripts/control-server/set-audio-cam1.sh b/example-scripts/control-server/set-audio-cam1.sh
index 19d3b8e..a419636 100755
--- a/example-scripts/control-server/set-audio-cam1.sh
+++ b/example-scripts/control-server/set-audio-cam1.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_audio cam1 | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_audio cam1 | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-audio-cam2.sh b/example-scripts/control-server/set-audio-cam2.sh
index 9177772..0e6cb00 100755
--- a/example-scripts/control-server/set-audio-cam2.sh
+++ b/example-scripts/control-server/set-audio-cam2.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_audio cam2 | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_audio cam2 | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-composite-fullscreen.sh b/example-scripts/control-server/set-composite-fullscreen.sh
index 850e591..c2dbcd9 100755
--- a/example-scripts/control-server/set-composite-fullscreen.sh
+++ b/example-scripts/control-server/set-composite-fullscreen.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_composite_mode fullscreen | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_composite_mode fullscreen | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-composite-picture-in-picture.sh b/example-scripts/control-server/set-composite-picture-in-picture.sh
index eae3bea..25462cc 100755
--- a/example-scripts/control-server/set-composite-picture-in-picture.sh
+++ b/example-scripts/control-server/set-composite-picture-in-picture.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_composite_mode picture_in_picture | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_composite_mode picture_in_picture | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-composite-side-by-side-equal.sh b/example-scripts/control-server/set-composite-side-by-side-equal.sh
index 37e3357..8b655ad 100755
--- a/example-scripts/control-server/set-composite-side-by-side-equal.sh
+++ b/example-scripts/control-server/set-composite-side-by-side-equal.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_composite_mode side_by_side_equal | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_composite_mode side_by_side_equal | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-composite-side-by-side-preview.sh b/example-scripts/control-server/set-composite-side-by-side-preview.sh
index dd8a04b..c596324 100755
--- a/example-scripts/control-server/set-composite-side-by-side-preview.sh
+++ b/example-scripts/control-server/set-composite-side-by-side-preview.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_composite_mode side_by_side_preview | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_composite_mode side_by_side_preview | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-stream-blank-nostream.sh b/example-scripts/control-server/set-stream-blank-nostream.sh
index abdab4b..8f7e606 100755
--- a/example-scripts/control-server/set-stream-blank-nostream.sh
+++ b/example-scripts/control-server/set-stream-blank-nostream.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_stream_blank nostream | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_stream_blank nostream | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-stream-blank-pause.sh b/example-scripts/control-server/set-stream-blank-pause.sh
index abf3580..c41ff56 100755
--- a/example-scripts/control-server/set-stream-blank-pause.sh
+++ b/example-scripts/control-server/set-stream-blank-pause.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_stream_blank pause | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_stream_blank pause | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-stream-live.sh b/example-scripts/control-server/set-stream-live.sh
index e2584c8..e7479f0 100755
--- a/example-scripts/control-server/set-stream-live.sh
+++ b/example-scripts/control-server/set-stream-live.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_stream_live | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_stream_live | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-video-cam1.sh b/example-scripts/control-server/set-video-cam1.sh
index d02b385..e6e70bb 100755
--- a/example-scripts/control-server/set-video-cam1.sh
+++ b/example-scripts/control-server/set-video-cam1.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_video_a cam1 | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_video_a cam1 | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-video-cam2.sh b/example-scripts/control-server/set-video-cam2.sh
index c953ade..4b91fe8 100755
--- a/example-scripts/control-server/set-video-cam2.sh
+++ b/example-scripts/control-server/set-video-cam2.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_video_a cam2 | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_video_a cam2 | nc -q0 $MIXHOST 9999
diff --git a/example-scripts/control-server/set-video-grabber.sh b/example-scripts/control-server/set-video-grabber.sh
index ee39c3b..6413b8d 100755
--- a/example-scripts/control-server/set-video-grabber.sh
+++ b/example-scripts/control-server/set-video-grabber.sh
@@ -1,2 +1,9 @@
#!/bin/sh
-echo set_video_a grabber | nc -q0 localhost 9999
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
+echo set_video_a grabber | nc -q0 $MIXHOST 9999