From fbece7c66697d6f7e85fe83c05a89ac78138a538 Mon Sep 17 00:00:00 2001 From: TakayukiHoshi1984 Date: Wed, 31 May 2017 14:56:09 +0900 Subject: [PATCH] =?UTF-8?q?Canvas=E3=81=A7=E3=81=AE=E7=94=BB=E5=83=8F?= =?UTF-8?q?=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=99=E3=82=8B=E9=9A=9B=E3=81=AB?= =?UTF-8?q?=E3=80=81=E4=B8=80=E5=BA=A6=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dConnectChromecastReceiverApp/receiver.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dConnectChromecastReceiverApp/receiver.html b/dConnectChromecastReceiverApp/receiver.html index 1585151..e0a23a6 100644 --- a/dConnectChromecastReceiverApp/receiver.html +++ b/dConnectChromecastReceiverApp/receiver.html @@ -49,8 +49,6 @@ console.log("init"); nCtx = initNotificationCanvas(nId); iCtx = initImageCanvas(iId); - - showMessage(nCtx, "Hello, Device Connect!"); initReceiver(); } @@ -84,6 +82,7 @@ } function showImage(ctx, url, x, y, mode) { + ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); if (mode === null || mode === 'same') { showImageSameRate(ctx, url, x, y); } else if (mode === 'fills') { @@ -152,6 +151,8 @@ } function initReceiver() { + console.log("onload"); + cast.receiver.logger.setLevelValue(cast.receiver.LoggerLevel.DEBUG); window.mediaElement = document.getElementById(videoId);