Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge manages a single RTSP source and fans out RTP packets to multiple WebRTC PeerConnections via a shared TrackLocalStaticRTP.
type BridgeManager ¶
type BridgeManager struct {
// contains filtered or unexported fields
}
BridgeManager is the registry of active bridges keyed by "entityId/cameraIndex".
func NewBridgeManager ¶
func NewBridgeManager() *BridgeManager
func (*BridgeManager) GetOrCreate ¶
func (bm *BridgeManager) GetOrCreate(key, rtspURL string) (*Bridge, error)
GetOrCreate returns an existing bridge or creates a new one for the given RTSP URL.
type EntityLookup ¶
EntityLookup provides entity access without importing the engine package.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the HTTP handler for WHEP requests.
func NewHandler ¶
func NewHandler(lookup EntityLookup) *Handler
type ImageProxyHandler ¶
type ImageProxyHandler struct {
// contains filtered or unexported fields
}
ImageProxyHandler serves camera images by proxying the entity's image stream URL.
func NewImageProxyHandler ¶
func NewImageProxyHandler(lookup EntityLookup) *ImageProxyHandler
func (*ImageProxyHandler) ServeHTTP ¶
func (h *ImageProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.