Documentation ¶
Index ¶
- type AudioEncoderConfig
- type Device
- func (device Device) GetCapabilities() (DeviceCapabilities, error)
- func (device Device) GetDiscoveryMode() (string, error)
- func (device Device) GetHostname() (HostnameInformation, error)
- func (device Device) GetInformation() (DeviceInformation, error)
- func (device Device) GetProfiles() ([]MediaProfile, error)
- func (device Device) GetScopes() ([]string, error)
- func (device Device) GetStreamURI(profileToken, protocol string) (MediaURI, error)
- type DeviceCapabilities
- type DeviceInformation
- type HostnameInformation
- type MediaBounds
- type MediaProfile
- type MediaSourceConfig
- type MediaURI
- type NetworkCapabilities
- type PTZConfig
- type SOAP
- type VideoEncoderConfig
- type VideoRateControl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 Device ¶
Device contains data of ONVIF camera
func StartDiscovery ¶
StartDiscovery send a WS-Discovery message and wait for all matching device to respond
func (Device) GetCapabilities ¶
func (device Device) GetCapabilities() (DeviceCapabilities, error)
GetCapabilities fetch info of ONVIF camera's capabilities
func (Device) GetDiscoveryMode ¶
GetDiscoveryMode fetch network discovery mode of an ONVIF camera
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) GetProfiles ¶
func (device Device) GetProfiles() ([]MediaProfile, error)
GetProfiles fetch available media profiles of ONVIF camera
type DeviceCapabilities ¶
type DeviceCapabilities struct { Network NetworkCapabilities Events map[string]bool Streaming map[string]bool }
DeviceCapabilities contains capabilities of an ONVIF camera
type DeviceInformation ¶
type DeviceInformation struct { FirmwareVersion string HardwareID string Manufacturer string Model string SerialNumber string }
DeviceInformation contains information of ONVIF camera
type HostnameInformation ¶
HostnameInformation contains hostname info of an ONVIF camera
type MediaBounds ¶
MediaBounds contains resolution of a video media
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 MediaSourceConfig ¶
type MediaSourceConfig struct { Name string Token string SourceToken string Bounds MediaBounds }
MediaSourceConfig contains configuration of a media source
type NetworkCapabilities ¶
NetworkCapabilities contains networking capabilities of ONVIF camera
type VideoEncoderConfig ¶
type VideoEncoderConfig struct { Name string Token string Encoding string Quality int RateControl VideoRateControl Resolution MediaBounds SessionTimeout string }
VideoEncoderConfig contains configuration of a video encoder
type VideoRateControl ¶
VideoRateControl contains rate control of a video