Skip to content

Vector2D with child elements instead of attributes #53

@luchsamapparat

Description

@luchsamapparat

Hey,

first of all, thanks for providing this library!

I was playing around with my camera (Reolink E1 Zoom) and noticed, that ContinuousMove was failing without an error, just no movement. To find out what's going wrong, I then tried node-onvif (Link) and it worked immediately.

When comparing the SOAP bodies of the two implementations, I noticed that onvif-rx defines x and y as child elements of tt:PanTilt while node-onvif uses attributes on the element itself:

<tptz:ContinuousMove><tptz:ProfileToken>000</tptz:ProfileToken><tptz:Velocity><tt:PanTilt><tt:x>1</tt:x><tt:y>0</tt:y></tt:PanTilt></tptz:Velocity><tptz:Timeout>PT1S</tptz:Timeout></tptz:ContinuousMove>

vs.

<tptz:ContinuousMove><tptz:ProfileToken>000</tptz:ProfileToken><tptz:Velocity><tt:PanTilt x="1" y="0"></tt:PanTilt></tptz:Velocity><tptz:Timeout>PT1S</tptz:Timeout></tptz:ContinuousMove>

The ONVIZ spec also requires attributes and does not mention child elements, as far as I can see:

image

http://www.onvif.org/specs/srv/ptz/ONVIF-PTZ-Service-Spec-v260.pdf (Page 41)

Is this something where other cameras are more tolerant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions