I have a simple video html5 tag, bound to an \"ended\" event:
$(\'#video\').show().trigger(\"play\").bind(\'ended\', function () {
//code
}
<
This goes in the head:
<script>
function Reset() { document.getElementById('MyVideo').load(); }
</script>
This goes in the video tag:
<video ID="MyVideo" onended="Reset()" [plus your other parameters] >
You can use something like
$('#video').show().trigger("play").bind('ended', function () {
this.currentTime = 0;
}
You can only set the currentTime if the loadedmetadata event has passed.