archive-ccc8458/video/embed.php 543 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
declare(strict_types=1);
require_once __DIR__ . '/lib/hash.php';

$hash = (string)($_GET['id'] ?? '');
$videoUrl = find_video_url($hash);
if ($videoUrl === null) { http_response_code(404); exit; }
?><!doctype html>
<html><head><meta charset="utf-8"><title>video</title>
<style>html,body{margin:0;background:#000;height:100%}video{width:100%;height:100%;object-fit:contain;background:#000;display:block}</style>
</head><body>
<video src="<?= htmlspecialchars($videoUrl) ?>" controls playsinline preload="metadata"></video>
</body></html>