Video and Display Stream Lag in Janus Video Room Plugin on Self-Hosted Server

I am using the Janus Video Room plugin to publish audio, video, and display streams on a self-hosted Janus server deployed on an EC2 instance. However, I am experiencing a 3-4 second delay in the video stream and noticeable lag in the display stream.

Interestingly, when using the publicly hosted Janus server provided by MeetEcho, my application runs without any significant delay or lag.

I would like to understand the server configuration differences between my setup and MeetEcho’s deployment. Specifically:

  • What are the optimal configurations for minimizing latency in a self-hosted Janus server?
  • Are there any specific WebRTC, ICE, or transport settings that need to be fine-tuned?
  • How does MeetEcho configure its Janus servers to achieve low-latency performance?

Any insights or recommended configurations would be greatly appreciated.