Skip to content

Implement ICECandidatePoolSize (gathering before SetLocalDescription/SetRemoteDescription) #2892

@om26er

Description

@om26er

Here is the code

	// Prepare the configuration
	config := webrtc.Configuration{
		ICEServers:           r.iceServers,
		ICECandidatePoolSize: 10,
	}

	// Create a new RTCPeerConnection
	connection, err := webrtc.NewPeerConnection(config)
	if err != nil {
		panic(err)
	}

	connection.OnICECandidate(func(candidate *webrtc.ICECandidate) {
		log.Println(candidate)
	})

It doesn't do anything unless description is set

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions