diff --git a/platypush/plugins/camera/pi.py b/platypush/plugins/camera/pi.py index a833a1e0..bac51625 100644 --- a/platypush/plugins/camera/pi.py +++ b/platypush/plugins/camera/pi.py @@ -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: