video-player.ejs 680 B

123456789
  1. <% var height = 600 %>
  2. <% if(is_hero) height = 650 %>
  3. <div class="video-frame container-fluid" style="background-color: black; height: <%= height %>px; padding: 0px;">
  4. <% if(is_video_provider(url, 'youtube')) { %>
  5. <iframe class="video-player" src="<%- youtube_embed_link(url) %>" width="560" height="315" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  6. <% } else if(is_video_provider(url, 'vimeo')) { %>
  7. <iframe class="video-player" src="<%- vimeo_embed_link(url) %>" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
  8. <% } %>
  9. </div>