I am loading a video uploaded via panel in the frontend. The file is not loading, is my blueprint set up correctly or is my PHP incorrect?
sections:
HomeVideo:
type: files
layout: cards
template: video
info: "{{ file.dimensions }}"
max: 1
size: small
headline: Video Home
<?php if ( $video = $page->HomeVideo()->toFile()): ?>
<video class="video-1" autoplay loop muted data-keepplaying>
<source src="<?php echo $video->url() ?>" type="<?= $video->mime() ?>" />
</video>
<?php endif ?>