Hey,
We are using PhotonVoice on Oculus Quest (android) for a VR game, Unity Version 2018.4.11 and Photon Voice v2.9 / PUN2: v2.14 .
The audio works smoothly when starting the app and we can hear other clients. However, after pausing the app and unpausing the app, the Photon Voice Networking state gets stuck in "Disconnecting" and no audio can be heard.
We have found a temporary solution is to check if the voice state is "Disconnecting" after Photon Network has successfully joined a room, force set the state to "Disconnected", and try to reconnect manually.
if (PhotonNetwork.InRoom && PhotonVoiceNetwork.Instance.ClientState == ClientState.Disconnecting) {
PhotonVoiceNetwork.Instance.ClientState = ClientState.Disconnected;
PhotonVoiceNetwork.Instance.ConnectAndJoinRoom();
}
This solution works, but we are concerned that force setting a state may cause other issues. Is there another way to handle this situation?