camera

package
v0.0.0-...-43894a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPipe

func RunPipe(dev string, w, h uint32)

Types

type Camera

type Camera struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Camera holds all connected feed consumers and controls the feed input.

func New

func New() *Camera

New returns a new camera instance.

func (*Camera) WriteStream

func (cam *Camera) WriteStream(w http.ResponseWriter)

WriteStream writes a multipart (mjpeg) stream to the given response writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL