Documentation
¶
Index ¶
- Constants
- func DiscoveryStreamingURLs() ([]string, error)
- func FindTagValue(b []byte, tag string) string
- func GetCapabilitiesResponse(host string) []byte
- func GetDeviceInformationResponse(manuf, model, firmware, serial string) []byte
- func GetMediaServiceCapabilitiesResponse() []byte
- func GetPosixTZ(current time.Time) string
- func GetProfileResponse(name string) []byte
- func GetProfilesResponse(names []string) []byte
- func GetRequestAction(b []byte) string
- func GetServicesResponse(host string) []byte
- func GetSnapshotUriResponse(uri string) []byte
- func GetStreamUriResponse(uri string) []byte
- func GetSystemDateAndTimeResponse() []byte
- func GetVideoSourceConfigurationResponse(name string) []byte
- func GetVideoSourceConfigurationsResponse(names []string) []byte
- func GetVideoSourcesResponse(names []string) []byte
- func StaticResponse(operation string) []byte
- func UUID() string
- type Client
- func (c *Client) DeviceRequest(operation string) ([]byte, error)
- func (c *Client) GetName() (string, error)
- func (c *Client) GetProfile(token string) ([]byte, error)
- func (c *Client) GetProfilesTokens() ([]string, error)
- func (c *Client) GetServiceCapabilities() ([]byte, error)
- func (c *Client) GetSnapshotUri(token string) ([]byte, error)
- func (c *Client) GetStreamUri(token string) ([]byte, error)
- func (c *Client) GetURI() (string, error)
- func (c *Client) GetVideoSourceConfiguration(token string) ([]byte, error)
- func (c *Client) HasSnapshots() bool
- func (c *Client) MediaRequest(operation string) ([]byte, error)
- func (c *Client) Request(url, body string) ([]byte, error)
- type Envelope
Constants ¶
View Source
const ( DeviceGetCapabilities = "GetCapabilities" DeviceGetDeviceInformation = "GetDeviceInformation" DeviceGetDiscoveryMode = "GetDiscoveryMode" DeviceGetDNS = "GetDNS" DeviceGetHostname = "GetHostname" DeviceGetNetworkDefaultGateway = "GetNetworkDefaultGateway" DeviceGetNetworkInterfaces = "GetNetworkInterfaces" DeviceGetNetworkProtocols = "GetNetworkProtocols" DeviceGetNTP = "GetNTP" DeviceGetScopes = "GetScopes" DeviceGetServices = "GetServices" DeviceGetSystemDateAndTime = "GetSystemDateAndTime" DeviceSystemReboot = "SystemReboot" )
View Source
const ( MediaGetAudioEncoderConfigurations = "GetAudioEncoderConfigurations" MediaGetAudioSources = "GetAudioSources" MediaGetAudioSourceConfigurations = "GetAudioSourceConfigurations" MediaGetProfile = "GetProfile" MediaGetProfiles = "GetProfiles" MediaGetSnapshotUri = "GetSnapshotUri" MediaGetStreamUri = "GetStreamUri" MediaGetVideoEncoderConfigurations = "GetVideoEncoderConfigurations" MediaGetVideoSources = "GetVideoSources" MediaGetVideoSourceConfiguration = "GetVideoSourceConfiguration" MediaGetVideoSourceConfigurations = "GetVideoSourceConfigurations" )
View Source
const PathDevice = "/onvif/device_service"
View Source
const ServiceGetServiceCapabilities = "GetServiceCapabilities"
Variables ¶
This section is empty.
Functions ¶
func DiscoveryStreamingURLs ¶
func FindTagValue ¶
func GetCapabilitiesResponse ¶
func GetMediaServiceCapabilitiesResponse ¶ added in v1.9.8
func GetMediaServiceCapabilitiesResponse() []byte
func GetPosixTZ ¶ added in v1.9.8
func GetProfileResponse ¶ added in v1.9.8
func GetProfilesResponse ¶
func GetRequestAction ¶
func GetServicesResponse ¶ added in v1.9.8
func GetSnapshotUriResponse ¶ added in v1.9.8
func GetStreamUriResponse ¶
func GetSystemDateAndTimeResponse ¶
func GetSystemDateAndTimeResponse() []byte
func GetVideoSourceConfigurationResponse ¶ added in v1.9.8
func GetVideoSourceConfigurationsResponse ¶ added in v1.9.9
func GetVideoSourcesResponse ¶ added in v1.9.8
func StaticResponse ¶ added in v1.9.8
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeviceRequest ¶ added in v1.9.8
func (*Client) GetProfile ¶ added in v1.9.8
func (*Client) GetProfilesTokens ¶
func (*Client) GetServiceCapabilities ¶
func (*Client) GetVideoSourceConfiguration ¶ added in v1.9.8
func (*Client) HasSnapshots ¶
func (*Client) MediaRequest ¶ added in v1.9.8
type Envelope ¶ added in v1.9.8
type Envelope struct {
// contains filtered or unexported fields
}
func NewEnvelope ¶ added in v1.9.8
func NewEnvelope() *Envelope
func NewEnvelopeWithUser ¶ added in v1.9.8
Click to show internal directories.
Click to hide internal directories.