# Vimeo oneboxes broken after 3.1.0.beta4

**URL:** https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263
**Category:** Bug
**Created:** [April 19, 2023, 12:21pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263 "2023-04-19T12:21:25Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [April 19, 2023, 12:21pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/1 "2023-04-19T12:21:25Z")

</div>

It appears the vimeo onebox is now shown as a lazy-video-wrapper instead of an iframe.

A vimeo URL now appears like this:

[![](https://global.discourse-cdn.com/meta/original/4X/4/c/8/4c8bc3825f0d6c3121d22ac3c7a8066cb511efc5.jpeg "1-Minute Audio Test for Stereo Speakers & Headphones-2ZrWHtvSog4") ](https://vimeo.com/508864124/fcbbcc92fa)

Image version:

 ![CleanShot 2023-04-19 at 14.16.28@2x](https://global.discourse-cdn.com/meta/original/4X/5/5/6/556fc2741feeba92598eb5218c338c333cbc4bb4.png)

Instead of showing the thumbnail, like it used to. Image version:

 ![CleanShot 2023-04-19 at 14.19.24@2x](https://global.discourse-cdn.com/meta/original/4X/8/f/9/8f9897e0d3550eb68c965e3ffcd3ec5d68ddae10.jpeg)

This doesn’t affect old urls (only new/rebuilt). See [old vimeo onebox](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042/6).

---

<div class="post-metadata">

### Author: ![jancernik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jancernik/32/275892_2.png) [@jancernik](https://meta.discourse.org/u/jancernik)
#### Post date: [April 19, 2023, 12:53pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/4 "2023-04-19T12:53:35Z")

</div>

The `lazy-video-wrapper` that you see is a part of a change we made three weeks ago in the way we handle embeds. Vimeo embeds are now lazily loaded, which means that the iframe is only appended on demand.  
[https://github.com/discourse/discourse/pull/20722](https://github.com/discourse/discourse/pull/20722)

Missing thumbnails are a known limitation with unlisted Vimeo uploads. There may be a workaround, but we are still investigating it. For more information, please refer to

> [@Vimeo onebox for unlisted videos no longer works](https://meta.discourse.org/t/vimeo-onebox-for-unlisted-videos-no-longer-works/260225):
>
> Here’s an unlisted video: [https://vimeo.com/795669787/0763fdb816](https://vimeo.com/795669787/0763fdb816) If I try to just paste the URL on a line of its own, to embed it, the video apparently does not exist thinking[[Energy Distribution - Feb 2023] ](https://vimeo.com/795669787/0763fdb816) This used to work just fine - unsure when it broke - maybe Vimeo have changed something?

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [April 19, 2023, 3:25pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/5 "2023-04-19T15:25:30Z")

</div>

Thanks, Jan.

For now, I can manage by inserting iframes instead of raw URLs:

https://player.vimeo.com/video/508864124?h=fcbbcc92fa

Something else that might be worth considering is that the image associated with the lazy wrapper is picked up by the Topic Thumbnails plugin and this also breaks my topic thumbnails. I don’t know if there’s a way to ignore it.

---

<div class="post-metadata">

### Author: ![jancernik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jancernik/32/275892_2.png) [@jancernik](https://meta.discourse.org/u/jancernik)
#### Post date: [April 19, 2023, 3:35pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/6 "2023-04-19T15:35:22Z")

</div>

If you really need thumbnails, you can disable this feature with the `lazy_vimeo_enabled` setting, instead of inserting the iframes yourself.

> [@Nacho\_Caballero](#):
>
> Something else that might be worth considering is that the image associated with the lazy wrapper is picked up by the Topic Thumbnails plugin and this also breaks my topic thumbnails. I don’t know if there’s a way to ignore it.

Good to know. It might be hard to discern, but we’ll see if we can do something about it.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [April 20, 2023, 8:08am UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/8 "2023-04-20T08:08:31Z")

</div>

> [@jancernik](#):
>
> you can disable this feature with the `lazy_vimeo_enabled` setting

That solves my problem entirely. 👍

Am I just giving up on a bit of performance or is there an additional benefit to lazy loading?

---

<div class="post-metadata">

### Author: ![jancernik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jancernik/32/275892_2.png) [@jancernik](https://meta.discourse.org/u/jancernik)
#### Post date: [April 20, 2023, 9:58am UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/9 "2023-04-20T09:58:54Z")

</div>

The main reason of lazy loading performance, yes. You also get additional benefits such as better search engine optimization (SEO) and improved accessibility, but you should be fine leaving that disabled for now.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [April 24, 2023, 7:37pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/10 "2023-04-24T19:37:05Z")

</div>

> [@jancernik](#):
>
> Missing thumbnails are a known limitation with unlisted Vimeo uploads. There may be a workaround, but we are still investigating it

Could you use the opengraph image as a thumbnail? 🤔

For example, this URL: `https://vimeo.com/795669787/0763fdb816`

Returns a `og:image` value of: `https://i.vimeocdn.com/video/1602645154-56e0101b545c38ae03e9bc65ae12c3bcc37cd8ea127d359c0d24cf8ab31f8675-d`

Which (correctly) displays as:

 ![](https://global.discourse-cdn.com/meta/original/4X/a/9/9/a990a2731b5c86800b1256441a2cde4e465b14a8.jpeg)

---

<div class="post-metadata">

### Author: ![jancernik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jancernik/32/275892_2.png) [@jancernik](https://meta.discourse.org/u/jancernik)
#### Post date: [April 24, 2023, 7:55pm UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/11 "2023-04-24T19:55:31Z")

</div>

Yes, that was exactly my idea. In theory, it should work, but I haven’t gotten to test an implementation for it yet

---

<div class="post-metadata">

### Author: ![jancernik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jancernik/32/275892_2.png) [@jancernik](https://meta.discourse.org/u/jancernik)
#### Post date: [May 3, 2023, 2:39am UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/12 "2023-05-03T02:39:40Z")

</div>

After this change, thumbnails are now sourced from Open Graph instead of the oembed. All Vimeo videos should have a thumbnail now:

[https://github.com/discourse/discourse/pull/21343](https://github.com/discourse/discourse/pull/21343)

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [May 3, 2023, 5:19am UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/13 "2023-05-03T05:19:04Z")

</div>

This is an excellent fix and provides great consistency.

Thanks @jancernik 😃

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 4, 2023, 7:07am UTC](https://meta.discourse.org/t/vimeo-oneboxes-broken-after-3-1-0-beta4/262263/14 "2023-07-04T07:07:02Z")

</div>


