Added size and position params to GPU preview route

This commit is contained in:
Joel Collins 2019-02-19 11:04:12 +00:00
parent 51cd776700
commit 366b771b72
2 changed files with 21 additions and 5 deletions

View file

@ -225,9 +225,9 @@ class StreamingCamera(BaseCamera):
# LAUNCH ACTIONS
def start_preview(self) -> bool:
def start_preview(self, fullscreen=True, window=None) -> bool:
"""Start the on board GPU camera preview."""
self.camera.start_preview()
self.camera.start_preview(fullscreen=fullscreen, window=window)
self.state['preview_active'] = True
return True