platypush/plugins/camera/__init__.py
def wait_capture(self, camera: Camera) -> None:
        """
        Wait until a capture session terminates.

        :param camera: Camera object. ``camera.info.capture_timeout`` is used as a capture thread termination timeout
            if set.
        """
        if camera.capture_thread and camera.capture_thread.is_alive() and \
                threading.get_ident() != camera.capture_thread.ident:
            try:
                camera.capture_thread.join(timeout=camera.info.capture_timeout)
            except Exception as e:
                self.logger.warning('Error on FFmpeg capture wait: {}'.format(str(e)))

        Wait until a capture session terminates.

        :param camera: Camera object. ``camera.info.capture_timeout`` is used as a capture thread termination timeout
            if set.
        
Wait until a capture session terminates.
Wait until a capture session terminates .
def wait_capture(self, camera: Camera) -> None:
        if camera.capture_thread and camera.capture_thread.is_alive() and \
                threading.get_ident() != camera.capture_thread.ident:
            try:
                camera.capture_thread.join(timeout=camera.info.capture_timeout)
            except Exception as e:
                self.logger.warning('Error on FFmpeg capture wait: {}'.format(str(e)))
def wait_capture ( self , camera : Camera ) -> None : if camera . capture_thread and camera . capture_thread . is_alive ( ) and threading . get_ident ( ) != camera . capture_thread . ident : try : camera . capture_thread . join ( timeout = camera . info . capture_timeout ) except Exception as e : self . logger . warning ( 'Error on FFmpeg capture wait: {}' . format ( str ( e ) ) )
Wait until a capture session terminates.
Wait until a capture session terminates .
"""
        Wait until a capture session terminates.

        :param camera: Camera object. ``camera.info.capture_timeout`` is used as a capture thread termination timeout
            if set.
        """
self
camera
Camera
Camera object. ``camera.info.capture_timeout`` is used as a capture thread termination timeout
if set.
Camera object . ` ` camera . info . capture_timeout ` ` is used as a capture thread termination timeout if set .