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.
This commit is contained in:
parent
030d8121fe
commit
de4438124a
@ -21,7 +21,7 @@ block content
|
|||||||
.video-container
|
.video-container
|
||||||
- const format = sortedFormatStreams[0]
|
- const format = sortedFormatStreams[0]
|
||||||
if format
|
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)
|
source(src=format.url+mediaFragment type=format.type)
|
||||||
else
|
else
|
||||||
video(src="")#video.video
|
video(src="")#video.video
|
||||||
|
Loading…
x
Reference in New Issue
Block a user