basic plumbing for birdseye view

This commit is contained in:
Blake Blackshear
2021-05-22 21:02:26 -05:00
parent f4a0ec43a6
commit 7fc9026ca6
5 changed files with 123 additions and 0 deletions

22
web/public/jsmpeg.html Normal file
View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>JSMpeg Stream Client</title>
<style type="text/css">
html, body {
background-color: #111;
text-align: center;
}
</style>
</head>
<body>
<canvas id="video-canvas"></canvas>
<script type="text/javascript" src="jsmpeg.min.js"></script>
<script type="text/javascript">
var canvas = document.getElementById('video-canvas');
var url = 'ws://'+document.location.hostname+':5000/live/birdseye';
var player = new JSMpeg.Player(url, {canvas: canvas});
</script>
</body>
</html>

1
web/public/jsmpeg.min.js vendored Normal file

File diff suppressed because one or more lines are too long