diff options
author | Jonas Kohl | 2024-09-07 12:48:53 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-07 12:48:53 +0200 |
commit | fac305e4c91585855ab8fdb0df9fcf97ae06fa3e (patch) | |
tree | d55832d5207f6bddeb42a2ba4f97fdf544fd0114 /includes/mobile/components | |
parent | 3c17d8cefadee1d853ac1c604c6510b100e8f0e1 (diff) |
Inline video on mobile
Diffstat (limited to 'includes/mobile/components')
-rw-r--r-- | includes/mobile/components/video.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/mobile/components/video.php b/includes/mobile/components/video.php index 01cd0b4..35b1c09 100644 --- a/includes/mobile/components/video.php +++ b/includes/mobile/components/video.php @@ -1,3 +1,6 @@ <?php function c_video(string $id): void { ?> -<iframe allowfullscreen src="/video.php?v=<?= htmlentities(urlencode($id)) ?>" style="border:none;width:342px;height:291px"></iframe> +<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 } ?> |