onvif

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionGetCapabilities        = "GetCapabilities"
	ActionGetSystemDateAndTime   = "GetSystemDateAndTime"
	ActionGetNetworkInterfaces   = "GetNetworkInterfaces"
	ActionGetDeviceInformation   = "GetDeviceInformation"
	ActionGetServiceCapabilities = "GetServiceCapabilities"
	ActionGetProfiles            = "GetProfiles"
	ActionGetStreamUri           = "GetStreamUri"
	ActionSystemReboot           = "SystemReboot"

	ActionGetServices                   = "GetServices"
	ActionGetScopes                     = "GetScopes"
	ActionGetVideoSources               = "GetVideoSources"
	ActionGetAudioSources               = "GetAudioSources"
	ActionGetVideoSourceConfigurations  = "GetVideoSourceConfigurations"
	ActionGetAudioSourceConfigurations  = "GetAudioSourceConfigurations"
	ActionGetVideoEncoderConfigurations = "GetVideoEncoderConfigurations"
	ActionGetAudioEncoderConfigurations = "GetAudioEncoderConfigurations"
)
View Source
const PathDevice = "/onvif/device_service"

Variables

This section is empty.

Functions

func DiscoveryStreamingURLs

func DiscoveryStreamingURLs() ([]string, error)

func FindTagValue

func FindTagValue(b []byte, tag string) string

func GetCapabilitiesResponse

func GetCapabilitiesResponse(host string) string

func GetDeviceInformationResponse

func GetDeviceInformationResponse(manuf, model, firmware, serial string) string

func GetNetworkInterfacesResponse

func GetNetworkInterfacesResponse() string

func GetProfilesResponse

func GetProfilesResponse(names []string) string

func GetRequestAction

func GetRequestAction(b []byte) string

func GetServiceCapabilitiesResponse

func GetServiceCapabilitiesResponse() string

func GetStreamUriResponse

func GetStreamUriResponse(uri string) string

func GetSystemDateAndTimeResponse

func GetSystemDateAndTimeResponse() string

func SystemRebootResponse

func SystemRebootResponse() string

func UUID

func UUID() string

UUID - generate something like 44302cbf-0d18-4feb-79b3-33b575263da3

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(rawURL string) (*Client, error)

func (*Client) GetCapabilities

func (c *Client) GetCapabilities() ([]byte, error)

func (*Client) GetDeviceInformation

func (c *Client) GetDeviceInformation() ([]byte, error)

func (*Client) GetName

func (c *Client) GetName() (string, error)

func (*Client) GetNetworkInterfaces

func (c *Client) GetNetworkInterfaces() ([]byte, error)

func (*Client) GetProfiles

func (c *Client) GetProfiles() ([]byte, error)

func (*Client) GetProfilesTokens

func (c *Client) GetProfilesTokens() ([]string, error)

func (*Client) GetScopes

func (c *Client) GetScopes() ([]byte, error)

func (*Client) GetServiceCapabilities

func (c *Client) GetServiceCapabilities() ([]byte, error)

func (*Client) GetServices

func (c *Client) GetServices() ([]byte, error)

func (*Client) GetSnapshotUri

func (c *Client) GetSnapshotUri(token string) ([]byte, error)

func (*Client) GetStreamUri

func (c *Client) GetStreamUri(token string) ([]byte, error)

func (*Client) GetSystemDateAndTime

func (c *Client) GetSystemDateAndTime() ([]byte, error)

func (*Client) GetURI

func (c *Client) GetURI() (string, error)

func (*Client) HasSnapshots

func (c *Client) HasSnapshots() bool

func (*Client) Request

func (c *Client) Request(url, body string) ([]byte, error)

func (*Client) SystemReboot

func (c *Client) SystemReboot() ([]byte, error)

Jump to

Keyboard shortcuts

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