camera

package
v0.0.0-...-6e85980 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 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(camdev string) *Camera

New returns a new camera instance.

func (*Camera) WriteStream

func (cam *Camera) WriteStream(w http.ResponseWriter, r *http.Request)

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