正在phonegap iOS 应用程序中加载博客文章...Youtube 视频不会嵌入

发布于 2024-12-21 12:19:18 字数 387 浏览 2 评论 0原文

我见过其他一些类似的问题,但还没有找到我的答案。我创建了一个 iOS PhoneGap 应用程序,它使用 YQL 和 JSON 从桌面站点加载博客文章。它工作得很好,除了如果原始帖子嵌入了 Youtube 视频,在我的应用程序中,我会得到一个带有 Youtube 徽标的灰色方块和一个带有斜杠的播放按钮。

然而,当我在 Mobile Safari 中加载桌面网站时,嵌入的剪辑显示为链接到该剪辑的移动友好版本的静态图像。这些视频使用 OBJECT 标签嵌入到桌面站点中。我的第一个假设是我需要将“www.youtube.com”列为外部主机,但这并没有奏效。我还尝试使用 iFrames 在桌面网站中嵌入 Youtube 视频,看看当我通过应用程序调用它们时它们是否会正确嵌入,但这也不起作用。

各位好心人的任何想法将不胜感激。

I've seen some other similar questions, but haven't quite found my answer. I created an iOS phonegap app that loads blog posts from a desktop site using YQL and JSON. It works well, except that if the original post had a Youtube video embedded, in my app, I get a gray square with a Youtube logo and a play button with a slash through it.

When I load the desktop site in Mobile Safari, however, the embedded clip appears as a still image that links to the mobile friendly version of the clip. The videos are embedded in the desktop site with OBJECT tags. My first assumption was that I needed to list "www.youtube.com" as an ExternalHost, but that hasn't worked. I also tried embedding Youtube videos in the desktop site using iFrames to see if they would embed properly when I call them through the app, but that has not worked either.

Any ideas from you fine folks would be greatly appreciated.

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

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

发布评论

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

评论(1

混吃等死 2024-12-28 12:19:18

我认为 YouTube 嵌入视频使用 Flash,但 iOS 设备上没有 Flash。

I think the YouTube embedded video's use Flash and well there is no Flash on iOS devices.

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