stream

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Video

func Video(options CameraOptions, writer io.Writer, connectionsChange chan int)

Video streams the video for the Raspberry Pi camera to a websocket

Types

type CameraOptions

type CameraOptions struct {
	Width               int
	Height              int
	Fps                 int
	HorizontalFlip      bool
	VerticalFlip        bool
	Rotation            int
	UseLibcamera        bool // Set to true to enable libcamera, otherwise use legacy raspivid stack
	AutoDetectLibCamera bool // Set to true to automatically detect if libcamera is available. If true, UseLibcamera is ignored.
}

CameraOptions sets the options to send to raspivid

Jump to

Keyboard shortcuts

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