I am using PhotonVoice with the standard PhotonVoiceSettings. I instantiate an voice speaker object and its working fine (on Android).
I also have some replication going on directly with PUN.
When the app goes into background and then unpauses voice and networking continue to work.
If I pause the app for a little over 10 seconds and then return, the voice stops working but the other networking continues.
I turned on logging and I can see these messages when the voice stops:
PUNVoice: [PV] Player 2 voices removed on leave
PUNVoice: Player 2 voice #1 speaker unlinked
Then later when shutdown the app I get:
PUNVoice: Voice Client state: Disconnecting
PUNVoice: Voice Client state: Disconnected
PUNVoice: Voice Client state: Disconnected
OnStatusChanged: Disconnect
OnLeftRoom
...
Why is PUNVoice disconnecting earlier than PUN itself?
Can I change it to the same timesouts?
How can I detect that PUNVoice has disconnected and ask it to reconnect?
In my PhotonVoiceSettings I have AutoConnect, AutoDisconnect, AutoTransmit all set to true, so I'm not directly managing the voice connection.
Thanks
Jules
I also have some replication going on directly with PUN.
When the app goes into background and then unpauses voice and networking continue to work.
If I pause the app for a little over 10 seconds and then return, the voice stops working but the other networking continues.
I turned on logging and I can see these messages when the voice stops:
PUNVoice: [PV] Player 2 voices removed on leave
PUNVoice: Player 2 voice #1 speaker unlinked
Then later when shutdown the app I get:
PUNVoice: Voice Client state: Disconnecting
PUNVoice: Voice Client state: Disconnected
PUNVoice: Voice Client state: Disconnected
OnStatusChanged: Disconnect
OnLeftRoom
...
Why is PUNVoice disconnecting earlier than PUN itself?
Can I change it to the same timesouts?
How can I detect that PUNVoice has disconnected and ask it to reconnect?
In my PhotonVoiceSettings I have AutoConnect, AutoDisconnect, AutoTransmit all set to true, so I'm not directly managing the voice connection.
Thanks
Jules