Je veux obtenir un tag vidéo html5 chargement time.if sur la première vidéo est joue pas 5 secondes que la page est rediriger vers un autre lienObtenez le temps de chargement dans la balise vidéo html5
Voici mon code:
<body onLoad="document.getElementById('myVideo').play();document.getElementById('myVideo').width=swidth;document.getElementById('myVideo').height=sheight;" style="background-color:#000;text-align:center;">
<video id="myVideo">
<source src="<?php echo $this->baseUrl ?>/xsn/XSun.webm" type="audio/webm" />
<source src="<?php echo $this->baseUrl ?>/xsn/XSun.mp4" codecs="avc1.42E01E, mp4a.40.2" type="audio/mpeg">
<source src="<?php echo $this->baseUrl ?>/xsn/XSun.ogv" type="audio/ogg">
</video>
<script type="text/javascript">
$(document).ready(function(){
$("#myVideo").bind('ended', function(){
location.href="<?php echo $this->baseUrl ?>";
});
});
</script>
S'il vous plaît aider
Merci Amit Anand
quelqu'un peut me aider avec ce problème –
Merci Shaunak D :) et plz me aider –
'' corps onload' et .ready $() 'généralement non compatibles: http://api.jquery.com/ prêt/ –