AppRTCDemo icon indicating copy to clipboard operation
AppRTCDemo copied to clipboard

WebSocket Error

Open hank5000 opened this issue 10 years ago • 2 comments

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 :'(

hank5000 avatar Oct 27 '15 06:10 hank5000

I've just updated the repo to the latest webrtc build. Can you see if this error still occurs?

njovy avatar Nov 06 '15 07:11 njovy

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();
    }

bazulia avatar Oct 04 '16 11:10 bazulia