summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-06 17:18:50 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-06 17:18:50 -0500
commitf3646dc0bb172b98a3a4e489d7d3cfa212b458bd (patch)
treeeb78d157d51a6bd400ce121d295963b374c970e3
parentac12d161b926cbc58efb77fcf210d2abedd48155 (diff)
downloadinvidious-f3646dc0bb172b98a3a4e489d7d3cfa212b458bd.tar.gz
invidious-f3646dc0bb172b98a3a4e489d7d3cfa212b458bd.tar.bz2
invidious-f3646dc0bb172b98a3a4e489d7d3cfa212b458bd.zip
Disable preload on embedded videos by default
-rw-r--r--src/invidious/views/embed.ecr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr
index 23ade84e..1786a90b 100644
--- a/src/invidious/views/embed.ecr
+++ b/src/invidious/views/embed.ecr
@@ -64,7 +64,9 @@ video, #my_video, .video-js, .vjs-default-skin
<script>
var options = {
+ <% if autoplay %>
preload: 'auto',
+ <% end %>
playbackRates: [0.5, 1, 1.5, 2],
controlBar: {
children: [