streamer

package
v0.0.0-...-b7e086b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const WebSocketSendBufferSize = 50

Number of packets (should be closely correlated with number of frames) that we will buffer on the send side, before dropping packets to the sender. NOTE: If a camera's IDR interval is greater than this number, then sendBacklog will often fail, because we'll run out of buffer space before we've sent an IDR. We should really make this buffer size dynamic, and dependent on the IDR interval. eg.. perhaps max(20, IDRInterval+1), or something like that.

Variables

This section is empty.

Functions

func RunVideoWebSocketStreamer

func RunVideoWebSocketStreamer(cameraName string, logger log.Log, conn *websocket.Conn, stream *camera.Stream, backlog *camera.VideoRingBuffer, detections chan *monitor.AnalysisState)

Types

type VideoWebSocketStreamer

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

func (*VideoWebSocketStreamer) OnConnect

Jump to

Keyboard shortcuts

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