aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/control-server
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-12-06 20:28:02 +0100
committerMaZderMind <git@mazdermind.de>2015-12-06 20:28:57 +0100
commit39c8cb3a0e3813ef77c61c601d0028281c04ad2d (patch)
tree8e4798e9b70732f1c28f180457e962c63f1a20ec /example-scripts/control-server
parentb2b0e458a59ef8ede58b369a5d5194939021165d (diff)
[example-scripts] overhaul and test all example scripts, fixes #5
Diffstat (limited to 'example-scripts/control-server')
-rwxr-xr-xexample-scripts/control-server/demo-cycle-modes.sh42
-rwxr-xr-xexample-scripts/control-server/set-audio-cam1.sh2
-rwxr-xr-xexample-scripts/control-server/set-audio-cam2.sh2
-rwxr-xr-xexample-scripts/control-server/set-composite-fullscreen.sh2
-rwxr-xr-xexample-scripts/control-server/set-composite-picture-in-picture.sh2
-rwxr-xr-xexample-scripts/control-server/set-composite-side-by-side-equal.sh2
-rwxr-xr-xexample-scripts/control-server/set-composite-side-by-side-preview.sh2
-rwxr-xr-xexample-scripts/control-server/set-stream-blank-nostream.sh2
-rwxr-xr-xexample-scripts/control-server/set-stream-blank-pause.sh2
-rwxr-xr-xexample-scripts/control-server/set-stream-live.sh2
-rwxr-xr-xexample-scripts/control-server/set-video-cam1.sh2
-rwxr-xr-xexample-scripts/control-server/set-video-cam2.sh2
-rwxr-xr-xexample-scripts/control-server/set-video-grabber.sh2
13 files changed, 66 insertions, 0 deletions
diff --git a/example-scripts/control-server/demo-cycle-modes.sh b/example-scripts/control-server/demo-cycle-modes.sh
new file mode 100755
index 0000000..b626b28
--- /dev/null
+++ b/example-scripts/control-server/demo-cycle-modes.sh
@@ -0,0 +1,42 @@
+while true; do
+ sleep 10
+ echo "composite-picture-in-picture"
+ ./set-composite-picture-in-picture.sh
+ sleep 10
+ echo "audio/video cam2"
+ ./set-video-cam2.sh
+ ./set-audio-cam2.sh
+ sleep 10
+ echo "composite-side-by-side-preview"
+ ./set-composite-side-by-side-preview.sh
+ sleep 10
+ echo "audio/video cam1"
+ ./set-audio-cam1.sh
+ ./set-video-cam1.sh
+ sleep 10
+ echo "composite-fullscreen"
+ ./set-composite-fullscreen.sh
+ sleep 10
+ echo "audio/video cam2"
+ ./set-audio-cam2.sh
+ ./set-video-cam2.sh
+ sleep 10
+ echo "audio/video cam1"
+ ./set-video-cam1.sh
+ ./set-audio-cam1.sh
+ sleep 10
+ echo "composite-side-by-side-equal"
+ ./set-composite-side-by-side-equal.sh
+ sleep 10
+ echo "audio/video cam2"
+ ./set-video-cam2.sh
+ ./set-audio-cam2.sh
+ sleep 10
+ echo "composite-picture-in-picture"
+ ./set-composite-picture-in-picture.sh
+ sleep 10
+ echo "audio/video cam1, composite-fullscreen"
+ ./set-video-cam1.sh
+ ./set-audio-cam1.sh
+ ./set-composite-fullscreen.sh
+done
diff --git a/example-scripts/control-server/set-audio-cam1.sh b/example-scripts/control-server/set-audio-cam1.sh
new file mode 100755
index 0000000..19d3b8e
--- /dev/null
+++ b/example-scripts/control-server/set-audio-cam1.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_audio cam1 | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-audio-cam2.sh b/example-scripts/control-server/set-audio-cam2.sh
new file mode 100755
index 0000000..9177772
--- /dev/null
+++ b/example-scripts/control-server/set-audio-cam2.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_audio cam2 | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-composite-fullscreen.sh b/example-scripts/control-server/set-composite-fullscreen.sh
new file mode 100755
index 0000000..850e591
--- /dev/null
+++ b/example-scripts/control-server/set-composite-fullscreen.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_composite_mode fullscreen | nc -q0 localhost 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
new file mode 100755
index 0000000..eae3bea
--- /dev/null
+++ b/example-scripts/control-server/set-composite-picture-in-picture.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_composite_mode picture_in_picture | nc -q0 localhost 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
new file mode 100755
index 0000000..37e3357
--- /dev/null
+++ b/example-scripts/control-server/set-composite-side-by-side-equal.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_composite_mode side_by_side_equal | nc -q0 localhost 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
new file mode 100755
index 0000000..dd8a04b
--- /dev/null
+++ b/example-scripts/control-server/set-composite-side-by-side-preview.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_composite_mode side_by_side_preview | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-stream-blank-nostream.sh b/example-scripts/control-server/set-stream-blank-nostream.sh
new file mode 100755
index 0000000..abdab4b
--- /dev/null
+++ b/example-scripts/control-server/set-stream-blank-nostream.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_stream_blank nostream | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-stream-blank-pause.sh b/example-scripts/control-server/set-stream-blank-pause.sh
new file mode 100755
index 0000000..abf3580
--- /dev/null
+++ b/example-scripts/control-server/set-stream-blank-pause.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_stream_blank pause | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-stream-live.sh b/example-scripts/control-server/set-stream-live.sh
new file mode 100755
index 0000000..e2584c8
--- /dev/null
+++ b/example-scripts/control-server/set-stream-live.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_stream_live | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-video-cam1.sh b/example-scripts/control-server/set-video-cam1.sh
new file mode 100755
index 0000000..d02b385
--- /dev/null
+++ b/example-scripts/control-server/set-video-cam1.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_video_a cam1 | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-video-cam2.sh b/example-scripts/control-server/set-video-cam2.sh
new file mode 100755
index 0000000..c953ade
--- /dev/null
+++ b/example-scripts/control-server/set-video-cam2.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_video_a cam2 | nc -q0 localhost 9999
diff --git a/example-scripts/control-server/set-video-grabber.sh b/example-scripts/control-server/set-video-grabber.sh
new file mode 100755
index 0000000..ee39c3b
--- /dev/null
+++ b/example-scripts/control-server/set-video-grabber.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo set_video_a grabber | nc -q0 localhost 9999