webrtc: expose ICEServerURIs on Subsystem for WHEP Link header (issue #19)
This commit is contained in:
parent
38d75b10b0
commit
e257deb744
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue