# Vimeo onebox videos automatically play on page load for desktop browsers

**URL:** https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931
**Category:** Bug
**Created:** [2017 年6 月 21 日 22:27 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931 "2017-06-21T22:27:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### 作者： ![dltj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dltj/32/114914_2.png) [@dltj](https://meta.discourse.org/u/dltj)
#### 发布日期： [2017 年6 月 21 日 22:27 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/1 "2017-06-21T22:27:35Z")

</div>

Not sure if this is a bug or a feature. Starting with it as a 🐛.

Continuing the discussion from [Twitter (and Dailymotion) video onebox autoplays without user interaction](https://meta.discourse.org/t/twitter-and-dailymotion-video-onebox-autoplays-without-user-interaction/56926/23), which included a post about how Vimeo oneboxes automatically play on desktop browsers:

> [@Twitter (and Dailymotion) video onebox autoplays without user interaction](https://meta.discourse.org/t/twitter-and-dailymotion-video-onebox-autoplays-without-user-interaction/56926/23):
>
> Yep, I have a Vimeo video that is only sharable via private link, whiteboxed to my domain, that autoplays whenever you open the topic. For now, I’ll just have to link to the video instead of one boxing it.

Is there a way to turn this off? Would an adaptation of @david’s pull request dealing with datamotion videos work?  
[https://github.com/discourse/onebox/pull/348](https://github.com/discourse/onebox/pull/348)

The problem is especially confusing/annoying if the user follows a link to a post deep in a topic and a video at the top of the topic starts playing automatically.

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2017 年6 月 21 日 22:36 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/2 "2017-06-21T22:36:57Z")

</div>

Can you post an example link here that exhibits the problem?

---

<div class="post-metadata">

### 作者： ![dltj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dltj/32/114914_2.png) [@dltj](https://meta.discourse.org/u/dltj)
#### 发布日期： [2017 年6 月 21 日 23:34 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/3 "2017-06-21T23:34:54Z")

</div>

Oh, of course! Sorry. Please see:

[https://discuss.folio.org/t/white-check-mark-to-do-ux-iteration-2/890/3](https://discuss.folio.org/t/white-check-mark-to-do-ux-iteration-2/890/3)

---

<div class="post-metadata">

### 作者： ![Sailsman63](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@Sailsman63](https://meta.discourse.org/u/Sailsman63)
#### 发布日期： [2017 年6 月 22 日 04:06 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/4 "2017-06-22T04:06:09Z")

</div>

I do see in both Firefox and Chrome. Agree that it is annoying. Did you notice that the video re-starts if you re-load the page?

I do see that the iframe link rendered in the no-script zone has “autoplay=1”. I’m wondering if this is partly due to how the embed link is being created by Vimeo?

---

<div class="post-metadata">

### 作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### 发布日期： [2017 年6 月 22 日 12:30 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/5 "2017-06-22T12:30:41Z")

</div>

我觉得这应该是一个 #Contribute > Bug 而不是 #Contribute > Feature，🐛 @eviltrout 也许你可以看看。

---

<div class="post-metadata">

### 作者： ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### 发布日期： [2017 年6 月 22 日 18:31 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/7 "2017-06-22T18:31:15Z")

</div>

That’s odd – when I try and embed the same video on the latest version of Discourse it doesn’t autoplay. I saw that your forum is using a relatively recently install, so I wonder if Vimeo was temporarily returning autoplay markup from opengraph?

Can you try posting a different vimeo video on your forum? I suspect it won’t autoplay anymore. You should be able to edit the post with the autoplaying video and it will update the onebox.

---

<div class="post-metadata">

### 作者： ![dltj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dltj/32/114914_2.png) [@dltj](https://meta.discourse.org/u/dltj)
#### 发布日期： [2017 年6 月 22 日 19:16 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/8 "2017-06-22T19:16:13Z")

</div>

Well, shoot – yes – that seems to be the problem. If I rebake the post (_Rebuild HTML_ from the wrench menu of the post) the video no longer autoplays.

Thank you for following up.

---

<div class="post-metadata">

### 作者： ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### 发布日期： [2017 年6 月 22 日 19:26 UTC](https://meta.discourse.org/t/vimeo-onebox-videos-automatically-play-on-page-load-for-desktop-browsers/64931/9 "2017-06-22T19:26:48Z")

</div>


