serve tls traffic and static files to view webcam locally and open websocket conn

This commit is contained in:
bel
2020-05-03 23:09:46 -06:00
parent dda64da85e
commit 2388723fa5
7 changed files with 267 additions and 0 deletions

27
public/index.html Executable file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="webrtc.js"></script>
<style>
video {
max-width: 100%;
min-width: 100%;
border: 1px solid black;
}
</style>
</head>
<body>
<video id="localVideo" autoplay muted ></video>
<video id="remoteVideo" autoplay ></video>
<br />
<input type="button" id="start" onclick="start(true)" value="Start Video"></input>
<script type="text/javascript">
pageReady();
</script>
</body>
</html>