iOS 8嵌入式YouTube在HTML网络应用程序失败 [英] iOS 8 Embedded YouTube in HTML web app fails

查看:213
本文介绍了iOS 8嵌入式YouTube在HTML网络应用程序失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

YouTube iOS8媒体载入问题 - 在Safari中,媒体播放成功,但当从主屏幕网络剪辑加载应用时,播放视频失败。

YouTube iOS8 Media Load Issue - Media plays successfully while in Safari, but when the app is loaded from a Home Screen web clip, playing the video fails.

,点击链接导航离开页面,而媒体无法加载会导致应用程序完全崩溃到主屏幕。

Moreover, tapping a link to navigate away from the page while the media is failing to load results in a complete crash of the app to the Home Screen.

这是一个链接,演示此(显然运行在您的iDevice)。你可以在Safari浏览器中运行它,它会工作正常。安装为主屏幕图标,播放视频将失败,点击底部链接将会导致应用程序崩溃。

Here is a link that demonstrates this (obviously run on your iDevice). You can run it initially in Safari browser, it'll work fine. Install it as a home screen icon, playing video will fail, and clicking the bottom link will crash the app.

http://nterspace.com/youtubeissue.html

在Safari浏览器中加载应用程序时工作的代码is:

The code that works when the app is loaded up in the Safari browser is:

<iframe width="100%" maxwidth="432" height="270" src="//www.youtube.com/embed/_j4KrMAygJI" frameborder="0" allowfullscreen></iframe>

任何人都有什么想法?这是不好的嵌入代码?

Anyone have any thoughts? Is this bad embed code?

推荐答案

今天,2015年4月9日。更新到版本8.3后,我的webapps恢复为每天motionotion和vimeo视频工作。 Youtube视频现在重定向到原生应用程序,这是非常讨厌。

Today, April 09, 2015. Finally , this issue is partially resolved. After updating to version 8.3 my webapps returned to work again for the dailymotion and vimeo videos. Youtube videos are now redirecting to the native application, which is very annoying.

编辑:

由于YouTube视频重定向到原生应用程序,我不得不使用youtube网址如下:

As the youtube videos was redirecting to the native application , I had to use the youtube url as follows:

<iframe width="100%" height="300" src="https://www.youtube-nocookie.com/embed/hdjL8WXjlGI?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>

因此,我的用户可以观看视频,而不必离开webapp。

So my users can watch the video without having to leave the webapp.

由于某种原因,nocookie选项不会重定向。让我们希望这将在下一个iOS版本完全修复。

For some reason the nocookie option does not redirect. Let's hope that this will be completely fixed in the next iOS version.

这篇关于iOS 8嵌入式YouTube在HTML网络应用程序失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆