The endpoint site: wss://janus-legacy.conf.meetecho.com/ws
body.putOpt("ptype", "listener"); change to body.putOpt("ptype", "subscriber");
The ice server: PeerConnection.IceServer iceServer = new PeerConnection.IceServer("stun:stun.l.google.com:19302");
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!
I try to build the code, with some change at:
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!