WebSocket Error
When i build the appRTC , and come in room, and i will get the following message
10-27 13:52:45.805 31717-7266/com.via.rtc E/de.tavendo.autobahn.WebSocketReader﹕ javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x6082d8c0: Failure in SSL library, usually a protocol error error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version (external/openssl/ssl/s23_clnt.c:744 0x5d866d74:0x00000000)
Do you have any idea about this message :'(
I've just updated the repo to the latest webrtc build. Can you see if this error still occurs?
I solve this problem by adding next code to MyApplication (extends Application) or to Activity
try { ProviderInstaller.installIfNeeded(getApplicationContext()); } catch (GooglePlayServicesRepairableException e) { e.printStackTrace(); } catch (GooglePlayServicesNotAvailableException e) { e.printStackTrace(); }
SSLContext sslContext = null;
try {
sslContext = SSLContext.getInstance("TLSv1.2");
sslContext.init(null, null, null);
SSLEngine engine = sslContext.createSSLEngine();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (KeyManagementException e) {
e.printStackTrace();
}