mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
use first onvif profile with ptz config
This commit is contained in:
parent
d1ac7eac9e
commit
9f4c0a2e60
@ -92,6 +92,9 @@ class OnvifController:
|
|||||||
if (
|
if (
|
||||||
onvif_profile.VideoEncoderConfiguration
|
onvif_profile.VideoEncoderConfiguration
|
||||||
and onvif_profile.VideoEncoderConfiguration.Encoding == "H264"
|
and onvif_profile.VideoEncoderConfiguration.Encoding == "H264"
|
||||||
|
and onvif_profile.PTZConfiguration
|
||||||
|
and onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
|
||||||
|
is not None
|
||||||
):
|
):
|
||||||
profile = onvif_profile
|
profile = onvif_profile
|
||||||
logger.debug(f"Selected Onvif profile for {camera_name}: {profile}")
|
logger.debug(f"Selected Onvif profile for {camera_name}: {profile}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user