platypush/plugins/camera/__init__.py
def stop_capture(self, device: Optional[Union[int, str]] = None):
        """
        Stop any capturing session on the specified device.

        :param device: Name/path/ID of the device to stop (default: all the active devices).
        """
        devices = self._devices.copy()
        stop_devices = list(devices.values())[:]
        if device:
            stop_devices = [self._devices[device]] if device in self._devices else []

        for device in stop_devices:
            self.close_device(device)

        Stop any capturing session on the specified device.

        :param device: Name/path/ID of the device to stop (default: all the active devices).
        
Stop any capturing session on the specified device.
Stop any capturing session on the specified device .
def stop_capture(self, device: Optional[Union[int, str]] = None):
        devices = self._devices.copy()
        stop_devices = list(devices.values())[:]
        if device:
            stop_devices = [self._devices[device]] if device in self._devices else []
        for device in stop_devices:
            self.close_device(device)
def stop_capture ( self , device : Optional [ Union [ int , str ] ] = None ) : devices = self . _devices . copy ( ) stop_devices = list ( devices . values ( ) ) [ : ] if device : stop_devices = [ self . _devices [ device ] ] if device in self . _devices else [ ] for device in stop_devices : self . close_device ( device )
Stop any capturing session on the specified device.
Stop any capturing session on the specified device .
"""
        Stop any capturing session on the specified device.

        :param device: Name/path/ID of the device to stop (default: all the active devices).
        """
self
device
Optional[Union[int, str]]
Name/path/ID of the device to stop (default: all the active devices).
Name / path / ID of the device to stop ( default : all the active devices ) .