video-player.ejs 677 B

1234567891011
  1. <% var height_class = "video-height-content" %>
  2. <% if(is_hero) height_class = "video-height-hero" %>
  3. <div class="video-frame container-fluid <%= height_class %>">
  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>