-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.html
51 lines (51 loc) · 1.9 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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<link href='https://fonts.googleapis.com/css?family=Gentium+Basic:400,700' rel='stylesheet' type='text/css'>
<title>WebRTC Test Landing Page</title>
<style>
body {
font-family: "Gentium Basic", serif;
}
</style>
<script src="detect.js"></script>
</head>
<body>
<h2>WebRTC Test Landing Page</h2>
<p>Following are a few pages to test various aspects of WebRTC:</p>
<ul>
<li><a href="gum_test.html">getUserMedia</a></li>
<li><a href="pc_test.html">Single host PeerConnection</a></li>
<li><a href="data_test.html">Single host Data Channels</a></li>
<li><a href="gupshup/">Multi host PeerConnection</a></li>
</ul>
<h3 id="gum" style="color: red; display: none;">
mozGetUserMedia is missing, do you have the latest
<a href="http://nightly.mozilla.org/">Nightly</a> and set
<i>media.navigator.enabled</i> to true?
</h3>
<h3 id="pc" style="color: red; display: none;">
mozRTCPeerConnection is missing, do you have the latest
<a href="http://nightly.mozilla.org/">Nightly</a> and set
<i>media.peerconnection.enabled</i> to true?
</h3>
<h3 id="version" style="color: red; display: none;">
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="http://nightly.mozilla.org/">Nightly</a>!
</h3>
<script>
if (!navigator.mozGetUserMedia) {
document.getElementById("gum").style.display = "block";
}
if (!window.mozRTCPeerConnection) {
document.getElementById("pc").style.display = "block";
}
if (BrowserDetect.browser != "Firefox" ||
parseInt(BrowserDetect.version, 10) < 19) {
document.getElementById("version").style.display = "block";
}
</script>
</body>
</html>