How to initialize Recorder ? Photon Voice

sunilsunil
edited September 25 in Photon Voice
"Recorder require initialization, Call recorder.init(VoiceClient, object)"
How can i initialize recorder ?

https://doc.photonengine.com/en-us/voice/current/getting-started/recorder#initialization
in this section it is not properly mentioned.

Best Answers

  • sunilsunil
    edited September 25 Accepted Answer
    Thanks !!😊

    I am using Photon Voice 2 with PUN 2.
    i follow the flows here

    The problem has been solved.

    recorder.Init(voiceConnection.VoiceClient, customObjectIfAny); this method automatically called when you instantiate player using PhotonNetwork.Instantiate("prefab_Name"); and it must have PhotonView component attached to it but in my project i was creating lobby player using unity Instantiate(prefab);, so i changed it PhotonNetwork.Instantiate("prefab_Name"); and, it worked .😁

Answers

  • sunilsunil
    edited September 25 Accepted Answer
    Thanks !!😊

    I am using Photon Voice 2 with PUN 2.
    i follow the flows here

    The problem has been solved.

    recorder.Init(voiceConnection.VoiceClient, customObjectIfAny); this method automatically called when you instantiate player using PhotonNetwork.Instantiate("prefab_Name"); and it must have PhotonView component attached to it but in my project i was creating lobby player using unity Instantiate(prefab);, so i changed it PhotonNetwork.Instantiate("prefab_Name"); and, it worked .😁
Sign In or Register to comment.