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:
This goes in the video tag: