No audio on late joining player.
Options
tavilad
✭
Hello, i have an issue while late joining a room with a client. The setup is as follows,
Player 1 creates room, loads the scene.
Player 2 late joins the room, changes scene, spawns the player via a cached event, and has no audio.
There is no issue if both players start the match at the same time.
I am using Photon voice 1.
https://i.imgur.com/iEfrhrn.png i get this warning on the late joining player.
Thank you in advance
Player 1 creates room, loads the scene.
Player 2 late joins the room, changes scene, spawns the player via a cached event, and has no audio.
There is no issue if both players start the match at the same time.
I am using Photon voice 1.
https://i.imgur.com/iEfrhrn.png i get this warning on the late joining player.
Thank you in advance
0
Comments
-
Hi @tavilad,
Thank you for choosing Photon!
This is really weird as this use case should be handled in Photon Voice 1.
Could you increase PUN logging and Network logging and enable PhotonVoiceSettings.DebugInfo and send us full logs from the two clients?
Why does it say voice #2? do you have two audio prefabs or do you transmit and stop then transmit again?
The late join speaker linking should happen inPhotonVoiceSpeaker.Awake
...
hmm maybe it should be in OnEnable or Start...
are you planning on migrating to Photon Voice 2 any time soon?
we have fixed a similar issue with this patched unreleased version if you can quickly try reproducing this it using it...0 -
@JohnTube
https://pastebin.com/C51K6GD8
here is the log of the late joining player.
Edit:
Moving PhotonVoiceNetwork.LinkSpeakerToRemoteVoice(this); from Awake() of PhotonVoiceSpeaker to Start() seems to have solved the problem
0