Documentation ¶
Index ¶
- func CheckAuthorizedError(msg string) bool
- func DiscoveryDevice(interfaceName string, duration int) string
- func DiscoveryDeviceByIp(ip string, duration int) string
- func GetMediaInformation(host, username, password string) string
- func PtzGoToHome(host, username, password string) string
- func PtzStart(host, username, password string, x, y, z float64) string
- func PtzStop(host, username, password string) string
- type AudioEncoderConfig
- type AudioEncoderConfigurationOption
- type AudioSource
- type AudioSourceConfiguration
- type BacklightCompensation
- type Bound
- type CameraDevice
- type CameraProfile
- type CameraProfileCommandResponse
- type CapabilitiesService
- type CreatePullPointSubscriptionResponse
- type DNSInformation
- type Date
- type Device
- func (device Device) AbsoluteMove(profileToken string, position PTZVector) error
- func (device Device) AddScopes(listScopes []string) error
- func (device Device) ContinuousMove(profileToken string, velocity PTZVector) error
- func (device Device) CreateMask(configurationToken string, pointStart, pointEnd Point) (string, error)
- func (device Device) CreateProfile(profileName string, profileToken string) (MediaProfile, error)
- func (device Device) CreatePullPointSubscription() (CreatePullPointSubscriptionResponse, error)
- func (device Device) CreateUsers(users []User) error
- func (device Device) DeleteMask(maskToken string) error
- func (device Device) DeleteProfile(profileToken string) error
- func (device Device) DeleteUsers(usernames []string) error
- func (device Device) FindEvents(startPoint string) (string, error)
- func (device Device) FindRecordings() (string, error)
- func (device Device) GetAudioEncoderConfiguration(configurationToken string) (AudioEncoderConfig, error)
- func (device Device) GetAudioEncoderConfigurationOptions(configurationToken string, profileToken string) ([]AudioEncoderConfigurationOption, error)
- func (device Device) GetAudioEncoderConfigurations() ([]AudioEncoderConfig, error)
- func (device Device) GetAudioSourceConfiguration(configurationToken string) (AudioSourceConfiguration, error)
- func (device Device) GetAudioSourceConfigurationOptions(configurationToken string, profileToken string) (string, error)
- func (device Device) GetAudioSourceConfigurations() ([]AudioSourceConfiguration, error)
- func (device Device) GetAudioSources() ([]AudioSource, error)
- func (device Device) GetCapabilities() (DeviceCapabilities, error)
- func (device Device) GetCompatibleAudioEncoderConfigurations(profileToken string) ([]AudioEncoderConfig, error)
- func (device Device) GetCompatibleAudioSourceConfigurations(profileToken string) ([]AudioSourceConfiguration, error)
- func (device Device) GetCompatibleMetadataConfigurations(profileToken string) ([]MetadataConfiguration, error)
- func (device Device) GetCompatibleVideoEncoderConfigurations(profileToken string) ([]VideoEncoderConfig, error)
- func (device Device) GetCompatibleVideoSourceConfigurations(profileToken string) ([]VideoSourceConfiguration, error)
- func (device Device) GetConfiguration(ptzConfigurationToken string) (PTZConfiguration, error)
- func (device Device) GetConfigurationOptions(configurationToken string) (PTZConfigurationOptions, error)
- func (device Device) GetConfigurations() ([]PTZConfiguration, error)
- func (device Device) GetDNS() (DNSInformation, error)
- func (device Device) GetDiscoveryMode() (string, error)
- func (device Device) GetDynamicDNS() (DynamicDNSInformation, error)
- func (device Device) GetEventProperties() (interface{}, error)
- func (device Device) GetEventSearchResults(searchToken string) (ResultList, error)
- func (device Device) GetGuaranteedNumberOfVideoEncoderInstances(configurationToken string) (GuaranteedNumberOfVideoEncoderInstances, error)
- func (device Device) GetHostname() (HostnameInformation, error)
- func (device Device) GetInformation() (DeviceInformation, error)
- func (device Device) GetMasks(configurationToken string) ([]Mask, error)
- func (device Device) GetMediaAttributes(time string) ([]MediaAttributes, error)
- func (device Device) GetMetadataConfiguration(configurationToken string) (MetadataConfiguration, error)
- func (device Device) GetMetadataConfigurationOptions(configurationToken string, profileToken string) (MetadataConfigurationOptions, error)
- func (device Device) GetMetadataConfigurations() ([]MetadataConfiguration, error)
- func (device Device) GetNTP() (NTPInformation, error)
- func (device Device) GetNetworkDefaultGateway() (NetworkGateway, error)
- func (device Device) GetNetworkInterfaces() ([]NetworkInterface, error)
- func (device Device) GetNetworkProtocols() ([]NetworkProtocol, error)
- func (device Device) GetNode(nodeToken string) (PTZNode, error)
- func (device Device) GetNodes() ([]PTZNode, error)
- func (device Device) GetPresets(profileToken string) ([]PTZPreset, error)
- func (device Device) GetProfileMedia(profileToken string) (MediaProfile, error)
- func (device Device) GetProfiles() ([]MediaProfile, error)
- func (device Device) GetRecordingConfiguration(recordingToken string) (interface{}, error)
- func (device Device) GetRecordingSearchResults(searchToken string) (ResultList, error)
- func (device Device) GetRecordingSummary() ([]RecordingSummary, error)
- func (device Device) GetRelayOutputs() (RelayOutput, error)
- func (device Device) GetReplayConfiguration() (interface{}, error)
- func (device Device) GetReplayServiceCapabilities() (interface{}, error)
- func (device Device) GetReplayUri(recordingToken string) (string, error)
- func (device Device) GetScopes() ([]string, error)
- func (device Device) GetServiceCapabilities() ([]Service, error)
- func (device Device) GetServices() ([]Service, error)
- func (device Device) GetSnapshot(profileToken string) (string, error)
- func (device Device) GetStatus(profileToken string) (PTZStatus, error)
- func (device Device) GetStreamURI(profileToken, protocol string) (MediaURI, error)
- func (device Device) GetSystemDateAndTime() (SystemDateAndTime, error)
- func (device Device) GetUsers() ([]User, error)
- func (device Device) GetVideoEncoderConfigurationOptions(configurationToken string, profileToken string) (VideoEncoderConfigurationOptions, error)
- func (device Device) GetVideoEncoderConfigurations() ([]VideoEncoderConfig, error)
- func (device Device) GetVideoSourceConfiguration(configurationToken string) (VideoSourceConfiguration, error)
- func (device Device) GetVideoSourceConfigurationOptions(configurationToken string, profileToken string) (VideoSourceConfigurationOption, error)
- func (device Device) GetVideoSourceConfigurations() ([]VideoSourceConfiguration, error)
- func (device Device) GetVideoSources() ([]VideoSource, error)
- func (device Device) GetZeroConfiguration() (NetworkZeroConfiguration, error)
- func (device Device) GotoHomePosition(profileToken string) error
- func (device Device) GotoPreset(profileToken string, presetToken string) error
- func (device Device) PullMessages(address string) ([]NotificationMessage, error)
- func (device Device) ReNew(address string) (CreatePullPointSubscriptionResponse, error)
- func (device Device) RelativeMove(profileToken string, translation PTZVector) error
- func (device Device) RemovePreset(profileToken string, presetToken string) error
- func (device Device) RemoveScopes(listScopes []string) ([]string, error)
- func (device Device) SetDNS(dnsInformation DNSInformation) error
- func (device Device) SetHomePosition(profileToken string) error
- func (device Device) SetHostName(nameToken string) error
- func (device Device) SetNTP(ntpInformation NTPInformation) error
- func (device Device) SetNetworkDefaultGateway(defaultGateway NetworkGateway) error
- func (device Device) SetNetworkInterfaces(networkInterface NetworkInterface) error
- func (device Device) SetNetworkProtocols(protocols []NetworkProtocol) error
- func (device Device) SetPreset(profileToken string, presetName string) (string, error)
- func (device Device) SetScopes(listScopes []string) error
- func (device Device) SetSystemDateAndTime(systemDT SystemDateAndTime) error
- func (device Device) SetUser(user User) error
- func (device Device) SetVideoEncoderConfiguration(videoEncoderConfig VideoEncoderConfig) error
- func (device Device) SetVideoSourceConfiguration(videoSourceConfig VideoSourceConfiguration) error
- func (device Device) Stop(profileToken string) error
- func (device Device) Subscribe(address string) (string, error)
- func (device Device) SystemReboot() (string, error)
- func (device Device) UnSubscribe(address string) error
- func (device Device) UpdateMask(maskToken, configurationToken string, pointStart, pointEnd Point, enable bool) error
- type DeviceCapabilities
- type DeviceCapabilitiesService
- type DeviceInformation
- type DeviceNetworkCapabilitiesService
- type DeviceSecurityCapabilitiesService
- type DeviceSystemCapabilitiesService
- type DurationRange
- type DynamicDNSInformation
- type EventsCapabilities
- type EventsCapabilitiesService
- type Exposure
- type ExtensionCapabilities
- type FloatRange
- type FocusConfiguration
- type GuaranteedNumberOfVideoEncoderInstances
- type H264Configuration
- type H264Options
- type HostnameInformation
- type IPAddress
- type IPv4Configuration
- type IPv4NetworkInterface
- type ImagingCapabilitiesService
- type ImagingSettings
- type IntRange
- type IntRectangle
- type IntRectangleRange
- type Mask
- type MediaAttributes
- type MediaBounds
- type MediaCapabilities
- type MediaCapabilitiesService
- type MediaProfile
- type MediaProfileCapabilitiesService
- type MediaSourceConfig
- type MediaStreamingCapabilitiesService
- type MediaURI
- type MessageData
- type MetadataConfiguration
- type MetadataConfigurationOptions
- type MoveStatus
- type Multicast
- type NTPInformation
- type NetworkCapabilities
- type NetworkGateway
- type NetworkHost
- type NetworkInterface
- type NetworkInterfaceConnectionSetting
- type NetworkInterfaceInfo
- type NetworkInterfaceLink
- type NetworkProtocol
- type NetworkZeroConfiguration
- type NotificationMessage
- type OnvifData
- type OnvifVersion
- type OnvifXAddress
- type Options
- type PTControlDirection
- type PTZCapabilities
- type PTZCapabilitiesService
- type PTZConfig
- type PTZConfiguration
- type PTZConfigurationOptions
- type PTZNode
- type PTZPreset
- type PTZSpaces
- type PTZStatus
- type PTZStatusFilterOptions
- type PTZVector
- type PanTiltLimits
- type Point
- type PrefixedIPAdress
- type ProfileSupport
- type RateControl
- type RecordingInformation
- type RecordingSummary
- type Rectangle
- type RelayOutput
- type RelayOutputSettings
- type Resolution
- type ResultList
- type SOAP
- type Scope
- type Service
- type Space1DDescription
- type Space2DDescription
- type Stream
- type SubscriptionReference
- type SystemDateAndTime
- type Time
- type TimeZone
- type Track
- type UTCDateTime
- type User
- type Vector1D
- type Vector2D
- type VideoEncoderConfig
- type VideoEncoderConfigurationOptions
- type VideoRateControl
- type VideoSource
- type VideoSourceConfiguration
- type VideoSourceConfigurationOption
- type WhiteBalance
- type WideDynamicRange
- type ZoomLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthorizedError ¶
kiem tra co phai loi chung thuc hay khong
func DiscoveryDevice ¶
func DiscoveryDeviceByIp ¶
func GetMediaInformation ¶
DiscoveryDevice send a WS-Discovery message and wait for all matching device to respond
func PtzGoToHome ¶
Types ¶
type AudioEncoderConfig ¶
type AudioEncoderConfig struct { Name string Token string Encoding string Bitrate int SampleRate int SessionTimeout string }
AudioEncoderConfig contains configuration of an audio encoder
type AudioSource ¶
type BacklightCompensation ¶
type CameraDevice ¶
type CameraDevice struct { Name string `json:"name"` Manufacturer string `json:"manufacturer"` Model string `json:"model"` Serial string `json:"serial"` Mac string `json:"mac"` HardwareID string `json:"hardwareId"` XAddr string `json:"xadd"` User string `json:"user"` Password string `json:"password"` Proto string `json:"proto"` }
type CameraProfile ¶
type CameraProfile struct { CameraDevice Authorize bool `json:"authorize"` Streams []Stream `json:"streams"` LastError string `json:"lastError"` }
type CameraProfileCommandResponse ¶
type CameraProfileCommandResponse struct { Result string `json:"result"` Data CameraProfile `json:"data"` }
type CapabilitiesService ¶
type CapabilitiesService struct { Name string // PTZ, media, device, imaging, events Capabilities interface{} }
type CreatePullPointSubscriptionResponse ¶
type CreatePullPointSubscriptionResponse struct { SubscriptionReference SubscriptionReference CurrentTime string TerminationTime string }
type DNSInformation ¶
type Device ¶
type Device struct { ID string `json:"id"` Name string `json:"name"` XAddr string `json:"xAddr"` User string `json:"user"` Password string `json:"password"` }
Device contains data of ONVIF camera
func StartDiscovery ¶
StartDiscovery send a WS-Discovery message and wait for all matching device to respond
func StartDiscoveryOn ¶
StartDiscovery send a WS-Discovery message and wait for all matching device to respond
func (Device) AbsoluteMove ¶
func (Device) ContinuousMove ¶
func (Device) CreateMask ¶
func (Device) CreateProfile ¶
func (device Device) CreateProfile(profileName string, profileToken string) (MediaProfile, error)
func (Device) CreatePullPointSubscription ¶
func (device Device) CreatePullPointSubscription() (CreatePullPointSubscriptionResponse, error)
func (Device) CreateUsers ¶
func (Device) DeleteMask ¶
func (Device) DeleteProfile ¶
func (Device) DeleteUsers ¶
func (Device) FindRecordings ¶
func (Device) GetAudioEncoderConfiguration ¶
func (device Device) GetAudioEncoderConfiguration(configurationToken string) (AudioEncoderConfig, error)
func (Device) GetAudioEncoderConfigurationOptions ¶
func (device Device) GetAudioEncoderConfigurationOptions(configurationToken string, profileToken string) ([]AudioEncoderConfigurationOption, error)
truyen vao mot trong 2 tham so
func (Device) GetAudioEncoderConfigurations ¶
func (device Device) GetAudioEncoderConfigurations() ([]AudioEncoderConfig, error)
func (Device) GetAudioSourceConfiguration ¶
func (device Device) GetAudioSourceConfiguration(configurationToken string) (AudioSourceConfiguration, error)
func (Device) GetAudioSourceConfigurationOptions ¶
func (device Device) GetAudioSourceConfigurationOptions(configurationToken string, profileToken string) (string, error)
fetch input tokens available truyen vao mot trong 2 tham so
func (Device) GetAudioSourceConfigurations ¶
func (device Device) GetAudioSourceConfigurations() ([]AudioSourceConfiguration, error)
func (Device) GetAudioSources ¶
func (device Device) GetAudioSources() ([]AudioSource, error)
func (Device) GetCapabilities ¶
func (device Device) GetCapabilities() (DeviceCapabilities, error)
GetCapabilities fetch info of ONVIF camera's capabilities
func (Device) GetCompatibleAudioEncoderConfigurations ¶
func (device Device) GetCompatibleAudioEncoderConfigurations(profileToken string) ([]AudioEncoderConfig, error)
func (Device) GetCompatibleAudioSourceConfigurations ¶
func (device Device) GetCompatibleAudioSourceConfigurations(profileToken string) ([]AudioSourceConfiguration, error)
func (Device) GetCompatibleMetadataConfigurations ¶
func (device Device) GetCompatibleMetadataConfigurations(profileToken string) ([]MetadataConfiguration, error)
func (Device) GetCompatibleVideoEncoderConfigurations ¶
func (device Device) GetCompatibleVideoEncoderConfigurations(profileToken string) ([]VideoEncoderConfig, error)
func (Device) GetCompatibleVideoSourceConfigurations ¶
func (device Device) GetCompatibleVideoSourceConfigurations(profileToken string) ([]VideoSourceConfiguration, error)
func (Device) GetConfiguration ¶
func (device Device) GetConfiguration(ptzConfigurationToken string) (PTZConfiguration, error)
func (Device) GetConfigurationOptions ¶
func (device Device) GetConfigurationOptions(configurationToken string) (PTZConfigurationOptions, error)
func (Device) GetConfigurations ¶
func (device Device) GetConfigurations() ([]PTZConfiguration, error)
func (Device) GetDNS ¶
func (device Device) GetDNS() (DNSInformation, error)
func (Device) GetDiscoveryMode ¶
GetDiscoveryMode fetch network discovery mode of an ONVIF camera
func (Device) GetDynamicDNS ¶
func (device Device) GetDynamicDNS() (DynamicDNSInformation, error)
func (Device) GetEventProperties ¶
return url for unsubscribe
func (Device) GetEventSearchResults ¶
func (device Device) GetEventSearchResults(searchToken string) (ResultList, error)
func (Device) GetGuaranteedNumberOfVideoEncoderInstances ¶
func (device Device) GetGuaranteedNumberOfVideoEncoderInstances(configurationToken string) (GuaranteedNumberOfVideoEncoderInstances, error)
func (Device) GetHostname ¶
func (device Device) GetHostname() (HostnameInformation, error)
GetHostname fetch hostname of an ONVIF camera
func (Device) GetInformation ¶
func (device Device) GetInformation() (DeviceInformation, error)
GetInformation fetch information of ONVIF camera
func (Device) GetMediaAttributes ¶
func (device Device) GetMediaAttributes(time string) ([]MediaAttributes, error)
func (Device) GetMetadataConfiguration ¶
func (device Device) GetMetadataConfiguration(configurationToken string) (MetadataConfiguration, error)
func (Device) GetMetadataConfigurationOptions ¶
func (device Device) GetMetadataConfigurationOptions(configurationToken string, profileToken string) (MetadataConfigurationOptions, error)
truyen vao mot trong 2 tham so
func (Device) GetMetadataConfigurations ¶
func (device Device) GetMetadataConfigurations() ([]MetadataConfiguration, error)
func (Device) GetNTP ¶
func (device Device) GetNTP() (NTPInformation, error)
func (Device) GetNetworkDefaultGateway ¶
func (device Device) GetNetworkDefaultGateway() (NetworkGateway, error)
func (Device) GetNetworkInterfaces ¶
func (device Device) GetNetworkInterfaces() ([]NetworkInterface, error)
GetInformation fetch information of ONVIF camera
func (Device) GetNetworkProtocols ¶
func (device Device) GetNetworkProtocols() ([]NetworkProtocol, error)
func (Device) GetPresets ¶
func (Device) GetProfileMedia ¶
func (device Device) GetProfileMedia(profileToken string) (MediaProfile, error)
func (Device) GetProfiles ¶
func (device Device) GetProfiles() ([]MediaProfile, error)
GetProfiles fetch available media profiles of ONVIF camera
func (Device) GetRecordingConfiguration ¶
func (Device) GetRecordingSearchResults ¶
func (device Device) GetRecordingSearchResults(searchToken string) (ResultList, error)
func (Device) GetRecordingSummary ¶
func (device Device) GetRecordingSummary() ([]RecordingSummary, error)
func (Device) GetRelayOutputs ¶
func (device Device) GetRelayOutputs() (RelayOutput, error)
func (Device) GetReplayConfiguration ¶
func (Device) GetReplayServiceCapabilities ¶
func (Device) GetReplayUri ¶
func (Device) GetServiceCapabilities ¶
func (Device) GetServices ¶
func (Device) GetSnapshot ¶
GetSnapshot fetch snapshot URI of a media profile.
func (Device) GetStreamURI ¶
GetStreamURI fetch stream URI of a media profile. Possible protocol is UDP, HTTP or RTSP
func (Device) GetSystemDateAndTime ¶
func (device Device) GetSystemDateAndTime() (SystemDateAndTime, error)
func (Device) GetVideoEncoderConfigurationOptions ¶
func (device Device) GetVideoEncoderConfigurationOptions(configurationToken string, profileToken string) (VideoEncoderConfigurationOptions, error)
truyen vao mot trong 2 tham so
func (Device) GetVideoEncoderConfigurations ¶
func (device Device) GetVideoEncoderConfigurations() ([]VideoEncoderConfig, error)
func (Device) GetVideoSourceConfiguration ¶
func (device Device) GetVideoSourceConfiguration(configurationToken string) (VideoSourceConfiguration, error)
func (Device) GetVideoSourceConfigurationOptions ¶
func (device Device) GetVideoSourceConfigurationOptions(configurationToken string, profileToken string) (VideoSourceConfigurationOption, error)
truyen vao mot trong 2 tham so
func (Device) GetVideoSourceConfigurations ¶
func (device Device) GetVideoSourceConfigurations() ([]VideoSourceConfiguration, error)
func (Device) GetVideoSources ¶
func (device Device) GetVideoSources() ([]VideoSource, error)
func (Device) GetZeroConfiguration ¶
func (device Device) GetZeroConfiguration() (NetworkZeroConfiguration, error)
func (Device) GotoHomePosition ¶
func (Device) GotoPreset ¶
func (Device) PullMessages ¶
func (device Device) PullMessages(address string) ([]NotificationMessage, error)
return url for unsubscribe
func (Device) ReNew ¶
func (device Device) ReNew(address string) (CreatePullPointSubscriptionResponse, error)
func (Device) RelativeMove ¶
/ PTZ Control RPC x: positive => go to right || negative => go to left y: positive => go to up || negative => go to down z: positive => zoom in || negative => zoom out
func (Device) RemovePreset ¶
func (Device) RemoveScopes ¶
func (Device) SetDNS ¶
func (device Device) SetDNS(dnsInformation DNSInformation) error
func (Device) SetHomePosition ¶
func (Device) SetHostName ¶
func (Device) SetNTP ¶
func (device Device) SetNTP(ntpInformation NTPInformation) error
func (Device) SetNetworkDefaultGateway ¶
func (device Device) SetNetworkDefaultGateway(defaultGateway NetworkGateway) error
func (Device) SetNetworkInterfaces ¶
func (device Device) SetNetworkInterfaces(networkInterface NetworkInterface) error
func (Device) SetNetworkProtocols ¶
func (device Device) SetNetworkProtocols(protocols []NetworkProtocol) error
func (Device) SetSystemDateAndTime ¶
func (device Device) SetSystemDateAndTime(systemDT SystemDateAndTime) error
func (Device) SetVideoEncoderConfiguration ¶
func (device Device) SetVideoEncoderConfiguration(videoEncoderConfig VideoEncoderConfig) error
func (Device) SetVideoSourceConfiguration ¶
func (device Device) SetVideoSourceConfiguration(videoSourceConfig VideoSourceConfiguration) error
func (Device) SystemReboot ¶
func (Device) UnSubscribe ¶
type DeviceCapabilities ¶
type DeviceCapabilities struct { Network NetworkCapabilities Media MediaCapabilities Recording ExtensionCapabilities SearchRecording ExtensionCapabilities Replay ExtensionCapabilities Ptz PTZCapabilities EventsCap EventsCapabilities Streaming map[string]bool }
DeviceCapabilities contains capabilities of an ONVIF camera
type DeviceCapabilitiesService ¶
type DeviceCapabilitiesService struct { Security DeviceSecurityCapabilitiesService System DeviceSystemCapabilitiesService Network DeviceNetworkCapabilitiesService }
type DeviceInformation ¶
type DeviceInformation struct { FirmwareVersion string HardwareID string Manufacturer string Model string SerialNumber string }
DeviceInformation contains information of ONVIF camera
type DeviceSecurityCapabilitiesService ¶
type DeviceSecurityCapabilitiesService struct { RemoteUserHandling bool Dot1X bool AccesssPolicyConfig bool OnboardKeyGeneration bool HttpDigest bool X509Token bool DefaultAccessPolicy bool RELToken bool KerberosToken bool TLS12 bool TLS11 bool TLS10 bool UsernameToken bool SAMLToken bool }
Service Device
type DurationRange ¶
type DynamicDNSInformation ¶
type DynamicDNSInformation struct { Type string // 'NoUpdate', 'ClientUpdates', 'ServerUpdates' Name string TTL string }
DynamicDNSInformation
type EventsCapabilities ¶
type EventsCapabilitiesService ¶
type EventsCapabilitiesService struct { MaxNotificationProducers int WSPausableSubscriptionManagerInterfaceSupport bool WSPullPointSupport bool WSSubscriptionPolicySupport bool PersistentNotificationStorage bool MaxPullPoints int }
Service Events
type ExtensionCapabilities ¶
type ExtensionCapabilities struct {
XAddr string `json:"xAddr"`
}
type FloatRange ¶
type FocusConfiguration ¶
type GuaranteedNumberOfVideoEncoderInstances ¶
GuaranteedNumberOfVideoEncoderInstances
type H264Configuration ¶
type H264Configuration struct { GovLength int H264Profile string //'Baseline', 'Main', 'Extended', 'High' }
VideoEncoderConfig contains configuration of a video encoder
type H264Options ¶
type HostnameInformation ¶
HostnameInformation contains hostname info of an ONVIF camera
type IPv4Configuration ¶
type IPv4Configuration struct { Manual PrefixedIPAdress LinkLocal PrefixedIPAdress FromDHCP PrefixedIPAdress DHCP bool }
type IPv4NetworkInterface ¶
type IPv4NetworkInterface struct { Enabled bool Config IPv4Configuration }
type ImagingCapabilitiesService ¶
type ImagingCapabilitiesService struct {
ImageStabilization bool
}
Service Imaging
type ImagingSettings ¶
type ImagingSettings struct { BacklightCompensation BacklightCompensation Brightness float64 ColorSaturation float64 Contrast float64 Exposure Exposure Focus FocusConfiguration IrCutFilter string // 'ON', 'OFF', 'AUTO' Sharpness float64 WideDynamicRange WideDynamicRange WhiteBalance WhiteBalance }
type IntRectangleRange ¶
type MediaAttributes ¶
type MediaBounds ¶
MediaBounds contains resolution of a video media
type MediaCapabilities ¶
type MediaCapabilities struct {
XAddr string `json:"xAddr"`
}
MediaCapabilities contains media capabilities of ONVIF camera
type MediaCapabilitiesService ¶
type MediaCapabilitiesService struct { OSD bool VideoSourceMode bool Rotation bool SnapshotUri bool ProfileCapabilities MediaProfileCapabilitiesService StreamingCapabilities MediaStreamingCapabilitiesService }
type MediaProfile ¶
type MediaProfile struct { Name string Token string VideoSourceConfig MediaSourceConfig VideoEncoderConfig VideoEncoderConfig AudioSourceConfig MediaSourceConfig AudioEncoderConfig AudioEncoderConfig PTZConfig PTZConfig }
MediaProfile contains media profile of an ONVIF camera
type MediaProfileCapabilitiesService ¶
type MediaProfileCapabilitiesService struct {
MaximumNumberOfProfiles int
}
Service Media
type MediaSourceConfig ¶
type MediaSourceConfig struct { Name string Token string SourceToken string Bounds MediaBounds }
MediaSourceConfig contains configuration of a media source
type MessageData ¶
type MetadataConfiguration ¶
type MetadataConfigurationOptions ¶
type MetadataConfigurationOptions struct { GeoLocation bool PTZStatusFilterOptions PTZStatusFilterOptions }
type MoveStatus ¶
type NTPInformation ¶
type NTPInformation struct { FromDHCP bool NTPNetworkHost []NetworkHost // NetworkHost of NTPFromDHCP if FromDHCP is true, else of NTPManual }
type NetworkCapabilities ¶
NetworkCapabilities contains networking capabilities of ONVIF camera
type NetworkHost ¶
NTP information struct
type NetworkInterface ¶
type NetworkInterface struct { Token string Enabled bool Info NetworkInterfaceInfo Link NetworkInterfaceLink IPv4 IPv4NetworkInterface }
type NetworkInterfaceInfo ¶
NetWork Interface
type NetworkInterfaceLink ¶
type NetworkInterfaceLink struct { AdminSettings NetworkInterfaceConnectionSetting OperSettings NetworkInterfaceConnectionSetting InterfaceType string }
type NetworkProtocol ¶
NetWork Protocols
type NetworkZeroConfiguration ¶
NetworkZeroConfiguration
type NotificationMessage ¶
type NotificationMessage struct { Topic string UtcTime string Data []MessageData Source []MessageData }
type OnvifVersion ¶
type OnvifXAddress ¶
func GetXAddress ¶
func GetXAddress(od Device) (OnvifXAddress, error)
type PTControlDirection ¶
type PTZCapabilities ¶
type PTZCapabilities struct {
XAddr string `json:"xAddr"`
}
type PTZCapabilitiesService ¶
Service PTZ
type PTZConfiguration ¶
type PTZConfiguration struct { Token string Name string MoveRamp int PresetRamp int PresetTourRamp int NodeToken string DefaultAbsolutePantTiltPositionSpace string DefaultAbsoluteZoomPositionSpace string DefaultRelativePanTiltTranslationSpace string DefaultRelativeZoomTranslationSpace string DefaultContinuousPanTiltVelocitySpace string DefaultContinuousZoomVelocitySpace string DefaultPTZSpeed PTZVector DefaultPTZTimeout string PanTiltLimits PanTiltLimits ZoomLimits ZoomLimits }
type PTZConfigurationOptions ¶
type PTZConfigurationOptions struct { Spaces PTZSpaces PTZTimeout DurationRange PTControlDirection PTControlDirection }
type PTZSpaces ¶
type PTZSpaces struct { AbsolutePanTiltPositionSpace Space2DDescription AbsoluteZoomPositionSpace Space1DDescription RelativePanTiltTranslationSpace Space2DDescription RelativeZoomTranslationSpace Space1DDescription ContinuousPanTiltVelocitySpace Space2DDescription ContinuousZoomVelocitySpace Space1DDescription PanTiltSpeedSpace Space1DDescription ZoomSpeedSpace Space1DDescription }
type PTZStatus ¶
type PTZStatus struct { Position PTZVector MoveStatus MoveStatus UtcTime string }
type PTZStatusFilterOptions ¶
type PanTiltLimits ¶
type PanTiltLimits struct {
Range Space2DDescription
}
type PrefixedIPAdress ¶
type ProfileSupport ¶
type ProfileSupport struct { ResolutionsAvailable []Resolution `json:"resolutionsAvailable"` FpsRange Bound `json:"fpsRange"` GovLength Bound `json:"govLength"` }
type RateControl ¶
type RecordingInformation ¶
type RecordingSummary ¶
type RelayOutput ¶
type RelayOutput struct { Token string Properties RelayOutputSettings }
type RelayOutputSettings ¶
type RelayOutputSettings struct { Mode string // 'Bistable', 'Monostable' DelayTime string IdleState string // 'closed', 'open' }
RelayOutput
type Resolution ¶
type ResultList ¶
type ResultList struct { SearchState string RecordingInformation []RecordingInformation }
type SOAP ¶
type SOAP struct { Body string XMLNs []string User string Password string TokenAge time.Duration Action string NoDebug bool }
SOAP contains data for SOAP request
type Service ¶
type Service struct { Namespace string XAddr string Capabilities CapabilitiesService Version OnvifVersion }
type Space1DDescription ¶
type Space1DDescription struct { URI string XRange FloatRange }
type Space2DDescription ¶
type Space2DDescription struct { URI string XRange FloatRange YRange FloatRange }
type Stream ¶
type Stream struct { ProfileToken string `json:"profileToken"` VideoEncToken string `json:"videoEncToken"` VideoCodec string `json:"videoCodec"` StreamURI string `json:"streamUri"` Resolution Resolution `json:"resolution"` RateControl RateControl `json:"rateControl"` ProfileSupport ProfileSupport `json:"profileSupport"` SnapshotURI string `json:"snapshotUri"` VideoSourceToken string `json:"videoSourceToken"` }
type SubscriptionReference ¶
type SubscriptionReference struct {
Address string
}
type SystemDateAndTime ¶
type SystemDateAndTime struct { DateTimeType string DaylightSavings bool TimeZone UTCDateTime }
type UTCDateTime ¶
type User ¶
type User struct { Username string Password string UserLevel string // 'Administrator', 'Operator', 'User', 'Anonymous', 'Extended' }
User
type VideoEncoderConfig ¶
type VideoEncoderConfig struct { Name string Token string Encoding string Quality float64 RateControl VideoRateControl Resolution MediaBounds SessionTimeout string H264 H264Configuration Multicast Multicast GuaranteedFrameRate bool UseCount int }
type VideoEncoderConfigurationOptions ¶
type VideoEncoderConfigurationOptions struct { QualityRange IntRange H264 H264Options }
type VideoRateControl ¶
VideoRateControl contains rate control of a video
type VideoSource ¶
type VideoSource struct { Token string Framerate float64 Resolution MediaBounds Imaging ImagingSettings }
VideoSource
type VideoSourceConfiguration ¶
type VideoSourceConfiguration struct { Token string Name string SourceToken string Bounds IntRectangle }
Video Source Configuration
type VideoSourceConfigurationOption ¶
type VideoSourceConfigurationOption struct { MaximumNumberOfProfiles int BoundsRange IntRectangleRange VideoSourceTokensAvailable string }
type WhiteBalance ¶
type WideDynamicRange ¶
type ZoomLimits ¶
type ZoomLimits struct {
Range Space1DDescription
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
The digest package provides an implementation of http.RoundTripper that takes care of HTTP Digest Authentication (http://www.ietf.org/rfc/rfc2617.txt).
|
The digest package provides an implementation of http.RoundTripper that takes care of HTTP Digest Authentication (http://www.ietf.org/rfc/rfc2617.txt). |