Using Photon Voice in WebGL for receiving audio only [No Microphone]


Unity does not support use of the Microphone when targeting WebGL. So it appears that we cannot support 2 way communication (receive and send) for users on that platform. But what about just receiving audio when on WebGL. In other words, is it possible to use the Photon Voice Network when targeting WebGL to recieve and play audio from a remote source running on a non-WebGL platform (such as windows or mac) where the Microphone does work?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @madarchitect,

    Thank you for choosing Photon!

    There are other things to consider:

    1. WebGL supports WebSocketSecure protocol only. Photon Voice works better using UDP.
    2. WebGL does not play well with threads, we use those in Photon Voice for decoding.
    3. We need an opus library that works with WebGL.

    So I don't see that this is possible.

    If you think your project and your use case are interesting and you want this to happen you can send us an email to developer@photonengine.com to discuss more details and see if we can find a custom deal.
  • Hello good morning, I honestly did not know that audio did not work in WebGl, but now that I know, there is no way to do it even if it is in a primitive way?