Video stream delay

Dear author, we are making an app for remote operation of mobile phones based on mediasoup, but we find that video streams occasionally have a delay of more than 500 milliseconds and sometimes only a delay of less than 200 ms when the network is stable. Is this what parameters need to be configured?

Mediasoup does not buffer RTP by any means (just for the means of retransmissions), so it does not generate a delay itself.

The delay you may experience must be a sum of network delays (producer endpoint -> mediasoup + mediasoup -> consumer endpoint), plus the delay incurred in the rendering endpoint.

You can check the producer and consumer stats in order to check their corresponding RTT.