How to prevent a youtube iframe to redirect from Standalone App to Youtube App?

ぃ、小莉子 提交于 2019-12-01 08:16:00

问题


I have a web magazine developed in reveal js. Of course the user can decide to create a shortcut for his/her own smartphone or tablet, creating a standalone application, that's not opened in the normal browser, with url bar, navigation commands, etc..

And to do this, I use this code

<!-- CAPABLE FOR APPLE DEVICES -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="">

Everything works fine, except when I swipe to a page that has in its content a youtube iframe. In this scenario, what happens it's a redirection from my standalone application browser to youtube application. And it does not happen in all the smartphones / tablet, but for example I noticed that on iPad 3 with not the last version of iOS (currently 8.3) I got this redirection, but with an iPad 3 with an older iOS version (7.0.2) the iframe of youtube is displayed inside my standalone application.

Does somebody has an idea about this issue?

来源:https://stackoverflow.com/questions/30263003/how-to-prevent-a-youtube-iframe-to-redirect-from-standalone-app-to-youtube-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!