有没有办法在不打开YouTube应用程序的情况下在移动网站(iPhone)上打开YoutTube链接 [英] Is there a way to open a YoutTube Link on a mobile website (iPhone) without opening the YouTube App

查看:152
本文介绍了有没有办法在不打开YouTube应用程序的情况下在移动网站(iPhone)上打开YoutTube链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为对此的答案可能是否",因为我已经搜索了几天并且没有遇到任何答案.我有一个移动网站,该网站具有指向http://www.youtube.com/watch?v=XXXXXXXXX格式的youtube视频的链接.链接会在iPhone Youtube应用程序中打开,该应用程序使用户退出Safari并带来了次佳体验,因为用户随后必须重新打开Safari.是否有任何类型的参数要传递,以允许这些视频链接在打开嵌入视频的视图中打开,或者直接在MP4中打开(允许用户简单地单击完成,然后将其返回在Safari上)?令人惊讶的是,只有iframe或嵌入式视频似乎允许使用此功能,而没有链接.

I think the answer to this is probably no, as I have been searching for days and have not run across the answer. I have a mobile site that has links to youtube videos in http://www.youtube.com/watch?v=XXXXXXXXX format. The links open in the iPhone Youtube app which takes the user out of Safari and is a suboptimal experience, as the user then has to re-open safari. Is there any type of parameter to pass that would allow these video links to open in the same view that say an embedded video opens in, or a direct MP4 would open in(which allows the user to simply click done, and boom they are back on Safari)? It sucks that only iframe or embedded videos seem to allow this functionality and not links.

推荐答案

对我来说,此解决方案非常简单,但是却非常优雅,而且效果很好

For me this solution is pretty simple but elegant and it did work perfectly

https://github.com/hellozimi/HCYoutubeParser

这篇关于有没有办法在不打开YouTube应用程序的情况下在移动网站(iPhone)上打开YoutTube链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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