正在phonegap iOS 应用程序中加载博客文章...Youtube 视频不会嵌入
我见过其他一些类似的问题,但还没有找到我的答案。我创建了一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 YouTube 嵌入视频使用 Flash,但 iOS 设备上没有 Flash。
I think the YouTube embedded video's use Flash and well there is no Flash on iOS devices.