From de4438124a9cea91be5d5f1dfa67485112b5cdb3 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 25 Jan 2021 13:53:42 +1300 Subject: [PATCH] Revert "add thumbnail on videos" This reverts commit c55429ac4937b912e42782ea6c95010a95f6d213. Reasoning: The video has no height while the poster image is loading, and then once it loads a moment later, it takes up extra space, enlarges the video, and the page jumps. I don't know how to make the page not jump while loading the poster. Width, height, and styles look like they're set correctly. --- pug/video.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pug/video.pug b/pug/video.pug index 355cb3c..2b09e10 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -21,7 +21,7 @@ block content .video-container - const format = sortedFormatStreams[0] if format - video(controls preload="auto" poster=`/vi/${video.videoId}/maxresdefault.jpg` width=format.second__width height=format.second__height data-itag=format.itag)#video.video + video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video source(src=format.url+mediaFragment type=format.type) else video(src="")#video.video