Microphone not working after user re-enter a room

Stack:
Unity 2019.2.19f1
MacOS
PUN2 v2.16
Photon Voice v2.12


In our VR multiplayer game there are two rooms:
Lobby (scene 0) - single player
Forum (scene 1) - multiplayer

This is the flow:
  • Player 1 enter the Forum (starting from Lobby)
  • Player 2 enter the Forum (starting from Lobby)
  • Player 1 and Player 2 can hear each other well
  • Player 1 leaves the room
  • Player 1 back to the Lobby
  • Player 1 re-enter the Forum
  • Player 1 can hear Player 2, but Player 2 cannot hear Player 1

Analysing the logs for Player 1 I noticed that when everything is working well:
photonVoiceView.IsSetup: true
hotonVoiceView.IsRecorder: true
recorder.IsInitialized: true
recorder.IsRecording: true
recorder.TransmitEnabled: true
recorder.IsCurrentlyTransmitting: true

but after Player 1 comes back to the forum:
photonVoiceView.IsSetup: true
hotonVoiceView.IsRecorder: true
recorder.IsInitialized: true
recorder.IsRecording: true
recorder.TransmitEnabled: true
recorder.IsCurrentlyTransmitting: false

IsCurrentlyTransmitting now it's false and cannot change.

I have tried with both Unity Microphone type and Photon microphone type, and the result is always the same.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @BFX,

    This is a known issue, already fixed but the fix is not released yet.
    It will be out in the next version.

    Replace PhotonVoiceNetwork with this version.

    Thank you for your understanding and patience.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @BFX,

    I just submitted version 2.13 to the Unity Asset Store.
    It should contain the fix for the issue you reported.

    Thank you for your understanding and patience.
  • Nice! It works finally thanks a lot!!!!