You created a fancy HTML5 page with video element but guess what, Firefox 4 does not support video loop. I found a workaround for this problem with javascript.