-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
31 lines (29 loc) · 1.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>webrtc-bot-example</title>
</head>
<body>
<h1>webrtc-bot-example</h1>
<p>This page is only shown when starting the app in debug mode.</p>
<ul>
<li>Node.js: <script>document.write(process.versions.node)</script></li>
<li>Chromium: <script>document.write(process.versions.chrome)</script></li>
<li>Electron: <script>document.write(process.versions.electron)</script></li>
</ul>
<p>See README on what this example app does.</p>
<audio controls></audio>
<audio id="remoteAudio" autoplay></audio>
<!-- Alternate option to include the JS SDK. Preferred option is to require the
circuit.js in the renderer js file. If included here, then the workaround
below is needed to include the circuit.js file as global browser module.
The reason for this is that electron (with nodeIntegration=true) tries to
include the Circuit SDK as commonJS module.
<script>module.exports_ = module.exports;delete module.exports;</script>
<script type="text/javascript" src="./node_modules/circuit-sdk/circuit.js"></script>
<script>module.exports = module.exports_;delete module.exports_;</script>
-->
<script type="text/javascript" src="./renderer.js"></script>
</body>
</html>