-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (60 loc) · 1.33 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
<html>
<head>
<title>WebRTC Video Demo</title>
</head>
<style>
body {
background: #eee;
padding: 5% 0;
}
video {
background: #000;
border: 1px solid #888;
}
.call-page {
position:relative;
display: block;
margin: 0 auto;
width: 500px;
height: 500px;
}
#localVideo {
width: 150px;
height: 150px;
position: absolute;
top: 15px;
right: 500px;
}
#remoteVideo {
width: 500px;
height: 500px;
}
</style>
<body>
<div id="loginPage" class="container text-center">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h2>WebRTC Video Demo. Please sign in</h2>
<label for="usernameInput" class="sr-only">Login</label>
<input type="email" id="usernameInput" class="form-control form-
group" placeholder="Login" required="" autofocus="">
<button id="loginBtn" class="btn btn-lg btn-primary btn-
block">Sign in</button>
</div>
</div>
</div>
<div id="callPage" class="call-page">
<video id="localVideo" autoplay mute="muted" ></video>
<video id="remoteVideo" autoplay></video>
<div class="row text-center">
<div class="col-md-12">
<input id="callToUsernameInput" type="text" placeholder="username
to call" />
<button id="callBtn" class="btn-success btn">Call</button>
<button id="hangUpBtn" class="btn-danger btn">Hang Up</button>
</div>
</div>
</div>
<script src="client.js"></script>
</body>
</html>