mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
use first onvif profile with ptz config
This commit is contained in:
parent
6476f8ade7
commit
0dade98bf3
@ -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