No audio at first connection to Photon Voice

in Photon Voice
I'm using Photon Voice with Oculus Quest, voice transmission doesn't work when connecting for the first time (Quest asks for microphone permission) - works afterwards - is this a known issue - is there a fix? Thank you!
0
Best Answers
-
Hi @UnityUser,
Thank you for choosing Photon!
I think that you need to restart recording once permission is granted.
Or start without recording and then enable recording when permission is granted.0 -
Hi @UnityUser,
call recorder.RestartRecording(true) if you choose to restart once permission is granted.0
Answers
-
Hi @UnityUser,
Thank you for choosing Photon!
I think that you need to restart recording once permission is granted.
Or start without recording and then enable recording when permission is granted.0 -
Thank you @JohnTube - should I do this with bool force true or false?
public void RestartRecording(bool force = false)
{
if (!force && !this.RequiresRestart)
{
if (this.Logger.IsWarningEnabled)
{
this.Logger.LogWarning("Recorder does not require restart.");
}
return;
}
if (this.Logger.IsDebugEnabled)
{
this.Logger.LogDebug("Restarting recording, RequiresRestart?={0} forcedRestart?={1}", this.RequiresRestart, force);
}
this.StopRecording();
this.StartRecording();
}0 -
Hi @UnityUser,
call recorder.RestartRecording(true) if you choose to restart once permission is granted.0