Delegate starting stream worker
This commit is contained in:
parent
6e22376d9e
commit
2c38a7dc43
2 changed files with 3 additions and 6 deletions
|
|
@ -30,15 +30,10 @@ class BaseCamera(metaclass=ABCMeta):
|
||||||
self.event = ClientEvent()
|
self.event = ClientEvent()
|
||||||
self.stop = False # Used to indicate that the stream loop should break
|
self.stop = False # Used to indicate that the stream loop should break
|
||||||
|
|
||||||
self.stream_timeout = 20
|
|
||||||
|
|
||||||
self.stream_active = False
|
self.stream_active = False
|
||||||
self.record_active = False
|
self.record_active = False
|
||||||
self.preview_active = False
|
self.preview_active = False
|
||||||
|
|
||||||
# Start the stream worker on init
|
|
||||||
self.start_worker()
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def configuration(self):
|
def configuration(self):
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,9 @@ class PiCameraStreamer(BaseCamera):
|
||||||
self.picamera_lst_path = settings_file_path(
|
self.picamera_lst_path = settings_file_path(
|
||||||
"picamera_lst.npy"
|
"picamera_lst.npy"
|
||||||
) #: str: Path of .npy lens shading table file
|
) #: str: Path of .npy lens shading table file
|
||||||
|
|
||||||
|
# Start the stream worker on init
|
||||||
|
self.start_worker()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def configuration(self):
|
def configuration(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue