[英]WebRTC in Android WebView using NextRTC Spring Signaling Server
I am new to webRTC. 我是webRTC的新手。 I am trying to make a skype like calling app in android using webRTC.
我试图使用webRTC制作一个类似于在android中调用应用程序的Skype。 I am using NextRTC in Spring Boot as an example server.
我在Spring Boot中使用NextRTC作为示例服务器。 I have the server on http.
我在http上有服务器。 I have hacked the android by using an example page ( room.html ) from the nextRTC example.
我通过使用nextRTC示例中的示例页面( room.html )来攻击android。 Everything was fine in the login and all but when I try to connect with the websocket from the webView it gives this error.
登录时一切都很好,但是当我尝试从webView连接websocket时,它会出现此错误。
WebSocket connection to 'ws://192.168.1.2:8090/signaling' failed: Error during WebSocket handshake: Unexpected response code: 302
与'ws://192.168.1.2:8090 / signaling'的WebSocket连接失败:WebSocket握手期间出错:意外的响应代码:302
In room.html the url can be found at line 30, from where I am getting this error. 在room.html中 ,可以在第30行找到网址,我从此处收到此错误。
NextRTC has WebSecurityConfig.java file which actually redirects the unauthentic URLs to login page and that redirection caused this error. NextRTC具有WebSecurityConfig.java文件,该文件实际上将非真实URL重定向到登录页面,并且该重定向导致此错误。 I have omitted that code and finally everything is working.
我省略了该代码,最后一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.