diff --git a/app/webrtc/subsystem.go b/app/webrtc/subsystem.go index 6a3e902..69bdc88 100644 --- a/app/webrtc/subsystem.go +++ b/app/webrtc/subsystem.go @@ -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) {