-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
53 lines (44 loc) · 1.58 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
<!DOCTYPE html>
<html>
<head>
<title>WebRTC Demo</title>
<style>
h1 {
font-family: verdana;
font-size: 20px;
}
.videoWrap span{
position: absolute;
padding: 3px;
background-color: rgba(255, 255, 255, 0.6);
color: black;
font-family: verdana;
font-size: 12px;
top: 1px;
left: 1px;
}
.videoWrap {
position: relative;
float: left;
}
</style>
</head>
<body>
<h1>WebRTC with Socket.IO</h1>
<div class="videoWrap">
<span>Local</span>
<video id="sourcevideo" autoplay style="width: 320px; height: 240px; border: 1px solid black;"></video>
</div>
<div class="videoWrap">
<span>Remote</span>
<video id="remotevideo" autoplay style="width: 320px; height: 240px; border: 1px solid black;"></video>
</div>
<div style="clear:both;"></div>
<button type="button" onclick="startVideo();">Start</button>
<button type="button" onclick="stopVideo();">Stop</button>
<button type="button" onclick="connect();">Connect</button>
<button type="button" onclick="hangUp();">Hang Up</button>
<script src="http://192.168.100.70:8080/socket.io/socket.io.js"></script>
<script type="text/javascript" src="rtc.js"></script>
</body>
</html>