summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2023-09-26 21:45:52 +0200
committerThomas Lange <code@nerdmind.de>2023-09-26 22:21:12 +0200
commitbf470704a5a3071cebb1d558efaef8542a16dde6 (patch)
treef0f4fe4471a7c74d5c3301e2414183bacd06b384 /config
parentbb14f794969f62582917a39c2dd57bf92fa146a7 (diff)
downloadinvidious-bf470704a5a3071cebb1d558efaef8542a16dde6.tar.gz
invidious-bf470704a5a3071cebb1d558efaef8542a16dde6.tar.bz2
invidious-bf470704a5a3071cebb1d558efaef8542a16dde6.zip
Add option to control preloading of video data
Fix #4110 by adding an option to control the preloading of video data on page load. If disabled ("false"), the browser will not preload any video data until the user explicitly hits the "Play" button. If enabled ("true"), the default behavior will be used, which means the browser decides how much of the video will be preloaded.
Diffstat (limited to 'config')
-rw-r--r--config/config.example.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/config.example.yml b/config/config.example.yml
index b44fcc0e..b1a76edf 100644
--- a/config/config.example.yml
+++ b/config/config.example.yml
@@ -719,6 +719,20 @@ default_user_preferences:
# -----------------------------
##
+ ## Automatically preload video on page load. This option controls the
+ ## value for the "preload" attribute of the HTML5 <video> element.
+ ##
+ ## If disabled, no video data will be loaded until the user explicitly
+ ## starts the video by hitting the "Play" button. If enabled, the web
+ ## browser decides how much of the video data will be preloaded.
+ ##
+ ## See: https://www.w3schools.com/tags/att_video_preload.asp
+ ##
+ ## Accepted values: true, false
+ ## Default: true
+ #preload: true
+
+ ##
## Automatically play videos on page load.
##
## Accepted values: true, false