Voice V2 asset and OpRaiseEvent
in Photon Voice
Hey,
Was wondering if I can just use the LoadbalancingClient of VoiceConnection to raise events, as opposed to PhotonNetwork.RaiseEvent.
If so, should I do it in some specific manner or at certain times?
Thank you , Yaniv.
(Am asking because of some errors about modified collection I'm receiving when sending through the client of voice connection, )
Was wondering if I can just use the LoadbalancingClient of VoiceConnection to raise events, as opposed to PhotonNetwork.RaiseEvent.
If so, should I do it in some specific manner or at certain times?
Thank you , Yaniv.
(Am asking because of some errors about modified collection I'm receiving when sending through the client of voice connection, )
0
Best Answer
-
Hi @YanivClone,
Thank you for choosing Photon!
May I ask why?
We imagined that Photon Voice client is used for voice communication only and PUN is used for everything else. Are those events related to voice coms?
You can useVoiceConnection.Client.OpRaiseEvent
.
However, you need to be careful to not use reserved event code.
Also, those events will not be received from the PUN client but from the Photon Voice client.
In general, use event codes from 1 to 199.some errors about modified collection I'm receiving when sending through the client of voice connectionWhat errors? could you provide repro steps, code snippet, logs, stack trace?5
Answers
-
Hi @YanivClone,
Thank you for choosing Photon!
May I ask why?
We imagined that Photon Voice client is used for voice communication only and PUN is used for everything else. Are those events related to voice coms?
You can useVoiceConnection.Client.OpRaiseEvent
.
However, you need to be careful to not use reserved event code.
Also, those events will not be received from the PUN client but from the Photon Voice client.
In general, use event codes from 1 to 199.some errors about modified collection I'm receiving when sending through the client of voice connectionWhat errors? could you provide repro steps, code snippet, logs, stack trace?5 -
Thank you,
Ill use PUN to send unrelated to voice commands, I implemented it now and the error went away.0