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.
This commit is contained in:
Thomas Lange
2023-09-26 21:45:52 +02:00
parent bb14f79496
commit bf470704a5
10 changed files with 41 additions and 2 deletions

View File

@@ -718,6 +718,20 @@ default_user_preferences:
# Video player behavior
# -----------------------------
##
## 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.
##