# No media the first time

**URL:** https://mediasoup.discourse.group/t/no-media-the-first-time/3317
**Category:** mediasoup libraries
**Created:** [September 19, 2021, 7:59pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317 "2021-09-19T19:59:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alieabbasi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/alieabbasi/32/1126_2.png) [@alieabbasi](https://mediasoup.discourse.group/u/alieabbasi)
#### Post date: [September 19, 2021, 7:59pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317/1 "2021-09-19T19:59:46Z")

</div>

Hi!  
I am using mediasoup for a broadcasting app. The problem is sometimes when I connect to a stream It starts and the transports connect and the consume is being called and executed, but I don’t get any audio or video coming. The problem is solved when I reconnect for the second time.  
By the way the stream is just a class that has the based functionality of mediasoup library.  
I would be glad if anyone has any idea about the problem I’m having here.  
Thank you very much!

---

<div class="post-metadata">

### Author: ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)
#### Post date: [September 19, 2021, 8:07pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317/2 "2021-09-19T20:07:27Z")

</div>

I’m afraid it’s just impossible to help with that sort description. mediasoup provided you with tons of logs and ways to debug media sending/receiving. Please check the corresponding docs.

---

<div class="post-metadata">

### Author: ![alieabbasi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/alieabbasi/32/1126_2.png) [@alieabbasi](https://mediasoup.discourse.group/u/alieabbasi)
#### Post date: [September 19, 2021, 8:09pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317/3 "2021-09-19T20:09:19Z")

</div>

yeah exactly mediasoup is working correctly and everything is fine from the logs.  
I just don’t know what to do for debugging anymore.

---

<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: [September 22, 2021, 5:16pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317/4 "2021-09-22T17:16:44Z")

</div>

Sounds client-sided; possibly auto-play.

> **[Autoplay policy in Chrome - Chrome Developers](https://developer.chrome.com/blog/autoplay/)**
>
> Learn best practices for good user experiences with the new autoplay policies in Chrome.

If so initiate first interaction (by click) before any video/audio is loaded to auto-play it or start it muted.

---

<div class="post-metadata">

### Author: ![alieabbasi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/alieabbasi/32/1126_2.png) [@alieabbasi](https://mediasoup.discourse.group/u/alieabbasi)
#### Post date: [December 2, 2021, 7:30pm UTC](https://mediasoup.discourse.group/t/no-media-the-first-time/3317/5 "2021-12-02T19:30:34Z")

</div>

Thank you very much and sorry for my such late response.  
Yes the problem was with the auto-play policy of browsers. The policy is that auto-play is allowed after the user has any interact with interface, but my solution connected users directly to the broadcast.  
Thanks again and wish you the best!
