crossle / janus-gateway-android

Implements Janus gateway video room on Android
MIT License
60 stars 30 forks source link

Can not publish video, janus hangup with reason ICE failed #28

Open LeCua opened 1 year ago

LeCua commented 1 year ago

I try to build the code, with some change at:

  1. The endpoint site: wss://janus-legacy.conf.meetecho.com/ws
  2. body.putOpt("ptype", "listener"); change to body.putOpt("ptype", "subscriber");
  3. The ice server: PeerConnection.IceServer iceServer = new PeerConnection.IceServer("stun:stun.l.google.com:19302");
  4. rtcConfig.iceTransportsType = PeerConnection.IceTransportsType.RELAY; change to rtcConfig.iceTransportsType = PeerConnection.IceTransportsType.ALL;

I use the demo: https://janus-legacy.conf.meetecho.com/videoroomtest.html so promise to see my phone camera display on this demo but I can not publish the video janus hangup with reason ICE failed: onMessage{ "janus": "hangup", "session_id": 3207712005427140, "sender": 8580842305574727, "reason": "ICE failed" }

And when I use list request, this is the result: { "videoroom": "participants", "room": 1234, "participants": [ { "id": 448782740804501, "display": "test", "publisher": true, "talking": false, "subscribers": 1 }, { "id": 3622076583036274, "display": "Android webrtc", "publisher": false }, { "id": 8737059264509004, "display": "Bob", "publisher": false } ] }

Does anyone have the same issue? Please help, thank you!

yunusemrecelik1 commented 7 months ago

Did you find anything?