forked from mozilla/webrtc-landing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (108 loc) · 4.01 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
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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="expires" content="0"/>
<script src="detect.js"></script>
<script src="jquery.js"></script>
<script src="bootstrap.js"></script>
<link rel="stylesheet" href="bootstrap.css"/>
<title>WebRTC Test Landing Page</title>
</head>
<body>
<div class="row">
<div class="hero-unit span12 offset2" style="text-align:center">
<h2>WebRTC Test Landing Page</h2>
<p>Following are a few pages to test various aspects of Mozilla's implementation of WebRTC.</p>
</div>
</div>
<div class="row">
<div id="gum" class="span12 offset2 alert alert-error" style="display: none;">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>getUserMedia is missing!</h4>
This page only works when loaded loaded <a href="https://mozilla.github.io/webrtc-landing/">via HTTPS</a> as getUserMedia() can only be accessed via HTTPS.
</div>
</div>
<div class="row">
<div id="pc" class="span12 offset2 alert alert-error" style="display: none;">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>RTCPeerConnection is missing!</h4>
This page only works when loaded loaded <a href="https://mozilla.github.io/webrtc-landing/">via HTTPS</a> as RTCPeerConnectio() is only available via HTTPS.
</div>
</div>
<div class="row">
<div id="pc" class="span12 offset2 alert" style="display: none;">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>Your Firefox is old.</h4>
You have an older version of Firefox that supports WebRTC but may have an
incompatible API. For best results, please download the latest <a
href="https://nightly.mozilla.org/">Nightly</a>!
</div>
<div class="row offset2">
<div class="span3">
<div class="well">
<h3>getUserMedia example</h3>
<p></p>
<p><a class="btn btn-large" href="gum_test.html">Try Demo</a></p>
<h5>getUserMedia AEC test</h5>
<p><a class="btn btn-small" href="gum_test_aec.html">AEC-in-gUM test</a></p>
</div>
</div>
<div class="span3">
<div class="well">
<h3>Single host 'chat'</h3>
<p>Single host 'chat' via RTCPeerConnection.</p>
<p><a class="btn btn-large" href="pc_test.html">Try Demo</a></p>
</div>
</div>
<div class="span3">
<div class="well">
<h3>Single host DataChannels</h3>
<p><a class="btn btn-large" href="data_test.html">Try Demo</a></p>
<h5>One-way latency test</h5>
<p><a class="btn btn-small" href="data_latency_test.html">Latency test</a></p>
</div>
</div>
<div class="span3">
<div class="well">
<h3>Canvas captureStream()</h3>
New and cool... (and updated)
<p><a class="btn btn-large" href="canvas_demo.html">Try Canvas Demo</a></p>
<p><a class="btn btn-large" href="canvas_filter_demo.html">Try Filter Demo</a></p>
</div>
</div>
</div>
<div class="row offset2">
<div class="span6">
<div class="well">
<h3>Multi-person video chat</h3>
<a href="https://talky.io/">Talky.io</a><br>
<a href="https://whereby.com/">Whereby (formerly appear.in)</a><br>
<h4>File transfer sites:</h4>
<a href="https://sharedrop.io/">sharedrop.io</a> Easy local-lan
p2p file transfer<br>
</div>
</div>
<div class="span6">
<div class="well">
<h3>"Fiddle" examples/demos</h3>
<!-- this can be a separate page -->
</div>
</div>
</div>
<hr>
<br>
<script>
if (!navigator.mediaDevices.getUserMedia) {
document.getElementById("gum").style.display = "block";
}
if (!window.RTCPeerConnection) {
document.getElementById("pc").style.display = "block";
}
if (BrowserDetect.browser != "Firefox" ||
parseInt(BrowserDetect.version, 10) < 19) {
document.getElementById("version").style.display = "block";
}
</script>
</body>
</html>