Documentation
¶
Overview ¶
Package poll implements a tick-based JPEG polling worker.
Instead of managing RTSP sessions directly, it polls go2rtc's HTTP API for pre-decoded JPEG frames. This eliminates H264 NAL assembly, GOP buffering, and the ffmpeg subprocess used by the previous approach.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JPEGFetcher ¶
JPEGFetcher retrieves raw JPEG bytes for a named stream. The go2rtc Client satisfies this interface.
type Publisher ¶
Publisher uploads frames and publishes stream metadata. media.Publisher satisfies this interface.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker polls go2rtc at a fixed interval, gates on motion, and publishes motion-bearing frames to MinIO + Redis Streams.
Click to show internal directories.
Click to hide internal directories.