Exemplo n.º 1
0
 def _is_acceptable_streaming_camera(cls,
                                     camera: dict[str, Any] | None) -> bool:
     """Determine if a camera is streaming/usable."""
     return is_acceptable_camera(
         camera) and MotionEyeClient.is_camera_streaming(camera)
Exemplo n.º 2
0
 def _is_acceptable_streaming_camera(self) -> bool:
     """Determine if a camera is streaming/usable."""
     return is_acceptable_camera(
         self._camera
     ) and MotionEyeClient.is_camera_streaming(self._camera)