Documentation
¶
Index ¶
- Constants
- Variables
- type Device
- func (d *Device) FindRecording(start time.Time, end time.Time) ([]string, error)
- func (d *Device) GetCapabilities() (interface{}, error)
- func (d *Device) GetDeviceInformation() (interface{}, error)
- func (d *Device) GetEndpoints() (map[string]string, error)
- func (d *Device) GetMediaCapablities() (media.Capabilities, error)
- func (d *Device) GetProfiles() ([]onvifmodel.Profile, error)
- func (d *Device) GetRecordingSummary() (search.RecordingSummary, error)
- func (d *Device) GetReplayUri(token string, stream onvifmodel.StreamSetup) (string, error)
- func (d *Device) GetReplayUriTcp(token string) (string, error)
- func (d *Device) GetReplayUriUdpMulticast(token string) (string, error)
- func (d *Device) GetReplayUriUdpUnicast(token string) (string, error)
- func (d *Device) GetSnapshotUri(profileToken string) (string, error)
- func (d *Device) GetStreamUri(stream onvifmodel.StreamSetup, profileToken string) (string, error)
- func (d *Device) GetStreamUriTcp(profileToken string) (string, error)
- func (d *Device) GetStreamUriUdp(profileToken string) (string, error)
- func (d *Device) GetVideoEncoderConfigurations() ([]onvifmodel.VideoEncoderConfiguration, error)
- func (d *Device) GetVideoSourceConfigurations() ([]onvifmodel.VideoSourceConfiguration, error)
- func (d *Device) GetVideoSources() ([]onvifmodel.VideoSource, error)
- func (d *Device) PTZNodes() ([]onvifmodel.PTZNode, error)
- func (d *Device) Pan(x, y float64) error
- func (d *Device) RelateVideoSource(profileToken, videoSourceToken string) error
- func (d *Device) StopMove() error
- func (d *Device) Zoom(zoom float64) error
Constants ¶
View Source
const ( StreamTypeRTPUnicast = "RTP-Unicast" StreamTypeRTPMulticast = "RTP-Multicast" )
Variables ¶
View Source
var ErrAuthRequired = errors.New("auth required")
View Source
var RtspMulticastStreamSetup = makeStreamSetup(StreamTypeRTPMulticast, "UDP")
View Source
var TcpUnicastStreamSetup = makeStreamSetup(StreamTypeRTPUnicast, "TCP")
View Source
var UdpUnicastStreamSetup = makeStreamSetup(StreamTypeRTPUnicast, "UDP")
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { onvif.DeviceParams // contains filtered or unexported fields }
func NewDevice ¶
func NewDevice(params onvif.DeviceParams) *Device
func (*Device) FindRecording ¶
func (*Device) GetCapabilities ¶
func (*Device) GetDeviceInformation ¶
func (*Device) GetMediaCapablities ¶
func (d *Device) GetMediaCapablities() (media.Capabilities, error)
func (*Device) GetProfiles ¶
func (d *Device) GetProfiles() ([]onvifmodel.Profile, error)
func (*Device) GetRecordingSummary ¶
func (d *Device) GetRecordingSummary() (search.RecordingSummary, error)
func (*Device) GetReplayUri ¶
func (d *Device) GetReplayUri(token string, stream onvifmodel.StreamSetup) (string, error)
GetReplayUri 获取设备回放的URI。 参数:
token: 用于标识回放的令牌。 transport: 传输协议,UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP。 multiCast: 布尔值,指示是否使用多播。
返回值:
string: 回放的URI。 error: 错误信息,如果执行操作时发生错误。
func (*Device) GetReplayUriUdpMulticast ¶
func (*Device) GetReplayUriUdpUnicast ¶
func (*Device) GetSnapshotUri ¶
func (*Device) GetStreamUri ¶
func (d *Device) GetStreamUri(stream onvifmodel.StreamSetup, profileToken string) (string, error)
func (*Device) GetStreamUriTcp ¶
func (*Device) GetStreamUriUdp ¶
func (*Device) GetVideoEncoderConfigurations ¶
func (d *Device) GetVideoEncoderConfigurations() ([]onvifmodel.VideoEncoderConfiguration, error)
func (*Device) GetVideoSourceConfigurations ¶
func (d *Device) GetVideoSourceConfigurations() ([]onvifmodel.VideoSourceConfiguration, error)
func (*Device) GetVideoSources ¶
func (d *Device) GetVideoSources() ([]onvifmodel.VideoSource, error)
func (*Device) Pan ¶
Pan 执行设备的水平和垂直移动。 此函数通过指定的x和y坐标来控制设备的移动方向和距离。 参数:
x - 水平移动的坐标值。range: -1 to 1 y - 垂直移动的坐标值。range: -1 to 1
返回值:
如果移动操作成功,返回nil;否则返回错误。
func (*Device) RelateVideoSource ¶
Directories
¶
Path | Synopsis |
---|---|
Package onvif is developed to provide an ONVIF client implementation on Go programming language
|
Package onvif is developed to provide an ONVIF client implementation on Go programming language |
sdk
|
|
Click to show internal directories.
Click to hide internal directories.