summaryrefslogtreecommitdiff
path: root/includes/mobile/components/video.php
blob: 35b1c09a3475a378ff169be520241d2023244e9b (plain)
1
2
3
4
5
6
<?php function c_video(string $id): void { ?>
<video controls width="100%">
<source type="video/webm" src="<?= htmlentities("/video/" . rawurlencode($id) . ".webm") ?>">
<source type="video/mp4" src="<?= htmlentities("/video/" . rawurlencode($id) . ".mp4") ?>">
</video>
<?php } ?>