nouveau fichier: test.html
This commit is contained in:
parent
0b9dde0968
commit
227a8825ef
29
test.html
Normal file
29
test.html
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf8" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="style/styles.css">
|
||||||
|
<title>Acces camera</title>
|
||||||
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||||
|
<script type="text/javascript" >
|
||||||
|
var = new WebSocket ("ws://192.168.1.23/test");
|
||||||
|
function refresh() {
|
||||||
|
ws.send("next");
|
||||||
|
}
|
||||||
|
ws.onmessage = function (evt) {
|
||||||
|
var str = "<img src='data:image/jpeg;base64,"+evt.data+"'>";
|
||||||
|
$('.image').html(str);
|
||||||
|
}
|
||||||
|
$(document).ready(refresh())
|
||||||
|
setInterval('refresh()', 2000);
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>Vue camera</h2>
|
||||||
|
<div class="image"></div>
|
||||||
|
<form action="/disconnection" method="post">
|
||||||
|
<input type="submit" value="Deconnexion">
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Reference in New Issue
Block a user