diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-10-08 17:33:18 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-10-08 17:38:06 +0200 |
| commit | 82ac9a86094364afaedae92030b51f39e9468ea0 (patch) | |
| tree | 32dcc1c64aab4365d261670e6537c7cbbc05755d /config/config.example.yml | |
| parent | 7c79ee7cc224014cad1c30290fdf2ab996632a9e (diff) | |
| parent | f247b2f8625c05ca308bb4a83caecc5b27726854 (diff) | |
| download | invidious-82ac9a86094364afaedae92030b51f39e9468ea0.tar.gz invidious-82ac9a86094364afaedae92030b51f39e9468ea0.tar.bz2 invidious-82ac9a86094364afaedae92030b51f39e9468ea0.zip | |
Preferences: Add option to control preloading of video data (#4122)
This PR adds a configuration option to control the preloading of video data on
page load with the HTML5 'preload'[1] attribute on the `<video>` element.
The option is enabled by default, meaning that the `preload` attribute's value
will be 'auto'. If users want to prevent preloading of video data, they
can disable the option, which will set the attribute value to 'none'.
[1](https://www.w3schools.com/tags/att_video_preload.asp)
Closes issue 4110
Diffstat (limited to 'config/config.example.yml')
| -rw-r--r-- | config/config.example.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/config.example.yml b/config/config.example.yml index 219aa03f..e9eebfde 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -708,6 +708,22 @@ default_user_preferences: # ----------------------------- ## + ## This option controls the value of the HTML5 <video> element's + ## "preload" attribute. + ## + ## If set to 'false', no video data will be loaded until the user + ## explicitly starts the video by clicking the "Play" button. + ## If set to 'true', the web browser will buffer some video data + ## while the page is loading. + ## + ## 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 |
