# Vimeo嵌入URL在邮件中解析错误

**URL:** <https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042>\
**Category:** Bug\
**Created:** [2022 年6 月 24 日 17:56 UTC](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042 "2022-06-24T17:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![ghassan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghassan/32/263566_2.png) [@ghassan](https://meta.discourse.org/u/ghassan)\
发布日期： [2022 年6 月 29 日 11:38 UTC](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042/5 "2022-06-29T11:38:59Z")

</div>

@Nacho_Caballero 您提供的关于未公开视频的示例，未公开视频具有不同的 URL 结构。

并且，根据 Vimeo 的要求，嵌入未公开视频的方式也不同，请参阅 [Use oEmbed with private videos – Vimeo Help Center](https://vimeo.zendesk.com/hc/en-us/articles/360042542372-Use-oEmbed-with-private-videos)

我认为一种解决方法是根据上述文档创建您自己的嵌入。

@sam  
对于 Discourse，是否最好使用 Vimeo API 获取嵌入的 src URL，而不是手动构建它？请参阅 [https://stackoverflow.com/questions/51414260/vimeo-url-ive-never-seen-before-with-two-different-ids-how-do-i-get-it-to-work。以及这些相关的代码行](https://stackoverflow.com/questions/51414260/vimeo-url-ive-never-seen-before-with-two-different-ids-how-do-i-get-it-to-work%E3%80%82%E4%BB%A5%E5%8F%8A%E8%BF%99%E4%BA%9B%E7%9B%B8%E5%85%B3%E7%9A%84%E4%BB%A3%E7%A0%81%E8%A1%8C) [discourse/lib/onebox/engine/vimeo\_onebox.rb at 657256a099a601a0694d11d15c42ad76988efe8c · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/657256a099a601a0694d11d15c42ad76988efe8c/lib/onebox/engine/vimeo_onebox.rb#L20-L35)

无论如何，如果我的猜测是正确的，那么这不仅会影响电子邮件，还会影响典型的发帖：[1-Minute Audio Test for Stereo Speakers &amp; Headphones-2ZrWHtvSog4](https://vimeo.com/508864124/fcbbcc92fa)

---

_[View the full topic](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042)._
