Video Connection Taking time

I am using latest version of Janus in my application but it is taking upto 20 seconds for the users to connect in the room. What could be the reason.

It depends what you mean by “connect to the room”. It could be ICE taking a long time, or the DTLS handshake, or maybe the PeerConnection is fine but you only get a keyframe after many seconds. Try familiarizing with the Admin API to check which component is the cause.