I have created a newsfeed of different social media sites https://bdranking.com When a user scrolls down it shows 5 new posts. Unlike Instagram and Twitter, it automatically refreshes all the iframe youtube videos when a user scrolls down. The channel title, profile picture, comments, and likes count, etc remains the same because they are already in my database. Just the iframe video refreshes. I have used the same codes on Twitter, Instagram, and youtube, so I guess nothing is wrong with that, It's just the iframe.
Can anyone suggest why?
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo $row['Code']; ?>?rel=0" allowfullscreen></iframe>
</div>
</div>