modifié: video.html
This commit is contained in:
parent
967d831fb7
commit
f8cbf2c9ce
@ -16,12 +16,12 @@ return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});v
|
|||||||
if(evt.data != "error") {
|
if(evt.data != "error") {
|
||||||
console.log("data OK !");
|
console.log("data OK !");
|
||||||
var str = "<img src='data:image/jpeg;base64,"+evt.data+"'>";
|
var str = "<img src='data:image/jpeg;base64,"+evt.data+"'>";
|
||||||
$('.image').html(str);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("data NOK !");
|
console.log("data NOK !");
|
||||||
var str = "<p>Erreur : image camera indisponilbe</p>";
|
var str = "<p>Erreur : image camera indisponilbe</p>";
|
||||||
}
|
}
|
||||||
|
$('.image').html(str);
|
||||||
}
|
}
|
||||||
ws.onopen = function () {
|
ws.onopen = function () {
|
||||||
console.log("websocket engage");
|
console.log("websocket engage");
|
||||||
|
Reference in New Issue
Block a user