camera

package
v0.0.0-...-418de2e Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	*exec.Cmd
}

Process handles command line and errors for the OS process that captures the video / picture.

func NewPictureProcess

func NewPictureProcess(width, height, quality int) *Process

NewPictureProcess configures a new Process for capturing picture(s).

func NewVideoProcess

func NewVideoProcess(width, height, fps int) *Process

NewVideoProcess configures a new Process for capturing video.

func (*Process) Run

func (p *Process) Run() error

Run starts the process and waits until it finishes.

type Server

type Server struct {
	ValidatePassword func(string) error
}

Server allows serving video stream and pictures over HTTP.

func (*Server) Handler

func (s *Server) Handler(w http.ResponseWriter, r *http.Request)

Handler replies to the client request for camera pictures or video.

Jump to

Keyboard shortcuts

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