mirror of
https://github.com/zedeus/nitter.git
synced 2025-01-09 14:25:40 +00:00
Disable mp4 preloading
This commit is contained in:
parent
608c3ca8df
commit
00daab1f15
|
@ -107,9 +107,9 @@ proc renderVideo*(video: Video; prefs: Prefs; path: string): VNode =
|
|||
case playbackType
|
||||
of mp4:
|
||||
if prefs.muteVideos:
|
||||
video(src=source, poster=thumb, controls="", muted="", preload="metadata"):
|
||||
video(src=source, poster=thumb, controls="", preload="none", muted=""):
|
||||
else:
|
||||
video(src=source, poster=thumb, controls="", preload="metadata"):
|
||||
video(src=source, poster=thumb, controls="", preload="none"):
|
||||
of m3u8, vmap:
|
||||
video(poster=thumb, data-url=source, data-autoload="false")
|
||||
verbatim "<div class=\"video-overlay\" onclick=\"playVideo(this)\">"
|
||||
|
|
Loading…
Reference in a new issue