Added tools

This commit is contained in:
2023-10-31 19:44:06 +01:00
parent 4d4591fb2d
commit 470147c5cd
7 changed files with 169 additions and 29 deletions

24
static/camera.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/style.css">
<title>LOLED - Camera</title>
</head>
<body>
<h1>LOLED</h1>
<button id="stream-camera">Use your Camera</button>
<script type="module">
import {connectSomeStream} from "/js/rtc.js"
document.getElementById("stream-camera")
.addEventListener("click", async () => {
let stream = await navigator.mediaDevices.getUserMedia({
video: true
})
await connectSomeStream(stream)
})
</script>
</body>
</html>