onvif icon indicating copy to clipboard operation
onvif copied to clipboard

Media structs are prefixed with onvif:

Open wfotiuk opened this issue 1 year ago • 9 comments

So I noticed when trying to use the media queries (sdk/media/*), that some of the structs are prefixed by onvif: for the xml parsing tags (example https://github.com/use-go/onvif/blob/master/xsd/onvif/onvif.go#L361).

image

When getting an actual response from a camera, I noticed the structs did not unmarshal properly because of this prefix. From my understanding, the prefixes should be different according to the ONVIF media spec.

image

Regardless, I have forked the repo and dropped the prefix for my uses, but was curious if you would like a PR and the tests I wrote, or if I am headed in the wrong direction

wfotiuk avatar Oct 12 '22 15:10 wfotiuk