streamer

package
v0.0.0-...-59404b9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MjpegStreamer

type MjpegStreamer struct {
	// contains filtered or unexported fields
}

func NewMjpegStreamer

func NewMjpegStreamer(dev *capture.CaptureDevice, boundary string, width int, height int) *MjpegStreamer

func (*MjpegStreamer) Handler

func (m *MjpegStreamer) Handler() func(ctx *gin.Context)

func (*MjpegStreamer) HtmlElement

func (m *MjpegStreamer) HtmlElement() string

func (*MjpegStreamer) Path

func (m *MjpegStreamer) Path() string

func (*MjpegStreamer) Streaming

func (m *MjpegStreamer) Streaming(writer io.Writer) error

type Streamer

type Streamer interface {
	Streaming(io.Writer) error
	Handler() func(ctx *gin.Context)
	Path() string
	HtmlElement() string
}

func NewStreamer

func NewStreamer(dev *capture.CaptureDevice) (Streamer, error)

Jump to

Keyboard shortcuts

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