summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderpeter <vocend@derpeter.net>2016-08-04 00:14:24 +0100
committerderpeter <vocend@derpeter.net>2016-08-04 00:14:24 +0100
commit7edf8ecf415fb98221c76d84de9bd7770bdb3c0e (patch)
treee01d222afe2ee9498163e70aba000f59ef14343a
parent1b4c16cf942ffa606f27b9d825683fd4fc4c4af2 (diff)
make core send a update on the buttons when switching composite modes
-rw-r--r--voctocore/lib/commands.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py
index 64d1c57..bfe3168 100644
--- a/voctocore/lib/commands.py
+++ b/voctocore/lib/commands.py
@@ -115,9 +115,13 @@ class ControlServerCommands(object):
mode = decodeEnumName(CompositeModes, mode_name_or_id)
self.pipeline.vmix.setCompositeMode(mode)
- status = self._get_composite_status()
- return NotifyResponse('composite_mode', status)
-
+ composite_status = self._get_composite_status()
+ video_status = self._get_video_status()
+ return [
+ NotifyResponse('composite_mode', composite_status),
+ NotifyResponse('video_status', *video_status)
+ ]
+
def set_videos_and_composite(self, src_a_name_or_id, src_b_name_or_id, mode_name_or_id):
if src_a_name_or_id != '*':
src_a_id = decodeName(self.sources, src_a_name_or_id)