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?
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=true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.