Twilio视频室不在cordova混合应用程序中工作

时间:2017-02-20 11:56:17

标签: javascript html5 cordova twilio cordova-plugins

Twilio视频聊天无法使用cordova 混合app.local vido加载移动设备但远程视频无法在移动应用窗口中加载。如何解决这个错误? 代码在所有Web浏览器中运行时没有任何错误。 我们设置所有类型的白名单和意图 如下

private StreamReader sReader = null;
private StreamWriter sWriter = null;


public SocketClass(Socket s)
    {
        socket = s;
        NetworkStream nStream = new NetworkStream(s);
        sReader = new StreamReader(nStream);
        sWriter = new StreamWriter(nStream);
        startSocket();
    }
String txt = "";
        while (sReader.Peek() >= 0)
        {
            txt += sReader.ReadLine() + "\r\n";
        }

        else if (txt.Contains("PUT"))
        {

            Console.WriteLine("triggered");
            Regex pattern = new Regex(@"PUT /(?<Name>\d+)\r\n\r\n(?<Location>\d+)\r\n");
            Match match = pattern.Match(txt);
            if (match.Success)
            {
                String Name = match.Groups["Name"].Value;
                String Location = match.Groups["Location"].Value;
                Console.WriteLine(Name);
                Console.WriteLine(Location);

            }
        }

0 个答案:

没有答案