Documentation ¶
Index ¶
- type Connector
- func (c *Connector) AddChannel() error
- func (c *Connector) AddDevice(sn, xaddr, username, password string) error
- func (c *Connector) Destroy() error
- func (c *Connector) Discovery() (devices []SearchedDevice, err error)
- func (c *Connector) GetStreamUrl(xaddr, username, password string) (url string, err error)
- func (c *Connector) Initialize() error
- func (c *Connector) RemoveChannel() error
- func (c *Connector) RemoveDevice(sn string) error
- type InputProxyChannel
- type SearchedDevice
- type SourceInputPortDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector 使用SIAPI协议和海康威视NVR通信,使用onvif和ipc通信
func NewConnector ¶
func (*Connector) AddDevice ¶
AddDevice 添加设备,sn为不重复的任意值 xaddr onvif地址 username onvif用户名 password onvif密码
func (*Connector) Discovery ¶
func (c *Connector) Discovery() (devices []SearchedDevice, err error)
Discovery 发现ipc设备
func (*Connector) GetStreamUrl ¶
func (*Connector) Initialize ¶
func (*Connector) RemoveChannel ¶
RemoveChannel 从NVR中移除通道 todo
func (*Connector) RemoveDevice ¶
type InputProxyChannel ¶
type InputProxyChannel struct { XmlName xml.Name `xml:"InputProxyChannel"` ID string `xml:"id"` Name string `xml:"name"` SourceInputPortDescriptor SourceInputPortDescriptor `xml:"sourceInputPortDescriptor"` }
type SearchedDevice ¶
type SourceInputPortDescriptor ¶
type SourceInputPortDescriptor struct { ID string `json:"id"` Name string `json:"name"` AdminProtocol string `xml:"adminProtocol" json:"admin-protocol"` AddressingFormatType string `xml:"addressingFormatType" json:"addressing_format_type"` IPAddress string `xml:"ipAddress,omitempty" json:"ip_address"` ManagePortNo int `xml:"managePortNo" json:"manage_port_no"` SrcInputPort string `xml:"srcInputPort"` UserName string `xml:"userName" json:"user_name"` Password string `xml:"password" json:"password"` SerialNumber string `xml:"serialNumber" json:"serial_number"` }
Click to show internal directories.
Click to hide internal directories.