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

Remote stream is not appearing in echotest #26

Open zohaib15 opened 7 years ago

zohaib15 commented 7 years ago

Local stream is appearing but reaming screen is black. No remote screen is there. In my case JANUS_URI = "https://**********.com:8089/janus"; Looking for help. Thanks

//////////Verbose

04-24 15:10:52.671 24929-24996/computician.janusclient D/message: Recv: {"janus":"ack","session_id":7400317164050200,"transaction":"aaAdk2v3Vxmg"} 04-24 15:10:52.674 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.701 24929-24996/computician.janusclient D/message: Recv: {"janus":"ack","session_id":7400317164050200,"transaction":"U3VKNdzuJQ9B"} 04-24 15:10:52.706 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.728 24929-24996/computician.janusclient D/message: Recv: {"janus":"ack","session_id":7400317164050200,"transaction":"oJLIfm98QkED"} 04-24 15:10:52.739 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.772 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.807 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.839 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.876 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16 04-24 15:10:52.906 24929-25152/computician.janusclient I/CameraFramework: handleMessage: 16

benwtrent commented 7 years ago

If it is a domain, I am guessing it is behind either a NAT or some sort of firewall. Putting Janus behind a NAT causes issues unless you put in ICE servers to handle such situations (https://github.com/Computician/janus-gateway-android/blob/master/app/src/main/java/computician/janusclient/EchoTest.java#L56)