Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Photon Voice not working in my version of Pun-Basic tutorial scene

$
0
0
Fairly new to Photon but have got a multiplayer app working well, including photon chat. I've tried the photon Voice demo and that works for me too.

However when I tried to add Photon Voice to my existing app it won't work. My app is based on the Basic Tutorial project, with a Launch scene which then opens a Room in a different scene (in my case it's always the same scene, I'm not using different scenes depending on the number of players)

I've placed a copy of the Voice gameObject (with PushToTalk and PhotonVoiceSettings scripts attached) as well as the Push to talk button into my scene. But no audio comes out. The console displays an error:
PUNVoice: Attempt to create multiple instances of PhotonVoiceSettings
after the PUN Room is loaded but before the player is instantiated:


I then tried using the GUI debugging script from the TestVoice scene (I removed ConnectAndJoinRandom and OnJoinedInstantiate as this is already being taken care of in my scene.
Same error but I'm getting a little bit more feedback from the GUI:

After clicking 'Connect' in the Photon Voice section of the GUI I get an additional Warning in the console:
PUN Voice: Got an unexpected Disconnect in Load Balancing Client
After having had a look at other posts in the forum, I'm wondering whether the problem is to do with the timing of the instantiation of the Photon Voice singleton? Do I need to delay the voice functionality until after my player is instantiated?

If so, how would I go about it?

Any help much appreciated!


Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images