Documentation ¶
Index ¶
- type Capture
- func (c *Capture) CloseStream() error
- func (c *Capture) ForceReconnect() error
- func (c *Capture) Fps() time.Duration
- func (c *Capture) Pause()
- func (c *Capture) PauseWithTimeout(timeout time.Duration)
- func (c *Capture) Resume()
- func (c *Capture) SetFps(fps float64)
- func (c *Capture) SetReconnect(attempts int, delay time.Duration)
- type Data
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capture ¶
type Capture struct { Connection chan Data // contains filtered or unexported fields }
func New ¶
New creates a new connection and returns the pointer to Capture struct
func (*Capture) CloseStream ¶
CloseStream disconnect's active stream
func (*Capture) ForceReconnect ¶
ForceReconnect forces stream to close and connect again for various reasons
func (*Capture) Fps ¶
Fps returns the current fps target set by user or a default one if user did not provide one.
func (*Capture) Pause ¶
func (c *Capture) Pause()
Pause simply stop processing frames, but maintain the connection with the camera In simple words, it uses Grab() instead of Read()
func (*Capture) PauseWithTimeout ¶
PauseWithTimeout is the same as Pause but it will automaticly resume after timeout passed.
func (*Capture) SetFps ¶
SetFps sets the target fps for the camera
Click to show internal directories.
Click to hide internal directories.