From 3bedb51f6a878253cfdf10ab89c67312fcd93886 Mon Sep 17 00:00:00 2001
From: FChannel <=>
Date: Sun, 31 Jan 2021 23:18:21 -0800
Subject: preload metadata of video to see first frame

---
 static/ncatalog.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'static/ncatalog.html')

diff --git a/static/ncatalog.html b/static/ncatalog.html
index a57e291..b4e6f76 100644
--- a/static/ncatalog.html
+++ b/static/ncatalog.html
@@ -49,7 +49,7 @@
         if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "video"){
             var video = document.createElement("video")
             video.controls = 'controls'
-            video.preload    = 'none'                          
+            video.preload    = 'metadata'                          
             video.muted    = 'muted'              
             video.src      = '{{ (index .Attachment 0).Href }}'
             video.type     = '{{ (index .Attachment 0).MediaType }}'              
-- 
cgit v1.2.3