

<% var height_class = "video-height-content" %>
<% if(is_hero) height_class = "video-height-hero" %>
<div class="video-frame container-fluid <%= height_class %>">
    <% if(is_video_provider(url, 'youtube')) { %>
        <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>
    <% } else if(is_video_provider(url, 'vimeo')) { %>
        <iframe class="video-player" src="<%- vimeo_embed_link(url) %>" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
    <% } %>
</div>