diff options
author | MaZderMind <github@mazdermind.de> | 2015-05-25 16:36:55 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-05-25 16:36:55 +0200 |
commit | ad995edffb27d8cc0dd25c1a443cb38f1c678ec2 (patch) | |
tree | bb79119b74a45a4bfedb88758690a3d1e7663c98 /voctocore | |
parent | b09c60e18e9f3688571f8e7f6ee4172f64e8920e (diff) |
Implement Messages as Client-to-Client Communication
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/README.md | 17 | ||||
-rw-r--r-- | voctocore/lib/commands.py | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/voctocore/README.md b/voctocore/README.md index f01f765..2520846 100644 --- a/voctocore/README.md +++ b/voctocore/README.md @@ -37,9 +37,26 @@ TCP-Port 9999 < set_video_a blafoo > error "blafoo" is no known src +< set_stream_blank pause +> ok + +< set_stream_live +> ok + … > signal set_video_a cam1 > signal set_composite_mode side_by_side_equal ```` + +# Messages +Messages are Client-to-Client information that don't touch the server, while being distributed on its control-socket: +```` +< message foo bar moo +> ok + +… on a nother connection + +> signal message foo bar moo +```` diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py index 58dd234..c16358b 100644 --- a/voctocore/lib/commands.py +++ b/voctocore/lib/commands.py @@ -22,6 +22,9 @@ class ControlServerCommands(): raise IndexError("source %s unknown" % src_name_or_id) + def message(self, *args): + return True + def set_video_a(self, src_name_or_id): src_id = self.decodeSourceName(src_name_or_id) self.pipeline.vmix.setVideoSourceA(src_id) |