YouTube的IFRAME在jQuery Mobile的+的PhoneGap构建 [英] Youtube iframe in jquery mobile + phonegap build

查看:167
本文介绍了YouTube的IFRAME在jQuery Mobile的+的PhoneGap构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用iframe嵌入在为Android / iOS的应用程序YouTube视频使用jQuery Mobile和PhoneGap的开发建设

测试它在我的浏览器中正常工作。

在我的设备(机器人)我看到的视频缩略图,但是当我点击它的屏幕变黑,我看到了控件(播放,向前和向后)和视频不会启动。
在一些其他的视频我看到了装载圆,之后的YT相关视频。

我检查该视频是avaible移动

<$p$p>http://gdata.youtube.com/feeds/videos?alt=json&format=1,6&fields=entry[link/@rel='http://gdata.youtube.com/schemas/2007%23mobile']&max-result=10&category=Music&q=\"+mySong

任何帮助将是非常美联社preciated。


解决方案

这个问题似乎与Android版本有关:在4.0的iframe / HTML5版本的罚款。问题是在Android 2.3。

我在2.3使用JQM插件作为一种解决方法

I'm using an iframe to embed a youtube video in an app for android/iOS developed using jQuery mobile and phonegap build.

Testing it on my browser works fine.

On my device (android) I see the video thumbnail, but when I click on it the screen goes black, I see the controls (play, forward and backward) and the video doesn't start. On some other video I see the loading "circle" and after that the YT related videos.

I'm checking that the video is avaible for mobile

http://gdata.youtube.com/feeds/videos?alt=json&format=1,6&fields=entry[link/@rel='http://gdata.youtube.com/schemas/2007%23mobile']&max-result=10&category=Music&q="+mySong

Any help would be really appreciated.

解决方案

The problem seemed to be related with the android version: on 4.0 the iframe/html5 version worked fine. The problem was on android 2.3.

I used a jqm plugin as a workaround in 2.3

这篇关于YouTube的IFRAME在jQuery Mobile的+的PhoneGap构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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