This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
DUT2PTUT/video.html

32 lines
1.0 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="style/styles.css">
<title>Acces camera</title>
2014-02-28 01:34:08 +00:00
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" >
var ws = new WebSocket ("ws://192.168.1.23/socket");
ws.onmessage = function (evt) {
console.log("data receive");
var str = "<img src='data:image/jpeg;base64,"+evt.data+"'>";
$('.image').html(str);
2014-02-28 02:36:53 +00:00
}
ws.onopen = function () {
console.log("websocket engage");
};
ws.onclose = function () {
console.log("connection closed");
};
</script>
</head>
<body>
<h2>Vue camera</h2>
2014-02-28 02:50:12 +00:00
<div class="image"></div>
<form action="/disconnection" method="post">
<input type="submit" value="Deconnexion">
</form>
</body>
</html>