Don't redefine the "preload" option in player.js

If the HTML5 "<video>" element defines the "preload" attribute directly,
it isn't necessary to redefine the "preload" option in the player.js.
This commit is contained in:
Thomas Lange
2023-09-27 15:25:29 +02:00
parent bf470704a5
commit 824cc1a5aa
2 changed files with 1 additions and 6 deletions

View File

@@ -74,8 +74,7 @@
"title" => video.title,
"description" => HTML.escape(video.short_description),
"thumbnail" => thumbnail,
"preferred_caption_found" => !preferred_captions.empty?,
"preload" => params.preload ? "auto" : "none"
"preferred_caption_found" => !preferred_captions.empty?
}.to_pretty_json
%>
</script>