Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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://192.168.1.2:8090/signaling' 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.

like image 312
Areeb Gillani Avatar asked Sep 22 '17 12:09

Areeb Gillani


1 Answers

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

like image 89
Areeb Gillani Avatar answered Sep 30 '22 01:09

Areeb Gillani