awslabs / amazon-kinesis-video-streams-webrtc-sdk-android

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
58 stars 37 forks source link

Webrtc demo is not working for android OS 7.0 (API level 24) #17

Closed JeetSA closed 3 years ago

JeetSA commented 4 years ago

Hello

I am using webrtc demo for video streaming and it is working fine on android 8 and above. However when I am trying to run the same demo in android version 7.0, it is giving me error as follow:

javax.websocket.DeploymentException: SSL handshake has failed

The device details are as follow:

Can you please help me with this?

Thanks

zhiyua-git commented 4 years ago

Hi @JeetSA ,

We don't have Samsung Galaxy J7 Prime now, can you provide the stacktrace of the failure? The failure is likely caused by Tyrus websocket client we use to talk to KVS signaling backend, but you can also try to replace Tyrus with OkHttp to see if that helps on your device. Thanks.

JeetSA commented 4 years ago

Hello @zhiyua-git

Thanks for replying.

Here is the stacktrace for the error which I am getting.

org.awaitility.core.ConditionTimeoutException: Condition com.amazonaws.kinesisvideo.signaling.tyrus.WebSocketClient$3 was not fulfilled within 10 seconds.

I am trying to replace Tyrus with OkHttp as you suggested. Thanks.

mrArtCore commented 4 years ago

Hi @JeetSA ,

We don't have Samsung Galaxy J7 Prime now, can you provide the stacktrace of the failure? The failure is likely caused by Tyrus websocket client we use to talk to KVS signaling backend, but you can also try to replace Tyrus with OkHttp to see if that helps on your device. Thanks.

You can try any Android 7 device (even any emulator) and you will see that it's just not working.

Also, using lower version of tyrus 'org.glassfish.tyrus.bundles:tyrus-standalone-client:1.12' works for me

MushMal commented 3 years ago

Not sure how actionable this is. Resolving for now.