Attempt to support zoom-only onvif cams (#12415)

* Attempt to support zoom-only onvif cams

* don't skip ptz configuration
This commit is contained in:
Josh Hawkins 2024-07-12 12:01:52 -05:00 committed by GitHub
parent e7ec014502
commit 51153af944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,8 +95,12 @@ class OnvifController:
onvif_profile.VideoEncoderConfiguration
and onvif_profile.VideoEncoderConfiguration.Encoding == "H264"
and onvif_profile.PTZConfiguration
and onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
is not None
and (
onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
is not None
or onvif_profile.PTZConfiguration.DefaultContinuousZoomVelocitySpace
is not None
)
):
profile = onvif_profile
logger.debug(f"Selected Onvif profile for {camera_name}: {profile}")