35 lines
865 B
HTML
35 lines
865 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>模卡录屏</title>
|
|
<style>
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
background: #000;
|
|
}
|
|
video{
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script type="application/javascript">
|
|
var search = window.location.search;
|
|
var searchParams = new URLSearchParams(search);
|
|
var decodeSource = searchParams.get('source');
|
|
if (decodeSource) {
|
|
var videoHtml = document.createElement('video');
|
|
videoHtml.setAttribute('src', decodeSource);
|
|
videoHtml.setAttribute('autoplay', true);
|
|
videoHtml.setAttribute('controls', true);
|
|
videoHtml.setAttribute('playsinline', true);
|
|
document.body.appendChild(videoHtml);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|