preload videos metadata
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 26 Oct 2014 21:19:30 +0000 (23:19 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 26 Oct 2014 21:19:30 +0000 (23:19 +0200)
src/main/java/eu/svjatoslav/meviz/htmlindexer/layouts/MixedLayout.java

index 8ae1002..f336ad1 100755 (executable)
@@ -134,7 +134,8 @@ public class MixedLayout implements Layout {
                final GeneralFile file = (GeneralFile) abstractFile;
 
                filesHtml
-                               .append("<div style=\"margin: 30px; clear: both;\"><video controls=\"controls\" tabindex=\"0\">\n");
+                               .append("<div style=\"margin: 30px; clear: both;\">"
+                                               + "<video preload=\"metadata\" controls=\"controls\" tabindex=\"0\">\n");
                filesHtml
                                .append("<source type=\"video/ogg\" codecs=\"theora, vorbis\" src=\""
                                                + indexingContext.getGlobalUrl()