roommedia

package
v0.0.0-...-a0cacf1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAdvertiseURL

func ValidateAdvertiseURL(configured string) error

ValidateAdvertiseURL requires the clean HTTPS origin that agents reach with the pinned worker certificate. {port} expands to the bound listener port.

Types

type Config

type Config struct {
	ListenAddress           string
	AdvertiseURL            string
	PublicIP                string
	UDPPortMin              uint16
	UDPPortMax              uint16
	ICEServers              []string
	TURNSecret              string
	TURNCredentialTTL       time.Duration
	TURNUsernamePrefix      string
	MaxViewers              int
	PublisherReconnectGrace time.Duration
}

type Handler

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

func NewHandler

func NewHandler(config Config) *Handler

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) Execute

func (h *Handler) Execute(ctx context.Context, spec domain.Spec) (domain.Result, error)

func (*Handler) Kind

func (*Handler) Kind() domain.Kind

func (*Handler) PrepareListener

func (h *Handler) PrepareListener() error

PrepareListener binds the pinned TLS signaling listener before the worker advertises WebRTC media. Configuration or port conflicts fail startup closed.

func (*Handler) Validate

func (h *Handler) Validate(spec domain.Spec) error

Jump to

Keyboard shortcuts

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