-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (75 loc) · 2.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebRTC</title>
<style type="text/css">
body {
margin: 0;
font-size: 20px;
}
.centered {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.video-position {
position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
}
#video-chat-container {
width: 100%;
background-color: black;
}
/* #local-video {
position: absolute;
height: 30%;
width: 30%;
bottom: 0px;
left: 0px;
} */
.remote-video {
height: 30%;
width: 30%;
}
#buttondiv {
position: absolute;
}
#testarea {
margin-top: 80%;
}
</style>
</head>
<body>
<div id="room-selection-container" class="centered">
<h1>WebRTC video conference(multiple)</h1>
<br>
MODE<br>
<input type="radio" value="1" name="location">only sound<br>
<input type="radio" value="2" name="location">only video<br>
<input type="radio" value="3" name="location">both<br>
<br>
<label>Enter the number of the room you want to connect</label>
<input id="room-input" type="text" />
<br>
<button id="connect-button">CONNECT</button>
<br><br>
</div>
<div id="video-chat-container" class="video-position" style="display: none">
<video id="local-video" class="remote-video" muted="muted" autoplay="autoplay" playsInline="playsInline"></video>
<!-- <video class="remote-video" autoplay="autoplay" playsInline="playsInline"></video> -->
<div id="buttondiv">
<button id="share-screen" value="0" disabled>share screen</button>
<button id="hide-localbox" value="0" disabled>hide localbox</button>
<button id="disconnect-button" disabled>wait for connect....</button>
</div>
</div>
<!-- this is for Flask -->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6/socket.io.min.js"></script>
<script src="{{ url_for('static', filename = './client.js') }}"></script>
</body>
</html>