summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/mobile/components/video.php5
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 } ?>