goonvif

package module
v0.0.0-...-0abfbfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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 Discovery

func Discovery() ([]Device, error)

func GetAvailableDevicesAtSpecificEthernetInterface

func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) ([]Device, error)

func NewDevice

func NewDevice(params onvif.DeviceParams) *Device

func (*Device) FindRecording

func (d *Device) FindRecording(start time.Time, end time.Time) ([]string, error)

func (*Device) GetCapabilities

func (d *Device) GetCapabilities() (interface{}, error)

func (*Device) GetDeviceInformation

func (d *Device) GetDeviceInformation() (interface{}, error)

func (*Device) GetEndpoints

func (d *Device) GetEndpoints() (map[string]string, error)

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) GetReplayUriTcp

func (d *Device) GetReplayUriTcp(token string) (string, error)

func (*Device) GetReplayUriUdpMulticast

func (d *Device) GetReplayUriUdpMulticast(token string) (string, error)

func (*Device) GetReplayUriUdpUnicast

func (d *Device) GetReplayUriUdpUnicast(token string) (string, error)

func (*Device) GetSnapshotUri

func (d *Device) GetSnapshotUri(profileToken string) (string, error)

func (*Device) GetStreamUri

func (d *Device) GetStreamUri(stream onvifmodel.StreamSetup, profileToken string) (string, error)

func (*Device) GetStreamUriTcp

func (d *Device) GetStreamUriTcp(profileToken string) (string, error)

func (*Device) GetStreamUriUdp

func (d *Device) GetStreamUriUdp(profileToken string) (string, error)

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) PTZNodes

func (d *Device) PTZNodes() ([]onvifmodel.PTZNode, error)

func (*Device) Pan

func (d *Device) Pan(x, y float64) error

Pan 执行设备的水平和垂直移动。 此函数通过指定的x和y坐标来控制设备的移动方向和距离。 参数:

x - 水平移动的坐标值。range: -1 to 1
y - 垂直移动的坐标值。range: -1 to 1

返回值:

如果移动操作成功,返回nil;否则返回错误。

func (*Device) RelateVideoSource

func (d *Device) RelateVideoSource(profileToken, videoSourceToken string) error

func (*Device) StopMove

func (d *Device) StopMove() error

func (*Device) Zoom

func (d *Device) Zoom(zoom float64) error

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
api
ptz
sdk
xsd
sdk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL