webrtc: expose ICEServerURIs on Subsystem for WHEP Link header (issue #19)
Some checks failed
ci / race tests (push) Blocked by required conditions
ci / WebRTC smoke (5-viewer fanout) (push) Blocked by required conditions
ci / WebRTC latency p95 gate (push) Blocked by required conditions
ci / vet + build (push) Has been cancelled

This commit is contained in:
Zac Gaetano 2026-05-10 13:30:35 -04:00
parent 38d75b10b0
commit e257deb744

View file

@ -180,6 +180,14 @@ func (s *Subsystem) StreamCount() int {
return len(s.streams)
}
// ICEServerURIs returns the ICE server URI list from the core config.
// Used by the WHEP handler to emit RFC 9429 §4.3 Link headers so that
// browsers can discover STUN/TURN servers without a separate signalling
// round-trip.
func (s *Subsystem) ICEServerURIs() []string {
return s.coreCfg.ICEServers
}
// lookup returns the per-process WHEP stream pair for id, or nil, false.
// Used by the WHEP handler.
func (s *Subsystem) lookup(id string) (*processStream, bool) {