我想使用Visual Studio 2015 Apache Cordova在Iframe中加载视频。
我曾尝试加载像谷歌和w3school的网站,但仍未能加载视频。
我正在使用document.getElementById("MyId").src = "site"; 。
对不起,我无法弄清楚如何在这个问题中添加我的完整代码
有什么建议么?
I want to load a video in the Iframe using Visual Studio 2015 Apache Cordova.
I have tried loading a website like google and w3school but still failed to load the video.
I am using document.getElementById("MyId").src = "site";.
Sorry, I could not figure out how to add my full code in this question
Any suggestions?
最满意答案
使用此代码播放cordova html文件中的视频链接。 喜欢这个 :
<video id="example_video_1" width="640" height="264" webkit-playsinline poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}"> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> </video>但是如果您想为ios设备部署,请考虑更改webconfig文件并添加以下内容:
AllowInlineMediaPlayback=truerefrence
Use this code to play the video link in your cordova html files . Like this :
<video id="example_video_1" width="640" height="264" webkit-playsinline poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}"> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> </video>but if you want to deploy for ios devices consider changing webconfig file and add this :
AllowInlineMediaPlayback=truerefrence
更多推荐
发布评论