Add an engine for global webrtc settings

* hook up UDP limitation to it.
This was Michiel De Backker's suggestion

relates to #281
This commit is contained in:
Woodrow Douglass
2018-12-20 10:34:45 -05:00
committed by Michiel De Backker
parent a6df5427f7
commit a2819a1b93
4 changed files with 35 additions and 8 deletions

View File

@@ -44,11 +44,6 @@ type RTCConfiguration struct {
// IceCandidatePoolSize describes the size of the prefetched ICE pool.
IceCandidatePoolSize uint8
// MinLocalPort and MaxLocalPort, if nonzero, set limits to local ephemeral
// UDP ports that are allocated by the ICE agent.
MinLocalPort uint16
MaxLocalPort uint16
}
func (c RTCConfiguration) getIceServers() (*[]*ice.URL, error) {