usb camera recording and detour demo

This commit is contained in:
langolierz
2019-06-29 21:30:10 +00:00
parent c088e054fd
commit 03d9411edf
5 changed files with 49 additions and 22 deletions

View File

@@ -278,6 +278,15 @@ class Actions(object):
elif self.data.player_mode == 'next':
self.data.player_mode = 'now'
def toggle_detour_mode(self):
if self.data.settings['detour']['TRY_DEMO']['value'] == 'enabled':
if self.data.detour_active:
self.data.detour_active = False
self.video_driver.osc_client.send_message("/detour/end", True)
else:
self.data.detour_active = True
self.video_driver.osc_client.send_message("/detour/start", True)
def set_the_camera_colour_u_continuous(self, amount):
self.capture.set_colour(amount*255, None)