mirror of
https://github.com/DerTyp7/nodejs-webrtc.git
synced 2025-10-29 12:32:14 +01:00
first commit
This commit is contained in:
32
views/room.ejs
Normal file
32
views/room.ejs
Normal file
@@ -0,0 +1,32 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user