mirror of
https://github.com/DerTyp7/nodejs-webrtc.git
synced 2025-10-29 20:42:12 +01:00
32 lines
875 B
Plaintext
32 lines
875 B
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
</head>
|
|
<body>
|
|
<script src="https://unpkg.com/peerjs@1.4.5/dist/peerjs.min.js"></script>
|
|
<script>
|
|
const ROOM_ID = "<%= roomId %>";
|
|
</script>
|
|
<script src="/socket.io/socket.io.js"></script>
|
|
<script defer src="script.js"></script>
|
|
<style>
|
|
#video-grid{
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
grid-gap: 10px;
|
|
grid-auto-rows: minmax(100px, auto);
|
|
}
|
|
|
|
video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
</style>
|
|
<div id="video-grid"></div>
|
|
</body>
|
|
</html> |