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