hi,
I am using native webview to display a local html with a local mp4 video.
Here is my HTML:
<video id=“rfVideo6” class=“slideObj” muted playsinline>
<source src="…/video/media6.mp4" type=“video/mp4”>
Your browser does not support the video tag.
</video>
And here is the javascript I put somewhere I want to autoplay the video:
setTimeout(
function () {
playVideo6();
}, 100
);
Here is the playVideo6 JS:
function playVideo6(){
if ($("#rfVideo6").length > 0){
var myVideo6=document.getElementById(“rfVideo6”);
$(’#rfVideo6’).show();
myVideo6.play();
}
}
I tried to upload the same files to a web hosting and check this on iOS 10 Safari. The video can play automatically when the setTimeout fired. However, it doesn’t work with corona webview on the same iOS 10.
Is this a bug? or do I miss anything?
My corona sdk build is 2017.3067 (2017.3.29)
Thanks,
Alex