feat:
This commit is contained in:
34
html/material-preview.html
Normal file
34
html/material-preview.html
Normal file
@ -0,0 +1,34 @@
|
||||
<!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>
|
Reference in New Issue
Block a user