Sound/video lag

Hi,
I have an application that users can communicate audio/video. Every user has a producer for audio and a producer for video. I set the maxbitrate for each producer. When a large number of users access and the internet speed of someone reach the limit a lag in audio/video will start to appear. How can I solve the issue , is there a way to adapt the bitrate based on user’s bandwidth. And if I use simulcast mode will it consume more bandwidth from the sebder since it is sending multiple copies? And how can I give priorities like audio over video?

is there a way to adapt the bitrate based on user’s bandwidth.

You can use simulcast os SVC

And if I use simulcast mode will it consume more bandwidth from the sebder since it is sending multiple copies?

Correct.

And how can I give priorities like audio over video?

You can prfioritize video consumers over other video consumers. Audio consumers do not play the bandwidth estimation game.