Guard video against missing required info.

This commit is contained in:
mk-pmb feat. Emilien Devos 2025-04-11 15:21:00 +02:00
parent 0c07e9d27a
commit 637aef87c8

View File

@ -1,3 +1,4 @@
<% if audio_streams && fmt_stream && preferred_captions && captions %>
<video style="outline:none;width:100%;background-color:#000" playsinline poster="<%= thumbnail %>"
id="player" class="on-video_player video-js player-style-<%= params.player_style %>"
preload="<% if params.preload %>auto<% else %>none<% end %>"
@ -87,3 +88,4 @@
%>
</script>
<script src="/js/player.js?v=<%= ASSET_COMMIT %>"></script>
<% end %>