yingchengpa / python-onvif2-zeep

onvif2-zeep support media2 ,for example get the 'h265'(hevc) encoding
MIT License
19 stars 10 forks source link

how to get token when the request need #4

Open yutianlong opened 1 year ago

yutianlong commented 1 year ago

as wrong tip : osdOptions = self.media2_service.GetOSDOptions(token) File ".r\venv\lib\site-packages\onvif2\client.py", line 26, in wrapped raise ONVIFError(err) onvif2.exceptions.ONVIFError: Unknown error: The ReferenceToken type doesn't accept collections as value

when I want to get OSDOptions :media2_service.GetOSDOptions(), should be insert token ,but I can't get it .help me tks

yingchengpa commented 1 year ago

you can use https://github.com/FalkTannhaeuser/python-onvif-zeep , try is it ok? and,what the camer model? hik 、dahua 、sony ?