Placeholder-Software / Dissonance

Unity Voice Chat Asset
69 stars 5 forks source link

TNet3 P2P Not Initialising #191

Closed martindevans closed 4 years ago

martindevans commented 4 years ago

As reported on reddit the P2P startup for TNet3 is never getting called.

martindevans commented 4 years ago

I've investigated this and it seems that the start of P2P initiation was never implemented! The next release of the TNet integration will add it.

martindevans commented 4 years ago

Dissonance 7.0.1 has just been released, this includes an update to the TNet integration which adds support for P2P.

P2P voice is disabled by default. To enable it you need to pass a true to the final parameter when joining the voice channel:

JoinVoiceChannel(int channel, string password, bool useP2P)

P2P is disabled by default for two reasons:

  1. Anyone currently using the TNet3 package does not have P2P voice, setting the default to false means that current installations are significantly not changed when upgrading the integration package.
  2. P2P voice is often not desirable: it reduces server bandwidth usage and instead increases client bandwidth usage.