Documentation
¶
Overview ¶
Package cam provides a mjpeg camera client that allows for pipelining streams of jpeg data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
type Camera struct {
Name string // name of the camera; name will be passed along with frames
URL string // url of the camera
Username string // optional username for authentication
Password string // optional password for authentication
AuthType string
Log bool // should log
LastFrame *Frame
Reconnect bool // should automatically retry
// contains filtered or unexported fields
}
A Camera is a set of configuration data for an mjpeg camera
func (*Camera) Stop ¶
func (cam *Camera) Stop()
Stop closes the camera connection and removes all listeners
func (*Camera) Subscribe ¶
Subscribe creates a new channel that receives Frames. To unsubscribe, pass the returned channel to the Unsubscribe method.
func (*Camera) Unsubscribe ¶
Unsubscribe removes a channel returned from a Subscribe call from the list of cam listeners. Unsubscribe returns a boolean value of whether the channel was found and removed from the listeners.
Click to show internal directories.
Click to hide internal directories.

