Areeb Gillani Areeb Gillani -3 years ago 307
Android Question

WebRTC in Android WebView using NextRTC Spring Signaling Server

I am new to webRTC. I am trying to make a skype like calling app in android using webRTC. I am using NextRTC in Spring Boot as an example server. I have the server on http. I have hacked the android by using an example page (room.html) from the nextRTC example. Everything was fine in the login and all but when I try to connect with the websocket from the webView it gives this error.

WebSocket connection to 'ws://' failed:
Error during WebSocket handshake: Unexpected response code: 302

In room.html the url can be found at line 30, from where I am getting this error.

Answer Source

NextRTC has file which actually redirects the unauthentic URLs to login page and that redirection caused this error. I have emitted that code and finally everything is working.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download