onvif

package
v0.0.0-...-d22efa2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllOnVifDevice

func GetAllOnVifDevice() ([]discovery.Device, error)

扫描所有设备

func GetAssignDeviceServices

func GetAssignDeviceServices(assign string, xaddr string, user string, password string) (devicemgmt.Service, error)

指定获取某个服务,例如"media"

func GetDeviceInformation

func GetDeviceInformation(xaddr string, user string, password string) (*devicemgmt.GetDeviceInformationResponse, error)

获取设备的服务信息

func GetDeviceServices

func GetDeviceServices(xaddr string, user string, password string) (*devicemgmt.GetServicesResponse, error)

获取设备所有的服务

func GetShapJPGEbyURL

func GetShapJPGEbyURL(shapshotUrl string, add string) string

func GetShapshotUrl

func GetShapshotUrl(xaddr string, namespace string, user string, password string) (string, error)

已知xaddr,namespace获取抓图的url地址

func GetShapshotUrlByIP

func GetShapshotUrlByIP(ip string, user string, password string) (string, bool)

according to IP获取摄像头截图的url

func GetStreamUrl

func GetStreamUrl(xaddr string, namespace string, user string, password string) (string, error)

func GetXaddrByIP

func GetXaddrByIP(ip string) (string, bool)

according to IP获取摄像头xaddr

func SetCameraIP

func SetCameraIP(xaddr string, user string, password string, ip string) bool

func WgetJPGE

func WgetJPGE(shapshotUrl string, add string, save string)

Types

type OnvifUrlMesage

type OnvifUrlMesage struct {
	XAddr       string
	ShapshotUrl string
	StreamUrl   string
}

获取到的原始数据

func GetAllOnvifUrlMesage

func GetAllOnvifUrlMesage(user string, password string) []OnvifUrlMesage

Jump to

Keyboard shortcuts

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