mjpeg

package
v0.0.0-...-f7852f7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorEndOfStream = errors.New("end of Motion JPEG Stream")

ErrorEndOfStream signals the end of the Motion JPEG frames from a MJPEG stream

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Next    func(string) (image.Image, error)
	Options *jpeg.Options
}

A Handler is an http.Handler that streams mjpeg using an image stream. Encoding quality can be controlled using the Options parameters.

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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