generated from github/welcome-to-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (54 loc) · 2.35 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
<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="//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">
<div id="their-videos"></div>
<video id="my-video" muted="true" autoplay playsinline></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>
<!-- 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>
<p>Your id: <span id="my-id">...</span></p>
<!-- Make calls to others -->
<div id="step2">
<h3>Make a call</h3>
<form id="make-call" class="pure-form">
<input type="text" placeholder="Join room..." id="join-room">
<button class="pure-button pure-button-success" type="submit">Join</button>
</form>
<p><strong>Warning:</strong> You may connect with people you don't know if you both use the same room name.</p>
<p><strong>注意:</strong>同じルーム名を使用した場合、知らない人と接続する可能性があります。</p>
</div>
<!-- Call in progress -->
<div id="step3">
<p>Currently in room <span id="room-id">...</span></p>
<p><a href="#" class="pure-button pure-button-error" id="end-call">End call</a></p>
</div>
</div>
</div>
</body>
</html>