benwtrent / janus-gateway-android

This is an API wrapper that utilizes the native WebRTC build and is made to ease communication with the janus-gateway
MIT License
112 stars 73 forks source link

DTLS handshake not being done on android #19

Open chetanbnaik opened 7 years ago

chetanbnaik commented 7 years ago

hi,

I am not able to run the android demo from this repository. please have a look here. https://groups.google.com/d/msg/meetecho-janus/9XbnbKVllHc/8Lav-Q2IAwAJ

I am using google's stun server for the ICE.

First I tried doing the echo from http://janus.conf.meetecho.com/echotest.html, but the connection was not established. I thought it could be due non-availability of TURN server, as my android endpoint is behind a symmetric NAT.

Then, I hosted janus-gateway on a local computer and tried the echo test from the android device. Both the device are now on the same network. The ICE candidates are exchanged, but at the end of everything, janus is stuck at "Still waiting for the DTLS stack for component 1 in stream 1..." and I dont see the echoed video on the android device. The bundle and rtcp-mux are supported for this session..

Is it some ICE setup issue? or Could it be due to ports being blocked on the android device?

I am attaching a detailed log with this.

http://pastebin.com/gUXks5g6

https://04261782694678153750.googlegroups.com/attach/3880df9afb6f0/januslog.log?part=0.1&view=1&vt=ANaJVrHpVPhDYpmd6mKP2Ppzw3m94t7CG7xG9b70ucqSFelQmeMIrr4xSEGGlTd5tuAYXb5wNX1sduiCD8W_OtPPIEnQNxrw-M8qpfOXefz2Y4dluzKPSm8