templates/themes/ismart/block/home-video-intro.html.twig line 1

Open in your IDE?
  1. {%  if not isMobile %} 
  2. {% set contents = block.content | json_decode %}
  3. <section class="video-holder d-none" data-aos="fade-up">
  4.     <button class="btn video-close d-none"><i class="zmdi zmdi-close"></i> THOÁT</button>
  5.     <video id="video-player" id="video-player" autoplay muted>
  6.         {% for content in contents %}
  7.             {% if content.videoFile is empty %}
  8.                 <source src="{{ content.videoUrl }}" type="video/mp4"/>
  9.             {% elseif content.videoUrl is empty %}
  10.                 <source src="{{  asset( content.videoFile is empty ? 'themes/ismart/img/homepage.webm': content.videoFile) }}" type="video/{{ (content.videoFile | split('.')) | last }}"/>
  11.             {% endif %}
  12.         {% endfor %}
  13.     </video>
  14. </section>
  15. <section class="youtube-video-holder d-none">
  16.     <button class="btn youtube-close"><i class="zmdi zmdi-close"></i> THOÁT</button>
  17.     <div class="ratio ratio-16x9">
  18.         <video class="d-none" id="video-hero-banner" autoplay muted webkit-playsinline playsinline controls></video>
  19.         <iframe class="d-none" src="" title="YouTube video" allowfullscreen></iframe>
  20.     </div>
  21. </section>
  22. {% endif %}