Skip to content

Commit cd17d4f

Browse files
Merge pull request #18 from TakayukiHoshi1984/modify_chromecast_receiver
ChromeCastのReceiverアプリのCanvasの処理調整
2 parents 86221db + fbece7c commit cd17d4f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dConnectChromecastReceiverApp/receiver.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
console.log("init");
5050
nCtx = initNotificationCanvas(nId);
5151
iCtx = initImageCanvas(iId);
52-
53-
showMessage(nCtx, "Hello, Device Connect!");
5452
initReceiver();
5553
}
5654

@@ -84,6 +82,7 @@
8482
}
8583

8684
function showImage(ctx, url, x, y, mode) {
85+
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
8786
if (mode === null || mode === 'same') {
8887
showImageSameRate(ctx, url, x, y);
8988
} else if (mode === 'fills') {
@@ -152,6 +151,8 @@
152151
}
153152

154153
function initReceiver() {
154+
console.log("onload");
155+
155156
cast.receiver.logger.setLevelValue(cast.receiver.LoggerLevel.DEBUG);
156157

157158
window.mediaElement = document.getElementById(videoId);

0 commit comments

Comments
 (0)