flashphoner / wcs-android-sdk-samples

Android SDK usage samples for Web Call Server
32 stars 18 forks source link

Throwing java.lang.AbstractMethodError Exception #11

Open dhameliyadharmesh opened 3 years ago

dhameliyadharmesh commented 3 years ago

Build No : 1.1.0.22 Exception throwing in android 9,10 & 11.

While playing WCS player throwing

java.lang.AbstractMethodError: abstract method "org.java_websocket.enums.HandshakeState org.java_websocket.drafts.Draft.acceptHandshakeAsClient(org.java_websocket.handshake.ClientHandshake, org.java_websocket.handshake.ServerHandshake)" following.

Please look into this. @flashphoner

flashphoner commented 3 years ago

Good day. Seems like websocket connection is not established between application and WCS server. This is probably networking issue. Please check the following:

  1. Are WS port 8080/tcp and WSS port 8443/tcp available on server?
  2. Can you publish/play from browser on the same device to the same server in the same network? If not, please try to change network
  3. Is the problem reproducing in Player example? If not, modify example code minimally to reproduce the issue, then create a topic on the support forum https://forum.flashphoner.com/ and send the modified code using "Report" button. Please use the button only in your personal topic, or we cannot respond to it.
dhameliyadharmesh commented 3 years ago
  1. Yes. wss port 8443 available on server.
  2. Working fine on same device on browser on the each network.
  3. Github player demo not connecting with wss port 8443. Getting failed each time every network.
flashphoner commented 3 years ago

You should set up server SSL certificates as described here or use the session option sessionOptions.trustAllCertificates(true); Please read details here