Palm Pre 无法获取嵌入的 YouTube 视频

发布于 2024-08-08 04:38:18 字数 338 浏览 0 评论 0原文

我使用视频 YouTube 页面中的嵌入代码将 YouTube 视频嵌入到网站(在 drupal 中内置)中。

如果我在 iPhone 上访问该页面,它会识别出有一个 YouTube 视频,并显示一个图标,您可以单击该图标来弹出该视频并观看。

如果我在 Palm Pre 上访问同一页面,它只会在视频所在的位置显示一个空白区域。然而,如果我访问 YouTube 页面本身上的视频,Palm Pre 就会发现有一个视频并允许您打开它。

我只是想知道是否有其他人遇到过同样的问题并可以提供一些见解。我希望有一个更优雅的解决方案,而不仅仅是在嵌入式播放器下方添加指向 YouTube 页面的链接,

谢谢!

I've embedded a YouTube video onto a site (built in drupal) using the embed code from the video's YouTube page.

If I visit that page on an iPhone, it picks up the fact that there is a YouTube video and displays the icon that you click to pop open the video and watch it.

If I visit the same page on a Palm Pre it just displays a blank space where the video should be. If I visit the video on the YouTube page itself, however, the Palm Pre picks up the fact that there is a video and allows you to open it.

I'm just wondering if anyone else has run into the same problem and has some insights they can offer. I'd love to have a more graceful solution than just adding a link to the YouTube page below the embedded player

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅暮の光 2024-08-15 04:38:18

您可以将 YouTube 页面上实际使用的嵌入代码(而不是他们提供的用于快速复制和粘贴的代码)与您正在使用的嵌入代码进行比较,因为嵌入的方式有很多不同一个视频。

我希望他们使用 SWFObject 进行嵌入,这是一个在您的页面上使用时需要花费更多的精力,但通常比用于快速复制和粘贴的“老式”嵌入标签更可靠。

您也可以尝试请求伪造 Palm Pre 用户代理的 YouTube 页面,因为它们可能会为这些页面提供不同的内容,但这不太可能。

You could compare the embed code actually used on the YouTube page (as opposed to the one they offer for quick copy & paste) with the one you are using, as there are quite some different ways to embed a video.

I would expect them to use the SWFObject for embedding, which is a tiny bit more effort to use on your page, but usually works a lot more reliable than the 'old fashioned' embed tag offered for quick copy&paste.

You might also try requesting the YouTube page faking the user agent of the Palm Pre, as they might deliver something different for those, but that is pretty unlikely.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文