-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·120 lines (108 loc) · 4.5 KB
/
index.html
File metadata and controls
executable file
·120 lines (108 loc) · 4.5 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html>
<head>
<meta charset="utf-8">
<title>SkyWay - Video chat example</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.webrtc.ecl.ntt.com/skyway-latest.js"></script>
<script type="text/javascript" src="key.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div class="pure-g">
<!-- Video area -->
<div class="pure-u-2-3" id="video-container">
<video id="their-video" autoplay></video>
<video id="my-video" muted="true" autoplay></video>
</div>
<!-- Steps -->
<div class="pure-u-1-3">
<h2>SkyWay Video Chat</h2>
<div class="select">
<label for="audioSource">Audio input source: </label><select id="audioSource"></select>
</div>
<div class="select">
<label for="videoSource">Video source: </label><select id="videoSource"></select>
</div>
<div class="select">
<label for="videoCodec">Video Codec: </label><select id="videoCodec">
<option value="VP8">VP8</option>
<option value="VP9">VP9</option>
<option value="H264">H264</option>
<option value="H265">H265</option>
<option value="AV1">AV1</option>
</select>
</div>
<!-- Get local audio/video stream -->
<div id="step1">
<p>Please click `allow` on the top of the screen so we can access your webcam and microphone for calls.</p>
<div id="step1-error">
<p>Failed to access the webcam and microphone. Make sure to run this demo on an http server and click allow when asked for permission by the browser.</p>
<a href="#" class="pure-button pure-button-error" id="step1-retry">Try again</a>
</div>
</div>
<!-- Make calls to others -->
<div id="step2">
<p>Your id: <span id="my-id">...</span></p>
<p>Share this id with others so they can call you.</p>
<h3>Make a call</h3>
<form id="make-call" class="pure-form">
<input type="text" placeholder="Call user id..." id="callto-id">
<button href="#" class="pure-button pure-button-success" type="submit">Call</button>
</form>
</div>
<!-- Call in progress -->
<div id="step3">
<p>Currently in call with <span id="their-id">...</span></p>
<p><a href="#" class="pure-button pure-button-error" id="end-call">End call</a></p>
<p><a href="#" class="pure-button pure-button-success" id="getting-stats">Getting stats</a></p>
<p><a href="#" class="pure-button pure-button-error" id="stop-acquiring-stats">Stop acquiring stats</a></p>
<table>
<tbody>
<tr>
<td>Local Candidate</td>
<td id=local-candidate></td>
</tr>
<tr>
<td>Remote Candidate</td>
<td id=remote-candidate></td>
</tr>
<tr>
<td>Inbound Codec</td>
<td id=inbound-codec></td>
</tr>
<tr>
<td>Outbound Codec</td>
<td id=outbound-codec></td>
</tr>
<tr>
<td>Inbound Audio</td>
<td id=inbound-audio></td>
</tr>
<tr>
<td>Inbound Video</td>
<td id=inbound-video></td>
</tr>
<tr>
<td>Outbound Audio</td>
<td id=outbound-audio></td>
</tr>
<tr>
<td>Outbound Video</td>
<td id=outbound-video></td>
</tr>
<tr>
<td>Local Audio/Vidoe Track</td>
<td id=local-audio-video></td>
</tr>
<tr>
<td>Remote Audio/Video Track</td>
<td id=remote-audio-video></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>