From 967d831fb72dbd7b864a817e7e3246de4279c82c Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sat, 1 Mar 2014 18:29:32 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20vide?= =?UTF-8?q?o.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/video.html b/video.html index 8c0de26..6a2aa3d 100644 --- a/video.html +++ b/video.html @@ -12,13 +12,16 @@ return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});v var ws = new WebSocket ("ws://192.168.1.23/socket"); ws.onmessage = function (evt) { + console.log("data receive"); if(evt.data != "error") { - console.log("data receive"); + console.log("data OK !"); var str = ""; $('.image').html(str); } - else - var str = "Erreur : image camera indisponilbe"; + else { + console.log("data NOK !"); + var str = "

Erreur : image camera indisponilbe

"; + } } ws.onopen = function () { console.log("websocket engage");