<html> | |
<head> | |
<meta charset='utf-8'> | |
<title></title> | |
</head> | |
<body> | |
<video width='100%' controls controlsList='nodownload'> | |
<source> | |
</video> | |
<script type='module'> | |
const name = new globalThis.URLSearchParams(globalThis.location.search).get('name') | |
globalThis.document.querySelector('video').querySelector('source').src = `https://huggingface.co/chaowenguo/video/resolve/main/${name}.mp4` | |
globalThis.document.querySelector('video').load() | |
globalThis.document.querySelector('title').textContent = name | |
</script> | |
</body> | |
</html> |