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

**URL:** <https://mediasoup.discourse.group/t/adjusting-the-delay-of-stream-to-sync-all-the-streams-on-every-client/3039>\
**Category:** Off Topic\
**Created:** [July 14, 2021, 7:03am UTC](https://mediasoup.discourse.group/t/adjusting-the-delay-of-stream-to-sync-all-the-streams-on-every-client/3039 "2021-07-14T07:03:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![usama](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/usama/32/1163_2.png) [@usama](https://mediasoup.discourse.group/u/usama)\
**Post date:** [July 14, 2021, 7:03am UTC](https://mediasoup.discourse.group/t/adjusting-the-delay-of-stream-to-sync-all-the-streams-on-every-client/3039/1 "2021-07-14T07:03:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [July 14, 2021, 7:52am UTC](https://mediasoup.discourse.group/t/adjusting-the-delay-of-stream-to-sync-all-the-streams-on-every-client/3039/2 "2021-07-14T07:52:03Z")

</div>

Short answer:  
No…

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.

---

<div class="post-metadata">

**Author:** ![usama](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/usama/32/1163_2.png) [@usama](https://mediasoup.discourse.group/u/usama)\
**Post date:** [October 25, 2021, 1:50pm UTC](https://mediasoup.discourse.group/t/adjusting-the-delay-of-stream-to-sync-all-the-streams-on-every-client/3039/3 "2021-10-25T13:50:24Z")

</div>

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