web

package
v0.0.0-...-15b6bd6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package web provides the HTTP server and WebSocket endpoint for remote control.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the HTTP server with WebSocket support

func NewServer

func NewServer(
	addr string,
	handler *events.Handler,
	ustreamerAddr string,
	videoDevice string,
) *Server

NewServer creates a new web server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the server with graceful shutdown support

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

type VideoSettings

type VideoSettings struct {
	Quality    int `json:"quality"`
	DesiredFPS int `json:"desiredFps"`
}

VideoSettings holds configurable ustreamer parameters

func DefaultVideoSettings

func DefaultVideoSettings() VideoSettings

DefaultVideoSettings returns the default video settings

Jump to

Keyboard shortcuts

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