Added is_streaming method to camera.pi
This commit is contained in:
parent
fb2ff7d1d6
commit
f0999c7375
1 changed files with 8 additions and 0 deletions
|
@ -555,5 +555,13 @@ class CameraPiPlugin(CameraPlugin):
|
|||
if self._streaming_thread:
|
||||
self._streaming_thread.join()
|
||||
|
||||
@action
|
||||
def is_streaming(self):
|
||||
"""
|
||||
:return: True if the Pi Camera network streaming thread is running,
|
||||
False otherwise.
|
||||
"""
|
||||
return self._streaming_thread is not None
|
||||
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
|
|
Loading…
Reference in a new issue