adjusting the delay of stream to sync all the streams on every client

I am a student trying to learn about mediasoup .I have a senario where i am sending a video and audio stream from a client A to server and server is sending it to client B and C i want the stream to be synced between B and C . that is the client B and C should play the stream in sync.

Short answer:

Long answer:
Network latency and speeds affect this sync greatly, we can only get so close to real-time numbers but fact is we’re hundreds of milliseconds off from that.

Users can expect close enough or be told they’re lagging.

side-note: You can offer layers to users with lesser speeds to help get their times down.

1 Like

I Passed the h264 video stream through gstreamer and manipulated the pts in the encoding so that the stream is now synchronized.