使用Call_GetStatus时,使用: type PTZVector struct { PanTilt Vector2D `xml:"onvif:PanTilt"` Zoom Vector1D `xml:"onvif:Zoom"` } 无法绑定xml数据, 在我修改为: type PTZVector struct { PanTilt Vector2D `xml:"PanTilt"` Zoom Vector1D `xml:"Zoom"` }后正常绑定数据
使用Call_GetStatus时,使用:
type PTZVector struct {
PanTilt Vector2D
xml:"onvif:PanTilt"Zoom Vector1D
xml:"onvif:Zoom"} 无法绑定xml数据,
在我修改为:
type PTZVector struct {
PanTilt Vector2D
xml:"PanTilt"Zoom Vector1D
xml:"Zoom"}后正常绑定数据