Reputation:
I am currently using a Stun server (A public one). However, I need to have good audio quality and am slightly confused by Stun servers.
Thanks so much!!!
Upvotes: 2
Views: 2017
Reputation: 1469
A STUN server has nothing to do with the audio quality. It's only used to find your IP address. Something that could affect latency/network quality is a TURN server as it is a relay server where data passes through. TURN is used when a direct connection between the peers isn't possible using the STUN method.
To have better quality you need to set the media parameters when you ask them from getUserMedia
. Here are the constraints you can use for audio https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints.
Upvotes: 2