video-player.ejs 741 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" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="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>