Hello,
I am currently working on my thesis and am trying to get Janus, in combination with the simple whip client and server, to work in aws. Just a simple demo with no load balancers or other fancy stuff.
The Janus demo (specifically the video room set up with a reverse proxy) is working as intended for me and other people as well.
A local test of the Janus demo and whip client/server worked fine.
I added the simple whip server to the same machine the Janus backend is running on. They can connect and the Janus logs show a new session upon starting the whip server.
Creating ICE agent (ICE Full mode, controlled)
Now to the not working part:
The whip client stops after logging: [WHIP] ICE gathering completed
The admin api for the handle shows that the webrtc ice state is "gathering" and dtls state is "created".
From what I make of that, it means, that the client cannot connect to Janus to send the gathered ice candidates.
What I do not get is why. The client runs on the same device I tested the connection to the video room with. Which would limit the error source to the whip connection process with aws. I have been looking at this for some days and couldn't figure it out.
What I did to try and fix it:
This seems somewhat similar to:
Janus WHIP, ICE not completed (never provided a solution), so I tested various combinations of STUN and TURN servers with the whip client, whip server and Janus. None of that with the Janus videoroom working in the browser (same device as whip client) changed anything.
The udp range in janus.jcfg is set to the same values allowed in the aws security specification and even testing with all inbound traffic enabled changed nothing.
I am new to webRTC and Janus. Maybe someone here knows what is wrong or how I can figure out more. For further, more detailed logs that might help don't hesitate to ask.
Best regards,
Tobi