Exemple #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)
Exemple #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)