Quote:
Originally Posted by blackmonsters
OK, try this : Change the link and video url of course.
Code:
<a href="http://google.com" target="_blank"><video id=bannervid preload="auto" width="300" height="100" preload="auto" src="soultrain.mp4" loop="loop" autoplay="autoplay" muted="muted"></video></a>
<script>
function vidloop() {
bannervid.currentTime=0;
bannervid.play();
}
window.onload = function(){
bannervid = document.getElementById("bannervid");
bannervid.addEventListener("ended", vidloop, false);
setTimeout(playitnow, 1300);
}
function playitnow() {
bannervid.volume=0;
bannervid.play();
}
</script>
|
The banner seems to be broken when I try this code
Quote:
Originally Posted by Colmike7
Which iOS version are you testing?
|
The latest version, I'm testing these codes with ios 10.2