modifié: video.html
This commit is contained in:
parent
ff4b753141
commit
3a0047756a
@ -8,25 +8,24 @@
|
|||||||
<script type="text/javascript" >
|
<script type="text/javascript" >
|
||||||
|
|
||||||
function refresh() {
|
function refresh() {
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url:'/ajax',
|
url:'/ajax',
|
||||||
contentType: "image/jpeg",
|
contentType: "image/jpeg",
|
||||||
success: function(data){
|
success: function(data){
|
||||||
var str = "<img src='data:image/jpeg;base64,"+data+"'>";
|
var str = "<img src='data:image/jpeg;base64,"+data+"'>";
|
||||||
$('#image').html(str);}
|
$('.image').html(str);}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$(document).ready(refresh())
|
||||||
setInterval('refresh()', 2000);
|
setInterval('refresh()', 3000);
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Vue camera</h2>
|
<h2>Vue camera</h2>
|
||||||
<div id="image"></div>
|
<div class="image"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user