我在我的index.html文件中嵌入了一个YouTube视频。Android手机上的混合应用程序的iframe视频
<iframe id="video" width="640" height="360" src="//www.youtube.com/embed/xxxxxxxxx?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
我通过CMD创建的应用程序与科尔多瓦的PhoneGap这样的:
cordova create hello com.example.hello HelloWorld
在app文件夹取代了我的HTML,CSS,JS文件。
新增Android平台:
cordova platform add android
打开Eclipse中,进口的应用程序,并运行它。
我将.apk放在我的平板电脑上,一切正常,但视频无法正常工作。
我得到错误“网页不可用”而不是视频。
我该如何解决这个问题?
我试过了,但它不起作用。 – Vig 2014-10-06 13:50:51