mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
move create_ptz_service call
This commit is contained in:
parent
bd2dda825f
commit
99a2dde364
@ -87,8 +87,6 @@ class OnvifController:
|
|||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
ptz = onvif.create_ptz_service()
|
|
||||||
|
|
||||||
profile = None
|
profile = None
|
||||||
for key, onvif_profile in enumerate(profiles):
|
for key, onvif_profile in enumerate(profiles):
|
||||||
if (
|
if (
|
||||||
@ -116,6 +114,8 @@ class OnvifController:
|
|||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
ptz = onvif.create_ptz_service()
|
||||||
|
|
||||||
request = ptz.create_type("GetConfigurationOptions")
|
request = ptz.create_type("GetConfigurationOptions")
|
||||||
request.ConfigurationToken = profile.PTZConfiguration.token
|
request.ConfigurationToken = profile.PTZConfiguration.token
|
||||||
ptz_config = ptz.GetConfigurationOptions(request)
|
ptz_config = ptz.GetConfigurationOptions(request)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user