From cd218f3bb72f529bb257a5ced6ef2a945a0eaab1 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 9 Feb 2022 12:35:16 -0800 Subject: [PATCH] google-home/chromecast: publish with webrtc fixes --- plugins/chromecast/package-lock.json | 4 ++-- plugins/chromecast/package.json | 2 +- plugins/google-home/package-lock.json | 4 ++-- plugins/google-home/package.json | 2 +- plugins/google-home/src/commands/camerastream.ts | 2 +- plugins/google-home/src/main.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/chromecast/package-lock.json b/plugins/chromecast/package-lock.json index 0d5811cce..ad234ab99 100644 --- a/plugins/chromecast/package-lock.json +++ b/plugins/chromecast/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/chromecast", - "version": "0.1.40", + "version": "0.1.41", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/chromecast", - "version": "0.1.40", + "version": "0.1.41", "license": "Apache-2.0", "dependencies": { "@scrypted/sdk": "file:../../sdk", diff --git a/plugins/chromecast/package.json b/plugins/chromecast/package.json index 56810046f..fc118c8ea 100644 --- a/plugins/chromecast/package.json +++ b/plugins/chromecast/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/chromecast", - "version": "0.1.40", + "version": "0.1.41", "description": "Send video, audio, and text to speech notifications to Chromecast and Google Home devices", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/google-home/package-lock.json b/plugins/google-home/package-lock.json index 2690cd60b..f78c12469 100644 --- a/plugins/google-home/package-lock.json +++ b/plugins/google-home/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/google-home", - "version": "0.0.35", + "version": "0.0.38", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/google-home", - "version": "0.0.35", + "version": "0.0.38", "dependencies": { "@googleapis/homegraph": "^2.0.0", "@homebridge/ciao": "^1.1.3", diff --git a/plugins/google-home/package.json b/plugins/google-home/package.json index 89f064509..2af221c96 100644 --- a/plugins/google-home/package.json +++ b/plugins/google-home/package.json @@ -42,5 +42,5 @@ "@types/lodash": "^4.14.168", "@types/url-parse": "^1.4.3" }, - "version": "0.0.35" + "version": "0.0.38" } diff --git a/plugins/google-home/src/commands/camerastream.ts b/plugins/google-home/src/commands/camerastream.ts index 051be23a2..f7911b948 100644 --- a/plugins/google-home/src/commands/camerastream.ts +++ b/plugins/google-home/src/commands/camerastream.ts @@ -16,7 +16,7 @@ commandHandlers['action.devices.commands.GetCameraStream'] = async (device: Scry const ret = executeResponse(device); const engineio = await endpointManager.getPublicLocalEndpoint() + 'engine.io/'; - const mo = mediaManager.createMediaObject(engineio, ScryptedMimeTypes.LocalUrl); + const mo = mediaManager.createMediaObject(Buffer.from(engineio), ScryptedMimeTypes.LocalUrl); const cameraStreamAccessUrl = await mediaManager.convertMediaObjectToUrl(mo, ScryptedMimeTypes.LocalUrl); const cameraStreamAuthToken = `tok-${Math.round(Math.random() * 10000).toString(16)}`; diff --git a/plugins/google-home/src/main.ts b/plugins/google-home/src/main.ts index 2de47b531..2fd1c0930 100644 --- a/plugins/google-home/src/main.ts +++ b/plugins/google-home/src/main.ts @@ -492,7 +492,7 @@ class GoogleHome extends ScryptedDeviceBase implements HttpRequestHandler, Engin return; } const { token_info } = cloudStorage; - const response = await axios.post('http://home.scrypted.app/_punch/reportState', report, { + const response = await axios.post('https://home.scrypted.app/_punch/reportState', report, { headers: { Authorization: `Bearer ${token_info}` },