How to loop one video in HTML5 Gallery?


I may be clutching at straws but thought I'd ask: would you know of a way that each video (mp4 and webm) can individually be configured / encoded / saved to automatically loop each time it plays -- independent of any html or xml code?

This can not be done by encoding a video.
With HTML5 Gallery, you can do the following:

1. Add the following JavaScript code in your webpage head section, before the </head> tag:
<script type="text/javascript">// <![CDATA[
function onVideoEnd(data) {
var id = data[0];
html5GalleryObjects.objects[0].isPaused = true;
html5GalleryObjects.objects[0].slideRun(id, false, true);
// ]]></script>
2. In your gallery div, add the following data tag:

The video will loop playing the current video once it starts playing. This only works on desktop, will not work on mobile.