Does Photon Voice support WebGL?

Options
ktweedy1
ktweedy1 ✭✭
edited March 2016 in Photon Voice
In Unity 5.3.4 when I try to build for WebGL I am getting some errors.

First, In ChatClient.cs and LoadBalancingClient.cs I get an when it gets the SocketImplementation which I saw the type is retrieved differently in another area of the program so maybe I was able to fix it with the following code.

#if UNITY_WEBGL
if (protocol == ConnectionProtocol.WebSocket || protocol == ConnectionProtocol.WebSocketSecure)
{
// this.chatPeer.SocketImplementation = typeof(SocketWebTcp);
this.chatPeer.SocketImplementation = Type.GetType("ExitGames.Client.Photon.SocketWebTcp, Assembly-CSharp");
}
#endif

The second error I am getting is;

"Assets/PUNVoice/DemoPunVoice/Scripts/VoiceDemoUI.cs(214,22): error CS0103: The name `Microphone' does not exist in the current context"

Is their something I need to do to make the microphone available in WebGL?


Really exciting about using your voice solution. Thanks so much.

Comments

  • vadim
    Options
    Does Photon Voice does not support WebGL.
    Currently Unity's Microphone is not available when running WebGL app in browser.
  • ktweedy1
    Options
    Thanks. Seems it is possible with a WebGL pluging, I played with this some but was going to take some time to make the PhotonVoice scripts support it. WebGL support would be such a big deal, would rock if you guys could do something like the example in this forum discussions.

    http://forum.unity3d.com/threads/webgl-and-microphone.308197/

    Thanks for the reply.