package
Version:
v0.0.0-...-f5abbc1
Opens a new window with list of versions in this module.
Published: Sep 20, 2017
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package mjpeg creates a motion jpeg handler from a camera
type FrameGetter interface {
GetFrame() ([]byte, error)
}
FrameGetter is any structure that can return a JPEG image in bytes.
Ideally this would be a camera of some sort.
Mjpeg is a http.Handler used to server up Motion JPEG.
New creates a new MJPEG instance with the given FrameGetter.
ServerHTTP will use the camera in Mjpeg server it over the response.
Sets all the appropriate headers to be able to stream a Mjpeg over http.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.