Play video once at page load
I need to play a video when someone first visits my JQM page. The video should play, then when finished the JQM page is displayed. I was using the following snippet which used to work fine with a previous version of jquery:
<!-- / Play video on load -->
<script type="text/javascript">
window.onload = function () {
setTimeout('delayer()', 50);
}
function delayer() {
window.location = 'http://vid.ly/1u5m6m ';
}
</script>
When using:
http://code.jquery.com/jquery-1.4.4.min.js
http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js this snippet works, but with the latest version it just loops and plays over and over again.
Here's link to working, old version: http://liqueo.com/natuzzi (open with mobile and you'll see the video play, then when it's finished the JQM page loads.