# Paused videos resume when scrolling through pages

**URL:** https://meta.discourse.org/t/paused-videos-resume-when-scrolling-through-pages/56572
**Category:** Bug
**Created:** [2017 年 1 月 30 日午前 8:46 UTC](https://meta.discourse.org/t/paused-videos-resume-when-scrolling-through-pages/56572 "2017-01-30T08:46:34Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2017 年 8 月 16 日午後 3:56 UTC](https://meta.discourse.org/t/paused-videos-resume-when-scrolling-through-pages/56572/6 "2017-08-16T15:56:03Z")

</div>

Do you mean this?

> [@Paused/finished YouTube videos automatically start playing when scrolling up far enough to load new posts](https://meta.discourse.org/t/embedded-youtube-videos-autoplay-randomly-when-scrolling-up/57692/5):
>
> I have spent a lot of time this afternoon on this issue and I feel like this issue might not be fixable unless someone else has a brilliant idea. The problem is in the virtual DOM with prepending (scrolling up). In this case, you are adding a bunch of elements (posts) to the beginning of an array. When the virtual DOM does its diff, it notices the element with the youtube \<iframe\> is not in the same place, so it removes and re-adds it later. This causes the youtube player to refresh the iframe,…

---

_[View the full topic](https://meta.discourse.org/t/paused-videos-resume-when-scrolling-through-pages/56572)._
