Inserting a video into a gallery of images

Thanks again for helping - you are right.

I found this other post and managed to make it working.

Now I have another problem (ehehe): I see the video player, but the video doesn’t play.

This is my template:

<?php if ($page->files()->isNotEmpty()): ?>
  <?php foreach ($page->files()->sortBy('sort', 'asc') as $file): ?>
    <figure class="project__item <?= $file->class() ?>">
      <?= snippet($file->type(), ['file' => $file]) ?>
      <figcaption>
        <?php if ($file->caption()->isNotEmpty()): ?>
          <span class="project__itemCaption"><?= $file->caption() ?></span>
        <?php endif ?>
        <?php if ($file->photographer()->isNotEmpty()): ?>
          <span class="project_itemCredits">(&#169; <?= $file->photographer() ?>)</span>
        <?php endif ?>
      </figcaption>
    </figure>
  <?php endforeach ?>
<?php endif ?>   

Which loads this snippet for the video:

<video width="100%" height="100%" autoplay controls loop>
  <source src="<?= $file->url() ?>" type="video/quicktime">
</video>

Any idea why the videos are not working?
I was reading this post but I couldn’t really find a solution.

Best, A