platypush/plugins/camera/__init__.py
def stop_streaming(self, device: Optional[Union[int, str]] = None):
        """
        Stop a camera over TCP session.

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

        for device in stop_devices:
            self._stop_streaming(device)

        Stop a camera over TCP session.

        :param device: Name/path/ID of the device to stop (default: all the active devices).
        
Stop a camera over TCP session.
Stop a camera over TCP session .
def stop_streaming(self, device: Optional[Union[int, str]] = None):
        streams = self._streams.copy()
        stop_devices = list(streams.values())[:]
        if device:
            stop_devices = [self._streams[device]] if device in self._streams else []
        for device in stop_devices:
            self._stop_streaming(device)
def stop_streaming ( self , device : Optional [ Union [ int , str ] ] = None ) : streams = self . _streams . copy ( ) stop_devices = list ( streams . values ( ) ) [ : ] if device : stop_devices = [ self . _streams [ device ] ] if device in self . _streams else [ ] for device in stop_devices : self . _stop_streaming ( device )
Stop a camera over TCP session.
Stop a camera over TCP session .
"""
        Stop a camera over TCP session.

        :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 ) .