mjpeg

package
v0.0.0-...-70b8bd4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port     int    `json:"port,omitempty"`
	Path     string `json:"path,omitempty"`
	Boundary string `json:"boundary,omitempty"`
}

Configuration for MJPEG sink

type Sink

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

Sink implements MJPEG HTTP streaming

func (*Sink) GetConfig

func (s *Sink) GetConfig() map[string]interface{}

GetConfig returns the sink configuration

func (*Sink) GetKind

func (s *Sink) GetKind() string

GetKind returns the sink type

func (*Sink) Start

func (s *Sink) Start() error

Start starts the MJPEG HTTP server

func (*Sink) Stop

func (s *Sink) Stop(force bool) error

Stop stops the MJPEG sink

func (*Sink) Write

func (s *Sink) Write(ctx context.Context, data []byte, metadata map[string]interface{}) error

Write sends a frame to the MJPEG stream

Jump to

Keyboard shortcuts

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